2017-05-23 39 views
0

我正在使用以下代码拨出并录制通话。Plivo获取通话录音的UUID

<Response> 
<Record action="http://foo.com/get_recording/" startOnDialAnswer="true" redirect="false" /> 
<Dial> 
    <Number>15551234567</Number> 
</Dial> 

然而,动作URL http://foo.com/get_recording/仅接收下列参数,其中不包括所述呼叫的UUID。所以我不知道呼叫记录文件属于哪个uuid。

callbackUrl Request Parameters 

以下参数发送到callbackUrl

Parameter Description 
RecordUrl Complete path to the recorded file URL. 
RecordingDuration Duration of recording in seconds. 
RecordingDurationMs Duration of recording in milliseconds. 
RecordingStartMs When the recording started (epoch time UTC) in milliseconds. 
RecordingEndMs When the recording ended (epoch time UTC) in milliseconds. 
RecordingID Recording ID of the file. 

的UUID与RECORD_ID关联的任何帮助将不胜感激。试图写作支持,但仍在等待答案。

回答

0

Plivo销售工程师在这里。

调用UUID存在于Answer URL中,它返回您的XML(记录和拨号)并且记录ID存在于Record操作和Record回调URL中。您可以使用Get Recording API将呼叫UUID链接到录音ID。

0

一个简单的把戏!

在您返回拨号XML之前,请尝试捕获您接收到的请求参数中的callUUID,并动态地为它附加记录动作URL,例如GET参数。使您的行动方法为GET

<Response> 
<Record action="http://foo.com/get_recording/?callUUID=<uuid>" startOnDialAnswer="true" redirect="false" /> 
<Dial> 
    <Number>15551234567</Number> 
</Dial>