Displaying 1 result from an estimated 1 matches for "agi_failsaf".
Did you mean:
agi_failsafe
2015 Mar 04
0
Failsafe AGI using AEL
...e next call and everything goes back to normal.
GLOBAL VARIABLES
SM_NODE: system hostname
SM_AGI_BREAKER_MAX_CALLS: reset breaker after this many calls
SM_AGI_BREAKER_MAX_ELAPSED: 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 vari...