Twilio voicemail - Get a call back if caller hangs up before recording starts -
question
implementing voicemail in twilio. how can call if caller hangs before recording starts?
more info
after incoming call's <dial>
times out, call url responds this:
<response> <say>please leave message.</say> <record playbeep="true" action="http://..." /> </response>
the issue seem having if caller hangs while <say>
verb executing, <record>
verb never executes , application never receives call back.
is possible receive call under circumstance? if so, how make happen?
twilio evangelist here.
one idea might separate twiml response 2 separate responses , track last step in workflow sent call was. first send say:
<response> <say>please leave message.</say> <redirect>http://example.com/record</redirect> </response>
then redirect record:
<response> <record playbeep="true" action="http://..." /> </response>
to notified when call ends, set statuscallback attribute on phone number. when twilio makes request statuscallback url, can check see last step sent user , take appropriate action.
hope helps.
Comments
Post a Comment