I was thinking of a module that would create contexts for the purposes of securing extensions and trunk. This module would simply create the contexts that conform with the rest of the dial plan and would have drop downs for which trunks and applications it had access to. Then a modification to the extensions creation and editing which would have the contexts as a drop down giving access to the contexts created in the context creation module and all those available to the dial plan. Doing it manually right now and it's a serious pain! If anyone would take this on as I'm not a good php/html programmer, I'd greatly appreciate it