Displaying 1 result from an estimated 1 matches for "sm_agi_breaker_max_calls".
2015 Mar 04
0
Failsafe AGI using AEL
...uot;.
The breaker causes this script to skip running the primary AGI on and only run the failsafe AGI until the max calls or max seconds.
Once max calls or max seconds elapse the breaker is reset on the 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...