Problem with %CNAME and %CNUM

871 views
Skip to first unread message

rob

unread,
Jun 11, 2012, 10:57:41 PM6/11/12
to Tasker
I am trying to make a task which will let my favorite contacts ring
through when my phone is on silent at night. I have tested the
profile by leaving the optional contact listing blank and it works
perfectly but as soon as i specify particular contacts it never turns
the sound up.

I declared some of my own variables and set them to %CNAME %CNUM
%CDATE %CTIME. The %CDATE and %CTIME are correct but I am only able
to get 0 for the value of both %CNUM and %CNAME. I have modified the
listing of the phone number in my contacts trying to see if that would
help and tried from several different phone numbers and the result is
always 0 in both the %CNUM and %CNAME fields.

My phone is an LG Optimus Q running on Straight Talk (Sprint towers I
believe) with android os. 2.3.4. Are there any work-arounds or is
this a known problem?

Thanks in advance for any help

Pent

unread,
Jun 12, 2012, 2:29:20 AM6/12/12
to Tasker
>  I declared some of my own variables and set them to %CNAME %CNUM
> %CDATE %CTIME.  The %CDATE and %CTIME are correct but I am only able
> to get 0 for the value of both %CNUM and %CNAME.

You mean, after a call you look at %CNUM and it's 0 ? That should only
be the case if the caller has their number hidden. Not sure what
'Straight Talk' is, perhaps thats the problem.

Pent

rob

unread,
Jun 13, 2012, 1:57:11 AM6/13/12
to tas...@googlegroups.com
You mean, after a call you look at %CNUM and it's 0 ? That should only
be the case if the caller has their number hidden. Not sure what
'Straight Talk' is, perhaps thats the problem.

Pent


Yes.  It is set up to record the %CNAME to a variable that I created.  I have also used the flash notify feature to show the data in %CNAME as a call is coming in and it too shows "0".  Straight talk is an MVNO by net10.  Similar to boost mobile if you have heard of that one.  I don't think that would be the problem though.  It runs on sprint towers.  I have called myself from numbers that are not blocked or private.  I have now queried the %CNAME and %CNUM after 9 different contacts have called me and get a "0" in each field every time.  Android os has no problems displaying the contact name and number but Tasker is unable to get the name or the number.  However it can get the date and time correctly.  I am running the market version of Tasker that was the newest version as of three days ago. 

Thanks again

Pent

unread,
Jun 13, 2012, 2:06:40 AM6/13/12
to Tasker
>  I have
> called myself from numbers that are not blocked or private.  I have now
> queried the %CNAME and %CNUM after 9 different contacts have called me and
> get a "0" in each field every time.

The %CNAME is expected to be 0, it can't look up the name in your
contacts if it doesn't know the number.

Sorry, I don't have any other answers (assuming you're not using a
custom ROM), as far as I'm aware this works fine for the vast majority
of people.

Pent

rob

unread,
Jun 14, 2012, 12:46:10 AM6/14/12
to tas...@googlegroups.com
Hi Pent, 
 I'm sorry I didn't realize non-stock roms would effect that. You are absolutely correct.  I flashed back to the stock ROM and all is well.  Is there a common work around for custom roms or are they all too unique to have a common fix?

Thanks again for all your help

Pent

unread,
Jun 14, 2012, 2:37:53 AM6/14/12
to Tasker
>  I'm sorry I didn't realize non-stock roms would effect that. You are
> absolutely correct.  I flashed back to the stock ROM and all is well.  Is
> there a common work around for custom roms or are they all too unique to
> have a common fix?

It's not a 'it doesn't work on a custom ROM' issue. Your particular
custom ROM must have changed something about how incoming calls are
handled in standard Android.

Pent

rob

unread,
Jun 14, 2012, 3:04:23 AM6/14/12
to tas...@googlegroups.com
Good to know.  I will try to ask the Dev of the ROM about that. 

Thanks again for all of your help Pent!
Reply all
Reply to author
Forward
0 new messages