@exotel-npm-dev/webrtc-client-sdk 3.0.10 → 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/Makefile CHANGED
@@ -21,4 +21,4 @@ publish: build
21
21
 
22
22
 
23
23
  tar: build
24
- tar -czvf exotelsdk-$(VERSION).tar.gz dist/
24
+ tar -czvf exotelsdk-$(VERSION).tar.gz dist/
package/dist/exotelsdk.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * WebRTC CLient SIP version 3.0.10
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
- // Update the sipSendDTMF method (around line 389) to use Web Audio:
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