End Call action and voicemail

1,231 views
Skip to first unread message

dougwzz99

unread,
May 1, 2018, 3:47:31 PM5/1/18
to Tasker
Hi,

The End Call action sends the caller to voicemail. Is there any way (action or plugin or intent) to just hang up without sending the caller to voicemail. I'm trying to construct a phone blocker task, but some numbers I want to send to voicemail while others I simply want to hang up on. 

Is there any way to do this? I'm using a Galaxy S7 running Android 7.0.

TIA.

Robert Ryan

unread,
May 1, 2018, 4:08:41 PM5/1/18
to tas...@googlegroups.com

If you use your phone's built in number blocking, does it send the call to voice mail?

On my S9 this is located at Phone app->3-dot menu->Settings->Block Number.

dougwzz99

unread,
May 2, 2018, 2:52:30 PM5/2/18
to Tasker
Yes the built in blocker sends the call to voicemail. 

William Pyles

unread,
May 15, 2018, 6:47:23 PM5/15/18
to Tasker
The latest security patch for 8.1.0 on my Pixel 2 XL broke the end call function in Tasker. No longer am I able to block calls. :(

João Dias

unread,
May 16, 2018, 4:01:09 AM5/16/18
to tas...@googlegroups.com
Yep, for me too :( Unfortunately there doesn't seem to be a way to get it back either...

--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.

dougwzz99

unread,
May 16, 2018, 3:45:47 PM5/16/18
to Tasker
That's not good news...it's going to make my call block task pretty much useless when the update eventually gets to my phone. Probably will affect the 3rd party blocker apps as well.

I wonder if this is deliberate on the part of Google, or if it's just a bug?

William Pyles

unread,
May 16, 2018, 4:00:13 PM5/16/18
to tas...@googlegroups.com
Yep, I was checking other apps and the comments are similar. I did also notice that Google has put a Spam blocking feature in their Phone app, under Settings and then Caller ID and SPAM. Blocked one call so far.

I'm also considering enabling Do Not Disturb and making all my contacts Priority contacts.

Robert Ryan

unread,
May 16, 2018, 5:41:19 PM5/16/18
to tas...@googlegroups.com

I found a workaround that works on my S9. Unfortunately, it requires AutoInput and AutoTools. Basically, it answers the call and then immediately hangs up. If you have a different phone, you will need to determine the correct id for the "End Call" button.

    Profile: Block Unknown Caller (37)
        Event: Phone Ringing
        Caller: !C:ANY
       
    Enter: Anon (38)
    A1: AutoTools Connectivity
        Take Phone Call: true
        Timeout (Seconds): 120
       
    A2: AutoInput Action
        Type: Id
        Value: com.samsung.android.incallui:id/end_call_button
        Action : Click
        Timeout (Seconds): 20

Robert Ryan

unread,
May 17, 2018, 9:11:51 AM5/17/18
to tas...@googlegroups.com

Does this affect all phones that receive the 8.1 update or just Pixel phones?

João Dias

unread,
May 17, 2018, 9:20:13 AM5/17/18
to tas...@googlegroups.com
I have no idea unfortunately :(

On Thu, May 17, 2018 at 2:11 PM Robert Ryan <rbr...@gmail.com> wrote:

Does this affect all phones that receive the 8.1 update or just Pixel phones?

--

Dan Broberg

unread,
May 20, 2018, 10:52:18 AM5/20/18
to Tasker
This is annoying. I haven't been able to figure out a workaround that's equivalent to what I was doing before with my Pixel XL, which was to send the call to voicemail if the call was not from someone in my contacts (incoming call !C:ANY -> end call).

What I ended up doing is turning on do not disturb when a call comes in from someone not in contacts. It's not ideal, but it's better than being interrupted by unknown callers.

Profiles:
Phone Ringing !C:ANY -> Action: Variable set RINGINGMUTE to 1
Phone Idle -> Action: Variable clear RINGINGMUTE 
Phone Offhook -> Action: Variable clear RINGINGMUTE

Is Variable Value %RINGINGMUTE set ? -> Mute Ringer
                                     <- (on exit of state) Restore Ringer

Mute Ringer action:
1) Variable set %DNDPREV to %INTERRUPT
2) set Do Not Disturb Mode none

Restore Ringer action:
1) set Do Not Disturb mode All if %DNDPREV ~ all
2) set Do Not Disturb mode Priority if %DNDPREV ~ priority
3) set Do Not Disturb mode Alarms if %DNDPREV ~ alarms

Tumi

unread,
Jun 26, 2018, 9:31:52 AM6/26/18
to Tasker
Can I ask if it would be possible to make Tasker a system app. Would that make any difference with these call permissions?

