Updated on 2023-03-23 GMT+08:00

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

  1. Set the globalHandler proxy during SDK initialization or set the proxy on the target page.

Parameter Description

Table 1 Parameter description

Parameter

Type

Description

callInfo

HWMCallRecordInfo *

Call information.

Table 2 HWMCallRecordInfo parameters

Parameter

Type

Description

myInfo

HWMPeerInfo *

Information about the local end.

peerInfo

HWMPeerInfo *

Information about the peer end.

startTime

NSTimeInterval

Start time.

endTime

NSTimeInterval

End time.

callMediaType

HWMCallMediaType

Call type.

callDirectionType

HWMCallDirectionType

Whether the call is an incoming call or outgoing call.

callResult

HWMCallEndResult

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.

Table 3 HWMPeerInfo parameters

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.

Table 4 Enumerated values of HWMCallMediaType

Enumerated Value

Description

HWMCallMediaTypeAudio

Voice call.

HWMCallMediaTypeVideo

Video call.

Table 5 Enumerated values of HWMCallDirectionType

Enumerated Value

Description

HWMCallDirectionTypeComing

Incoming call.

HWMCallDirectionTypeOut

Outgoing call.

Table 6 Enumerated values of HWMCallEndResult

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).