Dear all,
I am very new on asterisk
trying to play with it.
Configured what i want BUT,
I need to restrict certain ext to allow only certain calls and block all calls.
here is the code waht i used.
you are thinking to complex , use contexts for this config
make 5005 lock to internblock in sip.conf and the rest member of intern and use include to asign numberplans
[intern]
include=internal
include=external
I was also thinking like that before but doing so it will restrict all outgoing call for the 5005 ext, I want to allow local extensions and other certain pstn numbers also, beside those specified number all outgoing should be blocked.
your syntex work but it will restrict all outgoing.
I want to block all outgoing except certain dial plans.
in this situation 5005 can only call the defined dialplan in internal
5006 can call both dialplans
with this you make many different levels, you can add many rules like this just put all the dialplans in seperate contexts a context is [lalalala name does not matter]
and use include= to give the users access to the dialplan. so you can make a dialplan that allows calls to mobile numbers local numbers etc etc.