From a8057c691719f7ca42621ed42b6209a2af67fd18 Mon Sep 17 00:00:00 2001 From: Super User Date: Wed, 19 Sep 2007 17:56:13 +0200 Subject: [PATCH] run out of channel bug fix --- README | 3 ++- mISDN.cpp | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README b/README index 804ab37..90b0ffb 100644 --- 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. -- diff --git a/mISDN.cpp b/mISDN.cpp index bdc1780..5129519 100644 --- 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; -- 2.13.6