aboutsummaryrefslogtreecommitdiffstats
path: root/channels/misdn/isdn_lib.h
diff options
context:
space:
mode:
authorcrichter <crichter@f38db490-d61c-443f-a65b-d21fe96a405b>2008-06-02 08:46:23 +0000
committercrichter <crichter@f38db490-d61c-443f-a65b-d21fe96a405b>2008-06-02 08:46:23 +0000
commit81e38f6e7282660ac7777469e2a0e9fe44583572 (patch)
treec45046413b7ed54fdff55e1ac6fdc831cedbd45a /channels/misdn/isdn_lib.h
parent880538ba7bc071b3ee2e0f173f33dc721652b344 (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: http://svn.digium.com/svn/asterisk/trunk@119586 f38db490-d61c-443f-a65b-d21fe96a405b
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;