[Home]

Summary:ASTERISK-15524: [patch] Added a config parameter to report span and/or channels alarms using AMI
Reporter:Nahuel Greco (nahuelgreco)Labels:
Date Opened:2010-01-26 15:05:52.000-0600Date Closed:2010-03-03 11:37:33.000-0600
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Channels/chan_dahdi/NewFeature
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) chan_dahdi.c.reportalarms.patch
Description:In chan_dahdi.c current version, the alarms are reported per channel using AMI. This is usually not a desired behavior, because a channel is never really alarmed, only his span. I added a new config parameter, "reportalarms", with the following possible values:

 - "channels": report each channel alarms (current behavior, default for backward compatibility).

 - "spans": report an "SpanAlarm" event when the span of any configured channel is alarmed.

 - "all": report channel and span alarms (aggregated behavior)

 - "none": do not report any alarms.

I'm attaching the patch with the changes applied to trunk rev 243328.
Comments:By: Leif Madsen (lmadsen) 2010-01-28 09:43:13.000-0600

Thank you for the submission!

By: Digium Subversion (svnbot) 2010-03-03 11:37:32.000-0600

Repository: asterisk
Revision: 250392

U   trunk/CHANGES
U   trunk/channels/chan_dahdi.c
U   trunk/configs/chan_dahdi.conf.sample

------------------------------------------------------------------------
r250392 | jpeeler | 2010-03-03 11:37:31 -0600 (Wed, 03 Mar 2010) | 15 lines

Add new config option to control AMI alarm event reporting in chan_dahdi.

New config parameter "reportalarms" added in chan_dahdi.conf which supports the
following possible values:
"channels": report each channel alarms (current behavior, default for backward compatibility)
"spans": report an "SpanAlarm" event when the span of any configured channel is alarmed
"all": report channel and span alarms (aggregated behavior)
"none": do not report any alarms

(closes issue ASTERISK-15524)
Reported by: nahuelgreco
Patches:
     chan_dahdi.c.reportalarms.patch uploaded by nahuelgreco (license 162)


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

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