@exotel-npm-dev/webrtc-client-sdk 3.0.3 → 3.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Changelog CHANGED
@@ -1,5 +1,11 @@
1
1
  Change Log
2
2
 
3
+ ## v3.0.5 16 December, 2025
4
+ -[VST-1292] commenting fetchpublicip in initwebrtc as its causing race condition
5
+
6
+ ## v3.0.4 16 September, 2025
7
+ -[VST-1093] Enabled support for noise suppression
8
+
3
9
  ## v3.0.3 15 September, 2025
4
10
  -[VST-1063] granular control over different audio streams, added static registerLogger method for logger callback registration
5
11
 
package/dist/exotelsdk.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * WebRTC CLient SIP version 3.0.3
3
+ * WebRTC CLient SIP version 3.0.5
4
4
  *
5
5
  */
6
6
  (function webpackUniversalModuleDefinition(root, factory) {
@@ -21000,6 +21000,7 @@ class SIPJSPhone {
21000
21000
  this.register_flag = false;
21001
21001
  this.enableAutoAudioDeviceChangeHandling = false;
21002
21002
  this.addPreferredCodec = this.addPreferredCodec.bind(this);
21003
+ this.enableNoiseSuppression = false;
21003
21004
 
21004
21005
  this.ringtone = ringtone;
21005
21006
  this.beeptone = beeptone;
@@ -21020,6 +21021,11 @@ class SIPJSPhone {
21020
21021
  return true;
21021
21022
  }
21022
21023
 
21024
+ setNoiseSuppression(enabled) {
21025
+ logger.log(`sipjsphone: setNoiseSuppression: ${enabled}`);
21026
+ this.enableNoiseSuppression = enabled;
21027
+ }
21028
+
21023
21029
  getCallAudioOutputVolume() {
21024
21030
  logger.log(`sipjsphone: getCallAudioOutputVolume`);
21025
21031
  return this.callAudioOutputVolume;
@@ -21550,12 +21556,14 @@ class SIPJSPhone {
21550
21556
  allowLegacyNotifications: true,
21551
21557
  logConnector: this.sipPhoneLogger.bind(this),
21552
21558
  logLevel: "log",
21553
- sessionDescriptionHandlerFactoryOptions: {
21554
- constraints: {
21555
- audio: true,
21556
- video: false
21557
- }
21558
- },
21559
+ sessionDescriptionHandlerFactoryOptions: {
21560
+ constraints: {
21561
+ audio:{
21562
+ noiseSuppression: this.enableNoiseSuppression
21563
+ },
21564
+ video: false
21565
+ }
21566
+ },
21559
21567
  delegate: {
21560
21568
  onInvite: (incomingSession) => {
21561
21569
  logger.log("onInvite called");
@@ -22193,8 +22201,14 @@ destroySocketConnection() {
22193
22201
  if (_audioDeviceManager_js__WEBPACK_IMPORTED_MODULE_0__.audioDeviceManager.currentAudioInputDeviceId != "default") {
22194
22202
  newSess.accept({
22195
22203
  sessionDescriptionHandlerOptions: {
22196
- constraints: { audio: { deviceId: _audioDeviceManager_js__WEBPACK_IMPORTED_MODULE_0__.audioDeviceManager.currentAudioInputDeviceId }, video: false }
22197
- },
22204
+ constraints: {
22205
+ audio: {
22206
+ deviceId: _audioDeviceManager_js__WEBPACK_IMPORTED_MODULE_0__.audioDeviceManager.currentAudioInputDeviceId,
22207
+ noiseSuppression: this.enableNoiseSuppression
22208
+ },
22209
+ video: false
22210
+ }
22211
+ },
22198
22212
  sessionDescriptionHandlerModifiers: [this.addPreferredCodec]
22199
22213
  }).catch((e) => {
22200
22214
  this.onUserSessionAcceptFailed(e);
@@ -22202,6 +22216,14 @@ destroySocketConnection() {
22202
22216
  } else {
22203
22217
 
22204
22218
  newSess.accept({
22219
+ sessionDescriptionHandlerOptions: {
22220
+ constraints: {
22221
+ audio: {
22222
+ noiseSuppression: this.enableNoiseSuppression
22223
+ },
22224
+ video: false
22225
+ }
22226
+ },
22205
22227
  sessionDescriptionHandlerModifiers: [this.addPreferredCodec]
22206
22228
  }).catch((e) => {
22207
22229
  this.onUserSessionAcceptFailed(e);
@@ -22918,6 +22940,11 @@ class WebrtcSIPPhone {
22918
22940
  logger.log("webrtcSIPPhone: getCallAudioOutputVolume");
22919
22941
  return this.phone.getCallAudioOutputVolume();
22920
22942
  }
22943
+
22944
+ setNoiseSuppression(enabled = false) {
22945
+ logger.log("webrtcSIPPhone: setNoiseSuppression: ", enabled);
22946
+ this.phone.setNoiseSuppression(enabled);
22947
+ }
22921
22948
  }
22922
22949
 
22923
22950
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (WebrtcSIPPhone);
@@ -24938,7 +24965,7 @@ class ExotelWebClient {
24938
24965
  this.setEventListener(this.eventListener);
24939
24966
 
24940
24967
  // Wait for public IP before registering
24941
- await fetchPublicIP(this.sipAccountInfo);
24968
+ // await fetchPublicIP(this.sipAccountInfo);
24942
24969
 
24943
24970
  // Create phone instance if it wasn't created in constructor
24944
24971
  if (!this.phone) {
@@ -25242,6 +25269,10 @@ class ExotelWebClient {
25242
25269
  logger.log(`ExWebClient: getCallAudioOutputVolume: Entry`);
25243
25270
  return this.webrtcSIPPhone.getCallAudioOutputVolume();
25244
25271
  }
25272
+ setNoiseSuppression(enabled = false) {
25273
+ logger.log(`ExWebClient: setNoiseSuppression: ${enabled}`);
25274
+ this.webrtcSIPPhone.setNoiseSuppression(enabled);
25275
+ }
25245
25276
  }
25246
25277
  logger.registerLoggerCallback((type, message, args) => {
25247
25278
  _api_LogManager_js__WEBPACK_IMPORTED_MODULE_10__["default"].onLog(type, message, args);