summaryrefslogtreecommitdiff
path: root/channels/misdn/isdn_lib.h
diff options
context:
space:
mode:
authorChristian Richter <christian.richter@beronet.com>2008-06-02 08:46:23 +0000
committerChristian Richter <christian.richter@beronet.com>2008-06-02 08:46:23 +0000
commitc47a3f89eb5980fda77b3b07cba6d59b42ec001b (patch)
treec45046413b7ed54fdff55e1ac6fdc831cedbd45a /channels/misdn/isdn_lib.h
parentea3c47e7dfaad58bc80f76757dd17dc934b1be6d (diff)
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
Diffstat (limited to 'channels/misdn/isdn_lib.h')
-rw-r--r--channels/misdn/isdn_lib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/misdn/isdn_lib.h b/channels/misdn/isdn_lib.h
index 8e2154d65..3ea5385d0 100644
--- a/channels/misdn/isdn_lib.h
+++ b/channels/misdn/isdn_lib.h
@@ -236,6 +236,7 @@ struct misdn_bchannel {
int channel_preselected;
int in_use;
+ struct timeval last_used;
int cw;
int addr;