Created
January 15, 2016 10:46
-
-
Save varnav/9a1212a4186243a0555b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Disallow international with exceptions | |
exten => _9810800.,1,Goto(outbound-allroutes,${EXTEN},1) ; Toll free ok! | |
exten => _9810.,1,GotoIf($["${CALLERID(num)}" = "335"]?outbound-allroutes,${EXTEN},1) ; Allow 8-10 | |
exten => _9810.,1,GotoIf($["${CALLERID(num)}" = "336"]?outbound-allroutes,${EXTEN},1) ; Allow 8-10 | |
exten => _9810.,n,Playback(feature-not-avail-line) ; Disallow 8-10 | |
exten => _9810.,n,Hangup() | |
exten => _900.,1,Playback(feature-not-avail-line) ; Disallow 00 | |
exten => _900.,n,Hangup() | |
;Disallow international | |
exten => _9810800.,1,Goto(outbound-allroutes,${EXTEN},1) ; Toll free ok! | |
exten => _9810.,1,Playback(feature-not-avail-line) ; Disallow 8-10 | |
exten => _9810.,n,Hangup() | |
exten => _900.,1,Playback(feature-not-avail-line) ; Disallow 00 | |
exten => _900.,n,Hangup() | |
;Replace +7 with 8 | |
;exten => _+7XXXXXXXXXX,1,GoTo(outbound-allroutes,8${EXTEN:2},1) | |
; emergency | |
;exten => _0[1-4]!,1,Goto(outbound-allroutes,${EXTEN},1) | |
;exten => _112!,1,Goto(outbound-allroutes,${EXTEN},1) | |
;exten => _911!,1,Goto(outbound-allroutes,${EXTEN},1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment