Hi!
I need to setup a dialplan, that restricts users from a specific extention to dial a specific number.
We have basically two group (extention): 100(Office) and 500(OfficeRomania).
User 101 is in the Office(100) extension(queue) and
user 108 is in the OfficeRomania(500)extension(callgroup).
The dialplan is working when I bound it to a user (101 or 108), but it is not workinkg with the extension numbers above. Heres what i mean.
exten => _0040[+*%#a-zA-Z0-9]/101,1,Verbose(1,dial is denied)
exten => _0040[+*%#a-zA-Z0-9]/101,n,PlayBack(beeperr)
exten => _0040[+*%#a-zA-Z0-9]/101,n,PlayBack(mdc-outbound-denied)
exten => _0040[+*%#a-zA-Z0-9]/101,n,HangUp(20)
This script works.
When user 101 wants to dial a romanian phone number, it wont allow it. But when i want to expand this script to the whole Office(100) group it stops working, as invalid extension number.
exten => _0040[+*%#a-zA-Z0-9]/100,1,Verbose(1,dial is denied)
exten => _0040[+*%#a-zA-Z0-9]/100,n,PlayBack(beeperr)
exten => _0040[+*%#a-zA-Z0-9]/100,n,PlayBack(mdc-outbound-denied)
exten => _0040[+*%#a-zA-Z0-9]/100,n,HangUp(20)
How do i get the correct extension number for my extension?
Is it even the right way to this sort of thing?
Thanks in advance!