setAnswerWay (Setting the Answering Mode)
Interface Description
This interface is invoked to set the answering mode (automatic hang-up, automatic answering, or do-no-disturb).
Notes
The WebSocket connection with the OpenEye is set up.
Method Definition
OpenEyeCall.prototype.setAnswerWay = function(answerWay, times, callbacks)
Parameter Description
Parameter |
Type |
Mandatory/Optional |
Description |
---|---|---|---|
answerWay |
String |
Mandatory |
Answering mode. The options are 1 (automatic hang-up), 2 (automatic answering), and 4 (do-no-disturb). |
times |
Number |
Mandatory |
Interval for the answering mode to take effect. (For do-not-disturb, this parameter is invalid and optional.) |
callbacks |
Mandatory |
Callback method. |
Parameter |
Type |
Mandatory/Optional |
Description |
---|---|---|---|
response |
Function |
Mandatory |
For details about the input parameters of the callback method, see Table 3. |
{ description: "SetAnswerWay", result: 0, rsp: 67767, errMsg: "" }
Examples
function setAnswerWay(answerWay, times){ this.global_openEye_SDK.openEyeCall.setAnswerWay(answerWay, times, { response: onSetAnswerWayResponse }); } function onSetAnswerWayResponse(data){ console.log(data); if (data.result == 0) { console.info("SetAnswerWay Success"); } else { console.error("SetAnswerWay failed. The ErrorCode is " + data.result + ";errMsg:" + data.errMsg); alert("SetAnswerWay failed. The ErrorCode is " + data.result + ";errMsg:" + data.errMsg); } }
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