Change the call_direction dialplan to account for outbound call direciton eaerlier in the dialplan.

This commit is contained in:
Mark Crane 2014-08-06 09:13:38 +00:00
parent 14d0d5129a
commit c49328a09c
1 changed files with 5 additions and 1 deletions

View File

@ -1,7 +1,11 @@
<context name="{v_context}">
<extension name="call-direction" number="" continue="true" app_uuid="3780f814-5543-4350-b65d-563512d1fe71" enabled="false">
<condition field="${call_direction}" expression="^(inbound|outbound|local)$">
<condition field="${call_direction}" expression="^(inbound|outbound|local)$" break="never"/>
<anti-action application="set" data="call_direction=local"/>
</condition>
<condition field="${user_exists}" expression="^false$"/>
<condition field="destination_number" expression="^\d{7,20}$">
<action application="set" data="call_direction=outbound"/>
</condition>
</extension>
</context>