[Freeswitch-users] Register-transport and Register-Proxy with TCP

David Villasmil david.villasmil.work at gmail.com
Fri Sep 13 17:36:38 UTC 2019


Try:

<param name="register-transport" value="tcp"/>

Regards,

David Villasmil
email: david.villasmil.work at gmail.com
phone: +34669448337


On Fri, Sep 13, 2019 at 6:28 PM Sharath Kumar <shakumarsoftware at gmail.com>
wrote:

> It is bound to both tcp and udp on port 5060 and tls on 5061. Also,Like I
> said before without the "Register-Proxy" it works fine.
>
> On Fri, Sep 6, 2019 at 5:07 PM David Villasmil <
> david.villasmil.work at gmail.com> wrote:
>
>> What does
>> netstat -putan
>>
>> Returns?
>>
>> On Fri, 6 Sep 2019 at 18:52, Sharath Kumar <shakumarsoftware at gmail.com>
>> wrote:
>>
>>> David,
>>> Thanks for responding!
>>>
>>> I am seeing the REGISTER go out like this -
>>>
>>> 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 at xx.xx.xx.xx>;tag=6Be8aaD192rcK
>>>    To: <sip:1222 at 1xx.xx.xx.xx>
>>>    Call-ID: a8905624-0576-421f-ba71-fb50c700e876
>>>    CSeq: 9232391 REGISTER
>>>    Contact: <sip:1222 at xx.xx.xx.xx:5060;*transport=tcp*;gw=VoIP-1>
>>>
>>> So, even though the "register-transport" is set to TCP it goes out UDP.
>>> Like I said I am using this in conjunction with
>>> "Register-Proxy" in the gateways. If I use just the "Proxy" without
>>> "Register-Proxy" then it works fine.
>>>
>>> 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.
>>>
>>> Have you ever tried to use "Register-Proxy" with TCP transport ?
>>>
>>>
>>>
>>> On Thu, Sep 5, 2019 at 4:50 PM David Villasmil <
>>> david.villasmil.work at gmail.com> wrote:
>>>
>>>> Does it use UDP or TCP?
>>>>
>>>> By default it uses both, but you can add ;transport=tcp to the Sofia
>>>> URL to force it to use TCP.
>>>>
>>>> For example:
>>>>
>>>> sofia/profile/foo at bar.com;transport=tcp
>>>>
>>>> Also there is a parameter in the gateway config:
>>>>
>>>> <param name="register-transport" value="tcp"/>
>>>>
>>>> That will cause it to use the TCP transport for the registration and
>>>> all subsequent SIP messages.
>>>>
>>>> Not sure if this is needed or what it does, but the following can also
>>>> be used in gateway settings:
>>>>
>>>> <!--extra sip params to send in the contact-->
>>>> <param name="contact-params" value="tport=tcp"/>
>>>>
>>>>
>>>> Regards,
>>>>
>>>> David Villasmil
>>>> email: david.villasmil.work at gmail.com
>>>> phone: +34669448337
>>>>
>>>>
>>>> On Thu, Sep 5, 2019 at 6:45 PM Sharath Kumar <
>>>> shakumarsoftware at gmail.com> wrote:
>>>>
>>>>> 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 at 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 at 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
>>>>>>> <https://www.google.com/maps/search/228+Hamilton+Ave+3rd+Floor,+Palo+Alto,+CA+94303?entry=gmail&source=g>
>>>>>>> Email: alex at freeswitch.com Website: https://www.signalwire.com
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Wed, Sep 4, 2019 at 9:18 AM Sharath Kumar <
>>>>>>> shakumarsoftware at 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 at xx.xx.xx.xx>;tag=6Be8aaD192rcK
>>>>>>>>    To: <sip:1222 at 1xx.xx.xx.xx>
>>>>>>>>    Call-ID: a8905624-0576-421f-ba71-fb50c700e876
>>>>>>>>    CSeq: 9232391 REGISTER
>>>>>>>>    Contact: <sip:1222 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> https://freeswitch.com
>>
>> --
>> Regards,
>>
>> David Villasmil
>> email: david.villasmil.work at gmail.com
>> phone: +34669448337
>> _________________________________________________________________________
>>
>> 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 at 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 at 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 at 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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> https://freeswitch.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20190913/8e82910c/attachment-0001.html>


More information about the FreeSWITCH-users mailing list