Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Twilio outbound voice call starts with delay

Tags:

twilio

voip

I have just written my Twilio app to make an outbound voice call to my phone number in Indonesia.

When I answer the voice call, there is roughly 3-5 seconds of delay before the first audio plays, be it using <Say> or using <Play> verbs.

Do you guys know why this is the case and whether there is a current workaround to reduce this long delay to a mere 1-2 seconds? Recipients will most likely hang up the phone if there is no sound at all on the other end for too long.

Thanks in advance on any insight

like image 760
user3476092 Avatar asked Mar 29 '14 15:03

user3476092


People also ask

Why is there a delay in my voice on a call?

The most common reason for delayed audio is jitter. Jitter indicates a connection issue occurred on the call. Jitter affects your call's packets of audio data transmitted to-and-from. This can result in packet loss, which can cause latency issues.

Why is Twilio so slow?

Possible causes of message delaysTwilio queuing or latency. SuperNetwork or destination mobile network delays. Destination mobile device issues.

How do I set up outbound calls on Twilio?

Make an outbound call For any Function using the built-in Twilio Client, the "Add my Twilio Credentials (ACCOUNT_SID) and (AUTH_TOKEN) to ENV" option on the Settings > Environment Variables tab must be enabled. You can use a Function to make a call from your Twilio phone number via Programmable Voice.


1 Answers

I had this same problem - my outbound call to between 7 and 9 seconds to start playing the voicefile.

The process inside twilio ( from the delays measured when you look at each call with the http response time) accounted for about 3-4 seconds.

I also had AMD (Answering Machine Detection) on ie IfMachine=Continue.

(see documentation here 1. https://www.twilio.com/help/faq/voice/can-twilio-tell-whether-a-call-was-answered-by-a-human-or-machine 2. https://www.twilio.com/docs/api/rest/answering-machine-detection)

I removed this option from the call and the call start time reduced by 3 seconds down to about 5 seconds on average.

I think this is due to the AMD feature listening to the first few seconds of the call to determine if it was in fact answered by a human or a machine.

So, turn off AMD.

like image 114
bagnap Avatar answered Oct 21 '22 16:10

bagnap