Any ideas what could be the problem here ? Is nobody using a "Register-Proxy" or "Outbound-Proxy" with TCP ?
Thanks,
Shaks

On Wed, Sep 4, 2019 at 12:21 PM Sharath Kumar <shakumarsoftware@gmail.com> wrote:
Thanks for responding! However, that did not help. 

What I notice in the logs is that the tpn when I just use "proxy" instead of "Register-Proxy"  is tpn = tcp/xx.xx.xx.xx:5060 but when I use Register-Proxy it is with a *, like below.

/libs/sofia-sip/libsofia-sip-ua/nta/nta.c:2665 nta_tpn_by_url() nta: selecting scheme sip
/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

Also, the messages like I said before contain the "transport=tcp" in both the Req-uri and contact header. Any other suggestions?
Thanks,
Shaks

On Wed, Sep 4, 2019 at 2:25 AM Alexey Sibyakin <alex@freeswitch.com> wrote:
Try: 

<param name="contact-params" value="tport=tcp"/>

FreeSWITCH 1.6.19 is very old, you need to upgrade.

Regards.
Alex


Alex Sibyakin | Support Engineer SignalWire | 228 Hamilton Ave 3rd Floor, Palo Alto, CA 94303 Email: alex@freeswitch.com Website: https://www.signalwire.com



On Wed, Sep 4, 2019 at 9:18 AM Sharath Kumar <shakumarsoftware@gmail.com> wrote:
I have the below gateways.xml file. FS 1.6.19.

<include>
    <gateway name="VoIP-1">
        <param name="outbound-proxy" value="xx.xx.xx.xx" />
        <param name="register-proxy" value="xx.xx.xx.xx" />
        <param name="proxy" value="xx.xx.xx.xx" />
        <param name="register-transport" value="tcp" />
        <param name="username" value="1222" />
        <param name="password" value="***" />
        <param name="extension-in-contact" value="true" />
        <param name="auth-username" value="***" />
        <param name="retry-seconds" value="30" />
        <param name="expire-seconds" value="3600" />
    </gateway>
</include>

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".

send 750 bytes to udp/[xx.xx.xx.xx]:5060 at 23:30:20.632901:
   ------------------------------------------------------------------------
   REGISTER sip:xx.xx.xx.xx;transport=tcp SIP/2.0
   Via: SIP/2.0/UDP xx.xx.xx.xx;rport;branch=z9hG4bKj7QXQX0X8tD3j
   Max-Forwards: 70
   From: <sip:1222@xx.xx.xx.xx>;tag=6Be8aaD192rcK
   To: <sip:1222@1xx.xx.xx.xx>
   Call-ID: a8905624-0576-421f-ba71-fb50c700e876
   CSeq: 9232391 REGISTER
   Contact: <sip:1222@xx.xx.xx.xx:5060;transport=tcp;gw=VoIP-1>

If I remove the Register-Proxy and Outbound-Proxy and just use Proxy everything works fine on TCP.

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. 

Am I missing something or is this a bug ? Any help really appreciated!

Thanks,
Shaks
_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com