Displaying 1 result from an estimated 1 matches for "hintcheck".
Did you mean:
distcheck
2009 Jun 04
2
broken pipe in perl agi
...run it from the dialplan. Here is my dialplan snippet;
[macro-stdexten]
exten => s,1,Set(__DYNAMIC_FEATURES=${FEATURES})
exten => s,n,GotoIf($[${FOLLOWME_${ARG1}} = 1]?5:3)
exten => s,n,Noop(dial $ARG1 after checking sippeer)
exten => s,n,Set(LINESTAT=Idle)
exten => s,n,AGI(hintcheck.agi|${ARG1})
exten => s,n,Wait(3)
exten => s,n,Verbose(status is ${LINESTAT})
exten => s,n,Gotoif($["${LINESTAT}" != "Idle"]?inuse)
exten => s,n,Dial(${ARG2},${RINGTIME},${DIALOPTIONS})
exten => s,n,Goto(s-${DIALSTATUS},1)
exten => s,n,Macro(stdexten-foll...