ring on incoming call

651 views
Skip to first unread message

matthew.hewitson

unread,
Oct 17, 2010, 8:24:07 AM10/17/10
to Tasker
Hi.

I'm having trouble getting Tasker to turn on the fingers for an
incoming call.
It doesn't seem to recognise when the context is
Event phone ringing
Or state incoming call.

I want a particular number to be able to ring through when silent.

HTC desire. Rooted 2.2 Rom.

LPS

unread,
Oct 19, 2010, 4:50:16 PM10/19/10
to Tasker
My wild guess...android loads the ringtone at the "start" of the
incoming call. If it is in silent mode, it does not load the ringtone.

Although you turn the ringer on (silence=off) with your action, it
happens few milli seconds after the "start" of the incoming call, so
android never gets a chance to load the ringtone. (Its like turning
your volume up while no song is playing.). Again its a wild guess.

But here is a workaround. Instead of turning silence=off, u can play a
music while there is an incoming call from a specified number.

new profile->
Add context state->Incoming call (enter phone number)
Add context state->Variable value (%SILENT matches on)

Enter Task: Music play (Select ringtone)
Exit Task: Music stop

There seems to be bug? in this. The Incoming call state does not exit
if you answer the phone call. You can still hear the ringtone in your
ear piece. But it does exit if you decline the phone call.

So create one more profile to overcome this,
new profile->add context event->phone offhook
add task->music stop

see if it works.

On Oct 17, 7:24 am, "matthew.hewitson" <matthew.hewit...@gmail.com>
wrote:

matthew.hewitson

unread,
Oct 20, 2010, 2:48:21 PM10/20/10
to Tasker
Thanks - that seems like a good workaround, I shall give it a shot.

It was the one thing that I did with Locale that I couldnt get working
witrh Tasker. That said, I have done so much more with Tasker than I
ever thought possible with Locale.

I shall report back if this works for me....

matthew.hewitson

unread,
Oct 20, 2010, 3:56:58 PM10/20/10
to Tasker
Spot on. Almost.

So my VIP Caller Profile has
Context > Incoming Call (Number) - Couldnt get it to work with the
Phone Ringing State
Context > Variable Value %WORK != 1 - Set by a different Profile
Enter Tasks -
Media Volume > Lever 12 - Didnt work without this
Flash %CNUM - For debug purposes
Music Play > file_name
Exit Tasks
Music Stop
Media Volume > Level 0 - As it had to be set on the Enter task.

And the Additional Profile you suggested

Context > Phone offhook
Enter Tasks -
Music Stop


The End result is that a VIP Caller can phone me Any time EXCEPT when
I am at work and %WORK = 1
With some refinement I will check for a silent state also so that I am
not playing a ringtme as well as a media file.

Cheers for the help.



On Oct 20, 7:48 pm, "matthew.hewitson" <matthew.hewit...@gmail.com>
wrote:

LPS

unread,
Oct 21, 2010, 8:38:36 PM10/21/10
to Tasker
You are very welcome.

On Oct 20, 2:56 pm, "matthew.hewitson" <matthew.hewit...@gmail.com>
wrote:

Jarhead

unread,
Sep 6, 2011, 8:51:44 AM9/6/11
to tas...@googlegroups.com
I made a profile to do the same thing as this one, ie turn on the ringer for certain callers, the only problem is if I can't answer the call at whatever time and I hit the "ignore" button for the incoming call the song doesn't stop playing.
Is there a way to use the "ignore" button as a trigger to stop the music??
Also, I don't see any built-in variables for on/off hook conditions, shouldn't there be these?

BossMan

unread,
Sep 6, 2011, 9:06:09 AM9/6/11
to tas...@googlegroups.com
It should stop, as the "Incoming Call" context should no longer be active and the whole profile should deactivate, triggering the exit task and Music Stop action. You can add a notification in the exit task to see if and when it is executed.

As for the off hook events etc. see this post: https://groups.google.com/d/msg/tasker/JPxMuNfkTkY/MqYu5nE9YIsJ

You could try using Phone Idle event as a trigger for the music stop action.

BR,
A.

Jarhead

unread,
Sep 7, 2011, 12:58:48 PM9/7/11
to tas...@googlegroups.com
It Should Stop, but it don't.
I don't need the "phoning" thing but thanks. I already have a profile that does the same but my point was shouldn't that be a built in variable, the answer is yes.
Reply all
Reply to author
Forward
0 new messages