@exotel-npm-dev/webrtc-client-sdk 3.0.9 → 3.0.11
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/Makefile +6 -0
- package/dist/exotelsdk.js +14 -2
- package/dist/exotelsdk.js.map +1 -1
- package/exotelsdk-3.0.10.tar.gz +0 -0
- package/package.json +2 -2
- package/src/api/callAPI/Call.js +1 -0
package/Changelog
CHANGED
package/Makefile
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.11
|
|
4
4
|
*
|
|
5
5
|
*/
|
|
6
6
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -21304,8 +21304,18 @@ class SIPJSPhone {
|
|
|
21304
21304
|
|
|
21305
21305
|
},
|
|
21306
21306
|
|
|
21307
|
-
//
|
|
21307
|
+
// Local sidetone: play bundled dtmf.wav, then send SIP INFO DTMF.
|
|
21308
21308
|
sipSendDTMF: (digit) => {
|
|
21309
|
+
logger.log("sipSendDTMF: digit", digit);
|
|
21310
|
+
try {
|
|
21311
|
+
if (this.ctxSip && this.ctxSip.dtmfTone) {
|
|
21312
|
+
this.ctxSip.dtmfTone.currentTime = 0;
|
|
21313
|
+
this.ctxSip.dtmfTone.play();
|
|
21314
|
+
}
|
|
21315
|
+
} catch (e) {
|
|
21316
|
+
logger.log("sipSendDTMF: local DTMF tone exception:", e);
|
|
21317
|
+
}
|
|
21318
|
+
|
|
21309
21319
|
var a = this.ctxSip.callActiveID;
|
|
21310
21320
|
if (a) {
|
|
21311
21321
|
var s = this.ctxSip.Sessions[a];
|
|
@@ -21325,6 +21335,7 @@ class SIPJSPhone {
|
|
|
21325
21335
|
};
|
|
21326
21336
|
const requestOptions = { body };
|
|
21327
21337
|
return s.info({ requestOptions }).then(() => {
|
|
21338
|
+
logger.log("sipSendDTMF: SIP INFO DTMF sent", dtmf);
|
|
21328
21339
|
return;
|
|
21329
21340
|
});
|
|
21330
21341
|
|
|
@@ -23526,6 +23537,7 @@ function Call(webrtcSIPPhone) {
|
|
|
23526
23537
|
* When call is terminated
|
|
23527
23538
|
*/
|
|
23528
23539
|
logger.log('call ended');
|
|
23540
|
+
console.trace();
|
|
23529
23541
|
webrtcSIPPhone.rejectCall();
|
|
23530
23542
|
};
|
|
23531
23543
|
this.MuteToggle = function () {
|