[asterisk-bugs] [Asterisk 0016983]: alarm state not properly maintained on analog channels
Asterisk Bug Tracker
noreply at bugs.digium.com
Fri Sep 17 09:56:07 CDT 2010
The following issue has been UPDATED.
======================================================================
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-17 09:56 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
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2010-09-17 09:56 lmadsen Target Version => 1.6.2.15
2010-09-17 09:56 lmadsen Description Updated
======================================================================
More information about the asterisk-bugs
mailing list