Skip to content
Advertisement

Twilio with python to repeat voice call until get answered?

I can make call using twilio programmable call as my python code here

The calls sometimes result as no-answer or busy i.e. the call get rejected or not-answered.

My google search here and search on our stackoverflow site here found little helpful result so I asked here – how to repeat calling until get answered?

p.s.

I’m looking for built-in solution from twilio directly e.g. some TwiML xml tag or attribute for callUntilAnswered='true'

Advertisement

Answer

Here and here is how I have to code it manually to get the phone call auto-redial.

The main idea there is to keep pinging the api to get call status and detect busy call (ringing after 60s and no answer); redial when it is busy.

p.s.

To run in background and multiple numbers at the same time, the sample code is here

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement