Skip to content

Commit

Permalink
chore(2.2.14): updated version to 2.2.14
Browse files Browse the repository at this point in the history
  • Loading branch information
sanyamjain-plivo committed Sep 19, 2024
1 parent cea46c6 commit d982753
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable GA release changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## v2.2.14 (released@ 19-09-2024)

**Feature**
* A new event named `onCallConnected` has been introduced, which is triggered when the PSTN callee starts ringing.

## v2.2.13 (released@ 22-08-2024)

**Bug Fixes**
Expand Down
3 changes: 3 additions & 0 deletions lib/managers/incomingCall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,9 @@ const newDTMF = (evt: SessionNewDtmfEvent): void => {
*/
const newInfo = (evt: SessionNewInfoEvent): void => {
Plivo.log.info(`${LOGCAT.CALL} | Incoming 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
3 changes: 3 additions & 0 deletions lib/managers/outgoingCall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "plivo-browser-sdk",
"title": "plivo-browser-sdk",
"version": "2.2.13",
"version": "2.2.14",
"description": "This library allows you to connect with plivo's voice enviroment from browser",
"main": "./dist/plivobrowsersdk.js",
"types": "index.d.ts",
Expand Down

0 comments on commit d982753

Please sign in to comment.