Commit aecde6e for jssip.net

commit aecde6e342153b029e9f130a194ebffcae4e98c6
Author: José Luis Millán <jmillan@aliax.net>
Date:   Tue Dec 9 11:38:30 2025 +0100

    RTCSession: make isReadyToReOffer() public

    It already documented, plus there is no reason for not being pubic.

diff --git a/lib/RTCSession.js b/lib/RTCSession.js
index 7a1dfd6..66e3c34 100644
--- a/lib/RTCSession.js
+++ b/lib/RTCSession.js
@@ -1214,7 +1214,7 @@ module.exports = class RTCSession extends EventEmitter
       return false;
     }

-    if (!this._isReadyToReOffer())
+    if (!this.isReadyToReOffer())
     {
       return false;
     }
@@ -1270,7 +1270,7 @@ module.exports = class RTCSession extends EventEmitter
       return false;
     }

-    if (!this._isReadyToReOffer())
+    if (!this.isReadyToReOffer())
     {
       return false;
     }
@@ -1323,7 +1323,7 @@ module.exports = class RTCSession extends EventEmitter
       return false;
     }

-    if (!this._isReadyToReOffer())
+    if (!this.isReadyToReOffer())
     {
       return false;
     }
@@ -1678,11 +1678,11 @@ module.exports = class RTCSession extends EventEmitter
   /**
    * Check if RTCSession is ready for an outgoing re-INVITE or UPDATE with SDP.
    */
-  _isReadyToReOffer()
+  isReadyToReOffer()
   {
     if (!this._rtcReady)
     {
-      logger.debug('_isReadyToReOffer() | internal WebRTC status not ready');
+      logger.debug('isReadyToReOffer() | internal WebRTC status not ready');

       return false;
     }
@@ -1690,7 +1690,7 @@ module.exports = class RTCSession extends EventEmitter
     // No established yet.
     if (!this._dialog)
     {
-      logger.debug('_isReadyToReOffer() | session not established yet');
+      logger.debug('isReadyToReOffer() | session not established yet');

       return false;
     }
@@ -1699,7 +1699,7 @@ module.exports = class RTCSession extends EventEmitter
     if (this._dialog.uac_pending_reply === true ||
         this._dialog.uas_pending_reply === true)
     {
-      logger.debug('_isReadyToReOffer() | there is another INVITE/UPDATE transaction in progress');
+      logger.debug('isReadyToReOffer() | there is another INVITE/UPDATE transaction in progress');

       return false;
     }
@@ -3415,7 +3415,7 @@ module.exports = class RTCSession extends EventEmitter
       {
         if (this._status === C.STATUS_TERMINATED) { return; }

-        if (!this._isReadyToReOffer()) { return; }
+        if (!this.isReadyToReOffer()) { return; }

         logger.debug('runSessionTimer() | sending session refresh request');