[Asterisk-Users] Re: [Users] Exclude prefixes

asterisk at billheckel.com asterisk at billheckel.com
Wed May 7 08:34:39 MST 2003


What I do to help prevent toll fraud using excluded prefixes is that is the area code is one of the 
foreign islands known for toll abuse is play a message stating that that number is not available due 
to toll fraud then hangup.  Same goes for 900 numbers.


( by whole outbound plan is here )

; we allow 9xxxyyyzzzz and 91xxxyyyzzzz dialing
[castleout]
ignorepat => 9
exten => _91NXXNXXXXXX,1,SetCallerID,our name<123 456-7890>
exten => _91NXXNXXXXXX,2,StripMSD,2

exten => _9NXXNXXXXXX,1,SetCallerID,our name<123 456-7890>
exten => _9NXXNXXXXXX,2,StripMSD,1

exten => _412NXXXXXX,3,Dial,Zap/g4/BYEXTENSION
exten => _412NXXXXXX,4,Busy
exten => _412NXXXXXX,5,Hangup
exten => _724NXXXXXX,3,Dial,Zap/g4/BYEXTENSION
exten => _724NXXXXXX,4,Busy
exten => _724NXXXXXX,5,Hangup
exten => _800NXXXXXX,3,Dial,Zap/g4/BYEXTENSION
exten => _800NXXXXXX,4,Busy
exten => _800NXXXXXX,5,Hangup
exten => _888NXXXXXX,3,Dial,Zap/g4/BYEXTENSION
exten => _888NXXXXXX,4,Busy
exten => _888NXXXXXX,5,Hangup
exten => _877NXXXXXX,3,Dial,Zap/g4/BYEXTENSION
exten => _877NXXXXXX,4,Busy
exten => _877NXXXXXX,5,Hangup
exten => _866NXXXXXX,3,Dial,Zap/g4/BYEXTENSION
exten => _866NXXXXXX,4,Busy
exten => _866NXXXXXX,5,Hangup

exten => _242NXXXXXX,3,Goto,blocked|1
exten => _246NXXXXXX,3,Goto,blocked|1
exten => _264NXXXXXX,3,Goto,blocked|1
exten => _268NXXXXXX,3,Goto,blocked|1
exten => _284NXXXXXX,3,Goto,blocked|1
exten => _340NXXXXXX,3,Goto,blocked|1
exten => _345NXXXXXX,3,Goto,blocked|1
exten => _441NXXXXXX,3,Goto,blocked|1
exten => _473NXXXXXX,3,Goto,blocked|1
exten => _590NXXXXXX,3,Goto,blocked|1
exten => _649NXXXXXX,3,Goto,blocked|1
exten => _664NXXXXXX,3,Goto,blocked|1
exten => _680NXXXXXX,3,Goto,blocked|1
exten => _684NXXXXXX,3,Goto,blocked|1
exten => _758NXXXXXX,3,Goto,blocked|1
exten => _767NXXXXXX,3,Goto,blocked|1
exten => _784NXXXXXX,3,Goto,blocked|1
exten => _809NXXXXXX,3,Goto,blocked|1
exten => _868NXXXXXX,3,Goto,blocked|1
exten => _869NXXXXXX,3,Goto,blocked|1
exten => _876NXXXXXX,3,Goto,blocked|1
exten => _900NXXXXXX,3,Goto,blocked|1

exten => _NXXNXXXXXX,3,Dial,Zap/g3/BYEXTENSION
exten => _NXXNXXXXXX,4,Busy
exten => _NXXNXXXXXX,5,Hangup

exten => blocked,1,playback,scam-blocked
exten => blocked,2,hangup


Reinhard Max wrote:
> On Wed, 7 May 2003 at 15:57, Thomas Haeger wrote:
> 
> 
>>[demo]
>>
>>exten => _.,1,Dial,Modem/g1:${Exten}
>>exten => _.,2,Congestion
>>
>>I think this should make it possible to dial every number over the
>>Modem/g1 line. But some prefixes like 0190 etc. should better not be
>>possible.
> 
> 
> How about this:
> 
> exten => 0190,1,Congestion
> exten => 0900,1,Congestion
> ...
> 
> cu
> 	Reinhard
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> 
> 




More information about the asterisk-users mailing list