<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
Have you checked the log/freeswitch.xml.fsxml file to be sure only
one gateway is present in each profile ?<br>
<br>
<br>
2012-01-21 16:24 keltezéssel, David Villasmil írta:
<blockquote
cite="mid:CAFGRPVpDrGw_MtTLron7SMaL99_SMFyUWU-JWt2qaA8nwDT3Xw@mail.gmail.com"
type="cite">Hello All,
<div><br>
</div>
<div><br>
</div>
<div>I'm receiving calls on, say IP 1.2.3.4 and i want to send
them out on IP 1.2.3.4 or IP 5.6.7.8 depending on the gateway I
want to use.</div>
<div>For this, i created TWO profiles, one binding to IP1, the
other to IP2.</div>
<div>Then I created one gateway on each profile.</div>
<div><br>
</div>
<div>BUT, FS is loading both GWs on BOTH PROFILES!</div>
<div><br>
</div>
<div>Is this normal? Can anyone give me a hand with this?</div>
<div><br>
</div>
<div>
Thanks!</div>
<div><br>
</div>
<div>David</div>
<div><br>
</div>
<div>my fs-cli output:</div>
<div><br>
</div>
<div><a class="moz-txt-link-abbreviated" href="mailto:freeswitch@127.0.0.1@internal">freeswitch@127.0.0.1@internal</a>> sofia xmlstatus</div>
<div><br>
</div>
<div>
<div><?xml version="1.0" encoding="ISO-8859-1"?></div>
<div><profiles></div>
<div><profile></div>
<div><name>IP_REAL</name></div>
<div><type>profile</type></div>
<div><data><a moz-do-not-send="true"
href="http://sip:mod_sofia@1.2.3.4:5060">sip:mod_sofia@1.2.3.4:5060</a></data></div>
<div><state>RUNNING (0)</state></div>
<div></profile></div>
<div><gateway></div>
<div><name><a moz-do-not-send="true"
href="http://example.com">example.com</a></name></div>
<div><type>gateway</type></div>
<div><data><a moz-do-not-send="true"
href="mailto:sip%3A@example.com">sip:@example.com</a></data></div>
<div><state>NOREG</state></div>
<div></gateway></div>
<div><br>
</div>
<div><gateway></div>
<div><name>test</name></div>
<div><type>gateway</type></div>
<div><data><a class="moz-txt-link-freetext" href="sip:@Y.Y.Y.Y">sip:@Y.Y.Y.Y</a></data></div>
<div><state>NOREG</state></div>
<div></gateway></div>
<div><br>
</div>
<div><gateway></div>
<div><name>GREAT</name></div>
<div><type>gateway</type></div>
<div><data><a class="moz-txt-link-freetext" href="sip:@X.X.X.X">sip:@X.X.X.X</a></data></div>
<div><state>NOREG</state></div>
<div></gateway></div>
<div><br>
</div>
<div><profile></div>
<div><name>IP_SPAIN_1</name></div>
<div><type>profile</type></div>
<div><data><a moz-do-not-send="true"
href="http://sip:mod_sofia@5.6.7.8:5060">sip:mod_sofia@5.6.7.8:5060</a></data></div>
<div><state>RUNNING (0)</state></div>
<div></profile></div>
<div><gateway></div>
<div><name><a moz-do-not-send="true"
href="http://example.com">example.com</a></name></div>
<div><type>gateway</type></div>
<div><data><a moz-do-not-send="true"
href="mailto:sip%3A@example.com">sip:@example.com</a></data></div>
<div><state>NOREG</state></div>
<div></gateway></div>
<div><br>
</div>
<div><gateway></div>
<div><name>test</name></div>
<div><type>gateway</type></div>
<div><data><a class="moz-txt-link-freetext" href="sip:@Y.Y.Y.Y">sip:@Y.Y.Y.Y</a></data></div>
<div><state>NOREG</state></div>
<div></gateway></div>
<div><br>
</div>
<div><gateway></div>
<div><name>GREAT</name></div>
<div><type>gateway</type></div>
<div><data><a class="moz-txt-link-freetext" href="sip:@X.X.X.X">sip:@X.X.X.X</a></data></div>
<div><state>NOREG</state></div>
<div></gateway></div>
<div><br>
</div>
<div></profiles></div>
</div>
<div><br>
</div>
<div>My sofia:</div>
<div><br>
</div>
<div>
<div> <configuration name="sofia.conf" description="sofia
Endpoint"></div>
<div> </div>
<div> <global_settings></div>
<div> <param name="log-level" value="0"/></div>
<div> <!-- <param name="auto-restart"
value="false"/> --></div>
<div> <param name="debug-presence" value="0"/></div>
<div> </global_settings></div>
<div><br>
</div>
<div><br>
</div>
<div> <profiles></div>
<div> </div>
<div> <profile name="IP_REAL"></div>
<div> <!-- <a moz-do-not-send="true"
href="http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files">http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files</a>
--> </div>
<div> <!-- This profile is only for
outbound registrations to providers --></div>
<div> <gateways></div>
<div> </div>
<div> </div>
<div> <gateway name="test"></div>
<div> <param name="realm"
value="Y.Y.Y.Y"/></div>
<div> <param name="username"
value=""/></div>
<div> <param name="password"
value=""/></div>
<div> <param name="register"
value="false"/></div>
<div> <param
name="retry-seconds" value="30"/></div>
<div> <param
name="caller-id-in-from" value="true"/></div>
<div>
</gateway></div>
<div> </div>
<div> </gateways></div>
<div> </div>
<div> <aliases></div>
<div>
<!-- </div>
<div> <alias name="outbound"/></div>
<div> <alias name="nat"/></div>
<div> --></div>
<div> </aliases></div>
<div> </div>
<div> <domains></div>
<div> <domain name="all" alias="false"
parse="true"/></div>
<div> </domains></div>
<div> </div>
<div> <settings></div>
<div> <param name="debug"
value="0"/></div>
<div> <span class="Apple-tab-span"
style="white-space:pre"> </span><!-- If you want
FreeSWITCH to shutdown if this profile fails to load,
uncomment the next line. --></div>
<div> <span class="Apple-tab-span"
style="white-space:pre"> </span><!-- <param
name="shutdown-on-fail" value="true"/> --></div>
<div> <param name="sip-trace"
value="no"/></div>
<div> <param name="rfc2833-pt"
value="101"/></div>
<div> <param name="sip-port"
value="5060"/></div>
<div> <!-- <param name="sip-port"
value="5061"/> --></div>
<div> <param name="dialplan"
value="XML"/> </div>
<div> <param name="context"
value="IP_REAL"/></div>
<div> <param name="dtmf-duration"
value="2000"/></div>
<div> <param
name="inbound-codec-prefs" value="$${global_codec_prefs}"/></div>
<div> <param
name="outbound-codec-prefs"
value="$${outbound_codec_prefs}"/></div>
<div> <param name="hold-music"
value="$${hold_music}"/></div>
<div> <param name="rtp-timer-name"
value="soft"/></div>
<div> <!--<param
name="enable-100rel" value="true"/>--></div>
<div>
<!-- This could be set to "passive"
--></div>
<div> <param name="local-network-acl"
value="localnet.auto"/></div>
<div> <param name="manage-presence"
value="false"/></div>
<div> </div>
<div> <!-- used to share presence info
across sofia profiles </div>
<div> <span class="Apple-tab-span"
style="white-space:pre"> </span> manage-presence needs to
be set to passive on this profile</div>
<div> <span class="Apple-tab-span"
style="white-space:pre"> </span> if you want it to behave
as if it were the internal profile </div>
<div> <span class="Apple-tab-span"
style="white-space:pre"> </span> for presence.</div>
<div> --></div>
<div> <!-- Name of the db to use for
this profile --></div>
<div> <!--<param name="dbname"
value="share_presence"/>--></div>
<div> <!--<param
name="presence-hosts" value="$${domain}"/>--></div>
<div> <!--<param
name="force-register-domain" value="$${domain}"/>--></div>
<div> <!--all inbound reg will stored
in the db using this domain --></div>
<div> <!--<param
name="force-register-db-domain" value="$${domain}"/>--></div>
<div> <!--
************************************************* --></div>
<div> </div>
<div> <param name="apply-nat-acl"
value="rfc1918"/></div>
<div> <param
name="aggressive-nat-detection" value="true"/></div>
<div> <param
name="inbound-codec-negotiation" value="generous"/></div>
<div> <param name="nonce-ttl"
value="60"/></div>
<div> <param name="auth-calls"
value="false"/></div>
<div> <!--</div>
<div> <span class="Apple-tab-span"
style="white-space:pre"> </span>DO NOT USE HOSTNAMES, ONLY
IP ADDRESSES IN THESE SETTINGS!</div>
<div> --></div>
<div> <param name="rtp-ip"
value="1.2.3.4"/></div>
<div> <param name="sip-ip"
value="1.2.3.4"/></div>
<div> <param name="ext-rtp-ip"
value="auto-nat"/></div>
<div> <param name="ext-sip-ip"
value="auto-nat"/></div>
<div> <param name="rtp-timeout-sec"
value="3600"/></div>
<div> <param
name="rtp-hold-timeout-sec" value="1800"/></div>
<div>
<!--<param name="enable-3pcc"
value="true"/>--></div>
<div> </div>
<div> <!-- TLS: disabled by default,
set to "true" to enable --></div>
<div> <param name="tls"
value="$${external_ssl_enable}"/></div>
<div> <!-- additional bind parameters
for TLS --></div>
<div> <param name="tls-bind-params"
value="transport=tls"/></div>
<div> <!-- Port to listen on for TLS
requests. (5081 will be used if unspecified) --></div>
<div> <param name="tls-sip-port"
value="$${external_tls_port}"/></div>
<div> <!-- Location of the agent.pem
and cafile.pem ssl certificates (needed for TLS server) --></div>
<div> <param name="tls-cert-dir"
value="$${external_ssl_dir}"/></div>
<div> <!-- TLS version ("sslv23"
(default), "tlsv1"). NOTE: Phones may not work with TLSv1
--></div>
<div> <param name="tls-version"
value="$${sip_tls_version}"/></div>
<div> </div>
<div> </settings></div>
<div> </profile></div>
<div> </div>
<div> <profile name="IP_SPAIN_1"></div>
<div> <!-- <a moz-do-not-send="true"
href="http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files">http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files</a>
--> </div>
<div> <!-- This profile is only for
outbound registrations to providers --></div>
<div> <gateways></div>
<div> </div>
<div> </div>
<div> <gateway name="GREAT"></div>
<div> <param name="realm"
value="X.X.X.X"/></div>
<div> <param name="username"
value=""/></div>
<div> <param name="password"
value=""/></div>
<div> <param name="register"
value="false"/></div>
<div> <param
name="retry-seconds" value="30"/></div>
<div> <param
name="caller-id-in-from" value="true"/></div>
<div> </gateway></div>
<div> </div>
<div> </gateways></div>
<div> </div>
<div> <aliases></div>
<div> <!-- </div>
<div> <alias name="outbound"/></div>
<div> <alias name="nat"/></div>
<div> --></div>
<div> </aliases></div>
<div> </div>
<div> <domains></div>
<div> <domain name="all" alias="false"
parse="true"/></div>
<div> </domains></div>
<div> </div>
<div> <settings></div>
<div> <param name="debug"
value="0"/></div>
<div> <span class="Apple-tab-span"
style="white-space:pre"> </span><!-- If you want
FreeSWITCH to shutdown if this profile fails to load,
uncomment the next line. --></div>
<div> <span class="Apple-tab-span"
style="white-space:pre"> </span><!-- <param
name="shutdown-on-fail" value="true"/> --></div>
<div> <param name="sip-trace"
value="no"/></div>
<div> <param name="rfc2833-pt"
value="101"/></div>
<div> <param name="sip-port"
value="5060"/></div>
<div> <!-- <param name="sip-port"
value="5061"/> --></div>
<div> <param name="dialplan"
value="XML"/> </div>
<div> <param name="context"
value="IP_SPAIN_1"/></div>
<div> <param name="dtmf-duration"
value="2000"/></div>
<div> <param
name="inbound-codec-prefs" value="$${global_codec_prefs}"/></div>
<div> <param
name="outbound-codec-prefs"
value="$${outbound_codec_prefs}"/></div>
<div> <param name="hold-music"
value="$${hold_music}"/></div>
<div> <param name="rtp-timer-name"
value="soft"/></div>
<div> <!--<param
name="enable-100rel" value="true"/>--></div>
<div>
<!-- This could be set to "passive"
--></div>
<div> <param name="local-network-acl"
value="localnet.auto"/></div>
<div> <param name="manage-presence"
value="false"/></div>
<div> </div>
<div> <!-- used to share presence info
across sofia profiles </div>
<div> <span class="Apple-tab-span"
style="white-space:pre"> </span> manage-presence needs to
be set to passive on this profile</div>
<div> <span class="Apple-tab-span"
style="white-space:pre"> </span> if you want it to behave
as if it were the internal profile </div>
<div> <span class="Apple-tab-span"
style="white-space:pre"> </span> for presence.</div>
<div> --></div>
<div> <!-- Name of the db to use for
this profile --></div>
<div> <!--<param name="dbname"
value="share_presence"/>--></div>
<div> <!--<param
name="presence-hosts" value="$${domain}"/>--></div>
<div> <!--<param
name="force-register-domain" value="$${domain}"/>--></div>
<div> <!--all inbound reg will stored
in the db using this domain --></div>
<div> <!--<param
name="force-register-db-domain" value="$${domain}"/>--></div>
<div> <!--
************************************************* --></div>
<div> </div>
<div> <param name="apply-nat-acl"
value="rfc1918"/></div>
<div> <param
name="aggressive-nat-detection" value="true"/></div>
<div> <param
name="inbound-codec-negotiation" value="generous"/></div>
<div> <param name="nonce-ttl"
value="60"/></div>
<div> <param name="auth-calls"
value="false"/></div>
<div> <!--</div>
<div> <span class="Apple-tab-span"
style="white-space:pre"> </span>DO NOT USE HOSTNAMES, ONLY
IP ADDRESSES IN THESE SETTINGS!</div>
<div> --></div>
<div> <param name="rtp-ip"
value="5.6.7.8"/></div>
<div> <param name="sip-ip"
value="5.6.7.8"/></div>
<div> <param name="ext-rtp-ip"
value="auto-nat"/></div>
<div> <param name="ext-sip-ip"
value="auto-nat"/></div>
<div> <param name="rtp-timeout-sec"
value="3600"/></div>
<div> <param
name="rtp-hold-timeout-sec" value="1800"/></div>
<div>
<!--<param name="enable-3pcc"
value="true"/>--></div>
<div> </div>
<div> <!-- TLS: disabled by default,
set to "true" to enable --></div>
<div> <param name="tls"
value="$${external_ssl_enable}"/></div>
<div> <!-- additional bind parameters
for TLS --></div>
<div> <param name="tls-bind-params"
value="transport=tls"/></div>
<div> <!-- Port to listen on for TLS
requests. (5081 will be used if unspecified) --></div>
<div> <param name="tls-sip-port"
value="$${external_tls_port}"/></div>
<div> <!-- Location of the agent.pem
and cafile.pem ssl certificates (needed for TLS server) --></div>
<div> <param name="tls-cert-dir"
value="$${external_ssl_dir}"/></div>
<div> <!-- TLS version ("sslv23"
(default), "tlsv1"). NOTE: Phones may not work with TLSv1
--></div>
<div> <param name="tls-version"
value="$${sip_tls_version}"/></div>
<div> </div>
<div> </settings></div>
<div> </profile></div>
<div> </div>
<div> </profiles></div>
<div> </div>
<div> </configuration></div>
</div>
<div><br>
</div>
<br class="Apple-interchange-newline">
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
</blockquote>
<br>
</body>
</html>