]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
re-enable external_sip_uri and use domain_exists to tell if its really an external...
authorBrian West <brian@freeswitch.org>
Sat, 11 Oct 2008 22:11:50 +0000 (22:11 +0000)
committerBrian West <brian@freeswitch.org>
Sat, 11 Oct 2008 22:11:50 +0000 (22:11 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9973 d0543943-73ff-0310-b7d9-9358b9ac24b2

conf/dialplan/default.xml

index 54da9426fff1065ac04ccbbcd217c19ec3f76527..28e523c1acacecc6d454bc564856adb66e416da3 100644 (file)
       </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
     -->