search for: sm_agi_status

Displaying 1 result from an estimated 1 matches for "sm_agi_status".

2015 Mar 04
0
Failsafe AGI using AEL
...SED: reset breaker after this many seconds SM_AGI_BREAKER_NOTIFY: e-mail address list */ macro sm_agi(agi,agi_failsafe) { // extract script name from primary agi for the global breaker variable name Set(LOCAL(breaker)=sm_agi_breaker-${CUT(CUT(agi,/,${FIELDQTY(agi,/)}),^,1)}); Set(SM_AGI_STATUS=); if ("${GLOBAL(${breaker})}" == "tripped") { // globally lock breaker variable to prevent race condition if (${TRYLOCK(${breaker})}) { Noop(AGI Breaker '${breaker}' is currently 'tripped' Checking elapsed time and elapsed calls...