php - Twilio - forward call after 2 rings -
is possible using twilio forwards incoming phone call phone number (assume 416-555-1234), , if phone number busy or doesn't reply after 2 or 3 rings, forwards phone number b?
the xml looks right now:
<xml version="1.0" encoding="utf-8"?> <response> <dial> <number> 416-555-1234 </number> </dial> </response>
here's 1 of places phone network gets little odd. ringing hear recording.. no synchronization or relationship else. also, starts network starts connecting call, not 1 time physical device on other end starts ringing. more apparently calling internationally (the caller) might have heard 10 rings receiver has rung 1 time or twice.
anyway, strategy doing isn't hard @ all. you're looking timeout parameter on dial verb: http://www.twilio.com/docs/api/twiml/dial#attributes-timeout
when timer expires, goes on twiml specify. default 30 seconds i've found 15-20 pretty range more responsive forward.
(disclosure: twilio employee here.)
php twilio
No comments:
Post a Comment