krunal09 / csipsimple

Automatically exported from code.google.com/p/csipsimple
0 stars 0 forks source link

TCP transport issue #990

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If I select only TCP transport,
- REGISTER query still sends over UDP (not ok).
- Keepalives is not sending totally (not ok).
- INVITE over TCP (ok).
May be problem in PJSIP stack.

Original issue reported on code.google.com by vale...@gmail.com on 25 May 2011 at 12:08

GoogleCodeExporter commented 9 years ago
Where did you select TCP?

That's a little bit confusing but there is two place for setting up transport. 
The one in general config should never be unchecked (unless you exactly know 
what it changes in the pjsip stack).

The right place if you want an account to use TCP, is in account configuration. 
Providers that are already known with real support of TCP (I mean no pbxes.org 
for example ;) ), already allow you to activate a checkbox with the TCP option.
Or if it's a provider not listed, you should edit your account with the 
"Advanced wizard" and check TCP checkbox (or use "Expert wizard" and choose as 
transport "Force TCP".

Obviously if the sip server decide to talk using UDP during communication, 
pjsip will use UDP. That's why you should not disable UDP from general 
settings. UDP transport is still required, even if you register over TCP.
(And that's the reason of the bug with pbxes.org that decide during a 
communication to switch to UDP, but actually does not understand when pjsip 
talk using UDP... )

Original comment by r3gis...@gmail.com on 25 May 2011 at 12:48

GoogleCodeExporter commented 9 years ago
> UDP transport is still required, even if you register over TCP.
SIP protocol did not required UDP protocol.
But currently PJSIP requires, why I do not know, may this is pjsip bug or TCP 
support is not fully realized here? You can with check with network sniffer.
Before it work only over TCP good, but not now.

REGISTER ....... always sent via UDP here. But can be send via TCP.

Original comment by vale...@gmail.com on 25 May 2011 at 1:08

GoogleCodeExporter commented 9 years ago
Ah, I have found what is the problem.
If I set SRTP to on-demand, it send REGISTER over UDP, if disabled - over TCP.
Question cancelled.

Original comment by vale...@gmail.com on 25 May 2011 at 1:12

GoogleCodeExporter commented 9 years ago

Original comment by r3gis...@gmail.com on 17 Aug 2011 at 9:25