See I don't know where you are, or how you're dialing...but let me put forward an example...
Let's say you're dealing with UK mobile numbers, which are in the range
447xxxxxxx
I want to allow calls to:
-All landline numbers
-These two mobile numbers:
4479339933
4479339922
-Block calls to other mobile numbers
I would set dial plans as follows:
_4479339933 ${EXTEN} MyProvider
_4479339922 ${EXTEN} MyProvider
_447x. ${EXTEN} VoXalot
(hence the blocking, since voxalot cannot dial mobile numbers, it'll give a message that the number you've entered cannot be dialed whenever someone tries)
_44x. ${EXTEN} MyProvider (allowing all other non-mobile calls)
_9944x. ${EXTEN:2} MyProvider (allowing you to make mobile calls if neccessary, but only by dialing 99 followed by number..of course it doesn't have to be 99, you can pick anything, it's like a code to access an LD line)
For background info:
447x. means starts with 447, and can continue on in terms number length...
|