From 74945a47e5ce248191e32333f757ce2b920a967b Mon Sep 17 00:00:00 2001 From: Kasi Prasad Plivo <111332689+kasi-plivo@users.noreply.github.com> Date: Thu, 19 Sep 2024 17:01:16 +0530 Subject: [PATCH] Update outgoingCall.ts --- lib/managers/outgoingCall.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/managers/outgoingCall.ts b/lib/managers/outgoingCall.ts index 94b2322..96a5ff9 100644 --- a/lib/managers/outgoingCall.ts +++ b/lib/managers/outgoingCall.ts @@ -423,6 +423,9 @@ const newDTMF = (evt: SessionNewDtmfEvent): void => { */ const newInfo = (evt: SessionNewInfoEvent): void => { Plivo.log.info(`${LOGCAT.CALL} | Outgoing Call | ${evt.originator} INFO packet with body : ${evt.info.body}`); + if (cs._currentSession && evt.info.body === "remote-party-ringing") { + cs.emit('onCallConnected', cs._currentSession.getCallInfo(evt.originator)); + } if (evt.info.body === 'no-remote-audio') { cs.emit('remoteAudioStatus', false); }