r3gis3r / CSipSimple

CSipSimple Mirror (no pull-requests here)
http://www.csipsimple.com
GNU Lesser General Public License v3.0
302 stars 227 forks source link

High permanent battery use after first CSipSimple call (Samsung devices, Android 4.4.2) #18

Open sonora opened 9 years ago

sonora commented 9 years ago

I use CSipSimple on several devices, and always with the exact same configuration.

Some configuration details: Version 1.02.03, Integrate with Android, Only for outgoing, UDP only, Only "Wifi for outgoing calls" is checked under Network.

I have the following observation:

When checking what causes the excessive battery drain under Android's Settings/Battery, it is not attributed to "CSipSimple", but actually to "Android OS", where you can see that the CPU constantly remains in "Awake" state after the first call with CSIPSimple. ("CPU Awake" time indicator constantly going up if checked periodically).

Interestingly: I have found out that briefly starting Android's built-in Music player, then stopping and closing it again, again allows the CPU to go back to deep sleep when the screen is turned off, and the excessive battery drain initiated by CSIPsimple is stopped again (until another cal is placed using CSIpSimple).

So it looks like we may be looking at an issue with some sort of audio wakelock remaining active after a CSipSimple call, particularly on Samsung devices. I am wondering if there could be a fix or workaround implemented in CSipSimple?