2017-05-23 38 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>