What I'm trying to do is to screen a certain number at night. I have a tasker profile which does that and works:
Profile: Divert XXX To Voicemail (11-7)
Settings: Restore: no
Time: From 10:30PM Till 7:30AM
Event: Call Screened [ Output Variables:* Caller:*number to block* ]
Enter Task: BlockCall
A1: Call Screening [
Reject: On ]
That works well, but the caller can leave a voicemail, and I want to prevent them doing this.
I read some posts which recommended accepting the call and then ending it. This is what I have tried:
Profile: Divert To Voicemail From XXXXX Settings: Restore: no
Event: Call Screened [ Output Variables:* Caller:*numbertoscreen* ]
Enter Task: BlockCallNovoicemail
A1: Take Call
A2: End Call [ ]
but the call comes through as normal. The Run Log says:
20211107 11.10.18 T Running ID7 BlockCallNovoicemail
20211107 11.10.18 A OK ID7.1 BlockCallNovoicemail.Take Call
20211107 11.10.18 A OK ID7.2 BlockCallNovoicemail.End Call
20211107 11.10.19 T ExitOK ID7 BlockCallNovoicemail
20211107 11.10.19 E Stop ID0:0.0 TaskService
Note that at some stage it said I needed to run some adb commands to get end call up and running on this phone (its new - I was running tasker on an Android 9 until last week) - I started to follow the tasker instructions and got as far as the adb tcpip 5555, but no further, and now I no longer get prompted about the End Call issue, so I'm not sure if that is one of the issues here.
I may be approaching this from the wrong end as well - perhaps there is a way to use the Call Screening stuff to block a call and prevent it going to voicemail ?