我的拨号方案是这样的
[dial-plan]
exten => s,1,Answer()
exten => s,n,Noop(exten = ${EXTEN}
exten => s,n,Macro(dumpvars)
exten => s,n,Macro(record-enable)
exten => s,n,AGI(success.php)
exten => i,1,Noop(REASON = ${REASON})
exten => i,n,Macro(dumpvars)
exten => i,n,AGI(faile.php)
exten => failed,1,Noop(REASON = ${REASON})
exten => failed,n,Macro(dumpvars)
exten => failed,n,AGI(faile.php)
我想从哪里调用faile.php,它可能是从哪里调用的,也可能是从哪里调用failed
的i
。我怎样才能检查这个
我需要像这样做 faile.php
if($some_var == 1){
//Invalid
}
elsif($some_var == 2){
//Failed
}