]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
set domain_name to the default domain on all calls from mod_openzap
authorBrian West <brian@freeswitch.org>
Wed, 26 Nov 2008 03:12:27 +0000 (03:12 +0000)
committerBrian West <brian@freeswitch.org>
Wed, 26 Nov 2008 03:12:27 +0000 (03:12 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10539 d0543943-73ff-0310-b7d9-9358b9ac24b2

conf/dialplan/default.xml

index 73825931a3d179bdaac753d86e01f86193a8157e..2280a041f303c908ac06613e9e453fae3f1edd71 100644 (file)
       </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 -->