What steps will reproduce the problem? 1. Use Sipdroid to make a call, or change some settings, or just freshly start/restart Sipdroid. 2. While doing your daily work, keep an eye on the registration status, or better, watching the output of TcpDump. 3. Watch Sipdroid renew registration zero time, or once, or twice, or more, then stop renewing registration.
What is the expected output? Never miss a registration expiry.
What version of the product are you using? On what device/operating system? Sipdroid 2.0.1. HTC Hero CDMA stock 2.1, HTC Sapphire Cyanogenmod 6.1.
Which SIP server are you using? What happens with PBXes? PBXes, Sipsorcery, Voxalot(Voxalot on WiFi only).
Which type of network are you using? WiFi, 3G
Please provide any additional information below. If the phone is on WiFi, with TcpDump, you can actually watch Sipdroid keeps sending keepalive every 60 seconds and the server responds back accordingly while Sipdroid has missed the registration deadline and incoming calls won't ring.
Importing a new profile seems to make Sipdroid prone to this problem. However, sometimes a freshly started Sipdroid does not renew registration or renews only once.
Comment #1
Posted on Feb 2, 2011 by Swift MonkeyForgot to include in the above: When Sipdroid misses the registration deadline, it still shows the green dot as "registered", but calls won't come in. I am now watching a freshly started Sipdroid, which received a call 20 minutes ago, but now missed the registration deadline, still shows two green dots. Incoming calls won't come in at this time. Tcpdump shows it sends keepalives to Voxalot and Sipsorcery servers and the servers respond immediately every 60 seconds precisely, repeatly, but the register agent is oversleeping somewhere and won't wake up.
Comment #2
Posted on Feb 2, 2011 by Swift MonkeyComment deleted
Comment #3
Posted on Feb 5, 2011 by Swift MonkeyIt doesn't matter which server to use. Sipdroid registered to PBXes.org does the same thing. Making a call, receiving a call, importing settings and other events all make Sipdroid forget to renew registration. The only sure thing is when the server closes the socket connection, Sipdroid will respond and renew.
Comment #4
Posted on Feb 16, 2011 by Swift MonkeyFixed in v2.1.
Comment #5
Posted on Feb 16, 2011 by Quick Rabbit(No comment was entered for this change.)
Comment #6
Posted on Feb 17, 2011 by Swift MonkeyToday I went out of the office and came back in an hour and then noticed Sipdroid began to forget renew registration. Data changed from wifi -> 3G -> wifi in the interim. No phone call. Looks like the bug was not cleaned out. As before, events that make Sipdroid registration status changed from green dot -> yellow(and maybe red?) dot -> green dot tend to make Sipdroid to forget renew registration. Phone calls now do not trigger registration refreshing so they did not trigger the bug yesterday in my quick test. My fault.
Comment #7
Posted on Feb 17, 2011 by Quick Rabbit(No comment was entered for this change.)
Comment #8
Posted on Feb 21, 2011 by Happy BearI had this problem using csipsimple. They solved this problem by providing a setting for registration renewal.
Comment #9
Posted on Feb 21, 2011 by Swift MonkeyThis issue does not seem to be the common issue of network timeout. The registration status somehow gets wrong record in certain circumstance which prevents the register agent from renewing registration. However, customizable keepalive/registration interval under different network conditions sure would be a welcomed feature.
Comment #10
Posted on Feb 23, 2011 by Swift MonkeyJust noticed two Sipdroids on both my two phones both lost registrations while still showing green dots. Both phones connect to 3G. One Sipdroid started yesterday using PBXes. One started several hours ago using Sipsorcery. No Sipdroid phone calls on both of them. Did not touch Sipdroid after they started. Gmail notifications come in without any delay at any random time. No task killing process running(never installed such program).
Comment #11
Posted on Mar 1, 2011 by Quick Rabbit(No comment was entered for this change.)
Comment #12
Posted on Mar 25, 2011 by Quick Rabbit(No comment was entered for this change.)
Comment #13
Posted on Mar 29, 2011 by Swift MonkeySeems the problem is still there. I am watching exactly the same phenomenon right now that the Sipdroid is sending Keepalive every 60 seconds, the registration status dots are green, while Sipdroid has passed the 3600s expiry and lost registrations to both PBXes.org and Sipsorcery.
Comment #14
Posted on Apr 3, 2011 by Massive LionThis issue is not fixed, I'm having the same problem on my Samsung Vibrant, it will randomly forget to renew registration, no matter if it is 3g or Wifi. Its also unrelated to server because I have both Sipgate and PBXes setup and they both show green dots but still lose connection.
One thing I have noticed is that TCP will renew, but UDP accounts will not. Sipdroid 2.2 betab Samsung Vibrant Bionix Frost 2.2.1
Comment #15
Posted on Apr 3, 2011 by Massive LionHey, sorry to post again but I was wondering how I could use TcpDump to further diagnose my registration renewal problems, would you be able to let me know when you get a minute, jac?
Comment #16
Posted on Apr 3, 2011 by Swift MonkeyHere is a tutorial for using TcpDump on Android: http://prem-android.blogspot.com/2009/03/capture-packets-in-android-tcpdump.html
BTW, I always use SIP over TCP connection. Still losing registration.
Comment #17
Posted on Apr 5, 2011 by Quick Rabbit(No comment was entered for this change.)
Comment #18
Posted on Apr 11, 2011 by Swift RabbitSame problem here with HTC Desire HD phone, Sipdroid 2.2 beta.
Comment #19
Posted on Aug 24, 2011 by Swift GiraffeI have a similar problem. I keep sipdroid open all the time on my Xoom (Android 3.2). For a couple days everything seems OK. I can receive calls. I carry it around during the day, read mail, browse the web before bed. Then, for some unknown reason it will no longer receive incoming calls. It won't ring. Today I was able to make outgoing calls, but nothing incoming rang (I tested with a spare cell phone). I checked out pbxes.og verifying the accounts were properly configured (both accounts as I am using both in sipdroid). I ensured the passwords were correct and that nothing had changed. I tested incoming calls. NOTHING would come in. I then went into configure each sip line (in sipdroid) clicking on the account name. When the box popped up I just selected OK. I then clicked on the password and reentered it and clicked OK. At this point it rang and everything worked. I tested the other line. Same issue, same resolution.
Sipdroid must be corrupting either the username or password (say, adding a space at the end of the account or password). Something. The resolution is to reentered both username and password for each account.
Comment #20
Posted on Dec 5, 2011 by Quick RabbitI noticed that this can happen if Sipdroid lies on SD card. When moving to internal memory the issue goes away.
Comment #21
Posted on Dec 9, 2011 by Swift MonkeyInteresting finding. In my case, I only installed Sipdroid to internal memory on phones and different Android versions I've tried. I did the experiment again with the latest 2.4 version and managed to reproduce and capture the issue with Sipsorcery.com. (Sipsorcery has a user panel that precisely shows the device registration status so I don't have to make incoming calls to verify my Sipdroid registration status.) Here is what I observed from TCPDump over wifi,
- Sipdroid kept sending keepalive every 60 seconds.
- At the 3600s renewal moment, Sipdroid did not renew registration, but the green status dot stayed green.
- Sipsorcery showed Sipdroid lost registration.
- Sipdroid still kept sending keepalive every 60 seconds, green dot kept green.
- 10 minutes later, Sipsorcery sent the packet to close the TCP connection.
- Upon closing the TCP connection, Sipdroid started a new connection to register.
So the issue seems to remain the same. At some point, the registration status/update logic flipped a bit somewhere and Sipdroid decided not to update registration.
It's understandable that Sipdroid is geared for PBXes.org. However, adding some most basic features like registration interval or non-registration to make Sipdroid a full fledged SIP client might be a good idea for its name. My 2c.
Comment #22
Posted on Dec 10, 2011 by Swift MonkeyI've been having the same issue for a long time. Green dots, I'm able to receive calls (I'm testing by calling myself from another phone). Some time later (20-30 minutes maybe) the green dots are still there, but I can no longer receive calls.
My usual way of fixing this is to close sipdroid and start it again. Some times if I expect a call within a one hour time-frame, I have to keep restarting the app every 10 minutes to make sure it's still awake, otherwise I often miss calls without knowing.
Some times it seems to me that this is caused by moving to a room with less strong 3g signal (even if calls / internet would still work), after which point sipdroid will lose the registration but the dots will remain green. However this is not the only scenario, as often I am not moving in a location with good 3g reception and it still occurs.
I would like to investigate this further, I have some android development experience, but I'm not familiar with the sipdroid code yet.
Comment #23
Posted on Feb 2, 2012 by Quick RabbitIssue 1014 has been merged into this issue.
Comment #24
Posted on Mar 3, 2012 by Helpful LionProblem still occurs even in sipdroid version 2.4 on my htc Desire z (android 2.3.3 or gingerbread). I missed calls as the original poster, says after an hour. Which is strange because if the developers know what's causing the problem as the original person (jac) points out who started the thread, then the developers should allow users the ability to change the keepalive settings. Or just fix the app, when they get a chance, as this is a main problem for all users and disrupts the basic functionalities of sipdroid.
Comment #25
Posted on Mar 4, 2012 by Helpful HippoHaving the same problems on HTC Wildfire.
Comment #26
Posted on Aug 29, 2013 by Happy Bearthis problem still exists on my Nexus S with stock 4.1.2. Green dot and missing calls left and right.
Comment #27
Posted on Jan 10, 2014 by Massive LionI still have the same problem with my Nexus 4 for 3G network (green dot, but actually lost registration). Wifi is ok.
Status: New
Labels:
Type-Defect
Priority-Medium