[asterisk-commits] rmudgett: branch 1.8 r340522 - /branches/1.8/channels/chan_dahdi.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Oct 12 15:07:37 CDT 2011
Author: rmudgett
Date: Wed Oct 12 15:07:33 2011
New Revision: 340522
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=340522
Log:
Initialize the PRI channel alarms properly on startup.
The PRI channel alarms were initialized with an inverted sense.
(closes issue ASTERISK-18710)
Reported by: Tzafrir Cohen
Modified:
branches/1.8/channels/chan_dahdi.c
Modified: branches/1.8/channels/chan_dahdi.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/channels/chan_dahdi.c?view=diff&rev=340522&r1=340521&r2=340522
==============================================================================
--- branches/1.8/channels/chan_dahdi.c (original)
+++ branches/1.8/channels/chan_dahdi.c Wed Oct 12 15:07:33 2011
@@ -12789,20 +12789,12 @@
}
}
ioctl(tmp->subs[SUB_REAL].dfd,DAHDI_SETTONEZONE,&tmp->tonezone);
-#ifdef HAVE_PRI
- memset(&si, 0, sizeof(si));
- if (ioctl(tmp->subs[SUB_REAL].dfd,DAHDI_SPANSTAT,&si) == -1) {
- ast_log(LOG_ERROR, "Unable to get span status: %s\n", strerror(errno));
- destroy_dahdi_pvt(tmp);
- return NULL;
- }
-#endif
if ((res = get_alarms(tmp)) != DAHDI_ALARM_NONE) {
/* the dchannel is down so put the channel in alarm */
switch (tmp->sig) {
#ifdef HAVE_PRI
case SIG_PRI_LIB_HANDLE_CASES:
- sig_pri_set_alarm(tmp->sig_pvt, !si.alarms);
+ sig_pri_set_alarm(tmp->sig_pvt, 1);
break;
#endif
#if defined(HAVE_SS7)
More information about the asterisk-commits
mailing list