View Single Post
Posts: 36 | Thanked: 42 times | Joined on Jan 2010
#27
Originally Posted by gregc2009 View Post
Ran into a problem with it last night. I was on a work call and when I got home, it was dumped as the phone switched to the home wifi and then dropped to 2G. Called him back and then I was leaving home and after I lost my wifi, the script brought me back to 3G and dumped the call. Anyway to add a provision for it not to do anything if there is an active call?
Ok, I've searched a bit and found a solution. You can check if there's a call with this code :
Code:
dbus-send --system --dest=com.nokia.csd.Call --print-reply=literal /com/nokia/csd/call/1 com.nokia.csd.Call.Instance.GetStatus
It will return "uint32 0" if no call

So I've modified the script to test this before . You can find it on this wiki page User:Nbc/W32g