更新时间:2024-08-22 GMT+08:00
dtmf(二次拨号)
接口描述
在通话中发送二次拨号信息 。
注意事项
处于通话中才可以发送二次拨号信息。
方法定义
OpenEyeCall.prototype.dtmf = function(callid, keyTone, callbacks)
参数描述
参数名 | 类型 | 可选/必选 | 描述 |
|---|---|---|---|
callid | Number | 必选 | 呼叫ID。 |
keyTone | Number | 必选 | DTMF键值。取值范围0-16。 |
callbacks | 可选 | 回调方法。 |

回调方法的入参示例:
{
"description" : "tsdk_send_dtmf",
"result" : 0,
"rsp" : 67540
} 使用示例
function dtmf() {
global_openEye_SDK.openEyeCall.dtmf(1755709440, 12, {
response: dtmfResponse
});
}
function dtmfResponse(data) {
if (data.result == 0) {
console.info("Dtmf success. ");
} else {
console.error("Dtmf failed. The ErrorCode is " + data.result);
console.info(data);
}
} 父主题:音视频呼叫

