run out of channel bug fix

This commit is contained in:
Super User 2007-09-19 17:56:13 +02:00
parent ae6976b74f
commit a8057c6917
2 changed files with 4 additions and 4 deletions

3
README
View File

@ -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.
-

View File

@ -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;