Setting default ringtone based on area code...

519 views
Skip to first unread message

Travis Tolman

unread,
Jul 22, 2013, 11:49:29 PM7/22/13
to tas...@googlegroups.com
I'm new to tasker and need some help...
I'm trying to set a separate ringtone for callers of a specific area code (callers from my hometown) and I'm half way there, but can't figure out the last bit!

Here's what I've done so far:
Context-phone ringing
Task- set default ringtone IF %PNUM ~r (regex) 555*

This works like a charm, but now I have to manually go back into sound settings and revert the default ringtone back to its previous value (defeating the purpose of automation)

Does anyone know how to automatically have the ringtone revert back to what it was before this task ran? Or maybe even a better way of going about the end goal?

Brandon Horwath

unread,
Jul 23, 2013, 12:01:40 AM7/23/13
to tas...@googlegroups.com
Event: Call Received ~ *555??????? (I believe that will work, no regex) (someone correct me if I am wrong please)

Task -> Ringtone notification (whatever your specified desire)

Your context just needs to precede the phone ringing event... that's all.

Travis Tolman

unread,
Jul 23, 2013, 5:33:22 PM7/23/13
to tas...@googlegroups.com
The way understood the asterisk, is as a wildcard so if 555 is the area code wouldn't it be 555* ?

Either way...it IS already working,I just need it to revert back to what it was before the task triggered, OR play a ringtone apart from actually changing the default ringtone...

Brandon Horwath

unread,
Jul 23, 2013, 7:38:21 PM7/23/13
to tas...@googlegroups.com
Yes, and no...

Your setup will recognize (555)###-#### as valid.

BUT ALSO (###)555-#### as valid too. (I believe)

Since that also does match the defined condition. I just wanted to eliminate that possibility for you.

Larry Mashburn

unread,
Oct 23, 2018, 4:49:12 PM10/23/18
to Tasker
Did you ever find an elegant solution for this problem?
Reply all
Reply to author
Forward
0 new messages