Dial verb keeps dialing busy number. How can I make it stop?
I am using the <dial> verb to call a number.
When the number is "busy", Twilio continues to call the number repeatedly.
I was able to interrupt the process by pressing "*", but that isn't entirely satisfactory.
How can I tell the <dial> verb to call a number *ONCE*, and somehow return a status of "busy", and then have my application decide what to do next?
thanks in advance,
David Jones
</dial></dial>
When the number is "busy", Twilio continues to call the number repeatedly.
I was able to interrupt the process by pressing "*", but that isn't entirely satisfactory.
How can I tell the <dial> verb to call a number *ONCE*, and somehow return a status of "busy", and then have my application decide what to do next?
thanks in advance,
David Jones
</dial></dial>
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
-
Inappropriate?Hi David,
That is very strange behavior. Can you mail us your Dial code sample or call sid for us to investigate?
-john -
Inappropriate?Hi John,
I called the Twilio sandbox from my cell, and during that call, I used Dial to attempt to connect to my cell (which I knew would be busy).
I will see if I can recreate the situation and save the Call SID.
thanks,
David
I’m not sure
-
Inappropriate?Hi John,
I tried the same scenario, calling to a busy land line, and the Dial correctly detected the busy signal and returned control back to my script.
I will try again later with a busy cell phone.
-- David
I’m still not sure
-
Inappropriate?David, if you set the action handler on the Dial to resubmit back to the same script it's possible to keep dialing the same number. Make sure you are checking the DialStatus parameter to inspect the return value of the Dial before instructing Twilio to Dial the same number again.
More details can be found in the Dial docs:
http://twilio.com/dial
-Evan
Twilio.com
1 person says
this answers the question
Loading Profile...




EMPLOYEE
EMPLOYEE