<div dir="ltr"><div><div>Srigo, <br></div>Thank you! It worked!!<br></div>Shaks<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 26, 2017 at 1:53 AM, KSrigo <span dir="ltr"><<a href="mailto:ksrigo@gmail.com" target="_blank">ksrigo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Hi Sharath,</div><div><br></div><div>You have to do it the following way:</div><div><span class="m_-352922437040761080Apple-tab-span" style="white-space:pre-wrap">   </span>1. Create the SIP profile (it will have 2 or more gateways). DO not add gateways conf inside the SIP Profiles.</div><div><span class="m_-352922437040761080Apple-tab-span" style="white-space:pre-wrap">             </span>- On the top of the SIP profile add this:</div><div><span class="m_-352922437040761080Apple-tab-span" style="white-space:pre-wrap">                  </span><gateways>
        <X-PRE-PROCESS cmd="include" data=“gateways/*.xml"/>
</gateways></div><div><span class="m_-352922437040761080Apple-tab-span" style="white-space:pre-wrap">       </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="m_-352922437040761080Apple-tab-span" style="white-space:pre-wrap">                  </span>proxy per gateway</div><div><span class="m_-352922437040761080Apple-tab-span" style="white-space:pre-wrap">  </span>3. Restart/Reload your sip_profiles</div><div><span class="m_-352922437040761080Apple-tab-span" style="white-space:pre-wrap">        </span>4. From fs_cli, if you do 'sofia status gateway’, you should be able to see your both gateways and status.</div><div><br></div><div>Good luck</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Srigo</div></font></span><div><div class="h5"><div><span class="m_-352922437040761080Apple-tab-span" style="white-space:pre-wrap">     </span></div><div><br></div><br><div><blockquote type="cite"><div>On Oct 25, 2017, at 7:02 PM, Sharath Kumar <<a href="mailto:shakumarsoftware@gmail.com" target="_blank">shakumarsoftware@gmail.com</a>> wrote:</div><br class="m_-352922437040761080Apple-interchange-newline"><div><div dir="ltr"><div><div><div>Srigo,<br><br></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><br></div>Thank you,<br></div>Shaks<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 25, 2017 at 1:20 AM, Srigo Kanapathipillai <span dir="ltr"><<a href="mailto:ksrigo@gmail.com" target="_blank">ksrigo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>Hi Sharath Kumar,</div><div id="m_-352922437040761080m_4723690540264418491AppleMailSignature"><br></div><div id="m_-352922437040761080m_4723690540264418491AppleMailSignature">Use the params: outbound-proxy and proxy.</div><div id="m_-352922437040761080m_4723690540264418491AppleMailSignature"><br></div><div id="m_-352922437040761080m_4723690540264418491AppleMailSignature">Eg:</div><div id="m_-352922437040761080m_4723690540264418491AppleMailSignature"><br></div><div id="m_-352922437040761080m_4723690540264418491AppleMailSignature">Outbound-proxy: <a href="http://sip10.voip.xyz.com/" target="_blank">sip10.voip.xyz.com</a></div><div id="m_-352922437040761080m_4723690540264418491AppleMailSignature">Proxy: <a href="http://xyz.com/" target="_blank">xyz.com</a></div><div id="m_-352922437040761080m_4723690540264418491AppleMailSignature"><br></div><div id="m_-352922437040761080m_4723690540264418491AppleMailSignature">Srigo<br><br>Sent from my iPhone</div><div><div class="m_-352922437040761080h5"><div><br>On 24 Oct 2017, at 19:04, Sharath Kumar <<a href="mailto:shakumarsoftware@gmail.com" target="_blank">shakumarsoftware@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div><div><div><div><div><div>Well, that is an option but I found out that the SIP Authentication breaks with certain providers while using the Proxy param.<br><br></div>- The Request URI in the REG/INV will reflect the Proxy param.<br></div>- The Proxy-Auth headers has a URI parameter that will now have the Request URI ( Proxy param).<br><br></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><br></div>Eg. Proxy - <a href="http://sip10.voip.xyz.com/" target="_blank">sip10.voip.xyz.com</a><br></div>Realm - <a href="http://xyz.com/" target="_blank">xyz.com</a> <br><br></div><div>The REG/INV will have the Req URI = sip:<a href="http://sip10.voip.xyz.com/" target="_blank">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">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">xyz.com</a>.<br></div><div><br></div>I am not sure if I made myself clear ?<br><div><div><br></div><div>Anyway, I managed to set the sip_invite_route_uri as the Proxy. That seemed to work even for gateways.<br><br></div><div>Thank you,<br></div><div>Sharath<br></div><div><br><div><div><div><div><div><div><div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Oct 21, 2017 at 8:05 AM, Aqs Younas <span dir="ltr"><<a href="mailto:aqsyounas@gmail.com" target="_blank">aqsyounas@gmail.com</a>></span> wrote:<br><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">Why not use proxy param in gateway?</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-352922437040761080m_4723690540264418491gmail-h5">On 19 Oct 2017 3:11 am, "Sharath Kumar" <<a href="mailto:shakumarsoftware@gmail.com" target="_blank">shakumarsoftware@gmail.com</a>> wrote:<br type="attribution"></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><div class="m_-352922437040761080m_4723690540264418491gmail-h5"><div dir="ltr"><div><div>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><br></div>thank you,<br></div>Shaks.<br></div>
<br></div></div>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com/" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org/" rel="noreferrer" target="_blank">http://confluence.freeswitch.o<wbr>rg</a><br>
<a href="http://www.cluecon.com/" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/free<wbr>switch-users</a><br>
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div></div>
<br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com/" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org/" rel="noreferrer" target="_blank">http://confluence.freeswitch.o<wbr>rg</a><br>
<a href="http://www.cluecon.com/" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/free<wbr>switch-users</a><br>
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div></blockquote><blockquote type="cite"><div><span>______________________________<wbr>______________________________<wbr>_____________</span><br><span>Professional FreeSWITCH Consulting Services:</span><br><span><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a></span><br><span><a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions<wbr>.com</a></span><br><span></span><br><span>Official FreeSWITCH Sites</span><br><span><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a></span><br><span><a href="http://confluence.freeswitch.org/" target="_blank">http://confluence.freeswitch.o<wbr>rg</a></span><br><span><a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a></span><br><span></span><br><span>FreeSWITCH-users mailing list</span><br><span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a></span><br><span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a></span><br><span>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/<wbr>freeswitch-users</a></span><br><span><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a></span></div></blockquote></div></div></div><br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com/" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org/" rel="noreferrer" target="_blank">http://confluence.freeswitch.o<wbr>rg</a><br>
<a href="http://www.cluecon.com/" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/<wbr>freeswitch-users</a><br>
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
______________________________<wbr>______________________________<wbr>_____________<br>Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.<wbr>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.<wbr>org</a><br><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br><br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></div></blockquote></div><br></div></div></div><br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>