<div dir="ltr"><div dir="ltr"><div dir="ltr">David,<div>Thanks for responding!</div><div><br></div><div>I am seeing the REGISTER go out like this - </div><div><br></div><div>send 750 bytes to <b>udp</b>/[xx.xx.xx.xx]:5060 at 23:30:20.632901:</div><div> ------------------------------------------------------------------------</div><div> REGISTER sip:xx.xx.xx.xx;<b>transport=tcp</b> SIP/2.0</div><div> Via: SIP/2.0/UDP xx.xx.xx.xx;rport;branch=z9hG4bKj7QXQX0X8tD3j</div><div> Max-Forwards: 70</div><div> From: <sip:1222@xx.xx.xx.xx>;tag=6Be8aaD192rcK</div><div> To: <sip:1222@1xx.xx.xx.xx></div><div> Call-ID: a8905624-0576-421f-ba71-fb50c700e876</div><div> CSeq: 9232391 REGISTER</div><div> Contact: <sip:1222@xx.xx.xx.xx:5060;<b>transport=tcp</b>;gw=VoIP-1></div><div><br></div><div>So, even though the "register-transport" is set to TCP it goes out UDP. Like I said I am using this in conjunction with </div><div>"Register-Proxy" in the gateways. If I use just the "Proxy" without "Register-Proxy" then it works fine.</div><div><br></div><div>I also tried "contact-params with tport=tcp and that did not help. When I set the profile bind-params to only TCP it will work but I have multiple gateways using the same profile and that is not desirable since all the gateways will then have to use TCP. </div><div><br></div><div>Have you ever tried to use "Register-Proxy" with TCP transport ?</div><div><br></div><div> </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Sep 5, 2019 at 4:50 PM 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><h3 id="gmail-m_-3768158480965002341gmail-SofiaSIPStack-DoesituseUDPorTCP?" style="margin:10px 0px 0px;padding:0px;color:rgb(23,43,77);font-size:16px;line-height:1.5;letter-spacing:-0.006em;font-family:-apple-system,system-ui,"Segoe UI",Roboto,Oxygen,Ubuntu,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif"><span class="gmail-m_-3768158480965002341gmail-mw-headline">Does it use UDP or TCP?</span></h3><p style="margin:10px 0px 0px;padding:0px;color:rgb(23,43,77);font-family:-apple-system,system-ui,"Segoe UI",Roboto,Oxygen,Ubuntu,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:14px">By default it uses both, but you can add ;transport=tcp to the Sofia URL to force it to use TCP.</p><p style="margin:10px 0px 0px;padding:0px;color:rgb(23,43,77);font-family:-apple-system,system-ui,"Segoe UI",Roboto,Oxygen,Ubuntu,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:14px">For example:</p><pre style="margin-top:10px;margin-bottom:0px;padding:0px;font-family:ConfluenceInstalledFont,monospace;color:rgb(23,43,77);font-size:14px">sofia/profile/<a href="mailto:foo@bar.com" target="_blank">foo@bar.com</a>;transport=tcp
</pre><p style="margin:10px 0px 0px;padding:0px;color:rgb(23,43,77);font-family:-apple-system,system-ui,"Segoe UI",Roboto,Oxygen,Ubuntu,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:14px">Also there is a parameter in the gateway config:</p><pre style="margin-top:10px;margin-bottom:0px;padding:0px;font-family:ConfluenceInstalledFont,monospace;color:rgb(23,43,77);font-size:14px"><param name="register-transport" value="tcp"/>
</pre><p style="margin:10px 0px 0px;padding:0px;color:rgb(23,43,77);font-family:-apple-system,system-ui,"Segoe UI",Roboto,Oxygen,Ubuntu,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:14px">That will cause it to use the TCP transport for the registration and all subsequent SIP messages.</p><p style="margin:10px 0px 0px;padding:0px;color:rgb(23,43,77);font-family:-apple-system,system-ui,"Segoe UI",Roboto,Oxygen,Ubuntu,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:14px">Not sure if this is needed or what it does, but the following can also be used in gateway settings:</p><pre style="margin-top:10px;margin-bottom:0px;padding:0px;font-family:ConfluenceInstalledFont,monospace;color:rgb(23,43,77);font-size:14px"><!--extra sip params to send in the contact-->
<param name="contact-params" value="tport=tcp"/></pre></div><div><br clear="all"><div><div dir="ltr" class="gmail-m_-3768158480965002341gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Sep 5, 2019 at 6:45 PM Sharath Kumar <<a href="mailto:shakumarsoftware@gmail.com" target="_blank">shakumarsoftware@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Any ideas what could be the problem here ? Is nobody using a "Register-Proxy" or "Outbound-Proxy" with TCP ?<div>Thanks,</div><div>Shaks</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 4, 2019 at 12:21 PM Sharath Kumar <<a href="mailto:shakumarsoftware@gmail.com" target="_blank">shakumarsoftware@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Thanks for responding! However, that did not help. </div><div dir="ltr"><br></div><div dir="ltr">What I notice in the logs is that the tpn when I just use "proxy" instead of "Register-Proxy" is <b>tpn = tcp/xx.xx.xx.xx:5060</b> but when I use Register-Proxy it is with a *, like below.<br><div><br></div><div><div>/libs/sofia-sip/libsofia-sip-ua/nta/nta.c:2665 nta_tpn_by_url() nta: selecting scheme sip</div><div>/home/sharath/dev_branch/qsys/os/unpacked/freeswitch-1.6.19/libs/sofia-sip/libsofia-sip-ua/tport/tport.c:3257 tport_tsend() tport_tsend(0x7f4eec0074f0) tpn = */xx.xx.xx.xx:5060</div></div><div><br></div><div>Also, the messages like I said before contain the "transport=tcp" in both the Req-uri and contact header. Any other suggestions?<br></div><div>Thanks,</div><div>Shaks</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 4, 2019 at 2:25 AM Alexey Sibyakin <<a href="mailto:alex@freeswitch.com" target="_blank">alex@freeswitch.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Try: <div><br></div><div><param name="contact-params" value="tport=tcp"/></div><div><br></div><div>FreeSWITCH 1.6.19 is very old, you need to upgrade.</div><div><br></div><div>Regards.</div><div>Alex</div><div><br></div><div><br clear="all"><div><div dir="ltr" class="gmail-m_-3768158480965002341gmail-m_4386804321712883126gmail-m_8423858643108257742gmail-m_2333028600256060006gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><font color="#000000" face="arial, helvetica, sans-serif" size="1"><span style="white-space:pre-wrap">Alex Sibyakin | Support Engineer
SignalWire | 228 Hamilton Ave 3rd Floor, Palo Alto, CA 94303
Email: <a href="mailto:alex@freeswitch.com" target="_blank">alex@freeswitch.com</a>
Website: <a href="https://www.signalwire.com" target="_blank">https://www.signalwire.com</a></span></font><br></div><div dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><font color="#000000" style="font-family:HelveticaNeue,"Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;color:rgb(0,0,0);font-size:12.8px"><br></font></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 4, 2019 at 9:18 AM Sharath Kumar <<a href="mailto:shakumarsoftware@gmail.com" target="_blank">shakumarsoftware@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">I have the below gateways.xml file. FS 1.6.19.</div><div dir="ltr"><br></div><div dir="ltr"><div dir="ltr"><include></div><div dir="ltr"> <gateway name="VoIP-1"></div><div dir="ltr"> <param name="outbound-proxy" value="xx.xx.xx.xx" /></div><div dir="ltr"> <param name="register-proxy" value="xx.xx.xx.xx" /></div><div dir="ltr"> <param name="proxy" value="xx.xx.xx.xx" /></div><div dir="ltr"> <param name="register-transport" value="tcp" /></div><div dir="ltr"> <param name="username" value="1222" /><br></div><div dir="ltr"> <param name="password" value="***" /></div><div dir="ltr"> <param name="extension-in-contact" value="true" /></div><div dir="ltr"> <param name="auth-username" value="***" /></div><div dir="ltr"> <param name="retry-seconds" value="30" /></div><div dir="ltr"> <param name="expire-seconds" value="3600" /></div><div dir="ltr"> </gateway></div><div dir="ltr"></include></div><div><br></div><div>But the REGISTER and the INVITE's are being sent out using UDP!. The strange part is the SIP headers both in the Request URI and the contact header contain "transport=tcp".</div><div><br></div><div><div>send 750 bytes to udp/[xx.xx.xx.xx]:5060 at 23:30:20.632901:</div><div> ------------------------------------------------------------------------</div><div> REGISTER sip:xx.xx.xx.xx;transport=tcp SIP/2.0</div><div> Via: SIP/2.0/UDP xx.xx.xx.xx;rport;branch=z9hG4bKj7QXQX0X8tD3j</div><div> Max-Forwards: 70</div><div> From: <sip:1222@xx.xx.xx.xx>;tag=6Be8aaD192rcK</div><div> To: <sip:1222@1xx.xx.xx.xx></div><div> Call-ID: a8905624-0576-421f-ba71-fb50c700e876</div><div> CSeq: 9232391 REGISTER</div><div> Contact: <sip:1222@xx.xx.xx.xx:5060;transport=tcp;gw=VoIP-1></div></div><div><br></div><div>If I remove the Register-Proxy and Outbound-Proxy and just use Proxy everything works fine on TCP.</div><div><br></div><div>Also, if I set the transport param in the SIP profile to TCP things work fine. But I have multiple gateways in the same profile, so setting the SIP profile is less desirable. </div><div><br></div><div>Am I missing something or is this a bug ? Any help really appreciated!</div><div><br></div><div>Thanks,</div><div>Shaks</div></div></div></div></div></div></div></div></div></div></div></div></div></div>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div>
</blockquote></div>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div></div></div>