===== Enable/Disable SIP with Tasker for Android =====
{{tag>tasker sip android}}
For various purposes you might want to enable or disable your android inbuilt SIP phone with tasker. E.g. in my case I only have SIP enabled if the battery is above 78% or the phone is charging.
==== Prerequisites ====
* App [[https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm&hl=de_AT | Tasker]] (sorry no FDroid)
* Additional permissions for Tasker
* ''android.permission.WRITE_SETTINGS''
* ''android.permission.WRITE_SECURE_SETTINGS''
=== Set Permissions using adb ===
adb shell pm grant net.dinglisch.android.taskerm android.permission.WRITE_SETTINGS
adb shell pm grant net.dinglisch.android.taskerm android.permission.WRITE_SECURE_SETTINGS
=== What it does ===
It simply sets ''sip_receive_calls'' in System Secure Settings to ''0'' or ''1''.
==== The Tasks ====
As Tasker DataURIs:
* Tasker Task SIPcalls ON
* Tasker Task SIPcalls OFF
As compressed XML Tasks:
{{ :xro:sipcalls_onoff.tar.xz |Tasker Tasks SIP on/off}}
==== Post-Install ====
None