Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update incomingCall.ts #186

Closed
wants to merge 150 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
150 commits
Select commit Hold shift + click to select a range
4e42bdc
added STIR/SHAKEN object
krishnaplivo Dec 9, 2021
0f82635
added stirshaken object in callinfo
krishnaplivo Dec 14, 2021
cd980cc
added the initial changes for JWT
rdhek-plivo Jan 10, 2022
a3621f8
added the changes for feedback
rdhek-plivo Jan 11, 2022
09b4075
Merge pull request #108 from plivo/StirShaken_fix
eniyavan-muruganantham-plivo Jan 13, 2022
b430d67
CDSK-1163 - Changes for JWT Header
zanyg Feb 10, 2022
9cb1d20
applied header token for call invite
zanyg Feb 11, 2022
2598361
setting sub username if not present inside token
zanyg Feb 17, 2022
77b44ff
update token expiry header
zanyg Feb 18, 2022
8a4a0e3
apply x-plivo-jwt-header on invite
zanyg Feb 23, 2022
95848d4
applied access token paran for test cases
gaurav-plivo Feb 24, 2022
9a1feb8
reverting back constants
gaurav-plivo Feb 24, 2022
bfabeab
unit test cases for jwt
gaurav-plivo Mar 4, 2022
ad47241
remaining scenrios for jwt unit test
gaurav-plivo Mar 7, 2022
2cf31fd
jwt changes and test cases
gaurav-plivo Mar 23, 2022
b2a555c
update suggested changes
gaurav-plivo Mar 30, 2022
f98c5a4
update jwt verification on outgoing call
gaurav-plivo Mar 30, 2022
db08b3e
remove package.lock.json
gaurav-plivo Mar 31, 2022
e27c234
added new lock
Mar 31, 2022
3457bfb
Merge pull request #109 from plivo/CDSK-1163-JWT_TOKEN_INTEGRATION
eniyavan-muruganantham-plivo Mar 31, 2022
73b03a2
code for auto logout after token expiry
gaurav-plivo Apr 6, 2022
fdcaf7c
reverting expiry code and applying incomming call prevent if permissi…
gaurav-plivo Apr 6, 2022
b2e3b7c
incomming call prevent if permission not granted
gaurav-plivo Apr 6, 2022
26583a3
revert client.ts changes
gaurav-plivo Apr 6, 2022
eaa6037
prevent outgoing if permission not granted
gaurav-plivo Apr 7, 2022
649a024
applied permission for outbound call and revert permission for inboun…
gaurav-plivo Apr 13, 2022
fba24c6
integration test for inbound/outbound call permission
gaurav-plivo Apr 14, 2022
74a6824
Merge pull request #117 from plivo/CDSK-1163-JWT_TOKEN_INTEGRATION
eniyavan-muruganantham-plivo Apr 19, 2022
aba7cd2
show nbf and exp token error msg
gaurav-plivo Apr 22, 2022
58ad887
auto logout after token expiry
gaurav-plivo May 2, 2022
458e70d
Merge pull request #118 from plivo/CDSK-1163-JWT_TOKEN_INTEGRATION
eniyavan-muruganantham-plivo May 4, 2022
d393d2e
update status codes msg
gaurav-plivo May 4, 2022
7c96875
apply sub_authid format for plivo logged user
gaurav-plivo May 4, 2022
82019cd
set sub user if not persent
gaurav-plivo May 5, 2022
1768283
auto logout after call ring end if token expired
gaurav-plivo May 9, 2022
ff22a91
remove timer and set expiry on unregister
gaurav-plivo May 11, 2022
bfea879
remove timer and set expiry on unregister
gaurav-plivo May 11, 2022
8ffbad1
Merge pull request #121 from plivo/CDSK-1163-JWT_TOKEN_INTEGRATION
eniyavan-muruganantham-plivo May 12, 2022
cf40ff7
Merge branch 'qa_jwt' of https://github.com/plivo/Plivo-Browser-SDK-v…
gaurav-plivo May 13, 2022
6e62f00
remove sdk error status code
gaurav-plivo May 13, 2022
39ef6f3
Merge pull request #123 from plivo/CSDK-auto-logout-after-hangup
eniyavan-muruganantham-plivo May 16, 2022
36dd44c
Merge pull request #124 from plivo/REMOVE_JWT_STATUS_CODE_VALIDATION_…
eniyavan-muruganantham-plivo May 16, 2022
f7b77ad
added qa callinsights for testing
May 17, 2022
7c06d15
Merge pull request #126 from plivo/CSDK-1337-get-call-stats-key-using…
eniyavan-muruganantham-plivo May 17, 2022
bac5853
added index
May 17, 2022
4ae4f33
Merge pull request #127 from plivo/CSDK-1337-get-call-stats-key-using…
eniyavan-muruganantham-plivo May 17, 2022
0d8b74f
fix(onPermissionDenied): made changes when user tries to make an outg…
sanyamjain-plivo May 19, 2022
94ef5ba
updated constants
May 20, 2022
d0e374a
Merge pull request #128 from plivo/CSDK-1336
eniyavan-muruganantham-plivo May 24, 2022
fc1111b
fix(xCallUUID not sent): logout was happening before sending call sum…
sanyamjain-plivo May 27, 2022
807c523
fix(minor change): code refactor
sanyamjain-plivo May 27, 2022
647954b
Merge pull request #131 from plivo/CSDK-1334
eniyavan-muruganantham-plivo May 30, 2022
cae2290
fix(call-disconnection): fixed call disconnection when active call is…
sanyamjain-plivo May 31, 2022
159ec23
Merge pull request #132 from plivo/CSDK-1334
eniyavan-muruganantham-plivo May 31, 2022
29f54fe
fix(call-stats): made changes to send callStats and callSummary for a…
sanyamjain-plivo Jun 1, 2022
507f9cb
Merge pull request #133 from plivo/CSDK-1363
eniyavan-muruganantham-plivo Jun 1, 2022
41afd4c
from header added if sub field is not there in the jwt token
zeeshan-plivo Jun 1, 2022
f369e7e
Merge pull request #134 from plivo/CSDK-1352
eniyavan-muruganantham-plivo Jun 1, 2022
a4bccf9
from header added for getPreSignedS3URL if sub fiel is not there in t…
zeeshan-plivo Jun 2, 2022
c751fcb
Merge branch 'qa_jwt' of https://github.com/plivo/Plivo-Browser-SDK-v…
zeeshan-plivo Jun 2, 2022
2efe5c7
- expiry inside setTimeout expect milliseconds instead seconds
zeeshan-plivo Jun 3, 2022
badb86a
Merge pull request #135 from plivo/CSDK-1352
eniyavan-muruganantham-plivo Jun 3, 2022
bddf0e2
- timeout logic changed
zeeshan-plivo Jun 7, 2022
4d84f56
- it was blocking the re-registration
zeeshan-plivo Jun 7, 2022
c75c7ac
- do not logged out & re-login everytime you receive new token instea…
zeeshan-plivo Jun 7, 2022
a8b83c8
- implementation of RELOGIN_FAILED_INVALID_TOKEN event
zeeshan-plivo Jun 8, 2022
c602726
added rambo changes for qa
Jun 9, 2022
2aaaacf
- in case the token does not have the expiry, default 24 hours expiry…
zeeshan-plivo Jun 9, 2022
2dc6cad
Merge pull request #137 from plivo/CSDK-1335
eniyavan-muruganantham-plivo Jun 13, 2022
654e342
changed to prod url
Jun 17, 2022
01eef7c
changed to prod url
Jun 17, 2022
505d795
added call-insights url
Jun 17, 2022
5e0ae7c
- prod url changes
zeeshan-plivo Jun 17, 2022
a0bb3ae
Merge branch 'qa_jwt' of github.com:plivo/Plivo-Browser-SDK-v2 into q…
Jun 17, 2022
863741f
- removed form data & use raw data for callstate & s3 bucket api
zeeshan-plivo Jun 27, 2022
3168ff2
Merge pull request #138 from plivo/CSDK-1394
eniyavan-muruganantham-plivo Jun 29, 2022
377d732
stun server changes
zeeshan-plivo Jun 29, 2022
7835df6
fallback stun server change
zeeshan-plivo Jun 29, 2022
f5353fd
Merge pull request #1 from plivo/CSDK-1372
eniyavan-muruganantham-plivo Jun 29, 2022
556f207
fix(expiry-time): made changes to read expiry time from jwt header in…
sanyamjain-plivo Jul 5, 2022
78c8da9
Merge pull request #2 from plivo/CSDK-1406
sanyamjain-plivo Jul 5, 2022
add2a7b
fix(jwt-permission): made changes to validate the token even if the p…
sanyamjain-plivo Jul 5, 2022
cd000c1
Merge pull request #3 from plivo/CSDK-1405
sanyamjain-plivo Jul 5, 2022
4e21093
fix(audio-toggle): made changes to emit audio toggle event when user …
sanyamjain-plivo Jul 6, 2022
1ef18f1
Merge pull request #4 from plivo/CSDK-1398
sanyamjain-plivo Jul 11, 2022
3d61b36
fix(nwtwork-change): made changes to detect network change on plivo s…
sanyamjain-plivo Jul 11, 2022
bbc1312
Merge pull request #5 from plivo/CSDK-1400
sanyamjain-plivo Jul 12, 2022
b30f39c
chore(linting): removed linting errors and warnings
sanyamjain-plivo Jul 12, 2022
db12df1
Merge pull request #6 from plivo/CSDK-1424
sanyamjain-plivo Jul 12, 2022
fa92eff
fix(outgoing-call): fixed outgoing call issue after token is refreshe…
sanyamjain-plivo Jul 20, 2022
c9117d9
Merge pull request #7 from plivo/CSDK-1442
sanyamjain-plivo Jul 21, 2022
b4eef9e
Remove googDscp option
Aug 12, 2022
b35f1fd
Merge pull request #8 from plivo/googdscp_disable
sanyamjain-plivo Aug 12, 2022
0b81c3b
CSDK-1494 CALL_RINGING event implementation
Sep 6, 2022
e752114
Merge pull request #9 from plivo/CSDK-1494
zeeshan-plivo Sep 8, 2022
6591600
- send default -100 as audiolevel when there is no audio
Sep 12, 2022
d3c9aed
Merge branch 'qa_jwt' of https://github.com/plivo/Browser-SDK-Interna…
Sep 12, 2022
130cb54
Merge pull request #10 from plivo/CSDK-1501
zeeshan-plivo Sep 12, 2022
29de0ce
merged with beta
sanyamjain-plivo Sep 19, 2022
94aed67
merged with beta
sanyamjain-plivo Sep 19, 2022
4b07462
fix(test-cases): fixed the integration test cases
sanyamjain-plivo Sep 21, 2022
2b60664
Merge pull request #12 from plivo/CSDK-1509
sanyamjain-plivo Sep 21, 2022
e0d422d
Added log messages for inte cases
eniyavan-muruganantham-plivo Sep 26, 2022
5e60855
Merge branch 'qa_jwt' of github.com:plivo/Plivo-Browser-SDK-v2 into q…
eniyavan-muruganantham-plivo Sep 26, 2022
ef6547e
Deleting it for uninterrupted integration test case
zeeshan-plivo Sep 26, 2022
f271c10
Deleting it for uninterrupted integration test case
zeeshan-plivo Sep 26, 2022
0e65bb6
Deleting it for uninterrupted integration test case
zeeshan-plivo Sep 26, 2022
69aa96e
added jwt inte cases
eniyavan-muruganantham-plivo Sep 26, 2022
d5b54d2
Making it Beta ready
eniyavan-muruganantham-plivo Sep 27, 2022
366e297
Merge pull request #141 from plivo/qa_jwt
eniyavan-muruganantham-plivo Sep 27, 2022
0c3dea8
fix(port): param added to print the console logs and stun port change…
sanyamjain-plivo Oct 6, 2022
45445ea
Bug fixes (#145)
sanyamjain-plivo Jan 23, 2023
62cf966
feat(3.0.1-beta.2): incmoing dtmf, audio flags changed and refresh re…
sanyamjain-plivo May 11, 2023
438941f
feat(3.0.2-beta.0): Logs Collection
sanyamjain-plivo Jun 15, 2023
18c9d3d
fix(3.0.3-beta.0): OnConnection change time interval reduced, nimbus-…
sanyamjain-plivo Jul 27, 2023
938c36e
fix(bug-fixes): logout on request timeout, send login failure cases t…
sanyamjain-plivo Aug 9, 2023
4728904
chore(2.2.8): 2.2.8 released
sanyamjain-plivo Sep 12, 2023
cb785ea
Merge branch 'master' into beta
sanyamjain-plivo Sep 12, 2023
581511a
Getstats bug fix (#155)
sanyamjain-plivo Sep 29, 2023
c09333b
chore(changelog):updated changelod.md
sanyamjain-plivo Sep 29, 2023
2907721
fix(call-fail-message): Added remoteCancelReason under CallInfo objec…
abhishek-kumar-plivo Oct 17, 2023
a085f6a
Release:Noise reduction (#158)
abhishek-kumar-plivo Oct 26, 2023
29cf3c9
fix(2.2.10-beta.1): features and minor bug fixes
sanyamjain-plivo Dec 14, 2023
e28dc69
fix(2.2.10-beta.1): updated index.ts
sanyamjain-plivo Dec 15, 2023
b053f07
fix(reconnection): disconnect gracefully before reconnecting (#161)
sanyamjain-plivo Jan 9, 2024
68327c0
feat(2.2.10-beta.3): capture INFO for remoteAudio and send callback t…
sanyamjain-plivo Jan 12, 2024
7674588
feat(2.2.10-beta.4): bug fixes and enhancements
sanyamjain-plivo Feb 16, 2024
a257f84
feat(2.2.10-beta.5): bug-fixes and enhancements
sanyamjain-plivo Feb 23, 2024
b191167
feat(2.2.10-beta.6): released 2.2.10-beta.6
sanyamjain-plivo Mar 12, 2024
fb21a50
fix(2.2.10-beta.7): bug fixes
sanyamjain-plivo Mar 12, 2024
222fdcb
fix(onLoginFailed): Resolved a race condition that led to unexpected …
sanyamjain-plivo Mar 13, 2024
1b1a037
chore(2.2.10-beta.8): released 2.2.10-beta.8
sanyamjain-plivo Mar 20, 2024
d55b3f1
chore(2.2.10-beta.9): released 2.2.10-beta.9
sanyamjain-plivo Mar 28, 2024
eb9cbb4
refac(logs): added logs
sanyamjain-plivo Mar 28, 2024
714e4c2
fix(2.2.10-beta.10): released 2.2.10-beta.10
huzaif-plivo Apr 19, 2024
3322c91
fix(2.2.10-beta.11): released 2.2.10-beta.11
sanyamjain-plivo Apr 29, 2024
0ecfd92
chore(2.2.10): version 2.2.10
sanyamjain-plivo May 22, 2024
18ffeb8
chore(master): merged with master
sanyamjain-plivo May 22, 2024
297f757
chore(2.2.11): updated version to 2.2.11
sanyamjain-plivo Jun 7, 2024
29ef2c4
chore(merge): merged with master
sanyamjain-plivo Jun 7, 2024
35f5b9f
fix(changelog): updated changelog
sanyamjain-plivo Jun 7, 2024
4055fcb
chore(merge): merged with master
sanyamjain-plivo Jun 7, 2024
bb1c3a3
chore(2.2.11-beta.0): released version 2.2.11-beta.0
sanyamjain-plivo Jul 8, 2024
6b7fd78
refac(jenkinsfile): changed image to master
sanyamjain-plivo Jul 8, 2024
978c9e1
refac(jenkinsfile): changed image to custom image
sanyamjain-plivo Jul 8, 2024
7268d2b
chore(2.2.12-beta.0): updated version to 2.2.12-beta.0
sanyamjain-plivo Jul 8, 2024
31fd15e
fix(integration-tests): resolved integration tests issues
sanyamjain-plivo Jul 8, 2024
57bd912
fix(smoke-test): fixed the failing smoke tests
sanyamjain-plivo Jul 9, 2024
f97c269
Update incomingCall.ts
kasi-plivo Sep 19, 2024
74945a4
Update outgoingCall.ts
kasi-plivo Sep 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
159 changes: 159 additions & 0 deletions .github/workflows/smoke.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
name: Build and Test

on:
pull_request:
types: [opened, reopened, synchronize]
push:
branches:
- master
- beta

jobs:

build-ubuntu-11-14:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [11.x,14.x]

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install TypeScript 4.1.3
run: npm install [email protected] --force

- name: Install Dependencies
run: npm install --force && npm install jest --force

- name: Build
run: npm run build

- name: Run unit test cases on Ubuntu
run: npm run test:unit-jenkins
continue-on-error: true


build-ubuntu-16-18:
runs-on: ubuntu-latest
needs: build-ubuntu-11-14
strategy:
matrix:
node-version: [16.x, 18.x]

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Install TypeScript 4.1.3
run: npm install [email protected] --force

- name: Install Dependencies
run: npm install --force && npm install jest --force

- name: Build
run: npm run build

- name: Run unit test cases on Ubuntu
run: npm run test:unit-jenkins
continue-on-error: true


build-ubuntu-20-latest:
runs-on: ubuntu-latest
needs: build-ubuntu-16-18
strategy:
matrix:
node-version: [20.x, latest]

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install Dependencies
run: npm install --force && npm install jest --force

- name: Install TypeScript 4.1.3
run: npm install [email protected] --force

- name: Build
run: npm run build

- name: Run unit test cases on Ubuntu
run: npm run test:unit-jenkins
continue-on-error: true



build-macos:
runs-on: macos-latest
needs: build-ubuntu-20-latest
strategy:
matrix:
node-version: [16.x, 18.x, 20.x, latest]

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install Dependencies
run: npm install --force && npm install jest --force

- name: Install TypeScript 4.1.3
run: npm install [email protected] --force

- name: Build
run: npm run build

- name: Run unit test cases on macOS
run: npm run test:unit
continue-on-error: true


build-windows:
runs-on: windows-latest
needs: build-macos
strategy:
matrix:
node-version: [16.x, 18.x, 20.x, latest]

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install Dependencies
run: npm install --force && npm install jest --force

- name: Install TypeScript 4.1.3
run: npm install [email protected] --force

- name: Build
run: npm run build

- name: Run unit test cases on Windows
run: npm run test:unit-windows
19 changes: 18 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,27 @@ 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.12-beta.0 (released@ 08-07-2024)

**Features**
* Added support for connecting and registering the SDK independently: If the `stopAutoRegisterOnConnect` flag is set to true, the `login()` method will only connect the SDK to Plivo servers. Default is set to `false`.
* Introduced a new `register()` method, which registers the SDK when called.
* Introduced the `captureSDKCrashOnly` flag, which, when set to true, captures and syncs only SDK-related crash logs. Default is `false`.
* Introduced the `redirect(uri)` method, which redirects the call to other SDK clients when invoked.
* Added helper methods such as
* `disconnect()`: Disconnect the SDK.
* `unregister()`: Unregister the SDK
* `getCurrentSession()`: Returns current active session, If any.
* Added support to send more call-related information and statistics to the call-insights service.

**Bug fixes**
- Fixed the issue causing a mismatch between local machine time and actual time.
- Fixed issues where the speech recognition engine would enter an endless loop when mute is performed on two tabs using the same engine

## v2.2.11 (released@ 07-06-2024)

**Bug Fixes**
* Enhanced call handling functionality to support multiple executions of the call() method.
* Enhanced call handling functionality to support multiple executions of the `call()` method.


## v2.2.10 (released@ 22-05-2024)
Expand Down
10 changes: 10 additions & 0 deletions customTypes/worker-loader.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
declare module "*.worker.ts" {
// You need to change `Worker`, if you specified a different value for the `workerType` option
class WebpackWorker extends Worker {
constructor();
}

// Uncomment this if you set the `esModule` option to `false`
// export = WebpackWorker;
export default WebpackWorker;
};
Loading
Loading