mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
fixed a bug which caused chan_misdn to try to allocate 2 times the same channel on high load, which then caused instability of mISDN. removed a useless function from isdn_lib.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@46350 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1219,6 +1219,7 @@ char EVENT_PORT_ALARM_INFO[] = "ALARM";
|
||||
char EVENT_BCHAN_DATA_INFO[] = "BCHAN_DATA";
|
||||
char EVENT_BCHAN_ACTIVATED_INFO[] = "BCHAN_ACTIVATED";
|
||||
char EVENT_TONE_GENERATE_INFO[] = "TONE_GENERATE";
|
||||
char EVENT_BCHAN_ERROR_INFO[] = "BCHAN_ERROR";
|
||||
|
||||
char * isdn_get_info(struct isdn_msg msgs[], enum event_e event, int nt)
|
||||
{
|
||||
@@ -1234,6 +1235,7 @@ char * isdn_get_info(struct isdn_msg msgs[], enum event_e event, int nt)
|
||||
if (event == EVENT_BCHAN_ACTIVATED) return EVENT_BCHAN_ACTIVATED_INFO;
|
||||
if (event == EVENT_TONE_GENERATE) return EVENT_TONE_GENERATE_INFO;
|
||||
if (event == EVENT_PORT_ALARM) return EVENT_PORT_ALARM_INFO;
|
||||
if (event == EVENT_BCHAN_ERROR) return EVENT_BCHAN_ERROR_INFO;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user