run out of channel bug fix
authorSuper User <root@isdn.jolly.ten>
Wed, 19 Sep 2007 15:56:13 +0000 (17:56 +0200)
committerSuper User <root@isdn.jolly.ten>
Wed, 19 Sep 2007 15:56:13 +0000 (17:56 +0200)
README
mISDN.cpp

diff --git a/README b/README
index 804ab37..90b0ffb 100644 (file)
--- a/README
+++ b/README
@@ -368,5 +368,6 @@ Changes in Version 0.2
 
 Lates changes
 - Added join/release jingle options for partylines
+- Fixed bug that did not release reserved channels, so interface run out of
+  channels.
 
-- 
index bdc1780..5129519 100644 (file)
--- a/mISDN.cpp
+++ b/mISDN.cpp
@@ -1173,15 +1173,14 @@ seize:
  */
 void PmISDN::drop_bchannel(void)
 {
-       if (p_m_b_index < 0)
-               return;
-
        /* unreserve channel */
        if (p_m_b_reserve)
                p_m_mISDNport->b_reserved--;
        p_m_b_reserve = 0;
 
        /* if not in use */
+       if (p_m_b_index < 0)
+               return;
        if (!p_m_b_channel)
                return;