[asterisk-users] disable dahdi pri

2012-03-15 Thread Johann Steinwendtner

Hello,

is there a way to disable a span for maintenance purpose (i.e. send yellow 
alarm) ?

What would be the correct ioctl definition ? DAHDI_MAINT seems not to be the 
right
candidate. Would DAHDI_SHUTDOWN send an alarm ?

Thanks

Hans

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] disable dahdi pri

2012-03-15 Thread Russ Meyerriecks
On Thu, Mar 15, 2012 at 05:44:53PM +0100, Johann Steinwendtner wrote:

 is there a way to disable a span for maintenance purpose (i.e. send yellow 
 alarm) ?
This could be a good feature to add to the dahdi_maint utility.

 What would be the correct ioctl definition ? DAHDI_MAINT seems not to be the 
 right
 candidate.
You could add an additional context in the DAHDI_MAINT ioctl handler of your
base card to set/unset the yellow alarm bit in the framer. For an example, see
the Yellow Alarm handler in t4_check_alarms() and the DAHDI_MAINT ioctl handler
in t4_maint() in drivers/dahdi/wct4xxp/base.c

 Would DAHDI_SHUTDOWN send an alarm ?
No. This will shutdown the entire card.

-- 
Russ Meyerriecks
Digium, Inc. | Linux Kernel Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
direct: +1 256-428-6025
Check us out at: www.digium.com  www.asterisk.org

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users