Skip to content

Commit 4b97a9d

Browse files
committed
fix: report end call with reason
1 parent ef9cac5 commit 4b97a9d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

example/src/callservice/CallService.ios.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import RNCallKeep, {
44
AudioSessionCategoryOption,
55
AudioSessionMode,
6+
CONSTANTS as CK_CONSTANTS,
67
} from 'react-native-callkeep';
78

89
import { RTCAudioSession } from '@livekit/react-native-webrtc';
@@ -25,6 +26,10 @@ export async function startCallService() {
2526

2627
export async function stopCallService() {
2728
RNCallKeep.endCall(uuid);
29+
RNCallKeep.reportEndCallWithUUID(
30+
uuid,
31+
CK_CONSTANTS.END_CALL_REASONS.REMOTE_ENDED
32+
);
2833
}
2934

3035
export function setupCallService() {

0 commit comments

Comments
 (0)