@exotel-npm-dev/webrtc-client-sdk 3.0.5 → 3.0.6
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 +10 -2
- package/dist/exotelsdk.js.map +1 -1
- package/package.json +2 -2
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.6
|
|
4
4
|
*
|
|
5
5
|
*/
|
|
6
6
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -21547,6 +21547,7 @@ class SIPJSPhone {
|
|
|
21547
21547
|
},
|
|
21548
21548
|
displayName: this.txtDisplayName,
|
|
21549
21549
|
hackWssInTransport: true,
|
|
21550
|
+
contactParams: {transport: "wss"},
|
|
21550
21551
|
stunServers: ["stun:stun.l.google.com:19302"],
|
|
21551
21552
|
hackIpInContact: true,
|
|
21552
21553
|
forceRport: true,
|
|
@@ -21559,7 +21560,7 @@ class SIPJSPhone {
|
|
|
21559
21560
|
sessionDescriptionHandlerFactoryOptions: {
|
|
21560
21561
|
constraints: {
|
|
21561
21562
|
audio:{
|
|
21562
|
-
noiseSuppression: this.enableNoiseSuppression
|
|
21563
|
+
noiseSuppression: this.enableNoiseSuppression !== undefined ? this.enableNoiseSuppression : false
|
|
21563
21564
|
},
|
|
21564
21565
|
video: false
|
|
21565
21566
|
}
|
|
@@ -22697,12 +22698,19 @@ class WebrtcSIPPhone {
|
|
|
22697
22698
|
|
|
22698
22699
|
this.webrtcSIPPhoneEventDelegate.registerDelegate(delegate);
|
|
22699
22700
|
|
|
22701
|
+
// Preserve noise suppression setting from existing phone instance if it exists
|
|
22702
|
+
const existingNoiseSuppression = this.phone?.enableNoiseSuppression;
|
|
22703
|
+
|
|
22700
22704
|
switch (engine) {
|
|
22701
22705
|
case "sipjs":
|
|
22702
22706
|
this.phone = new _sipjsphone__WEBPACK_IMPORTED_MODULE_1__["default"](
|
|
22703
22707
|
this.webrtcSIPPhoneEventDelegate,
|
|
22704
22708
|
this.username
|
|
22705
22709
|
);
|
|
22710
|
+
// Restore noise suppression setting if it was set on the previous instance
|
|
22711
|
+
if (existingNoiseSuppression) {
|
|
22712
|
+
this.phone.setNoiseSuppression(existingNoiseSuppression);
|
|
22713
|
+
}
|
|
22706
22714
|
break;
|
|
22707
22715
|
default:
|
|
22708
22716
|
logger.log("webrtcSIPPhone: Unsupported engine type:", engine);
|