]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add sip_external_uri example to send calls outside the domain if they aren't in our...
authorBrian West <brian@freeswitch.org>
Mon, 22 Sep 2008 14:59:12 +0000 (14:59 +0000)
committerBrian West <brian@freeswitch.org>
Mon, 22 Sep 2008 14:59:12 +0000 (14:59 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9612 d0543943-73ff-0310-b7d9-9358b9ac24b2

conf/dialplan/default.xml

index c26c61efea5e0e3efe855dddb8bfc3d7fc69bac8..fef6c3c853fcf1011a6b287844ca551b4562fd46 100644 (file)
       </condition>
     </extension>
 
+    <!-- If to_host and from_host differ this is an external sip URI so lets send it out. -->
+    <extension name="external_sip_uri" continue="true">
+      <condition field="source" expression="mod_sofia"/>
+      <condition field="${sip_from_host}" expression="${sip_to_host}">
+       <anti-action application="bridge" data="sofia/${use_profile}/${sip_to_uri}"/>
+      </condition>
+    </extension>
 
     <!--
        snom button demo, call 9000 to make button 2 mapped to transfer the current call to a conference