<div dir="ltr"><div>Have you tried to file a JIRA in case it's a bug? As an alternative, have you thought of using Kamailio as the FS gateway, and then have Kamailio handle all the gateway stuff... (so to your provider, the UAC would be K and not FS)...<br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Sep 25, 2018 at 6:04 AM David Villasmil <<a href="mailto:david.villasmil.work@gmail.com">david.villasmil.work@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello guys,<br><br>I know this is kamailio's mailing list, but I'm getting no answer on freeswitch, and i thought someone here has probably done this is the past.<br><br>I have a proxy in front of freeswitch. I want freeswitch to use the proxy for everything including the termination to my provider.<br><br>If I configured the gateway like this:<br><br><include><br>  <gateway name="myprovider"><br>    <param name="username" value="username" /><br>    <param name="auth-username" value="username"/><br>    <param name="password" value="password" /><br>    <param name="register" value="true"/><br>    <param name="caller-id-in-from" value="true"/><br>    <param name="from-domain" value="<a href="http://myprovider.com" target="_blank">myprovider.com</a>"/><br>    <param name="realm" value="<a href="http://myprovider.com" target="_blank">myprovider.com</a>"/><br>    <param name="register-proxy" value="<a href="http://myproxy.domain.com" target="_blank">myproxy.domain.com</a>"/><br>  </gateway><br></include><br><br>The registration works properly, the REGISTER goes to the proxy like<br><br>REGISTER sip:<a href="http://myprovider.com" target="_blank">myprovider.com</a>;transport=udp SIP/2.0<br><br>and the proxy forwards it fine, and registration works great.<br>But when i try to call via this gateway, the call goes STRAIGHT to the provider!<br><br>If, on the other hand, i configure my gateway as:<br><br><include><br>  <gateway name="myprovider"><br>    <param name="username" value="username" /><br>    <param name="auth-username" value="username"/><br>    <param name="password" value="password" /><br>    <param name="register" value="true"/><br>    <param name="caller-id-in-from" value="true"/><br>    <param name="from-domain" value="<a href="http://myprovider.com" target="_blank">myprovider.com</a>"/><br>    <param name="realm" value="<a href="http://myprovider.com" target="_blank">myprovider.com</a>"/><br>    <param name="register-proxy" value="<a href="http://myproxy.domain.com" target="_blank">myproxy.domain.com</a>"/><br>    <param name="proxy" value="<a href="http://myproxy.domain.com" target="_blank">myproxy.domain.com</a>"/><br>  </gateway><br></include><br><br>Registration does NOT work, because the uri is:<br><br>REGISTER sip:<a href="http://myproxy.domain.com" target="_blank">myproxy.domain.com</a>;transport=udp SIP/2.0<br><br>Because there is no registrar on that proxy!<br><br><br><br>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>