Subscribing to Call Status Notifications
Function
A notification is sent when the call status is changed.
Function Prototype
setOnCallStateChangedCB(onCallStateChanged: (callStateInfo: CallStateInfo) => void): voidsetOnCallStateChangedCB(onCallStateChanged: (callStateInfo: CallStateInfo) => void): void
Request Parameters
Parameter | Mandatory | Type | Description |
---|---|---|---|
onCallStateChanged | Y | (callStateInfo: CallStateInfo) => void | Notification sent when the call status is changed. |
Return Values
void
Notification Method Parameters
(callStateInfo: CallStateInfo) => void
Parameter | Type | Description |
---|---|---|
callStateInfo | CallStateInfo | Call status information. |
Parameter | Type | Description |
---|---|---|
state | CallState | Call status. |
Enumeration Name | Enumerated Value | Description |
---|---|---|
HWM_CALL_STATE_IDLE | 0 | Idle. |
HWM_CALL_STATE_BUSY | 1 | Busy. |
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