Block A-number

I have a number +3726893167. And I am trying to disable it from calling.
I have written this:
exten => _X!/003726893167,1,Congestion
exten => _X!/003726893167,2,Hangup
exten => _X!/3726893167,1,Congestion
exten => _X!/3726893167,2,Hangup
exten => _X!/6893167,1,Congestion
exten => _X!/6893167,2,Hangup
to my dialplan, but this number still calls. Where may I be wrong?

You should look through output log to trace how call is going on. Then think further.

By the way, try using builtin Blacklist possibilities. Read the manual for details.

where exactly should I look this log?
Will this blacklist work for example after * crashes? Or I should make the blacklist every time?

asterisk log is located on file ‘/var/log/asterisk/full’

Post the result here so we can see where your call is going and where’s the problem.

I do not have full log.
Asterisk version is 1.4.29, server running on FreeBSD 6.2
I have only messages log file and CDR.
In messages nothing about this calls, only warnings and errors.

In /etc/asterisk/logger.conf add (or modify) to make like that:

full => notice,warning,error,verbose

Then look through /etc/asterisk/asterisk.conf to sure where is your log directory. I have it like this:

astlogdir => /var/log/asterisk

Then, probably, you need to reload logger - run in asterisk console (CLI) command “logger reload”.
Then you should have been given your log file /var/log/asterisk/full (or wherever is log dir in your configuration).

From this moment logging will be enabled (I hope you have nothing strange to mess with it), so make a call and print log listing from “full” log-file.