Twilio recording_status_callback_event is not called when recording is complete

限于喜欢 提交于 2021-01-07 06:34:16

问题


I am using Twilio to record calls using RecordVerb in Python. Here is how I am using it

response.record(action='/exit/graceful?lang='+lang, timeout=5, play_beep='true',
                        recording_status_callback='/recording/callback?lang='+lang,
                        recording_status_callback_event='complete in-progress absent', finish_on_key='#')

But my recording_status_callback event is not getting triggered when the recording is complete. It is getting triggered during in-progress event but not when it is completed

Please help


回答1:


Twilio developer evangelist here.

The event you are looking for is "completed" not "complete". Try:

response.record(action='/exit/graceful?lang='+lang, timeout=5, play_beep='true',
                        recording_status_callback='/recording/callback?lang='+lang,
                        recording_status_callback_event='completed in-progress absent', finish_on_key='#')


来源:https://stackoverflow.com/questions/65256973/twilio-recording-status-callback-event-is-not-called-when-recording-is-complete

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!