FORUMS
Remove All Ads from XDA

Tasker Mute call if unknown Contact

1 posts
Thanks Meter: 0
 
By mikem3223, Junior Member on 17th September 2019, 12:48 PM
Post Reply Email Thread
Is there a way to use Tasker to mute calls from numbers not in my contacts?
17th September 2019, 01:24 PM |#2  
ktmom's Avatar
Senior Member
Thanks Meter: 2,269
 
More
Yes, I end the call if not in my contacts which effectively just seems them to voice mail. The end call action is not guaranteed to work on all devices, but you could exchange it for a action to lower the audio -> ringer volume.

In the following profile, I use a variable %CallBusy, to prevent disconnecting if I'm actively in a call. This variable is set in a separate profile that just looks if the phone is off hook.

Profile: Unknown Caller Disconnect
Event: Phone Ringing [ Caller:!C:ANY ]
State: Variable Value [ %CallBusy !~ true ]


Enter: End Call
A1: End Call
A2: Variable Set [
Name:%CallerEnded
To:%CNUM
Recurse Variables: Off
Do Maths: Off
Append: Off
Max Rounding Digits:0 ]

A3: Flash [
Text:Just blocked caller %CallerEnded
Long: On ]
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes