I’ve been testing our the custom context module to implement the multi-tenant feature.
Initially i would like to restrict one company’s extension from dialing to other company extensions. For e.g. I have a company with extension range 1xx series and another company with extension range 2xx series. So, extension calling between these two companies should be restricted.
Trying to use custom context module to do such is a bad idea, especially if you don’t understand its limitations.
The way FreePBX generates extensions, either you see all or none, or you have additional custom work beyond any modules to achieve that, and there are still plenty of security holes between contexts.