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 globalHandler proxy during SDK initialization or set the proxy on the target page.
Parameter Description
Parameter |
Type |
Description |
---|---|---|
callInfo |
Call information. |
Parameter |
Type |
Description |
---|---|---|
myInfo |
Information about the local end. |
|
peerInfo |
Information about the peer end. |
|
startTime |
NSTimeInterval |
Start time. |
endTime |
NSTimeInterval |
End time. |
callMediaType |
Call type. |
|
callDirectionType |
Whether the call is an incoming call or outgoing call. |
|
callResult |
Call end mode. |
|
isHangUpFirst |
BOOL |
YES: The call is hung up proactively. NO: The call is not hung up proactively. |
isPeerBusy |
BOOL |
The called party is busy. |
Parameter |
Type |
Description |
---|---|---|
peerName |
NSString * |
Name. |
peerNumber |
NSString * |
Number. SIP number allocated to the account, for example, +99111244216210249. |
peerContactsId |
NSString * |
User UUID. |
account |
NSString * |
Account. |
thirdUserId |
NSString * |
Third-party account in the app ID login scenario. |
Enumerated Value |
Description |
---|---|
HWMCallMediaTypeAudio |
Voice call. |
HWMCallMediaTypeVideo |
Video call. |
Enumerated Value |
Description |
---|---|
HWMCallDirectionTypeComing |
Incoming call. |
HWMCallDirectionTypeOut |
Outgoing call. |
Enumerated Value |
Description |
---|---|
HWMCallEndResultFailed |
The call fails. |
HWMCallEndResultConnectedCallerHangUp |
The calling party hangs up the call (the call is connected). |
HWMCallEndResultConnectedCalleeHangUp |
The called party hangs up the call (the call is connected). |
HWMCallEndResultCallerHangUp |
The calling party hangs up the call (the call is not connected). |
HWMCallEndResultCalleeHangUp |
The called party hangs up the call (the call is not connected). |
HWMCallEndResultCalleeBusy |
The called party is busy (the call is not connected). |
HWMCallEndResultCalleeAnswerTimeOut |
The called party does not answer the call within the specified period (the call is not connected). |
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