[Freeswitch-svn] [commit] r7037 - freeswitch/trunk/conf/dialplan
Freeswitch SVN
brian at freeswitch.org
Mon Dec 31 10:22:45 EST 2007
Author: brian
Date: Mon Dec 31 10:22:45 2007
New Revision: 7037
Modified:
freeswitch/trunk/conf/dialplan/default.xml
Log:
adding an example of using uri params and some snom ext examples
Modified: freeswitch/trunk/conf/dialplan/default.xml
==============================================================================
--- freeswitch/trunk/conf/dialplan/default.xml (original)
+++ freeswitch/trunk/conf/dialplan/default.xml Mon Dec 31 10:22:45 2007
@@ -42,7 +42,8 @@
<action application="db" data="insert/last_dial/global/${uuid}"/>
</condition>
</extension>
-
+ <!-- This kinda breaks blind transfers back to ourself. -->
+ <!--
<extension name="refer">
<condition field="${sip_refer_to}" expression="<sip:${destination_number}@$${domain}>" continue="on_false"/>
<condition field="${sip_refer_to}" expression="<sip:(.*)@(.*)>">
@@ -52,6 +53,7 @@
<action application="bridge" data="sofia/outbound/${refer_user}@${refer_domain}"/>
</condition>
</extension>
+ -->
<extension name="eavesdrop">
<condition field="destination_number" expression="^88(.*)$|^\*0(.*)$">
@@ -126,7 +128,6 @@
<anti-action application="set" data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,BUSY,USER_BUSY,NO_ANSWER,TIMEOUT,NO_ROUTE_DESTINATION"/>
<anti-action application="db" data="insert/call_return/${dialed_ext}/${caller_id_number}"/>
<anti-action application="db" data="insert/last_dial_ext/${dialed_ext}/${uuid}"/>
- <!--<anti-action application="bridge" data="sofia/$${domain}/${dialed_ext}"/>-->
<anti-action application="bridge" data="user/${dialed_ext}@$${domain}"/>
<anti-action application="answer"/>
<anti-action application="sleep" data="1000"/>
@@ -183,6 +184,29 @@
</condition>
</extension>
+ <!--
+ This extension is used with snom phones.
+
+ You can subscribe to park+lot and you'll get status of the parking lot
+ this is 100% dynamic. ie park+5000 would be fifo 5000
+
+ -->
+ <!--
+ <extension name="park">
+ <condition field="${sip_refer_to}" expression="<sip:park\+(.*)@(.*)>" continue="on-true">
+ <action application="fifo" data="$1@$${domain} in undef $${moh_uri}"/>
+ </condition>
+ </extension>
+
+ <extension name="unpark">
+ <condition field="destination_number" expression="^parking$" continue="on-true"/>
+ <condition field="${sip_to_params}" expression="fifo\=(\d+)">
+ <action application="answer"/>
+ <action application="fifo" data="$1@$${domain} out nowait"/>
+ </condition>
+ </extension>
+ -->
+
<extension name="hold_music">
<condition field="destination_number" expression="^9999$">
<action application="answer"/>
More information about the Freeswitch-svn
mailing list