<div dir="ltr"><div class="gmail-nH gmail-V8djrc gmail-byY" style="display:flex;padding:20px 0px 8px 64px;color:rgb(32,33,36);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:medium"><div class="gmail-nH"><div class="gmail-ha" style="background-image:inherit;background-position:inherit;background-size:inherit;background-repeat:inherit;background-origin:inherit;background-clip:inherit;background-color:transparent;border-right:inherit;color:rgb(34,34,34);font-family:inherit;font-size:1.375rem;margin:0px;padding:0px;line-height:28px"><span style="font-family:Arial,Helvetica,sans-serif;font-size:small;background-color:transparent">Hello guys,</span></div></div></div><div class="gmail-nH gmail-aHU" style="color:rgb(32,33,36);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:medium"><div class="gmail-nH gmail-hx" style="background-color:transparent;color:rgb(34,34,34);min-width:502px;padding:0px"><div class="gmail-nH"><div class="gmail-h7 gmail-ie gmail-nH gmail-oy8Mbf" tabindex="-1" style="clear:both;padding-bottom:0px;max-width:100000px;outline:none"><div class="gmail-Bk" style="margin-bottom:0px;border-width:0px;border-top-style:solid;border-right-style:initial;border-bottom-style:initial;border-left-style:initial;border-top-color:rgb(239,239,239);border-right-color:initial;border-left-color:initial;border-bottom-color:initial;border-radius:0px;width:595px;float:none"><div class="gmail-G3 gmail-G2 gmail-afm" style="padding-top:0px;background-color:transparent;border-right:0px;border-bottom:0px rgba(100,121,143,0.12);border-left:0px;border-top:none;border-radius:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><div id="gmail-:63n"><div class="gmail-adn gmail-ads" style="border-left:none;padding:0px;display:flex"><div class="gmail-gs" style="margin:0px;padding:0px 0px 20px;width:531px"><div class="gmail-"><div id="gmail-:63k" class="gmail-ii gmail-gt gmail-adO" style="font-size:12.8px;direction:ltr;margin:8px 0px 0px;padding:0px"><div id="gmail-:63l" class="gmail-a3s gmail-aXjCH" style="overflow:hidden;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:small;line-height:1.5;font-family:Arial,Helvetica,sans-serif"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div><div><br></div><div>I have a proxy in front of freeswitch. I want freeswitch to use the proxy for everything including the termination to my provider.</div><div><br></div><div>If I configured the gateway like this:</div><div><br></div><div><div><font face="monospace, monospace"><include></font></div><div><font face="monospace, monospace">  <gateway name="myprovider"></font></div><div><font face="monospace, monospace">    <param name="username" value="username" /></font></div><div><font face="monospace, monospace">    <param name="auth-username" value="username"/></font></div><div><font face="monospace, monospace">    <param name="password" value="password" /><br></font></div><div><font face="monospace, monospace">    <param name="register" value="true"/></font></div><div><font face="monospace, monospace">    <param name="caller-id-in-from" value="true"/></font></div><div><font face="monospace, monospace">    <param name="from-domain" value="<a href="http://myprovider.com/" target="_blank">myprovider.com</a>"/></font></div><div><font face="monospace, monospace">    <param name="realm" value="<a href="http://myprovider.com/" target="_blank">myprovider.com</a>"/></font></div><div><font face="monospace, monospace">    <param name="register-proxy" value="<a href="http://myproxy.domain.com/" target="_blank">myproxy.domain.com</a>"/></font></div><div><span style="font-family:monospace,monospace">  </gateway></span><br></div><div><font face="monospace, monospace"></include></font></div></div><div><br></div><div>The registration works properly, the REGISTER goes to the proxy like</div><div><br></div><div><font face="monospace, monospace">REGISTER sip:<a href="http://myprovider.com/" target="_blank">myprovider.com</a>;transport=udp SIP/2.0</font><br></div><div><br></div><div>and the proxy forwards it fine, and registration works great.</div><div>But when i try to call via this gateway, the call goes STRAIGHT to the provider!<br></div><div><br></div><div>If, on the other hand, i configure my gateway as:</div><div><br></div><div><div><font face="monospace, monospace"><include></font></div><div><font face="monospace, monospace">  <gateway name="myprovider"></font></div><div><font face="monospace, monospace">    <param name="username" value="username" /></font></div><div><font face="monospace, monospace">    <param name="auth-username" value="username"/></font></div><div><font face="monospace, monospace">    <param name="password" value="password" /><br></font></div><div><font face="monospace, monospace">    <param name="register" value="true"/></font></div><div><font face="monospace, monospace">    <param name="caller-id-in-from" value="true"/></font></div><div><font face="monospace, monospace">    <param name="from-domain" value="<a href="http://myprovider.com/" target="_blank">myprovider.com</a>"/></font></div><div><font face="monospace, monospace">    <param name="realm" value="<a href="http://myprovider.com/" target="_blank">myprovider.com</a>"/></font></div><div><font face="monospace, monospace">    <param name="register-proxy" value="<a href="http://myproxy.domain.com/" target="_blank">myproxy.domain.com</a>"/></font></div><div><font face="monospace, monospace">    <b><param name="proxy" value="<a href="http://myproxy.domain.com/" target="_blank">myproxy.domain.com</a>"/></b></font></div><div><font face="monospace, monospace">  </gateway><br></font></div><div><font face="monospace, monospace"></include></font></div></div><div><br></div><div>Registration does NOT work, because the uri is:</div><div><br></div><div><font face="monospace, monospace">REGISTER sip:<b><a href="http://myproxy.domain.com/" target="_blank">myproxy.domain.com</a></b>;transport=udp SIP/2.0</font><br></div><div><br></div><div>Because there it no registration on that proxy!</div><div><br></div><div><br></div><div>Please help me with this!</div><div class="gmail-yj6qo gmail-ajU" style="outline:none;padding:10px 0px;width:22px;margin:2px 0px 0px"><div id="gmail-:64f" class="gmail-ajR" tabindex="0" style="background-color:rgb(232,234,237);border:none;clear:both;line-height:6px;outline:none;width:24px;border-radius:5.5px"><img class="gmail-ajT" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif" style="background: url("https://www.gstatic.com/images/icons/material/system/1x/more_horiz_black_20dp.png") 50% 50% / 20px no-repeat; height: 11px; opacity: 0.54; width: 24px;"></div></div></div></div></div></div></div></div><div class="gmail-hi" style="border-bottom-left-radius:1px;border-bottom-right-radius:1px;padding:0px;width:auto;background:rgb(242,242,242);margin:0px"></div></div></div><div class="gmail-ajx" style="clear:both"></div></div><div class="gmail-gA gmail-gt gmail-acV" style="font-size:12.8px;padding:0px;width:auto;border-bottom-left-radius:0px;border-bottom-right-radius:0px;border-top:none;margin:0px;background:transparent"><div class="gmail-gB gmail-xu" style="border-top:0px;padding:0px"><div class="gmail-ip gmail-iq" style="clear:both;margin:0px;padding:16px 0px;border-top:none"><div id="gmail-:63j"><table class="gmail-cf gmail-wS" style="border-collapse:collapse"><tbody><tr><td class="gmail-amq" style="padding:0px 16px;vertical-align:top;width:44px"><img id="gmail-:0_161" name=":0" src="https://plus.google.com/u/1/_/focus/photos/public/AIbEiAIAAABDCJauh-KD253CPiILdmNhcmRfcGhvdG8qKGU2NzQzMmZmZDJiNjdjMzMxNmU5OTUwY2QyNDM4ZTZkOGMwYWVjOGUwAWX3K85GhrhrlY4u9DzEPdh2yDdT?sz=32" class="gmail-ajn gmail-bofPge" style="display: block; width: 32px; height: 32px; border-radius: 50%;"></td><td class="gmail-amr" style="padding:0px;width:531px"><div class="gmail-nr gmail-wR" style="padding:0px;box-sizing:border-box;border-radius:1px;border:none;margin:0px"><div class="gmail-amn" style="color:inherit;height:auto;padding:0px;display:flex;line-height:20px"><span id="gmail-:63q" tabindex="0" class="gmail-ams gmail-bkH" style="border:none;display:inline-flex;font-family:"Google Sans",Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:0.875rem;letter-spacing:0.25px;background:none;border-radius:4px;box-sizing:border-box;color:rgb(95,99,104);height:36px;outline:none;padding:0px 16px 0px 12px;min-width:104px;margin-right:12px">Reply</span><span id="gmail-:63o" tabindex="0" class="gmail-ams gmail-bkG" style="border:none;display:inline-flex;font-family:"Google Sans",Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:0.875rem;letter-spacing:0.25px;background:none;border-radius:4px;box-sizing:border-box;color:rgb(95,99,104);height:36px;outline:none;padding:0px 16px 0px 12px;min-width:104px;margin-right:12px">Forward</span></div></div></td></tr></tbody></table></div></div></div></div></div></div></div></div></div></div></div></div><div hspace="streak-pt-mark" style="max-height:1px"><img alt="" style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=aZGF2aWQudmlsbGFzbWlsLndvcmtAZ21haWwuY29t&type=zerocontent&guid=5141107a-6fb2-4634-b5c4-439c01c97e30"><font color="#ffffff" size="1">ᐧ</font></div>