Need help for block telephone numers

I have a problem.

I want to block my outgoing calls when these are directed to a “forbidden” number (for example 800.xxxx).

Where can I build a list of forbidden numbers and how can I configure asterisk for blocking the outgoing calls to those numbers?

Thanks a lot

I use Asterisk now and Asterisk 1.4.4

hi bigmez,

in dialplan you can do something like…

exten => _800.,1,Playback(yournotallowedtocallthisnumber)
exten => _800.,n,Hangup()

This will play file ‘yournotallowedtocallthisnumber’ when any number beginning 800 is dialled.

don’t forget to record the file first!