more dialplan fixes

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6929 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2007-12-21 04:44:32 +00:00
parent 2daba4e513
commit 9e7ee75544
2 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@
-->
<extension name="US_Local">
<condition field="${default_area_code}" expression="\d{3}" continue="on-true">
<anti-action application="say" data="you must dial the area code to call this destination"/>
<anti-action application="speak" data="you must dial the area code to call this destination"/>
</condition>
<condition field="destination_number" expression="^([2-9]\d{6})$">
<action application="set" data="continue_on_fail=true"/>

View File

@ -24,14 +24,14 @@
</extension>
<extension name="global" continue="true">
<condition field="${network_addr}" expression="^$">
<condition field="${network_addr}" expression="^">
<action application="set" data="use_profile=${cond(${is_lan_addr($${local_ip_v4})} == yes ? nat : default)}"/>
<anti-action application="set" data="use_profile=${cond(${is_lan_addr(${network_addr})} == yes ? nat : default)}"/>
</condition>
<!-- This will setup some variables if the user isn't authenticated.
numbering_plan is required for the demo to function properly.
-->
<condition field="${numbering_plan}" expression="^$">
<condition field="${numbering_plan}" expression="^">
<action application="set_user" data="default@${domain}"/>
</condition>
<condition>