DEV Community

Discussion on: Dynamic blocklist with Twilio

Collapse
 
cohan profile image
Cohan Robinson

Yup that’s exactly what prompted this.

I had a caller repeatedly ringing but leaving no message so looked into how to block numbers on Twilio, which led to the first article I link to - I fancied putting a dynamic spin on it rather than hardcode the blocked numbers :)

Collapse
 
philnash profile image
Phil Nash

Next thing is to automatically detect callers that do that often and automatically add them to the block list!

Thread Thread
 
cohan profile image
Cohan Robinson

That’s a nerd snipe comment if I’ve ever seen one! Live thoughts follow 😅

Really good idea that. If Twilio has the api for it I could hook in to the transcript to see if it’s empty

Oh wait I could just check the length of the call and if the same number has appeared multiple times with <30s call time with no voicemail or answer from me to reset the counter, flag them up

.. this will need more thought