Call End Notification
Notification Description
A notification is sent when the call ends and its information is returned.
Method Definition
1
|
- (void)onCallEnded:(HWMCallRecordInfo *)callInfo; |
Precautions
- Set the HWMCallNotifyHandler proxy during SDK initialization or set the proxy on the target page.
Parameter Description
Parameter |
Type |
Description |
---|---|---|
callInfo |
HWMCallRecordInfo |
Call information. |
Parameter |
Type |
Description |
---|---|---|
callType |
HWMCallMediaType |
Call type. |
srtp |
BOOL |
Whether to encrypt the data. |
displayName |
NSString |
Name of the calling party. |
telNum |
NSString |
Calling number of the incoming call or called number of the outgoing call. |
startTime |
NSTimeInterval |
Start time of a call. |
callSuccess |
BOOL |
Whether the call is connected. |
reasonCode |
NSUInteger |
Failure cause code. |
reasonText |
NSString |
Call end reason. |
callRingBack |
BOOL |
Whether the call is a callback. |
callOut |
BOOL |
Whether the call is an outgoing call. |
duration |
NSTimeInterval |
Call duration. |
state |
HWMCallEndReason |
State corresponding to a call end or error. |
Enumerated Value |
Description |
---|---|
HWMCallMediaTypeAudio |
Voice call. |
HWMCallMediaTypeVideo |
Video call. |
Enumerated Value |
Description |
---|---|
HWM_CALL_END_REASON_INVALID |
The call is invalid. |
HWM_CALL_END_REASON_CONNECTED_HANGUP_BY_CALLER |
The calling party hangs up the call (the call is connected). |
HWM_CALL_END_REASON_CONNECTED_HANGUP_BY_CALLEE |
The called party hangs up the call (the call is connected). |
HWM_CALL_END_REASON_HANGUP_BY_CALLER |
The calling party hangs up the call (the call is not connected). |
HWM_CALL_END_REASON_HANGUP_BY_CALLEE |
The called party hangs up the call (the call is not connected). |
HWM_CALL_END_REASON_CALLEE_BUSY |
The called party is busy (the call is not connected). |
HWM_CALL_END_REASON_CALLEE_ANSWER_TIMEOUT |
The called party does not answer the call within the specified period (the call is not connected). |
HWM_CALL_END_REASON_FAILED |
The call fails. |
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