[Freeswitch-svn] [commit] r9697 - in freeswitch/trunk/conf/dialplan: . default extensions public

Freeswitch SVN brian at freeswitch.org
Sun Sep 28 16:15:05 EDT 2008


Author: brian
Date: Sun Sep 28 16:15:04 2008
New Revision: 9697

Added:
   freeswitch/trunk/conf/dialplan/default/
      - copied from r9692, /freeswitch/trunk/conf/dialplan/extensions/
   freeswitch/trunk/conf/dialplan/public/
   freeswitch/trunk/conf/dialplan/public/00_inbound_did.xml
Removed:
   freeswitch/trunk/conf/dialplan/extensions/
Modified:
   freeswitch/trunk/conf/dialplan/default.xml
   freeswitch/trunk/conf/dialplan/public.xml

Log:
changes to make it simpler for users to understand inbound vs outbound contexts

Modified: freeswitch/trunk/conf/dialplan/default.xml
==============================================================================
--- freeswitch/trunk/conf/dialplan/default.xml	(original)
+++ freeswitch/trunk/conf/dialplan/default.xml	Sun Sep 28 16:15:04 2008
@@ -425,7 +425,7 @@
       </condition>
     </extension>
 
-    <X-PRE-PROCESS cmd="include" data="extensions/*.xml"/>
+    <X-PRE-PROCESS cmd="include" data="default/*.xml"/>
     <!--
     <extension name="refer">
       <condition field="${sip_refer_to}">

Modified: freeswitch/trunk/conf/dialplan/public.xml
==============================================================================
--- freeswitch/trunk/conf/dialplan/public.xml	(original)
+++ freeswitch/trunk/conf/dialplan/public.xml	Sun Sep 28 16:15:04 2008
@@ -15,11 +15,7 @@
       </condition>
     </extension>
 
-    <extension name="public_did">
-      <condition field="destination_number" expression="^(5551212)$">
-	<action application="transfer" data="$1 XML default"/>
-      </condition>
-    </extension>
+    <X-PRE-PROCESS cmd="include" data="public/*.xml"/>
 
   </context>
 </include>

Added: freeswitch/trunk/conf/dialplan/public/00_inbound_did.xml
==============================================================================
--- (empty file)
+++ freeswitch/trunk/conf/dialplan/public/00_inbound_did.xml	Sun Sep 28 16:15:04 2008
@@ -0,0 +1,8 @@
+<include>
+  <extension name="public_did">
+    <condition field="destination_number" expression="^(5551212)$">
+      <!-- This example maps the DID 5551212 to ring 1000 in the default context -->
+      <action application="transfer" data="1000 XML default"/>
+    </condition>
+  </extension>
+</include>



More information about the Freeswitch-svn mailing list