Merged revisions 119585 via svnmerge from
authorChristian Richter <christian.richter@beronet.com>
Mon, 2 Jun 2008 08:46:23 +0000 (08:46 +0000)
committerChristian Richter <christian.richter@beronet.com>
Mon, 2 Jun 2008 08:46:23 +0000 (08:46 +0000)
commitc47a3f89eb5980fda77b3b07cba6d59b42ec001b
treec45046413b7ed54fdff55e1ac6fdc831cedbd45a
parentea3c47e7dfaad58bc80f76757dd17dc934b1be6d
Merged revisions 119585 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r119585 | crichter | 2008-06-02 10:35:28 +0200 (Mo, 02 Jun 2008) | 1 line

Added counter for unhandled_bmsg Print, this prevents the logs to be flooded to fast and save CPU in this error scenario. Added 'last_used' element to bc structure, when a bchannel changes from used to free this exact time will be marked in last_used. When a new channel is requested the find_free_chan function will check if the new empty channel was used within the last second, if yes it will search for the next channel, if no it will return this channel. This simple mechanism has prooven to prevent race conditions where the NT and TE tried to allocate the exact same channel at the same time (RELEASE cause: 44).
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@119586 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/misdn/isdn_lib.c
channels/misdn/isdn_lib.h