<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div><div dir="ltr">Thanks for your answer. But I found&nbsp;<a href="https://wiki.freeswitch.org/wiki/Authentication" target="_blank">https://wiki.freeswitch.org/wiki/Authentication</a>&nbsp;page which mentions the context as a parameter of gateway. Can we somehow use it ?<br><div><hr id="ecxstopSpelling">Date: Wed, 3 Sep 2014 07:55:26 -0400<br>From: rtreleaven@bunnykick.ca<br>To: freeswitch-users@lists.freeswitch.org<br>Subject: Re: [Freeswitch-users] How to place incoming unauth calls to different contexts.<br><br><div dir="ltr">Pavel gateways do not have a context property.<div>Transfer calls to the desired context via the dialplan.</div><div><br></div></div><div class="ecxgmail_extra"><br><br><div class="ecxgmail_quote">On Wed, Sep 3, 2014 at 7:35 AM, Pavel <span dir="ltr">&lt;<a href="mailto:my.post@hotmail.com" target="_blank">my.post@hotmail.com</a>&gt;</span> wrote:<br>
<blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;">


<div><div dir="ltr"><div><div dir="ltr">Hello Everyone !<div><br></div><div>My /sip_profiles/external.xml looks like:</div><div><br></div><div><div>&lt;profile name="external"&gt;</div><div>&nbsp; &lt;gateways&gt;</div>
<div>&nbsp; &nbsp; &nbsp;&lt;gateway name="gw1"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;param name="username" value="username"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;param name="realm" value="192.168.1.1"/&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;param name="password" value="password"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;param name="proxy" value="192.168.1.1"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;param name="register" value="false"/&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;param name="context" value="gw1"/&gt;</div><div>&nbsp; &nbsp; &nbsp;&lt;/gateway&gt;</div><div>&nbsp; &nbsp; &nbsp;&lt;gateway name="gw2"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;param name="username" value="username"/&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;param name="realm" value="192.168.1.2"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;param name="password" value="password"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;param name="proxy" value="192.168.1.2"/&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;param name="register" value="false"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;param name="context" value="gw2"/&gt;</div><div>&nbsp; &nbsp; &nbsp;&lt;/gateway&gt;<span style="white-space:pre-wrap;">        </span>&nbsp;</div>
<div>&nbsp; &lt;/gateways&gt;</div><div>&nbsp; &lt;aliases&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;alias name="outbound"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;alias name="nat"/&gt;</div><div>&nbsp; &lt;/aliases&gt;</div><div>&nbsp; &lt;domains&gt;</div>
<div>&nbsp; &nbsp; &lt;domain name="all" alias="false" parse="true"/&gt;</div><div>&nbsp; &lt;/domains&gt;</div><div>&nbsp; &lt;settings&gt;</div><div>&nbsp; &nbsp; &lt;param name="debug" value="0"/&gt;</div>
<div>&nbsp; &nbsp; &lt;param name="sip-trace" value="no"/&gt;</div><div>&nbsp; &nbsp; &lt;param name="sip-capture" value="no"/&gt;</div><div>&nbsp; &nbsp; &lt;param name="rfc2833-pt" value="101"/&gt;</div>
<div>&nbsp; &nbsp; &lt;param name="sip-port" value="$${external_sip_port}"/&gt;</div><div>&nbsp; &nbsp; &lt;param name="dialplan" value="XML"/&gt;</div><div>&nbsp; &nbsp; &lt;param name="context" value="public"/&gt;</div>
<div>&nbsp; &nbsp; &lt;param name="dtmf-duration" value="2000"/&gt;</div><div>&nbsp; &nbsp; &lt;param name="inbound-codec-prefs" value="$${global_codec_prefs}"/&gt;</div><div>&nbsp; &nbsp; &lt;param name="outbound-codec-prefs" value="$${outbound_codec_prefs}"/&gt;</div>
<div>&nbsp; &nbsp; &lt;param name="hold-music" value="$${hold_music}"/&gt;</div><div>&nbsp; &nbsp; &lt;param name="rtp-timer-name" value="soft"/&gt;</div><div>&nbsp; &nbsp; &lt;param name="local-network-acl" value="localnet.auto"/&gt;</div>
<div>&nbsp; &nbsp; &lt;param name="manage-presence" value="false"/&gt;</div><div>&nbsp; &nbsp; &lt;param name="inbound-codec-negotiation" value="generous"/&gt;</div><div>&nbsp; &nbsp; &lt;param name="nonce-ttl" value="60"/&gt;</div>
<div>&nbsp; &nbsp; &lt;param name="auth-calls" value="false"/&gt;</div><div>&nbsp; &nbsp; &lt;param name="inbound-late-negotiation" value="true"/&gt;</div><div>&nbsp; &nbsp; &lt;param name="inbound-zrtp-passthru" value="true"/&gt; &lt;!-- (also enables late negotiation) --&gt;</div>
<div>&nbsp; &nbsp; &lt;param name="rtp-ip" value="$${local_ip_v4}"/&gt;</div><div>&nbsp; &nbsp; &lt;param name="sip-ip" value="$${local_ip_v4}"/&gt;</div><div>&nbsp; &nbsp; &lt;param name="ext-rtp-ip" value="auto-nat"/&gt;</div>
<div>&nbsp; &nbsp; &lt;param name="ext-sip-ip" value="auto-nat"/&gt;</div><div>&nbsp; &nbsp; &lt;param name="rtp-timeout-sec" value="300"/&gt;</div><div>&nbsp; &nbsp; &lt;param name="rtp-hold-timeout-sec" value="1800"/&gt;</div>
<div>&nbsp; &nbsp; &lt;param name="tls" value="$${external_ssl_enable}"/&gt;</div><div>&nbsp; &nbsp; &lt;param name="tls-only" value="false"/&gt;</div><div>&nbsp; &nbsp; &lt;param name="tls-bind-params" value="transport=tls"/&gt;</div>
<div>&nbsp; &nbsp; &lt;param name="tls-sip-port" value="$${external_tls_port}"/&gt;</div><div>&nbsp; &nbsp; &lt;param name="tls-passphrase" value=""/&gt;</div><div>&nbsp; &nbsp; &lt;param name="tls-verify-date" value="true"/&gt;</div>
<div>&nbsp; &nbsp; &lt;param name="tls-verify-policy" value="none"/&gt;</div><div>&nbsp; &nbsp; &lt;param name="tls-verify-depth" value="2"/&gt;</div><div>&nbsp; &nbsp; &lt;param name="tls-verify-in-subjects" value=""/&gt;</div>
<div>&nbsp; &nbsp; &lt;param name="tls-version" value="$${sip_tls_version}"/&gt;</div><div>&nbsp; &lt;/settings&gt;</div><div>&lt;/profile&gt;</div></div><div><br></div><div><br></div><div>Incoming unauthenticated calls from either gw1 or gw2 keep hitting context "public". Any way to place them in the appropriate contexts (eg. "gw1" and "gw2").</div>
<div><br></div><div><br></div><div>Thanks for your attention.</div><div><br></div><div><br></div><div>Rergards,</div><div>Pavel.</div>                                               </div></div>                                               </div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
<br>_________________________________________________________________________
Professional FreeSWITCH Consulting Services: 
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org</div>                                               </div></div><style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>                                               </div></body>
</html>