[asterisk-bugs] [Asterisk 0012160]: [patch] channel alarm set when a channel is opened

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Aug 20 14:27:10 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12160 
====================================================================== 
Reported By:                tzafrir
Assigned To:                kpfleming
====================================================================== 
Project:                    Asterisk
Issue ID:                   12160
Category:                   Channels/chan_zap
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 134345 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-03-06 10:11 CST
Last Modified:              2008-08-20 14:27 CDT
====================================================================== 
Summary:                    [patch] channel alarm set when a channel is opened
Description: 
If a channel alarm is already set when a channel is opened by Asterisk,
whose responsibility is it to check for the alarms?

1. The channe l driver should detect that and re-send alarms on zt_open

2. Zaptel should  send an alarm event at channel open time. The
applicaiton opening the channel should then be able to read those events
and will have the proper information.

3. The application should read channel alarms at channel initialization
time. No need for Zaptel to send extra events.

As senseless as (1) is, it has been used in practice by the xpp d FXO
module driver. I figure you all agree with me it is not the way to go.


The behaviour with regards to span alarm seems in Asterisk seems to be
(3).

Attached are patches implementing both (2) and (3)
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0012841 Unable to get the hook status for 100XP...
====================================================================== 

---------------------------------------------------------------------- 
 (0091601) svnbot (reporter) - 2008-08-20 14:27
 http://bugs.digium.com/view.php?id=12160#c91601 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 139145

U   branches/1.4/channels/chan_dahdi.c
U   branches/1.4/configure
U   branches/1.4/configure.ac
U   branches/1.4/include/asterisk/autoconfig.h.in

------------------------------------------------------------------------
r139145 | kpfleming | 2008-08-20 14:27:08 -0500 (Wed, 20 Aug 2008) | 8
lines

Backport support for Zaptel/DAHDI channel-level alarms from trunk/1.6,
because not doing so just makes it difficult for people with channels that
are in alarm when Asterisk starts up to get them going once the alarm is
cleared

(closes issue http://bugs.digium.com/view.php?id=12160)
Reported by: tzafrir
Patches:
      asterisk-chanalarms_14.patch uploaded by tzafrir (license 46)
Tested by: tzafrir

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=139145 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-08-20 14:27 svnbot         Note Added: 0091601                          
======================================================================




More information about the asterisk-bugs mailing list