Hi, I’ve a PBX in which I’ve a double set of extensions, 2XX and 6XXX.
I need to avoid that one can call the each other so I’ve set in extension_custom.conf these rows:
[from-internal-custom]
;disallow calls from extensions 6XXX to 2XX
exten => _2XX/_6XXX,1,Hangup
;disallow calls from extensions 2XX to 6XXX
exten => _6XXX/_2XX,1,Hangup
saved the file and restarted asterisk but it seems that it doesn’t feel the commands. Any tips for me ?? Is there any other configuration step to do that I can have lost ??
I can think of a couple of reasons why it might not work.
a specific match will always take precedence over a pattern one.
matches in an including context will always win over an included context, and I think matches in an included context will win over later included ones. What I’m not sure of is how FreePBX structures the inclusions.
I think you would have to define a new initial context, which does GoTo’s to from-internal for accepted calls.
Are you trying to create a multi-tenant system, as FreePBX is known not to be good for those.
Not sure that FreePBX would be a good fit if it’s multitenant you are looking at. There are other Asterisk based solutions that are better suited for this. iVozprovider is one
Thanks airsay, really I was only trying to solve a challenge about this question, ok for multitenant solution about which I know the power. Anyway to learn a new env I’ll try iVozprovider asap, always important to be updated !! thanks again