[asterisk-bugs] [Asterisk 0016983]: alarm state not properly maintained on analog channels
Asterisk Bug Tracker
noreply at bugs.digium.com
Mon Sep 20 18:14:43 CDT 2010
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=16983
======================================================================
Reported By: tzafrir
Assigned To: rmudgett
======================================================================
Project: Asterisk
Issue ID: 16983
Category: Channels/chan_dahdi
Reproducibility: always
Severity: major
Priority: normal
Status: assigned
Target Version: 1.6.2.15
Asterisk Version: SVN
JIRA: SWP-1048
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): trunk
SVN Revision (number only!): 249801
Request Review:
======================================================================
Date Submitted: 2010-03-08 06:54 CST
Last Modified: 2010-09-20 18:14 CDT
======================================================================
Summary: alarm state not properly maintained on analog
channels
Description:
The DAHDI_ALARM and DAHDI_NOALARM events update inalarm in the pvt_analog
rather than the one in the generic chan_dahdi one. However the generic
chan_dahdi one is used in at least two places:
1. available() - checked before calling the tech-specific available()
2. 'dahdi hsow channel NN' - the line 'InAlarm:'
After 'dahdi restart'
(Logging: verbose 4, debug 2)
morgan*CLI> dahdi show channel 19
...
InAlarm: 0
...
(Unplugging cable)
[Mar 8 14:34:53] DEBUG[2123]: chan_dahdi.c:10756 do_monitor: Monitor
doohicky got event Alarm on channel 19
[Mar 8 14:34:53] DEBUG[2123]: sig_analog.c:3257 analog_handle_init_event:
channel (19) - signaling (5) - event (ANALOG_EVENT_ALARM)
[Mar 8 14:34:53] WARNING[2123]: chan_dahdi.c:6955 handle_alarms: Detected
alarm on channel 19: Red Alarm
morgan*CLI> dahdi show channel 19
...
InAlarm: 0
...
(Plugging cable back)
[Mar 8 14:37:48] DEBUG[2123]: chan_dahdi.c:10756 do_monitor: Monitor
doohicky got event No more alarm on channel 19
[Mar 8 14:37:48] DEBUG[2123]: sig_analog.c:3257 analog_handle_init_event:
channel (19) - signaling (5) - event (ANALOG_EVENT_NOALARM)
[Mar 8 14:37:48] NOTICE[2123]: sig_analog.c:3364
analog_handle_init_event: Alarm cleared on channel 19
morgan*CLI> dahdi show channel 19
...
InAlarm: 0
...
Now let's try to call through that channel:
morgan*CLI> originate DAHDI/19/600 application Echo
[Mar 8 14:42:43] NOTICE[2119]: channel.c:4402 __ast_request_and_dial:
Unable to request channel DAHDI/18/600
[Mar 8 14:45:13] DEBUG[2119]: sig_analog.c:656 analog_available:
analog_available 19
[Mar 8 14:45:13] NOTICE[2119]: channel.c:4402 __ast_request_and_dial:
Unable to request channel DAHDI/19/600
Now let's take a different port. which has not been plugged at 'dahdi
restart' time:
morgan*CLI> dahdi show channel 18
...
InAlarm: 1
...
(Plug in)
[Mar 8 14:41:32] DEBUG[2123]: chan_dahdi.c:10756 do_monitor: Monitor
doohicky got event No more alarm on channel 18
[Mar 8 14:41:32] DEBUG[2123]: sig_analog.c:3257 analog_handle_init_event:
channel (18) - signaling (5) - event (ANALOG_EVENT_NOALARM)
[Mar 8 14:41:32] NOTICE[2123]: sig_analog.c:3364
analog_handle_init_event: Alarm cleared on channel 18
morgan*CLI> dahdi show channel 18
...
InAlarm: 1
...
Now let's try to call through that channel:
morgan*CLI> originate DAHDI/18/600 application Echo
[Mar 8 14:42:43] NOTICE[2119]: channel.c:4402 __ast_request_and_dial:
Unable to request channel DAHDI/18/600
======================================================================
----------------------------------------------------------------------
(0127158) svnbot (reporter) - 2010-09-20 18:14
https://issues.asterisk.org/view.php?id=16983#c127158
----------------------------------------------------------------------
Repository: asterisk
Revision: 287683
U branches/1.8/channels/chan_dahdi.c
------------------------------------------------------------------------
r287683 | rmudgett | 2010-09-20 18:14:43 -0500 (Mon, 20 Sep 2010) | 9
lines
The inalarm flag was not set in sig_analog struct if the port is initially
in alarm.
Fixed initial inalarm value for sig_analog ports.
Along with -r261007, this gets the inalarm flag in sync with chan_dahdi
for sig_analog ports.
(closes issue https://issues.asterisk.org/view.php?id=16983)
------------------------------------------------------------------------
http://svn.digium.com/view/asterisk?view=rev&revision=287683
Issue History
Date Modified Username Field Change
======================================================================
2010-09-20 18:14 svnbot Checkin
2010-09-20 18:14 svnbot Note Added: 0127158
======================================================================
More information about the asterisk-bugs
mailing list