!C:ANY matches a number not belonging to a contact - NOT WORKING

865 views
Skip to first unread message

Shane Rock

unread,
Nov 12, 2014, 10:44:40 AM11/12/14
to tas...@googlegroups.com
Not sure if I have something setup wrong or what, this seemed to work fine for me in v4.1, but it is not being detected now.

My overall goal is to setup ringtones for specific contacts - "Known Contact Ringtone" profile
If I don't have a ringtone for a specific person but they are still in my contacts then ring a different ringtone - "Known Contact Other" profile
and lastly if they are not in my contact list ring a default ringtone - "Unknown Contact" profile

That last one "Unknown Contact" I cannot get to run.

Any ideas attached is a picture of the profile is there anything else I could post that might help?


2014-11-12 15.34.16.png

Mark G.

unread,
Nov 12, 2014, 5:12:59 PM11/12/14
to tas...@googlegroups.com
What I do is
1) create the profile "state" from "phone" and select "call" and use incoming calls.

2) I enter 0/!C:ANY the 0 blocks restricted and unavailable calls. but you can just use !C:ANY

3)then run a task from "phone" and selec "end call" and the message goes to my voice mail.

If you wanna completely hang up on those rat basards!! Do this..

from the task "Phone"
1) Take call

From the task "Task"
2) use "wait" (I set it to 1 sec)

From the task "Phones" again.
3) end call.

You can also run a sms task after telling the person why you've hung up. Hope this helped

Shane Rock

unread,
Nov 12, 2014, 5:17:30 PM11/12/14
to tas...@googlegroups.com
my problem is the !C:ANY condition isn't being met

Mark G.

unread,
Nov 12, 2014, 5:30:06 PM11/12/14
to tas...@googlegroups.com
Oh my bad, didn't have my glasses on and only looked at your screenshot.

You can try using Events and select "ringer" if you didn't already.

Matt R

unread,
Nov 12, 2014, 6:36:43 PM11/12/14
to tas...@googlegroups.com
Start with the run log (menu > more > run log).  It should help determine if the profile is not activating or if the task is failing.

Matt

SunKol

unread,
Nov 14, 2014, 5:49:07 AM11/14/14
to tas...@googlegroups.com
Please try changing your profile with "Phone Ringing" Event Rather "Call Incoming" State.

Shane Rock

unread,
Nov 16, 2014, 8:08:24 PM11/16/14
to tas...@googlegroups.com
I was able to get get it to work, but I first had to uninstall tasker and delete its folder and reinstall it, I ended up getting to work with the events - phone ringing profile.

don't know what was wrong before, it was like tasker was running old profiles i had already deleted?? oh well its working now

thanks!

--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/WujCWI001Lw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.

Carlos Federico WOLFF

unread,
Dec 5, 2014, 8:00:25 AM12/5/14
to tas...@googlegroups.com
Is "!CG" working for you? "!C:ANY" works, but i think there is a problem when trying to check a contact NOT belonging to a specified group. Thank you very much.

Shane Rock

unread,
Dec 5, 2014, 8:30:24 AM12/5/14
to tas...@googlegroups.com
yes !CG is working for me.

On Fri, Dec 5, 2014 at 8:00 AM, Carlos Federico WOLFF <wfc...@gmail.com> wrote:
Is "!CG" working for you? "!C:ANY" works, but i think there is a problem when trying to check a contact NOT belonging to a specified group. Thank you very much.

--

SC

unread,
Dec 9, 2014, 9:36:51 AM12/9/14
to tas...@googlegroups.com
I hope I am not highjacking this thread, but just want to add that I am having a similar issue.

Both !CG and CG work for me, and so as C:ANY, but somehow !C:ANY didn't work consistently.

By that I meant some contacts will match both C:ANY (correct behavior) and !C:ANY (incorrect behavior).

I tried the same profile on 3 different phones on 3 different version of Android and they all gave me the same wrong results so I am pretty sure it is not a phone/OS specific issue.

Anyway my profile is very simple, basically just a trigger on 'Phone Ringing' event' with a pattern of '!C:ANY' and a task to display a notification. Tasker would constantly trigger the task despite calling from a phone that matches one of the contacts. Also tried changing the trigger to 'Call Incoming' but then the task would not get triggered at all, even when calling from a number that is not a contact (i.e. wrong behavior).

When I changed the pattern from '!C:ANY' to 'C:ANY' using 'Phone Ringing' event, calling from the same number would trigger the task correctly, so tasker seemed to know that the number is from one of the contacts.

Basically looked like there is a bug when the not condition (!) is applied to the pattern 'C:ANY'.

Marta Hintz

