<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi Sharath,</div><div class=""><br class=""></div><div class="">You have to do it the following way:</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>1. Create the SIP profile (it will have 2 or more gateways). DO not add gateways conf inside the SIP Profiles.</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>- On the top of the SIP profile add this:</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span><gateways>
<X-PRE-PROCESS cmd="include" data=“gateways/*.xml"/>
</gateways></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>2. Inside the folder sip_profiles create the folder gateways and add your 2 gateways config (1 file per provider) —> Here you can define different outboud-<span class="Apple-tab-span" style="white-space:pre"> </span>proxy per gateway</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>3. Restart/Reload your sip_profiles</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>4. From fs_cli, if you do 'sofia status gateway’, you should be able to see your both gateways and status.</div><div class=""><br class=""></div><div class="">Good luck</div><div class=""><br class=""></div><div class="">Srigo</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span></div><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">On Oct 25, 2017, at 7:02 PM, Sharath Kumar <<a href="mailto:shakumarsoftware@gmail.com" class="">shakumarsoftware@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class="">Srigo,<br class=""><br class=""></div>You are right. The oubound-proxy works fine too. The only problem I have is it is global per profile. My gateways are defined in my SIP Profiles. So what if I have 2 gateways each having different outbound-proxies :) ?<br class=""><br class=""></div>Thank you,<br class=""></div>Shaks<br class=""></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Oct 25, 2017 at 1:20 AM, Srigo Kanapathipillai <span dir="ltr" class=""><<a href="mailto:ksrigo@gmail.com" target="_blank" class="">ksrigo@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto" class=""><div class="">Hi Sharath Kumar,</div><div id="m_4723690540264418491AppleMailSignature" class=""><br class=""></div><div id="m_4723690540264418491AppleMailSignature" class="">Use the params: outbound-proxy and proxy.</div><div id="m_4723690540264418491AppleMailSignature" class=""><br class=""></div><div id="m_4723690540264418491AppleMailSignature" class="">Eg:</div><div id="m_4723690540264418491AppleMailSignature" class=""><br class=""></div><div id="m_4723690540264418491AppleMailSignature" class="">Outbound-proxy: <a href="http://sip10.voip.xyz.com/" target="_blank" class="">sip10.voip.xyz.com</a></div><div id="m_4723690540264418491AppleMailSignature" class="">Proxy: <a href="http://xyz.com/" target="_blank" class="">xyz.com</a></div><div id="m_4723690540264418491AppleMailSignature" class=""><br class=""></div><div id="m_4723690540264418491AppleMailSignature" class="">Srigo<br class=""><br class="">Sent from my iPhone</div><div class=""><div class="h5"><div class=""><br class="">On 24 Oct 2017, at 19:04, Sharath Kumar <<a href="mailto:shakumarsoftware@gmail.com" target="_blank" class="">shakumarsoftware@gmail.com</a>> wrote:<br class=""><br class=""></div><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class="">Well, that is an option but I found out that the SIP Authentication breaks with certain providers while using the Proxy param.<br class=""><br class=""></div>- The Request URI in the REG/INV will reflect the Proxy param.<br class=""></div>- The Proxy-Auth headers has a URI parameter that will now have the Request URI ( Proxy param).<br class=""><br class=""></div>Some SIP providers have the Realm/Domain different from the Proxy. So they end up rejecting the request since the domain in the proxy is not in their white list of authenticated hosts.<br class=""><br class=""></div>Eg. Proxy - <a href="http://sip10.voip.xyz.com/" target="_blank" class="">sip10.voip.xyz.com</a><br class=""></div>Realm - <a href="http://xyz.com/" target="_blank" class="">xyz.com</a> <br class=""><br class=""></div><div class="">The REG/INV will have the Req URI = sip:<a href="http://sip10.voip.xyz.com/" target="_blank" class="">sip10.voip.xyz.com</a> and the Proxy Auth header will also have the same URI. The Providers I know are unwilling to add the Proxy domain <a href="http://sip10.voip.xyz.com/" target="_blank" class="">sip10.voip.xyz.com</a> into their white-list of authenticated hosts. They require the Proxy-Auth to have <a href="http://xyz.com/" target="_blank" class="">xyz.com</a>.<br class=""></div><div class=""><br class=""></div>I am not sure if I made myself clear ?<br class=""><div class=""><div class=""><br class=""></div><div class="">Anyway, I managed to set the sip_invite_route_uri as the Proxy. That seemed to work even for gateways.<br class=""><br class=""></div><div class="">Thank you,<br class=""></div><div class="">Sharath<br class=""></div><div class=""><br class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">On Sat, Oct 21, 2017 at 8:05 AM, Aqs Younas <span dir="ltr" class=""><<a href="mailto:aqsyounas@gmail.com" target="_blank" class="">aqsyounas@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto" class="">Why not use proxy param in gateway?</div><div class="gmail_extra"><br class=""><div class="gmail_quote"><div class=""><div class="m_4723690540264418491gmail-h5">On 19 Oct 2017 3:11 am, "Sharath Kumar" <<a href="mailto:shakumarsoftware@gmail.com" target="_blank" class="">shakumarsoftware@gmail.com</a>> wrote:<br type="attribution" class=""></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class=""><div class="m_4723690540264418491gmail-h5"><div dir="ltr" class=""><div class=""><div class="">Can we add an fs_path when dialing out via a gateway ? I know this has been asked before and in the archives it has been said to support and also not support fs_path in a gateway. Just wanted to confirm.<br class=""><br class=""></div>thank you,<br class=""></div>Shaks.<br class=""></div>
<br class=""></div></div>______________________________<wbr class="">______________________________<wbr class="">_____________<br class="">
Professional FreeSWITCH Consulting Services:<br class="">
<a href="mailto:consulting@freeswitch.org" target="_blank" class="">consulting@freeswitch.org</a><br class="">
<a href="http://www.freeswitchsolutions.com/" rel="noreferrer" target="_blank" class="">http://www.freeswitchsolutions<wbr class="">.com</a><br class="">
<br class="">
Official FreeSWITCH Sites<br class="">
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a><br class="">
<a href="http://confluence.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://confluence.freeswitch.o<wbr class="">rg</a><br class="">
<a href="http://www.cluecon.com/" rel="noreferrer" target="_blank" class="">http://www.cluecon.com</a><br class="">
<br class="">
FreeSWITCH-users mailing list<br class="">
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" class="">FreeSWITCH-users@lists.freeswi<wbr class="">tch.org</a><br class="">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/ma<wbr class="">ilman/listinfo/freeswitch-user<wbr class="">s</a><br class="">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.frees<wbr class="">witch.org/mailman/options/free<wbr class="">switch-users</a><br class="">
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a><br class=""></blockquote></div></div>
<br class="">______________________________<wbr class="">______________________________<wbr class="">_____________<br class="">
Professional FreeSWITCH Consulting Services:<br class="">
<a href="mailto:consulting@freeswitch.org" target="_blank" class="">consulting@freeswitch.org</a><br class="">
<a href="http://www.freeswitchsolutions.com/" rel="noreferrer" target="_blank" class="">http://www.freeswitchsolutions<wbr class="">.com</a><br class="">
<br class="">
Official FreeSWITCH Sites<br class="">
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a><br class="">
<a href="http://confluence.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://confluence.freeswitch.o<wbr class="">rg</a><br class="">
<a href="http://www.cluecon.com/" rel="noreferrer" target="_blank" class="">http://www.cluecon.com</a><br class="">
<br class="">
FreeSWITCH-users mailing list<br class="">
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" class="">FreeSWITCH-users@lists.freeswi<wbr class="">tch.org</a><br class="">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/ma<wbr class="">ilman/listinfo/freeswitch-user<wbr class="">s</a><br class="">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.frees<wbr class="">witch.org/mailman/options/<wbr class="">freeswitch-users</a><br class="">
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a><br class=""></blockquote></div><br class=""></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div></blockquote><blockquote type="cite" class=""><div class=""><span class="">______________________________<wbr class="">______________________________<wbr class="">_____________</span><br class=""><span class="">Professional FreeSWITCH Consulting Services:</span><br class=""><span class=""><a href="mailto:consulting@freeswitch.org" target="_blank" class="">consulting@freeswitch.org</a></span><br class=""><span class=""><a href="http://www.freeswitchsolutions.com/" target="_blank" class="">http://www.<wbr class="">freeswitchsolutions.com</a></span><br class=""><span class=""></span><br class=""><span class="">Official FreeSWITCH Sites</span><br class=""><span class=""><a href="http://www.freeswitch.org/" target="_blank" class="">http://www.freeswitch.org</a></span><br class=""><span class=""><a href="http://confluence.freeswitch.org/" target="_blank" class="">http://confluence.freeswitch.<wbr class="">org</a></span><br class=""><span class=""><a href="http://www.cluecon.com/" target="_blank" class="">http://www.cluecon.com</a></span><br class=""><span class=""></span><br class=""><span class="">FreeSWITCH-users mailing list</span><br class=""><span class=""><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" class="">FreeSWITCH-users@lists.<wbr class="">freeswitch.org</a></span><br class=""><span class=""><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank" class="">http://lists.freeswitch.org/<wbr class="">mailman/listinfo/freeswitch-<wbr class="">users</a></span><br class=""><span class="">UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank" class="">http://lists.<wbr class="">freeswitch.org/mailman/<wbr class="">options/freeswitch-users</a></span><br class=""><span class=""><a href="http://www.freeswitch.org/" target="_blank" class="">http://www.freeswitch.org</a></span></div></blockquote></div></div></div><br class="">______________________________<wbr class="">______________________________<wbr class="">_____________<br class="">
Professional FreeSWITCH Consulting Services:<br class="">
<a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class="">
<a href="http://www.freeswitchsolutions.com/" rel="noreferrer" target="_blank" class="">http://www.<wbr class="">freeswitchsolutions.com</a><br class="">
<br class="">
Official FreeSWITCH Sites<br class="">
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a><br class="">
<a href="http://confluence.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://confluence.freeswitch.<wbr class="">org</a><br class="">
<a href="http://www.cluecon.com/" rel="noreferrer" target="_blank" class="">http://www.cluecon.com</a><br class="">
<br class="">
FreeSWITCH-users mailing list<br class="">
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" class="">FreeSWITCH-users@lists.<wbr class="">freeswitch.org</a><br class="">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/<wbr class="">mailman/listinfo/freeswitch-<wbr class="">users</a><br class="">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.<wbr class="">freeswitch.org/mailman/<wbr class="">options/freeswitch-users</a><br class="">
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a><br class=""></blockquote></div><br class=""></div>
_________________________________________________________________________<br class="">Professional FreeSWITCH Consulting Services:<br class=""><a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class="">http://www.freeswitchsolutions.com<br class=""><br class="">Official FreeSWITCH Sites<br class="">http://www.freeswitch.org<br class="">http://confluence.freeswitch.org<br class="">http://www.cluecon.com<br class=""><br class="">FreeSWITCH-users mailing list<br class="">FreeSWITCH-users@lists.freeswitch.org<br class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br class="">UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br class="">http://www.freeswitch.org</div></blockquote></div><br class=""></body></html>