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

Freeswitch SVN brian at freeswitch.org
Sat Oct 11 18:11:51 EDT 2008


Author: brian
Date: Sat Oct 11 18:11:50 2008
New Revision: 9973

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

Log:
re-enable external_sip_uri and use domain_exists to tell if its really an external domain

Modified: freeswitch/trunk/conf/dialplan/default.xml
==============================================================================
--- freeswitch/trunk/conf/dialplan/default.xml	(original)
+++ freeswitch/trunk/conf/dialplan/default.xml	Sat Oct 11 18:11:50 2008
@@ -98,16 +98,15 @@
       </condition>
     </extension>
 
-    <!-- If to_host and from_host differ this is an external sip URI so lets send it out. -->
-    <!--
+    <!-- If sip_req_host is not a local domain them this has to be an external sip uri -->
     <extension name="external_sip_uri" continue="true">
       <condition field="source" expression="mod_sofia"/>
       <condition field="${outside_call}" expression="^$"/>
-      <condition field="${sip_req_host}" expression="${sip_from_host}">
+      <condition field="${domain_exists(${sip_req_host})}" expression="true">
 	<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
     -->



More information about the Freeswitch-svn mailing list