[Freeswitch-svn] [commit] r10539 - freeswitch/trunk/conf/dialplan

FreeSWITCH SVN brian at freeswitch.org
Tue Nov 25 19:12:28 PST 2008


Author: brian
Date: Tue Nov 25 22:12:27 2008
New Revision: 10539

Log:
set domain_name to the default domain on all calls from mod_openzap

Modified:
   freeswitch/trunk/conf/dialplan/default.xml

Modified: freeswitch/trunk/conf/dialplan/default.xml
==============================================================================
--- freeswitch/trunk/conf/dialplan/default.xml	(original)
+++ freeswitch/trunk/conf/dialplan/default.xml	Tue Nov 25 22:12:27 2008
@@ -35,6 +35,14 @@
       </condition>
     </extension>
 
+    <!-- Set the domain -->
+    <extension name="set_domain_openzap" continue="true">
+      <condition field="${domain_name}" expression="^$"/>
+      <condition field="source" expression="mod_openzap">
+	<action application="set" data="domain_name=$${domain}"/>
+      </condition>
+    </extension>
+
     <!-- Example of doing things based on time of day. -->
     <extension name="tod_example" continue="true">
       <!-- man strftime - M-F, 9AM to 6PM -->



More information about the Freeswitch-svn mailing list