Twilio status_callback_event setting, not working for me, Python 2.7 -


running code below. calls number , sends completed status callback url, not sent status updates before that. checked logs , there 1 call api made, completed status.

any idea why wouldn't work? documentation says these valid status values: https://www.twilio.com/docs/api/twiml/twilio_request#request-parameters-call-status

also on possibly related note, setting status_callback_method "get" doesn't seem work either.

relevant code:

client.calls.create(to=phone_number,                     from_=twilio_phone_number,                     url=url,                     method="get",                     status_callback=status_callback_url + call_uid,                     status_callback_method="post",                     status_callback_event=["queued", "ringing", "in-progress", "completed", "busy", "failed", "no-answer", "canceled"]                     ) 

i used these callback events defined here: https://www.twilio.com/docs/api/rest/making-calls#status-callback-event-parameter

status_callback_event=["queued", "initiated", "ringing", "answered", "completed"] 

unfortunately neither list works me, notifies me of completed status

the python library uses rest api whereas page have referenced parameters sent twilio server when receive incoming call.

the call events different, , there no need append call_uid callback url. twilio send rest of request.

documentation should on right track here


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -