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); }