Commit a5d837b for jssip.net
commit a5d837b1fd45eaa81f6912123cdc3de1f7a5f679
Author: Luan <72029952+luan-evangelista@users.noreply.github.com>
Date: Tue Dec 9 08:48:45 2025 -0300
Correction in sending DTMF via SIP INFO (#871)
Fixed DTMF sending issue
---------
Co-authored-by: José Luis Millán <jmillan@aliax.net>
diff --git a/lib/RTCSession.js b/lib/RTCSession.js
index 66e3c34..3cadaa4 100644
--- a/lib/RTCSession.js
+++ b/lib/RTCSession.js
@@ -1081,9 +1081,10 @@ module.exports = class RTCSession extends EventEmitter
return;
}
- const tone = this._tones[position];
+ // Retrieve the next tone.
+ const tone = this._tones[0];
- position += 1;
+ this._tones = this._tones.substring(1);
if (tone === ',')
{