Skip to content

Commit

Permalink
Update outgoingCall.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
kasi-plivo authored Sep 19, 2024
1 parent f97c269 commit 74945a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/managers/outgoingCall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 74945a4

Please sign in to comment.