<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'><br>Thanks for your answer. But I found <a href="https://wiki.freeswitch.org/wiki/Authentication" target="_blank">https://wiki.freeswitch.org/wiki/Authentication</a> page which mentions the context as a parameter of gateway. Can we somehow use it ?<br><div><hr id="stopSpelling">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"><<a href="mailto:my.post@hotmail.com" target="_blank">my.post@hotmail.com</a>></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><profile name="external"></div><div> <gateways></div>
<div> <gateway name="gw1"></div><div> <param name="username" value="username"/></div><div> <param name="realm" value="192.168.1.1"/></div>
<div> <param name="password" value="password"/></div><div> <param name="proxy" value="192.168.1.1"/></div><div> <param name="register" value="false"/></div>
<div> <param name="context" value="gw1"/></div><div> </gateway></div><div> <gateway name="gw2"></div><div> <param name="username" value="username"/></div>
<div> <param name="realm" value="192.168.1.2"/></div><div> <param name="password" value="password"/></div><div> <param name="proxy" value="192.168.1.2"/></div>
<div> <param name="register" value="false"/></div><div> <param name="context" value="gw2"/></div><div> </gateway><span style="white-space:pre-wrap;">        </span> </div>
<div> </gateways></div><div> <aliases></div><div> <alias name="outbound"/></div><div> <alias name="nat"/></div><div> </aliases></div><div> <domains></div>
<div> <domain name="all" alias="false" parse="true"/></div><div> </domains></div><div> <settings></div><div> <param name="debug" value="0"/></div>
<div> <param name="sip-trace" value="no"/></div><div> <param name="sip-capture" value="no"/></div><div> <param name="rfc2833-pt" value="101"/></div>
<div> <param name="sip-port" value="$${external_sip_port}"/></div><div> <param name="dialplan" value="XML"/></div><div> <param name="context" value="public"/></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="local-network-acl" value="localnet.auto"/></div>
<div> <param name="manage-presence" value="false"/></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> <param name="inbound-late-negotiation" value="true"/></div><div> <param name="inbound-zrtp-passthru" value="true"/> <!-- (also enables late negotiation) --></div>
<div> <param name="rtp-ip" value="$${local_ip_v4}"/></div><div> <param name="sip-ip" value="$${local_ip_v4}"/></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="300"/></div><div> <param name="rtp-hold-timeout-sec" value="1800"/></div>
<div> <param name="tls" value="$${external_ssl_enable}"/></div><div> <param name="tls-only" value="false"/></div><div> <param name="tls-bind-params" value="transport=tls"/></div>
<div> <param name="tls-sip-port" value="$${external_tls_port}"/></div><div> <param name="tls-passphrase" value=""/></div><div> <param name="tls-verify-date" value="true"/></div>
<div> <param name="tls-verify-policy" value="none"/></div><div> <param name="tls-verify-depth" value="2"/></div><div> <param name="tls-verify-in-subjects" value=""/></div>
<div> <param name="tls-version" value="$${sip_tls_version}"/></div><div> </settings></div><div></profile></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></body>
</html>