On Thursday, July 12, 2012 11:05:34 AM UTC-7, BossMan wrote:
I think the latest version of Secure Settings plugin allows toggling of the built-in SIP client as well.
Indeed, it does!
However: Having the "Receive calls..." option unchecked does not actually /prevent/ you from receiving SIP calls. It's more accurate to say that having the option checked ensures the phone's client stays awake enough to receive them. As i'm using Google Voice (SIP through an intermediary), incoming calls try to come to me both over my cell number and my SIP client. I've been having the frustrating experience of the phone ringing for the SIP incoming and not the cell incoming...haven't done any debugging as to why. Since the call quality over the cell data network is spotty at best, I'm using a combination of using Secure Settings to toggle the options and iptables to block the traffic.
Task description (indentation mine, for readability):
Task: Internet calling (7)
A1: If [ %par1 ! Set ]
A2: Variable Set [ Name:%par1 To:ON Do Maths:Off Append:Off ] If [ %VOIP ~ 0 ]
A3: Variable Set [ Name:%par1 To:OFF Do Maths:Off Append:Off ] If [ %VOIP ~ 1 ]
A4: End If
A5: If [ %par1 ~ ON ]
A6: Secure Settings [ Configuration:SIP: Call Options/For all calls when data is available ]
A7: Secure Settings [ Configuration:SIP: Receive Calls Enabled ]
A8: Run Shell [ Command:iptables -D OUTPUT -p tcp --dport 5060:5061 -j DROP; iptables -D OUTPUT -p udp --dport 5060 -j DROP; iptables -D INPUT -p tcp --dport 5060:5061 -j DROP; iptables -D INPUT -p udp --dport 5060 -j DROP; Timeout (Seconds):0 Use Root:On ]
A9: Variable Set [ Name:%VOIP To:1 Do Maths:Off Append:Off ]
A10: Else If [ %par1 ~ OFF ]
A11: Secure Settings [ Configuration:SIP: Receive Calls Disabled ]
A12: Secure Settings [ Configuration:SIP: Call Options/Only for Internet calls ]
A13: Run Shell [ Command:iptables -A OUTPUT -p tcp --dport 5060:5061 -j DROP; iptables -A OUTPUT -p udp --dport 5060 -j DROP; iptables -A INPUT -p tcp --dport 5060:5061 -j DROP; iptables -A INPUT -p udp --dport 5060 -j DROP; Timeout (Seconds):0 Use Root:On Continue Task After Error:On ]
A14: Variable Set [ Name:%VOIP To:0 Do Maths:Off Append:Off ]
A15: End If
A16: Perform Task [ Name:MT Refresh Stop:Off Priority:1 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: ]
"MT Refresh" is a task to set all Minimalistic Text variables i'm using; in this case, a string i display on my Widget Locker: "Calls:%CallRoute", with %CallRoute being "VZW" or "VoIP".
Hope that helps someone.
Cheers.