DTMF (Two-Stage Dialing)
Interface Description
This interface is invoked to send two-stage dialing information during a call.
Notes
The two-stage dialing information can be sent only during a call.
Method Definition
OpenEyeCall.prototype.dtmf = function(callid, keyTone, callbacks)
Parameter Description
Parameter |
Type |
Mandatory/Optional |
Description |
---|---|---|---|
callid |
Number |
Mandatory |
Call ID. |
keyTone |
Number |
Mandatory |
DTMF key value. The value ranges from 0 to 16. |
callbacks |
Optional |
Callback method. |
Parameter |
Type |
Mandatory/Optional |
Description |
---|---|---|---|
response |
function |
Mandatory |
For details about the input parameters of the callback method, see Table 3. |
Parameter |
Type |
Description |
---|---|---|
description |
String |
Description of the current request. |
result |
Number |
Query result. The value 0 indicates success and other values indicate failure. |
rsp |
Number |
Internal message ID. |
The following is an example of input parameters of the callback method:
{ "description" : "tsdk_send_dtmf", "result" : 0, "rsp" : 67540 }
Examples
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); } }
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot