[Freeswitch-users] Transporting SIP over TCP

Tzury Bar Yochay tzury.by at reguluslabs.com
Thu Aug 13 07:04:18 PDT 2009


> It just works... to force TCP you append ;transport=tcp
Hi Brian

In fact this is exactly what I did and I could not get it work.
I am using a console based application supplied by pjsip.org and when
trying to register i get some error messages saying 'invalid transport
"SIP/2.0/tcp"' and 'REGISTER (30669) has invalid Via'

using the very same client against iptel.org seems to work.

> In reality you should be using SRV records.
can you please elaborate a bit more about this?


I am dumping below the cli output.
thanks in advance for your time and attention


tport_wakeup(0x7fd82c2afaf0): events IN
tport_recv_event(0x7fd82c2afaf0)
tport_recv_iovec(0x7fd82c2afaf0) msg 0x7fd82c2a1830 from
(tcp/80.74.97.189:42634) has 472 bytes, veclen = 1
tport_deliver(0x7fd82c2afaf0): msg 0x7fd82c2a1830 (472 bytes) from
tcp/80.74.97.189:42634/sip next=(nil)
nta: received REGISTER sip:cheerfulsanity.net;transport=tcp SIP/2.0 (CSeq 30669)
nta: Via check: invalid transport "SIP/2.0/tcp" from 80.74.97.189:42634
nta: REGISTER (30669) has invalid Via
tport(0x7fd82c2afaf0): reset timer
tport(0x7fd82c2afaf0): set timer at 1800000 ms because idle since recv
tport_wakeup_pri(0x713dd0): events IN
tport_recv_event(0x713dd0)
tport_recv_iovec(0x713dd0) msg 0x7fd82c2a1830 from
(udp/67.23.5.142:5060) has 2 bytes, veclen = 1
tport_deliver(0x713dd0): bad msg 0x7fd82c2a1830 (2 bytes) from
udp/199.245.214.130:5060/sip next=(nil)
tport_wakeup_pri(0x713dd0): events IN
tport_recv_event(0x713dd0)
tport_recv_iovec(0x713dd0) msg 0x7fd82c2a1830 from
(udp/67.23.5.142:5060) has 2 bytes, veclen = 1
tport_deliver(0x713dd0): bad msg 0x7fd82c2a1830 (2 bytes) from
udp/199.245.214.130:5060/sip next=(nil)
tport_wakeup(0x7fd84027d7d0): events IN
tport_recv_event(0x7fd84027d7d0)




More information about the FreeSWITCH-users mailing list