How to avoid that a list of extensions calls another list

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 ??

Thanks for your support
Enrico

Try it without the “_” 's perhaps.
To test how 221 would react to any dialing affecting it , from asterisk’s CLI

dialplan show 221@

I can think of a couple of reasons why it might not work.

  1. a specific match will always take precedence over a pattern one.
  2. 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.

Thanks dicko, I’ll check and answer you if I find something of what I wrote, anyway any other kind of way is good if useful to solve :slight_smile:

Hi David555 thanks, I know what you wrote about multitenant, it is a test that I’d like to solve.

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

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.