]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
more tweaks
authorBrian West <brian@freeswitch.org>
Sun, 28 Sep 2008 23:36:22 +0000 (23:36 +0000)
committerBrian West <brian@freeswitch.org>
Sun, 28 Sep 2008 23:36:22 +0000 (23:36 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9708 d0543943-73ff-0310-b7d9-9358b9ac24b2

conf/dialplan/default.xml
conf/dialplan/public.xml

index b3683cb0effe22ba572a4d096132330595171d4d..1d0655f082b62519fd987c32be5b18df347ff9eb 100644 (file)
     -->
     <extension name="set_domain" continue="true">
       <condition field="${target_domain}" expression="^$" break="never"/>
-      <condition field="source" expression="mod_sofia" break="never">
-       <action application="set" data="target_domain=${sip_auth_realm}"/>
-       <anti-action application="set" data="target_domain=$${domain}"/>
+      <condition field="source" expression="mod_sofia" break="never"/>
+      <condition field="${sip_auth_realm}" expression="^$" break="never">
+       <action application="set" data="target_domain=$${domain}"/>
+       <anti-action application="set" data="target_domain=${sip_auth_realm}"/>
       </condition>
     </extension>
 
     </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
     -->
index 99132ddf34513b78f18d14a988091f091844f12a..bfaacf673619926d7b90df90388ba951d65dfbe9 100644 (file)
       <condition field="${target_domain}" expression="^$" break="never"/>
       <condition field="source" expression="mod_sofia" break="never"/>
       <condition field="${sip_req_params}" expression="target_domain=([A-Z-a-z0-9.]+)" break="never">
-       <action application="set" data="target_domain=$1"/>
-       <anti-action application="set" data="target_domain=$${domain}"/>
+       <!-- We need to export this so the B-Leg will have it after transfer too. -->
+       <action application="export" data="target_domain=$1"/>
+       <anti-action application="export" data="target_domain=$${domain}"/>
       </condition>
     </extension>
 
-    <extension name="call_debug">
+    <extension name="call_debug" continue="true">
       <condition field="${call_debug}" expression="^true$" break="never">
        <action application="info"/>
       </condition>