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
virtual void OnCallRecordInfo(const HwmCallRecordInfo *callRecordInfo) {};

Precautions

None

Parameter Description

Table 1 HwmCallRecordInfo parameters

Parameter

Type

Description

callInfo

HwmCallInfo

Call information. For details, see Table 1.

reason

HwmCallEndReason

Reason that the call ends.

Table 2 Enumerated values of HwmCallEndReason

Enumerated Value

Description

HWM_CALL_END_REASON_INVALID

None.

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 in another call (this 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_CALLEE_NUMBER_ERROR

The called number is incorrect (the call is not connected).

HWM_CALL_END_REASON_FAILED

Call fails.