Displaying 1 result from an estimated 1 matches for "secondfail".
Did you mean:
recordfail
2009 Jun 29
0
FW: re: Asterisk Outbound with Failover, alarm notification, dial status and hangupcause capturing to CDR from Dialplan
...l)
exten => _XXX.,n(firstfail),set(try=${MATH(${dialout}+2)})
exten => _XXX.,n,dial(${route2}/${EXTEN}@${context2})
;attempt to dial out via route 2
exten => _XXX.,n,goto(after-dial) ;after attempting to dial, go to
after-dial
exten => _XXX.,100,gotoif($[${dialout} > 0 ]?secondfail)
exten => _XXX.,n,Set(dialout=${MATH(${dialout}+1))
exten => _XXX.,n,NoOp(${dialout})
exten => _XXX.,n,dial(${route1}/${EXTEN}@${context1})
;attempt dial out via route 1
exten => _XXX.,n,goto(after-dial)
;after attempting to dial, go to after-dial
exten => _XXX.,n(secondfail),se...