unread,
Dec 9, 2014, 10:08:01 AM12/9/14
to tas...@googlegroups.com
Are you sure you backed out of tasker when you made those changes?

Marta Hintz

unread,
Dec 9, 2014, 10:21:05 AM12/9/14
to tas...@googlegroups.com
Also check the log file to see if something is wonky there.

SC

unread,
Dec 29, 2014, 1:11:09 PM12/29/14
to tas...@googlegroups.com


On Tuesday, December 9, 2014 10:08:01 AM UTC-5, Marta Hintz wrote:
Are you sure you backed out of tasker when you made those changes?

I wish it is that simple :-(

Like I said I tested the issue on 3 different phones with various stock and custom roms. None of them works consistently.

I am wondering how Tasker perform the comparison. Does it require all digits/space/symbol to match? All my contacts are in the standard international format (i.e. +1 xxx-xxx-xxxx). Is Tasker smart enough to know how to deal with them if the number in the caller id is not exactly the same? For example will it be smart enough to know a calling number '123-1111-2222' is the same as '+1 123-1111-2222' in the contact?

Carlos Federico WOLFF

unread,
Jan 2, 2015, 8:38:02 AM1/2/15
to tas...@googlegroups.com
Finally, I can see that "!" with a group works with Samsung Groups (my phone maker), but not with Googles Group. Google groups seems not being corectly evaluated when using "!", otherwise they work ok.
Thx.

SC

unread,
Jan 2, 2015, 7:19:16 PM1/2/15
to tas...@googlegroups.com
I think you maybe on to something. I found like if I edit the number (add a dash and then remove it) in my contacts locally on the phone, then Tasker will evaluate the number correctly. However after a few syncs then the problem will be back again.

mkraft

unread,
Jan 12, 2015, 3:59:58 PM1/12/15
to tas...@googlegroups.com
I am experiencing the same problem as in the OP. A Call Incoming context for !CANY fails to trigger for callers who are not in my contact list - but does trigger a Phone Ringing context:

//This one does not work
Profile: Test (114)
	State: Call [ Type:Incoming Number:!C:ANY ]
Enter: test (100)

//This one does Profile: Test2 (115) Event: Phone Ringing [ Caller:!C:ANY ] Enter: test2 (121)

I first noticed the issue in mid October last year - it worked properly prior to that time. I have tried a complete uninstall/delete the Tasker folder/reinstall, with no success.

Unlike the original poster, having to use Phone Ringing is not very convenient for me - I need a state with both entrance and exit tasks, not an event.

Has anyone seen this or have a solution?

Phone: Nexus 5 w. stock Android 4.4.4
Carrier: Rogers Canada
Tasker: 4.6u2

Thanks.

mkraft

unread,
Jan 12, 2015, 8:09:27 PM1/12/15
to tas...@googlegroups.com
To be more clear, the following profile also fails if the caller is not in my contacts list:

//This also does not work
Profile: Test3 (154)
	State: Call [ Type:Incoming Number:* ]
Enter: test (100)

I.e., if the caller is not a contact, as far as Tasker and Call Incoming are concerned, the call never happened.

Darren Becker

unread,
Jan 12, 2015, 11:43:59 PM1/12/15
to tas...@googlegroups.com
I have the Nexus 5 running stock OS and for some reason Take Call option is Red and doesn't allow me to select it. Is there any way to fix this?
Message has been deleted

Pent

unread,
Feb 2, 2015, 10:01:34 AM2/2/15
to tas...@googlegroups.com
I am experiencing the same problem as in the OP. A Call Incoming context for !CANY fails to trigger for callers who are not in my contact list - but does trigger a Phone Ringing context:

I first noticed the issue in mid October last year - it worked properly prior to that time. I have tried a complete uninstall/delete the Tasker folder/reinstall, with no success.


I havn't been able to reproduce this at all. I suspect something changed on your phone or with your carrier. Could you send me a log when it fails ?

http://tasker.dinglisch.net/userguide/en/faqs/faq-how.html#x2

Thanks,

Pent

mkraft

unread,
Feb 2, 2015, 1:37:51 PM2/2/15
to tas...@googlegroups.com
It happened at about 10:24 this morning. Before and after log files and the crash report are attached.
log.txt.1
log.txt
crash.txt

mkraft

unread,
Apr 6, 2015, 2:23:19 PM4/6/15
to tas...@googlegroups.com
Hi Pent,

Any updates?

Thanks

Luis Gómez Guzmán

unread,
Nov 3, 2016, 1:46:29 PM11/3/16
to Tasker
If i want to exclude one specific contact, should i use: !contactname ?
Reply all
Reply to author
Forward
0 new messages