]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
force domain_name to simplify things
authorBrian West <brian@freeswitch.org>
Mon, 16 Feb 2009 19:01:50 +0000 (19:01 +0000)
committerBrian West <brian@freeswitch.org>
Mon, 16 Feb 2009 19:01:50 +0000 (19:01 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12064 d0543943-73ff-0310-b7d9-9358b9ac24b2

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

index 939f200ef26e5f65b882dfa4fdc2a13c1d3f7226..866ba8344b1329b9d03594985355b475137ea547 100644 (file)
        <action application="deflect" data="${destination_number}"/>
       </condition>
     </extension>
-    
-    <!--
-       Try to get the domain from the sip_auth_realm otherwise it will
-       default domain in vars.xml for cases it can't figure it out.
-
-    -->
-    <extension name="set_domain" continue="true">
-      <condition field="${domain_name}" expression="^$"/>
-      <condition field="source" expression="mod_sofia"/>
-      <condition field="${sip_auth_realm}" expression="^$">
-       <action application="set" data="domain_name=$${domain}"/>
-       <anti-action application="set" data="domain_name=${sip_auth_realm}"/>
-      </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">
index 49b8850bf35e36c11f39a9f67e452640df544dd9..beb3d6794d133df019bd81fd8bf01972ddb31bb2 100644 (file)
       </condition>
     </extension>
 
-    <!-- Try to get domain_name from the sip_req_params variable -->
-    <extension name="set_domain" continue="true">
-      <condition field="${domain_name}" expression="^$"/>
-      <condition field="source" expression="mod_sofia"/>
-      <condition field="${sip_req_params}" expression="domain_name=([A-Z-a-z0-9.]+)">
-       <!-- We need to export this so the B-Leg will have it after transfer too. -->
-       <action application="export" data="domain_name=$1"/>
-       <anti-action application="export" data="domain_name=${sip_req_host}"/>
-      </condition>
-    </extension>
-
     <extension name="public_extensions">
       <condition field="destination_number" expression="^(10[01][0-9])$">
        <action application="transfer" data="$1 XML default"/>
index eecf4691c958caaafb635cbd4fc4831a93bd5ca9..20edb4af9738c9927b771c540a41ba156c64b9d4 100644 (file)
@@ -11,6 +11,7 @@
       information on this topic.
   -->
   <X-PRE-PROCESS cmd="set" data="domain=$${local_ip_v4}"/>
+  <X-PRE-PROCESS cmd="set" data="domain_name=$${domain}"/>
   <X-PRE-PROCESS cmd="set" data="hold_music=local_stream://moh"/>
   <!--
       xmpp_client_profile and xmpp_server_profile