@exotel-npm-dev/webrtc-client-sdk 3.0.4 → 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 +3 -0
- package/dist/exotelsdk.js +37 -10
- package/dist/exotelsdk.js.map +1 -1
- package/package.json +2 -2
- package/src/listeners/ExWebClient.js +1 -1
package/Changelog
CHANGED
package/dist/exotelsdk.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* WebRTC CLient SIP version 3.0.
|
|
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
|
-
|
|
21554
|
-
|
|
21555
|
-
|
|
21556
|
-
|
|
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
|
-
|
|
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) {
|