deRegister (Deactivation)
Interface Description
This interface is invoked to deactivate a SIP account.
Notes
- The WebSocket connection with the OpenEyeCall is set up.
- The corresponding subscriber is registered.
- You are not in a call.
Method Definition
OpenEyeCall.prototype.deRegister = function(sip_num, callbacks)
Parameter Description
Parameter |
Type |
Mandatory/Optional |
Description |
---|---|---|---|
sip_num |
String |
Mandatory |
Subscriber number. The value can contain a maximum of 255 characters. Example: 70942@example.com |
callbacks |
Mandatory |
Callback method. |
Parameter |
Type |
Mandatory/Optional |
Description |
---|---|---|---|
response |
function |
Mandatory |
Callback method of the registration result. 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_logout", "result" : 0, "rsp" : 65538 }
Examples
function deRegister() { global_openEye_SDK.OpenEyeCall.deRegister("70942@example.com", { response: deRegisterResponse }); } function deRegisterResponse(data) { if (data.result == 0) { console.info("DeRegister Success"); } else { console.error("DeRegister Failed"); } }
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