Plivo - 如何在 web sdk 中获取 call_uuid
Plivo - How to get call_uuid in web sdk
请解释一下如何在其中获取调用 uuid。
当我接通电话时。
https://www.plivo.com/docs/getting-started/web-sdk/make-outgoing-calls/
// Make outgoing calls
function call() {
if ($('#make_call').text() == "Call") {
// The destination phone number to connect the call to
var dest = $("#to").val();
if (isNotEmpty(dest)) {
$('#status_txt').text('Calling..');
// Connect the call
Plivo.conn.call(dest);
$('#make_call').text('End');
}
else{
$('#status_txt').text('Invalid Destination');
}
}
else if($('#make_call').text() == "End") {
$('#status_txt').text('Ending..');
// Hang up the call
Plivo.conn.hangup();
$('#make_call').text('Call');
$('#status_txt').text('Ready');
}
}
WEB-SDK 不提供 UUID,但它会调用您在端点应用程序中指定的 Answer URL
。从那里您可以将呼叫重定向到它应该去的地方,并使用提供的 UUID 开始录音和播放语音消息等...
WEB-SDK不提供调用uuid
set callback url in xml and get both call uuid (DialALegUUID,DialBLegUUID)
https://www.plivo.com/docs/xml/dial/#callbackurl-request-parameters
请解释一下如何在其中获取调用 uuid。 当我接通电话时。 https://www.plivo.com/docs/getting-started/web-sdk/make-outgoing-calls/
// Make outgoing calls
function call() {
if ($('#make_call').text() == "Call") {
// The destination phone number to connect the call to
var dest = $("#to").val();
if (isNotEmpty(dest)) {
$('#status_txt').text('Calling..');
// Connect the call
Plivo.conn.call(dest);
$('#make_call').text('End');
}
else{
$('#status_txt').text('Invalid Destination');
}
}
else if($('#make_call').text() == "End") {
$('#status_txt').text('Ending..');
// Hang up the call
Plivo.conn.hangup();
$('#make_call').text('Call');
$('#status_txt').text('Ready');
}
}
WEB-SDK 不提供 UUID,但它会调用您在端点应用程序中指定的 Answer URL
。从那里您可以将呼叫重定向到它应该去的地方,并使用提供的 UUID 开始录音和播放语音消息等...
WEB-SDK不提供调用uuid
set callback url in xml and get both call uuid (DialALegUUID,DialBLegUUID)
https://www.plivo.com/docs/xml/dial/#callbackurl-request-parameters