format
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1447 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
d53d9d3997
commit
050b05861c
|
@ -242,72 +242,73 @@
|
|||
</settings>
|
||||
</configuration>
|
||||
</section>
|
||||
|
||||
<section name="dialplan" description="Regex/XML Dialplan">
|
||||
<!-- Valid fields in conditions:
|
||||
"dialplan, caller_id_name, ani, ani2, caller_id_number,
|
||||
network_addr, rdnis, destination_number, uuid, source,
|
||||
context, chan_name" -->
|
||||
|
||||
<!-- *NOTE* The special context name 'any' will match any context -->
|
||||
<context name="default">
|
||||
<extension name="devconf">
|
||||
<condition field="destination_number" expression="^888$">
|
||||
<action application="bridge" data="exosip/888@66.250.68.194"/>
|
||||
</condition>
|
||||
</extension>
|
||||
<!-- extensions starting with 4, all the numbers after 4 form a numeric filename
|
||||
continue=true means keep looking for more extensions to match
|
||||
*NOTE* The entire dialplan is parsed ONCE when the call starts
|
||||
so any call info acquired after the various actions cannot
|
||||
be taken into consideration.
|
||||
|
||||
The first match will play a beep and the second one plays
|
||||
the desired file. This is for demo purposes both actions
|
||||
could have been under the same <extension> tag as well.
|
||||
-->
|
||||
<extension name="playsound1" continue="true">
|
||||
<condition field="source" expression="mod_exosip"/>
|
||||
<condition field="destination_number" expression="^4(\d+)">
|
||||
<action application="playback" data="/var/sounds/beep.gsm"/>
|
||||
</condition>
|
||||
</extension>
|
||||
<extension name="playsound2">
|
||||
<condition field="source" expression="mod_exosip"/>
|
||||
<condition field="destination_number" expression="^4(\d+)">
|
||||
<action application="playback" data="/root/$1.raw"/>
|
||||
</condition>
|
||||
</extension>
|
||||
<!-- send everything with a certian RDNIS to Wanpipe ISDN -->
|
||||
<extension name="To PRI">
|
||||
<condition field="rdnis" expression="8881231234"/>
|
||||
<condition field="destination_number" expression="(.*)">
|
||||
<action application="bridge" data="wanpipe/a/a/$1"/>
|
||||
</condition>
|
||||
</extension>
|
||||
<!-- Call *MUST* originate from mod_iax and also be dialing ext 9999-->
|
||||
<extension name="9999">
|
||||
<condition field="source" expresion="mod_iax"/>
|
||||
<condition field="destination_number" expression="9999">
|
||||
<action application="playback" data="/var/sounds/beep.gsm"/>
|
||||
</condition>
|
||||
</extension>
|
||||
<!-- Call the FreeSWITCH conference via SIP -->
|
||||
<extension name="FreeSWITCH Conference SIP">
|
||||
<condition field="destination_number" expression="^888$">
|
||||
<action application="bridge" data="exosip/888@66.250.68.194"/>
|
||||
</condition>
|
||||
</extension>
|
||||
<!-- Call the FreeSWITCH conference via IAX -->
|
||||
<extension name="FreeSWITCH Conference IAX">
|
||||
<condition field="destination_number" expression="^8888$">
|
||||
<action application="bridge" data="iax/guest@66.250.68.194/888"/>
|
||||
</condition>
|
||||
</extension>
|
||||
</context>
|
||||
</section>
|
||||
<section name="directory" description="User Directory">
|
||||
</section>
|
||||
<!-- Valid fields in conditions:
|
||||
"dialplan, caller_id_name, ani, ani2, caller_id_number,
|
||||
network_addr, rdnis, destination_number, uuid, source,
|
||||
context, chan_name" -->
|
||||
|
||||
<!-- *NOTE* The special context name 'any' will match any context -->
|
||||
<context name="default">
|
||||
<extension name="devconf">
|
||||
<condition field="destination_number" expression="^888$">
|
||||
<action application="bridge" data="exosip/888@66.250.68.194"/>
|
||||
</condition>
|
||||
</extension>
|
||||
<!-- extensions starting with 4, all the numbers after 4 form a numeric filename
|
||||
continue=true means keep looking for more extensions to match
|
||||
*NOTE* The entire dialplan is parsed ONCE when the call starts
|
||||
so any call info acquired after the various actions cannot
|
||||
be taken into consideration.
|
||||
|
||||
The first match will play a beep and the second one plays
|
||||
the desired file. This is for demo purposes both actions
|
||||
could have been under the same <extension> tag as well.
|
||||
-->
|
||||
<extension name="playsound1" continue="true">
|
||||
<condition field="source" expression="mod_exosip"/>
|
||||
<condition field="destination_number" expression="^4(\d+)">
|
||||
<action application="playback" data="/var/sounds/beep.gsm"/>
|
||||
</condition>
|
||||
</extension>
|
||||
<extension name="playsound2">
|
||||
<condition field="source" expression="mod_exosip"/>
|
||||
<condition field="destination_number" expression="^4(\d+)">
|
||||
<action application="playback" data="/root/$1.raw"/>
|
||||
</condition>
|
||||
</extension>
|
||||
<!-- send everything with a certian RDNIS to Wanpipe ISDN -->
|
||||
<extension name="To PRI">
|
||||
<condition field="rdnis" expression="8881231234"/>
|
||||
<condition field="destination_number" expression="(.*)">
|
||||
<action application="bridge" data="wanpipe/a/a/$1"/>
|
||||
</condition>
|
||||
</extension>
|
||||
<!-- Call *MUST* originate from mod_iax and also be dialing ext 9999-->
|
||||
<extension name="9999">
|
||||
<condition field="source" expresion="mod_iax"/>
|
||||
<condition field="destination_number" expression="9999">
|
||||
<action application="playback" data="/var/sounds/beep.gsm"/>
|
||||
</condition>
|
||||
</extension>
|
||||
<!-- Call the FreeSWITCH conference via SIP -->
|
||||
<extension name="FreeSWITCH Conference SIP">
|
||||
<condition field="destination_number" expression="^888$">
|
||||
<action application="bridge" data="exosip/888@66.250.68.194"/>
|
||||
</condition>
|
||||
</extension>
|
||||
<!-- Call the FreeSWITCH conference via IAX -->
|
||||
<extension name="FreeSWITCH Conference IAX">
|
||||
<condition field="destination_number" expression="^8888$">
|
||||
<action application="bridge" data="iax/guest@66.250.68.194/888"/>
|
||||
</condition>
|
||||
</extension>
|
||||
</context>
|
||||
</section>
|
||||
|
||||
<section name="directory" description="User Directory">
|
||||
</section>
|
||||
|
||||
</document>
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue