mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 08:05:37 +00:00
changed US.conf to use ${default_gateway} so it can be user specific and the default context to not transfer if the numbering plan isn't set.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6207 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
4437f5f431
commit
dd34b1d3d0
@ -9,7 +9,7 @@
|
||||
<action application="set" data="hangup_after_bridge=true"/>
|
||||
<action application="enum" data="1$1"/>
|
||||
<action application="bridge" data="${enum_auto_route}"/>
|
||||
<action application="bridge" data="sofia/gateway/$${default_gateway}/011$1"/>
|
||||
<action application="bridge" data="sofia/gateway/${default_gateway}/011$1"/>
|
||||
</condition>
|
||||
</extension>
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
<action application="set" data="hangup_after_bridge=true"/>
|
||||
<action application="enum" data="1$1"/>
|
||||
<action application="bridge" data="${enum_auto_route}"/>
|
||||
<action application="bridge" data="sofia/gateway/$${default_gateway}/1$1"/>
|
||||
<action application="bridge" data="sofia/gateway/${default_gateway}/1$1"/>
|
||||
</condition>
|
||||
</extension>
|
||||
|
||||
@ -40,7 +40,7 @@
|
||||
<action application="set" data="hangup_after_bridge=true"/>
|
||||
<action application="enum" data="1$1"/>
|
||||
<action application="bridge" data="${enum_auto_route}"/>
|
||||
<action application="bridge" data="sofia/gateway/$${default_gateway}/1${default_area_code}$1"/>
|
||||
<action application="bridge" data="sofia/gateway/${default_gateway}/1${default_area_code}$1"/>
|
||||
</condition>
|
||||
</extension>
|
||||
|
||||
@ -53,7 +53,7 @@
|
||||
-->
|
||||
<extension name="FCC_Services">
|
||||
<condition field="^([4689]11)$">
|
||||
<action application="bridge" data="sofia/gateway/$${default_gateway}/$1"/>
|
||||
<action application="bridge" data="sofia/gateway/${default_gateway}/$1"/>
|
||||
</condition>
|
||||
</extension>
|
||||
</context>
|
||||
|
@ -96,6 +96,7 @@
|
||||
|
||||
<extension name="Localized_Dialplan">
|
||||
<condition field="${numbering_plan}" expression="^[[:alnum:]]+$"/>
|
||||
<condition field="${default_gateway}" expression="[[:alnum:]]"/>
|
||||
<condition field="destination_number" expression="^([[:alnum:]]+)$">
|
||||
<action application="transfer" data="$1 XML ${numbering_plan}-Numbering-Plan"/>
|
||||
</condition>
|
||||
|
@ -50,6 +50,18 @@
|
||||
<variables>
|
||||
<!--all variables here will be set on all inbound calls that originate from this user -->
|
||||
<variable name="testing" value="this"/>
|
||||
|
||||
<!-- limit the max number of outgoing calls for this user -->
|
||||
<!--<variable name="max_calls" value="2"/>-->
|
||||
|
||||
<!-- send presence information if FS is configured to do so -->
|
||||
<!--<variable name="presence_id" value="1000@$${domain}"/>-->
|
||||
|
||||
<!-- set these to take advantage of a dialplan localized to this user -->
|
||||
<!--<variable name="numbering_plan" value="US"/>-->
|
||||
<!--<variable name="default_area_code" value="434"/>-->
|
||||
<!--<variable name="default_gateway" value="asterlink.com"/>-->
|
||||
|
||||
<!--<variable name="sip-force-contact" value="nat-connectile-dysfunction"/>-->
|
||||
<!--<variable name="sip-force-expires" value="10"/>-->
|
||||
<!--<variable name="sip-register-gateway" value="cluecon.com"/>-->
|
||||
@ -67,12 +79,6 @@
|
||||
<!--<param name="vm-mailto" value="me@mydomain.com"/>-->
|
||||
<!--<param name="vm-email-all-messages" value="true"/>-->
|
||||
</params>
|
||||
<variables>
|
||||
<variable name="numbering_plan" value="US"/>
|
||||
<variable name="default_area_code" value="434"/>
|
||||
<variable name="max_calls" value="2"/>
|
||||
<variable name="presence_id" value="1001@$${domain}"/>
|
||||
</variables>
|
||||
</user>
|
||||
|
||||
<!-- authless users and mailboxes -->
|
||||
|
Loading…
x
Reference in New Issue
Block a user