I want to use the Custom-Contexts module and the contexts that I write in the extensions_custom.conf file.
In previous versions of FreePBX, when I was editing the config of the Extensions, I could set the context manually, in the context field, or to select a context created with the Custom-Contexts module.
In the FreePBX 2.8, and I don’t know it if in FreePBX 2.7 too, I only can select between the contexts created with Custom-Contexs module.
There are any way to use both, the contexts that I have created with Custom-Contexts module and the contexts that I put in the extensions_custom.conf file?
I believe the new custom context module will only give you drop down fields where it will populate the context field (hidden when that module is installed)
If you know a little PHP, you can hack the module so that it wont “bother” the extensions page… :), then reinstall it with your hack…
Please also, test this in your own test environment. This “hack” below, will disabled the hiding of the custom context form element, therefore, showing you both custom context pull-down and type-able box. IMPORTANT: I’ve NOT TESTED THIS ENOUGH.
Where:
Look inside the customcontext folder, open up functions.inc.php
Look for the js script being called like below…
Even with the module installed, I have edited the “…/admin/modules/customcontexts/funtions.inc.php” file and I have commented the lines in both funtions:
In “function customcontexts_devices_configpageload()”:
// $js = ‘’;
In “function customcontexts_extensions_configpageload()”:
// $js = ‘’;
I have reloaded the FreePBX, I have gone to the Extensions and “Eureka”, now yes, now appear the two fields.