Blocking incoming calls based on caller id

Hi anybody know a way to block calls based on the caller id.

I want to block all calls using 0845 numbers as these are usually sales calls.

I know I can use blacklist to block individual numbers but that is not really suitable as the list is growing fast.

I have tried using an incoming route as the help suggests you can use normal dial sequences so I tried 0845X. as the caller id but this does not work.

Am I missing something or just being plain stupid?

Thanks

In your inbound route try

_0845x.

That should do it. The leading underscore is the magic.