[from-internal-custom]
exten=>_1234,1,Playback(demo-thanks)
same=>n,Hangup
exten=>_XXX,1,Noop(${CALLERID(num)})
same=n,Set(range=${CALLERID(num):0:1})
;same=>n,GotoIf($["${EXTEN:0:1}"="${range}"]?allow:disallow)
;same=>n,GotoIf($[$["${EXTEN:0:1}"= "${range}"] | $["${CALLERID(num)}"= "9999"]]?allow:disallow)
same=>n,GotoIf($[$["${EXTEN:0:1}"= "${range}"] | $["${CALLERID(num)}"= "9999"] | $["${CALLERID(num)}"= "9998"]]?allow:disallow)
same=>n(allow),Goto(ext-local,${EXTEN},1)
same=>n,Hangup()
same=>n(disallow),Playback(im-sorry)
same=>n,Hangup()
[from-internal-custom]
exten=>_1234,1,Playback(demo-thanks)
same=>n,Hangup
exten=>_XXX,1,Noop(${CALLERID(num)})
same=n,Set(range=${CALLERID(num):0:1})
same=>n,GotoIf($["${EXTEN:0:1}"="${range}"]?allow:disallow)
;same=>n,GotoIf($[$["${EXTEN:0:1}"= "${range}"] | $["${CALLERID(num)}"= "9999"]]?allow:disallow)
;same=>n,GotoIf($[$["${EXTEN:0:1}"= "${range}"] | $["${CALLERID(num)}"= "9999"] | $["${CALLERID(num)}"= "9998"]]?allow:disallow)
same=>n,Hangup()
same=>n(disallow),Playback(im-sorry)
same=>n,Hangup()
exten=>_911,1,Macro(dialout-trunk,1,${EXTEN},,)
same=>n,Hangup()
No hay comentarios:
Publicar un comentario