您如何建议将Twilio通话记录与通话相关联?
是否有参数显示录制适用的呼叫?以下是文档:https://www.twilio.com/docs/api/twiml/record
或者有没有办法从我的应用程序传递自定义参数,例如" event_id"在下面设置录音时?
<Dial hangupOnStar="true">
<Conference record="record-from-start" eventCallbackUrl="/twilio/receive_recording_url">custom_conference_id from my app</Conference>
</Dial>
答案 0 :(得分:1)
Twilio会将记录网址及其请求传递给&#34;操作&#34; URL
<?xml version="1.0" encoding="UTF-8"?>
<!-- page located at http://example.com/voicemail_record.xml -->
<Response>
<Say>
Please leave a message at the beep.
Press the star key when finished.
</Say>
<Record
action="http://foo.edu/handleRecording.php"
method="GET"
maxLength="20"
finishOnKey="*"
/>
<Say>I did not receive a recording</Say>
</Response>
http://foo.edu/handleRecording.php将通过GET收到: