[asterisk-users] Run a script at certain CLI writes

Eric "ManxPower" Wieling eric at fnords.org
Thu Aug 3 20:48:13 MST 2006


Bart Fisher wrote:
> I'm trying to detect when a T1 goes to Yellow or Red alarm.  I noticed 
> these events will be displayed on the CLI.
> What I'd like to do is cause an email to be sent when from a script on 
> these events, but somehow I would need to
> capture the CLI outputs to detect messages
> 
> Message are:
> wct4xxp: Setting yellow alarm on span 1
> wct4xxp: Clearing yellow alarm on span 1
> 
> Any clues?

Wouldn't it be easier to just look at the /proc/zap entries.  The ones 
with the current alarm state should be in cleartext.


-- 
Now accepting new clients in Birmingham, Atlanta, Huntsville, 
Chattanooga, and Montgomery.



More information about the asterisk-users mailing list