kishorekolluicse / sipdroid

Automatically exported from code.google.com/p/sipdroid
GNU General Public License v3.0
0 stars 0 forks source link

Sipdroid turns off wifi when screen is off/phone is locked #1058

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm using SIPDroid 2.7 Beta and every time my phone goes to sleep/locked mode, 
it causes my wifi connection to turn off until I unlock the phone. This does 
not happen when I quit sipdroid, however. I am not certain that this is a 
defect or user error but I can't find anything like this on any forums or 
google.

I am using a Samsung Galaxy S2 (SPH-D710)

Original issue reported on code.google.com by tibaldsh...@gmail.com on 18 Jul 2012 at 10:07

GoogleCodeExporter commented 9 years ago
This is a serious issue and should be considered critical!
SIPdroid completely ignores your explicit Wi-Fi policy set in:

[Settings] > Wireless and Network > Wi-Fi settings > [Menu] > Advanced > Keep 
Wifi On During Sleep = ALWAYS.

It took me 6 days to figure out SIPdroid has this bug, NOT my phone. I almost 
returned it to the store before I stumbled upon a one-star review on 
androidpit.com reveiling SIPdroid as the instigator of this "WLAN Sleep of 
Death" problem.

This problem makes SIPdroid completely useless as WiFi SIP-phone for incoming 
calls at home or at the office.

Please look into it. If you know where to look, you can probably fix this by 
removing one line of code. Android takes care of the WiFi sleeping policy, 
SIPdroid shouldn't interfere.

Thank you.

Tested on Samsung Galaxy S2 with Android 4.0.3

Original comment by redsandro on 20 Jul 2012 at 1:30

GoogleCodeExporter commented 9 years ago
It doesnt cause this issue in 4.0.3 while it did in 2.3.6. Sipdroid is
working great in 4.0.3

Original comment by tibaldsh...@gmail.com on 20 Jul 2012 at 1:38

GoogleCodeExporter commented 9 years ago
Maybe there should be no code depending on 
android.permission.CHANGE_WIFI_STATE. 

Otherwise, since this disconnect happens after approximately exactly 15 
minutes, I am guessing the problem is here:
(just a silly guess, java is not my main language)

sipdroid/src/org/sipdroid/sipua/ui/Receiver.java line 754+
                if (wm.getWifiState() != WifiManager.WIFI_STATE_ENABLED || wi == null || wi.getSupplicantState() != SupplicantState.COMPLETED
                        || wi.getIpAddress() == 0)
                    alarm(2*60,OwnWifi.class);
                else
                    alarm(15*60,OwnWifi.class);

Original comment by redsandro on 20 Jul 2012 at 1:53

GoogleCodeExporter commented 9 years ago
@tibaldsh...@gmail.com sorry I missed your reply. But not for me it doesn't; 
Samsung stock rom of 4.0.3 with Sipdroid, has this behavior.

Original comment by redsandro on 20 Jul 2012 at 3:07

GoogleCodeExporter commented 9 years ago
I'm using a third party rom. Its the el26 kernel...i think, though, that my
always on wifi setting was turned off somehow. I simply turned it back on
while sipdroid was running.

Original comment by tibaldsh...@gmail.com on 20 Jul 2012 at 3:10

GoogleCodeExporter commented 9 years ago
It's a feature in Sipdroid Options >> Wireless >> Turn off Wifi (saves 
battery). Simply uncheck it which is the default.

Original comment by pmerl...@googlemail.com on 16 Sep 2012 at 8:12

GoogleCodeExporter commented 9 years ago
1) I had that option unchecked and had the behavior anyway, so a certain 
combination of this app on certain phones/firmwares seem to cause this 
nontheless;
2) IMO apps should adhere to the system settings (Keep Wifi On During Sleep) 
and not override those settings, it will only confuse users and I don't see a 
good argument for it;
3) recent firmwares like CyanogenMod have SIP functionality integrated in the 
phonebook, works like a charm, and just like making/receiving a normal phone 
call.

So I am happy, don't use sipdroid anymore, but I thought I'd let you know I 
think it's weird. :)

Original comment by redsandro on 16 Sep 2012 at 8:27

GoogleCodeExporter commented 9 years ago
I have this issue on Samsung Galaxy Pocket (GT-S5300) with Android 2.3.6.
I have Sipdroid Options >> Wireless >> Turn off Wifi (saves battery)uncheck, 
but still the phone get unregistered while the screen is off, and any one that 
calls me gets a message that my phone is off, and I miss calls.
This is a serious issue that should be fixed urgently! 

Original comment by kli...@gmail.com on 22 Sep 2012 at 10:34

GoogleCodeExporter commented 9 years ago
I can confirm that this is still an issue with Sipdroid '2.8 beta' running on 
an up to date verizon samsung galaxy nexus (toro) w/ android 4.1.2. It occurred 
before I noticed the wifi option (it's unchecked by default). It occurred after 
I checked the option. It continued to occur after I unchecked it. In short, the 
checkbox doesn't seem to do anything in terms of behavior - it turns of wifi 
regardless.

It is particularly noticeable when I am in airplane mode - might not be a 
coincidence.

Original comment by nbol...@gmail.com on 20 Dec 2012 at 1:08