NG-Studio-Development / csipsimple

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

Add an option to disable OPTIONS feature #771

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. register account (outbound only) with placetel.de

What is the expected output? What do you see instead?
Tcpdump shows that they exchange UDP packets every 4 seconds even if phone is 
idle

What version of the product are you using? On what operating system?
0.01-01 r615

Please provide any additional information below.
placetel sends UDP "OPTIONS" requests, and android answers them

this does not happen with sipdroid or other sip clients. 

Original issue reported on code.google.com by foobar...@googlemail.com on 5 Mar 2011 at 10:37

GoogleCodeExporter commented 9 years ago
mmmm... 

what you are asking is an option to disable the feature of pjsip that is able 
to reply to OPTIONS. (I guess other sip clients does not support that, so does 
not announce it and so your sip server does not send it). Why not...

However, I think that a good approach would be to ask your sip provider to not 
send OPTIONS each 4 seconds. Sending options to keep alive the connection is a 
good idea for SIP trunking but when connecting to UAC, it's better to let the 
client keeping things alive. CSipSimple already keep alive using \r\n packets 
in udp stream (by default each 40 sec on 3g and each 100 sec over wifi).

So I'd advise to ask your sip provider to think about that point. 
But as for the client part... ok why not an extra option to make the app having 
less features ;)... but would be optional and disabled by default. 
It could be activated by default through wizards -- if needed I'll add one for 
placetel.de.
Cause OPTIONS feature could be useful if properly used by the SIP server...

Original comment by r3gis...@gmail.com on 5 Mar 2011 at 11:07

GoogleCodeExporter commented 9 years ago
With sipdroid I also get these options requests, but only every 30 seconds 
which is much more reasonable. I don't think I understand SIP well enough to 
know why times differ -- I can supply tcpdumps privately if anyone wants to dig 
deeper

Original comment by foobar...@googlemail.com on 5 Mar 2011 at 11:31

GoogleCodeExporter commented 9 years ago
Yes if you want to send me tcpdump (or simply logs from csipsimple) I'd be 
interested. 
See HowToCollectLogs wiki page.

-also, ensure you are registered only once on the server- (for example if 
previously registered from sipdroid could lead to multiple packets from server).

Original comment by r3gis...@gmail.com on 5 Mar 2011 at 11:44

GoogleCodeExporter commented 9 years ago
Ping? Has something changed on this problem?

Original comment by foobar...@googlemail.com on 21 Apr 2011 at 8:58

GoogleCodeExporter commented 9 years ago
Something has been fixed recently with OPTIONS requests in nightly builds 
http://nightlies.csipsimple.com/trunk/
It could fix this problem (at least the fact it was asking each 4 seconds).

After more search, an option to disable OPTIONS reply is not a good idea. Some 
sip servers uses this before calling to know call capabilities of the 
application so it should always be able to reply to an option request.

Original comment by r3gis...@gmail.com on 16 Jul 2012 at 9:21