Код
[outbound-allroutes]
include => outbound-allroutes-custom
include => outrt-1 ; 933087
include => outrt-2 ; 933088
exten => foo,1,Noop(bar)
;--== end of [outbound-allroutes] ==--;
[outrt-1] ; 933087
include => outrt-1-custom
exten => _.,1,Macro(user-callerid,LIMIT,EXTERNAL,)
exten => _./_20X,1,Macro(user-callerid,LIMIT,EXTERNAL,)
exten => _./_20X,n,Gosub(sub-record-check,s,1(out,${EXTEN},dontcare))
exten => _./_20X,n,ExecIf($[ "${CALLEE_ACCOUNCODE}" != "" ] ?Set(CDR(accountcode)=${CALLEE_ACCOUNCODE}))
exten => _./_20X,n,Set(MOHCLASS=${IF($["${MOHCLASS}"=""]?default:${MOHCLASS})})
exten => _./_20X,n,Set(_NODEST=)
exten => _./_20X,n,Macro(dialout-trunk,1,${EXTEN},,off)
exten => _./_20X,n,Macro(outisbusy,)
;--== end of [outrt-1] ==--;
[outrt-2] ; 933088
include => outrt-2-custom
exten => _.,1,Macro(user-callerid,LIMIT,EXTERNAL,)
exten => _./_0XX,1,Macro(user-callerid,LIMIT,EXTERNAL,)
exten => _./_0XX,n,Gosub(sub-record-check,s,1(out,${EXTEN},dontcare))
exten => _./_0XX,n,ExecIf($[ "${CALLEE_ACCOUNCODE}" != "" ] ?Set(CDR(accountcode)=${CALLEE_ACCOUNCODE}))
exten => _./_0XX,n,Set(MOHCLASS=${IF($["${MOHCLASS}"=""]?default:${MOHCLASS})})
exten => _./_0XX,n,Set(_NODEST=)
exten => _./_0XX,n,Macro(dialout-trunk,2,${EXTEN},,on)
exten => _./_0XX,n,Macro(outisbusy,)
exten => _./911,1,Macro(user-callerid,LIMIT,EXTERNAL,)
exten => _./911,n,Gosub(sub-record-check,s,1(out,${EXTEN},dontcare))
exten => _./911,n,ExecIf($[ "${CALLEE_ACCOUNCODE}" != "" ] ?Set(CDR(accountcode)=${CALLEE_ACCOUNCODE}))
exten => _./911,n,Set(MOHCLASS=${IF($["${MOHCLASS}"=""]?default:${MOHCLASS})})
exten => _./911,n,Set(_NODEST=)
exten => _./911,n,Macro(dialout-trunk,2,${EXTEN},,on)
exten => _./911,n,Macro(outisbusy,)
;--== end of [outrt-2] ==--;