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

conf/dialplan/public.xml
conf/directory/default/asterlink.com.noload
conf/directory/default/ideasip.com.noload
conf/directory/default/intelefone.net.noload
conf/directory/default/pulver.com.noload
conf/directory/default/sip.broadvoice.com.noload
conf/directory/default/sipphone.com.noload
conf/directory/default/voipuser.org.noload

index 08a218466b4033e3884478dd3c42a55cd49c94f8..99132ddf34513b78f18d14a988091f091844f12a 100644 (file)
@@ -9,6 +9,22 @@
       </condition>
     </extension>
 
+    <!-- Try to get target_domain from the sip_req_params variable -->
+    <extension name="set_domain" continue="true">
+      <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}"/>
+      </condition>
+    </extension>
+
+    <extension name="call_debug">
+      <condition field="${call_debug}" expression="^true$" break="never">
+       <action application="info"/>
+      </condition>
+    </extension>
+
     <extension name="public_extensions">
       <condition field="destination_number" expression="^(10[01][0-9])$">
        <action application="transfer" data="$1 XML default"/>
index 03c9ad06011e4303353557375bf22286e43cce70..2f187720edff1b1d6a125dada9ad13b65c151e52 100644 (file)
@@ -10,7 +10,8 @@
        <param name="from-domain" value="asterlink.com"/>
        <param name="expire-seconds" value="600"/>
        <param name="register" value="true"/>
-       <param name="retry_seconds" value="30"/>
+       <param name="retry-seconds" value="30"/>
+       <param name="contact-params" value="target_domain=$${domain}"/>
        <param name="extension" value="%ALEXTENSION%"/>
        <param name="context" value="public"/>
       </gateway>
index a8095a1a2e37210ca162161fe5de2e5270abac67..308d96ee2c17b2a46933961add19f9314727768f 100644 (file)
@@ -8,7 +8,7 @@
        <param name="password" value="%ISPASSWORD%"/>
        <param name="expire-seconds" value="600"/>
        <param name="register" value="true"/>
-       <param name="retry_seconds" value="30"/>
+       <param name="retry-seconds" value="30"/>
        <param name="extension" value="%ISEXTENSION%"/>
        <param name="context" value="public"/>
       </gateway>
index a632e75f0b2aa7a95edf00140d939aec722c64e0..2cf68055b1fc6672b60349aff362cbc0a58a4e63 100644 (file)
@@ -12,7 +12,7 @@
        <param name="register" value="true"/>
        <param name="proxy" value="sip.intelefone.net"/>
        <param name="register-proxy" value="sip.intelefone.net"/>
-       <param name="retry_seconds" value="30"/>
+       <param name="retry-seconds" value="30"/>
        <param name="extension" value="%%USERNAME%%"/>
        <param name="context" value="public"/>
       </gateway>
index a66eb5776880111450df436fff1d36959e159175..2751b7cb1f374dca1d0d3b2c09134415857d9306 100644 (file)
@@ -8,7 +8,7 @@
        <param name="password" value="%FWDPASSWORD%"/>
        <param name="expire-seconds" value="600"/>
        <param name="register" value="true"/>
-       <param name="retry_seconds" value="30"/>
+       <param name="retry-seconds" value="30"/>
        <param name="extension" value="%FWDEXTENSION%"/>
        <param name="context" value="public"/>
       </gateway>
index dd75257a5a894d47d72c93784579f706114da2ac..4820a3328f751b877044ace07bfca9686c06c0c5 100644 (file)
@@ -21,7 +21,7 @@
          <!--/// register ///-->
          <param name="register" value="true"/>
          <!--How many seconds before a retry when a failure or timeout occurs -->
-         <param name="retry_seconds" value="3600"/>
+         <param name="retry-seconds" value="3600"/>
          <!--Use the callerid of an inbound call in the from field on outbound calls via this gateway -->
          <!--<param name="caller-id-in-from" value="false"/>-->
        </gateway>
index 64363420a960a8e5b6f90ad09fea6c57616ef20c..46f633cb2eb4c8255fa1b216cf402fbae08cd18a 100644 (file)
@@ -8,7 +8,7 @@
        <param name="password" value="%SPPASSWORD%"/>
        <param name="expire-seconds" value="600"/>
        <param name="register" value="true"/>
-       <param name="retry_seconds" value="5"/>
+       <param name="retry-seconds" value="5"/>
        <param name="extension" value="%SPEXTENSION%"/>
        <param name="context" value="public"/>
       </gateway>
index c616384f95184c0f36682062df7cfd4dd5124600..60bd4ff8764faa611026279b9bfc46c459bca7c1 100644 (file)
@@ -8,7 +8,7 @@
        <param name="password" value="%VUPASSWORD%"/>
        <param name="expire-seconds" value="600"/>
        <param name="register" value="true"/>
-       <param name="retry_seconds" value="30"/>
+       <param name="retry-seconds" value="30"/>
        <param name="extension" value="%VUEXTENSION%"/>
        <param name="context" value="public"/>
       </gateway>