Skip to main content

auto_hunt

Created by Ryan Harris, last modified on 2018.02.07

auto_hunt‚Äč

boolean Setting auto_hunt to true will alter the normal sequential processing of dialplan extensions. auto_hunt will cause the dialplan to 'jump' to a specific extension name, not processing any other extension. The destination_number and extension name must be the same in order for this to work. The condition must still match, but the extension name is the operative element.

Usage

In conf/vars.xml:

<X-PRE-PROCESS cmd="set" data="auto_hunt=true"/>
<extension name="do_xfer">
<condition field="destination_number" expression="^.*$">
<action application="set" data="auto_hunt=true"/>
<action application="transfer" data="333"/>
</condition>
</extension>

<extension name="333">
<condition field="destination_number" expression="^333$">
<action application="info"/>
</condition>
</extension>