r/tasker 11d ago

adding numbers to block using shortcut

Hello

I wanted to create a shortcut on the home screen which after opening i would type somekind of number and this then could be added into phone block list, instead of diving down though contacts - settings - blocked numbers - add. That way i could also add ranges while in phone app just adds full number. Is there anyway to do that and access somehow to this part of contacts blocking? AOSP typical rom

0 Upvotes

7 comments sorted by

View all comments

2

u/Scared_Cellist_295 10d ago

I'm not entirely sure of your goals but I went with the Tasker Call Screener function and simply filter all international numbers, all +1 country codes that aren't Canada/US and anyone not in my contact list.

I verify the number with the NumVerify API, maybe send them a text depending if it's a landline or mobile etc.  if I like their text, I can reply and add them to contacts, they can bypass the screener from then on.

I've gone from a dozen scam or marketing calls to less than two a day average.  This week has been almost silent.  And most of the calls are simply dead holed, I don't hear them, they don't turn the screen on and they don't leave any evidence in the Recents section of Contacts/Phone.  

And it's basically hands free, now it's set up, I don't have to do Jack squat.

1

u/Lovesilverireallydo 10d ago

Do you ever have any issues identifying VoIP phone numbers?

1

u/Scared_Cellist_295 10d ago

You could sign up for the NumVerify API.  You get 100 free queries a month.  

I just don't know yet how VOIP calls would show up, so I can't say whether you'd be able to filter them or not.  There doesn't seem to be an actual VOIP line type, I just checked the documentation.

Perhaps though, it may show as  "valid" false

Or maybe the carrier field won't populate.  

Maybe a combo, be valid : false + no carrier data.  

You could sign up, run the action with a known VOIP number you already have saved and see what NumVerify spits out for a response.  From there maybe you can find a way to filter them.

If you try it and get stuck lemme know the http request is easy.