I ended up buying a call blocker app and having Tasker is exactly the reason to limit the number of apps I use. If there wasn't for Tasker I would end up having at least 10+ app for what I use Tasker for. Just expressing my thanks for this amazing app and congratz for taking over the development Joao. You do an amazing job.

João Dias

unread,
Jun 26, 2018, 9:40:40 AM6/26/18
to tas...@googlegroups.com
Yes, you can make Tasker a system app :) 

To make Tasker a system app:
- Make a a backup of your Tasker setup
- Copy "/data/app/net.dinglisch.android.taskerm" folder to "/system/priv-app"
- Uninstall Tasker and reboot
- After the reboot Tasker should be installed as a System app.
- Restore Tasker data

Tumi

unread,
Jun 26, 2018, 10:48:04 AM6/26/18
to Tasker
Well I was hoping it would permit the end call function because I read somewhere that only system apps have that access but it didn't work. That's what I meant to do but oh well I got used to being disappointed in Google so all is well. ;-)
Thanks for help.

ktmom

unread,
Jun 30, 2018, 2:51:21 PM6/30/18
to Tasker
As far as whether it's just pixel phones, I have an N6 running 8.1 custom ROM. It was fine until an update about 6 weeks ago and now end call doesn't work for me either.

João Dias

unread,
Jul 2, 2018, 9:42:07 AM7/2/18
to tas...@googlegroups.com
Yes, it's an issue with a security update...

Greg Spath

unread,
Jul 2, 2018, 7:43:29 PM7/2/18
to Tasker
This has been driving me nuts.  It has affected my pebble watch as well.

Instead of 'End Call', running a shell command as root seems to work:  'input keyevent 6'

I would think it should work without root as well, but I haven't had a chance to test.

João Dias

unread,
Jul 3, 2018, 5:17:43 AM7/3/18
to tas...@googlegroups.com
Instead of 'End Call', running a shell command as root seems to work:  'input keyevent 6'

I would think it should work without root as well, but I haven't had a chance to test.


I tried it and it didn't work without root for me unfortunately... 

Tumi

unread,
Jul 3, 2018, 9:43:58 AM7/3/18
to Tasker
Thanks for this man. It's a good workaround for me. I must use root though.

p.s. my Pebble 2 is working fine. ;)

João Dias

unread,
Jul 3, 2018, 10:09:46 AM7/3/18
to tas...@googlegroups.com
Great :)

baudi

unread,
Jul 9, 2018, 5:28:38 PM7/9/18
to Tasker
thanks for this. As you say it's not ideal, but it works well enough.

João Dias

unread,
Jul 13, 2018, 1:28:32 PM7/13/18
to tas...@googlegroups.com
Ok, on the next release if the user has root it'll use the input keyevent 6  shell command to do it :) Thanks again.

dougwzz99

unread,
Jul 15, 2018, 4:08:37 PM7/15/18
to Tasker
Just for info to help anyone else contructing a phone block task, if I want to just hang up on a call without sending it to voicemail I'm now using Take Call, Wait 0.5 secs, then End Call. For calls that I want to send straight to voicemail I just End Call.

Works great on Android 8.0. Not sure what I'll do when I get the 8.1 update that reportedly nobbles the End Call action but I'll cross that bridge when I have to :-) 

Robert Ryan

unread,
Jul 15, 2018, 4:43:59 PM7/15/18
to tas...@googlegroups.com
If your End Call is broken and you don't have root, you can use AutoInput. 

To reject the call without it going to voicemail, use Take Call and then click the end call button. 

To reject the call and send it to voicemail, wait until the incoming call screen comes up and the click reject call. 

On my Samsung I had to go into the phone accessibility settings and activate Single tap mode, so that I could just click on reject call instead of having to swipe. 

I've tested both scenarios on my Galaxy S9. 

--

dougwzz99

unread,
Jul 16, 2018, 11:30:19 AM7/16/18
to Tasker
Thanks for that. If and when I get the 8.1 update and if it breaks the End Call action I'll definitely be trying the AutoInput approach. 

Rat Fink

unread,
Jan 16, 2019, 4:10:48 AM1/16/19
to Tasker
Hi all,

Im new to tasker and I am in need of an example as decribed here.

Basically I need all my blocked calls and any unidentified caller ids to simply be hung up on and no ability to leave voicemails...

I run my business from my phone and need voicemail for my customers...

If someone might provide a step by step example as I am trying to get my head around tasker and get up to speed...

Thanks in advance

Reply all
Reply to author
Forward
0 new messages