[asterisk-users] disable dahdi pri

Russ Meyerriecks rmeyerriecks at digium.com
Thu Mar 15 13:11:09 CDT 2012


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



More information about the asterisk-users mailing list