Block all calls except those in 'Contacts' list?

929 views
Skip to first unread message

Double

unread,
Jan 26, 2014, 3:57:00 AM1/26/14
to tas...@googlegroups.com
I've been mowing around inside Tasker to find ways to set this up, and no matter which way I try, I can't Tasker to recognize anything related to the entire Contact list.

I've recently been hit with unknown callers, and have no idea how i set them off. Every number is different (each with a different area code), and so blocking these numbers individually is no longer ideal.

Sean Williams

unread,
Jan 26, 2014, 8:06:39 AM1/26/14
to tas...@googlegroups.com
Maybe you could query the contact name variable,

If the variable matches with a number, an area code or country code it wouldnt be a contact name and not be a contact of yours.

Pent

unread,
Jan 26, 2014, 8:09:23 AM1/26/14
to tas...@googlegroups.com

I've been mowing around inside Tasker to find ways to set this up, and no matter which way I try, I can't Tasker to recognize anything related to the entire Contact list.

Matching C:ANY should work.

See Pattern Matching in the userguide.
Pent

Double

unread,
Jan 27, 2014, 4:42:02 PM1/27/14
to tas...@googlegroups.com
Thanks, I'll give these a try :)

Double

unread,
Jan 27, 2014, 5:19:51 PM1/27/14
to tas...@googlegroups.com
I have set it up like this:

Call Incoming,* --> Call Block (If: %CNUM !~ C:ANY)

Is that right, or are there better ways of setting this up? How would someone go about blocking SMS or even MMS? Is it even possible?

Dan Shuck

unread,
Jan 27, 2014, 5:26:17 PM1/27/14
to tas...@googlegroups.com
Profile: Blockr (4)
Event: Phone Ringing [ Caller:!C:ANY ]
Enter: Block (2)
Run Both Together
A1: Take Call
A2: Wait [ MS:0 Seconds:3 Minutes:0 Hours:0 Days:0 ]
A3: End Call
Here's how I did mine. It works well except if you in a call and a blocked caller call...both calls are terminated. It's never been a big ussye so I never looked into fixing T hat little problem

Double

unread,
Jan 27, 2014, 6:02:41 PM1/27/14
to tas...@googlegroups.com
Interesting. I wonder what the differences between yours and mine are? The 'Phone Ringing' event seems like it would give the caller a chance to ring on you, but wouldn't the 'Call Incoming' state cause the call to be intercepted even before it got the chance to ring?

Double

unread,
Jan 27, 2014, 6:18:56 PM1/27/14
to tas...@googlegroups.com
Just thought up another. If i had to guess, I'd say this one suits best for the topic:

Profile: Call
Event: Call (Incoming, !C:ANY)
Task: Call Block

previous one I mentioned:
Profile: Call
Event: Call (Incoming, *)
Task: Call Block (If: %CNUM !~ C:ANY)

Dan Shuck

unread,
Jan 27, 2014, 6:23:23 PM1/27/14
to tas...@googlegroups.com
Not sure. That was the first profile I made with tasker. When trying to figure it out I came to understand that you can't block an event that hasn't happened yet. So the phone has to receive a call before anything can be done with it. I could be wrong, but that's what I gathered.

Dan Shuck

unread,
Jan 27, 2014, 6:25:13 PM1/27/14
to tas...@googlegroups.com
I think call block prevents a call from being made by your device.

Double

unread,
Jan 27, 2014, 6:35:48 PM1/27/14
to tas...@googlegroups.com
On Monday, January 27, 2014 4:25:13 PM UTC-7, Dan Shuck wrote:
I think call block prevents a call from being made by your device.

Oh i see. Hmm.. what about 'End Call' instead? 

Dan Shuck

unread,
Jan 27, 2014, 6:53:35 PM1/27/14
to tas...@googlegroups.com
End call will work. It will send the call to voicemail. I didnt want a voicemail to be left so take call/end call.

Double

unread,
Jan 27, 2014, 8:41:41 PM1/27/14
to tas...@googlegroups.com
Does Tasker have to be setup to take the call in order to end it?

Dan Shuck

unread,
Jan 27, 2014, 8:49:57 PM1/27/14
to tas...@googlegroups.com
Not sure what you mean by set up, tasker has To enabled....

Double

unread,
Jan 29, 2014, 3:05:54 AM1/29/14
to tas...@googlegroups.com
Oh sorry i meant whether or not Tasker has to "Take" the call in order to "End" the call..?

Dan Shuck

unread,
Jan 29, 2014, 3:06:51 AM1/29/14
to tas...@googlegroups.com
No.....ending call will send it to voicemail

Double

unread,
Jan 29, 2014, 3:32:08 AM1/29/14
to tas...@googlegroups.com
Okay so i did set it up right :)

I do have another question, I got a call earlier today and a voicemail was left, but this turned my screen on for 10 minutes before shutting off. Is there a workaround? I do have Secure Settings installed which can control the lockscreen.

Dan Shuck

unread,
Jan 29, 2014, 6:07:40 AM1/29/14
to tas...@googlegroups.com
I don't think the screen staying on is related to the block task. Im sure you could write an action to turn off the screen...like wait 5 seconds-> system lock as the last actions in your blocking task? Probably other ways as well, but I think that will work.
Reply all
Reply to author
Forward
0 new messages