Add or extend to the following:
- addSectionComment($section, $comment)
- addInclude($section, $incsection, $comment="")
- addSectionNoCustom($section, $setting)
- disableCustomContexts($setting)
Has the following result:
- addSectionComment('outrt-1','Emergency')
[outrt-1] ; Emergency
- addInclude('outrt-1', 'outbound-allroutes, 'Emergency')
[outbound-allroutes]
include => outrt-1 ; Emergency
- addSectionNoCustom('outrt-1', true)
[outrt-1] ; Emergency
exten => 0,1,Noop(Macro(user-callerid): executed in outbound-allroutes PRI 1)
(*) Normally there would be an auto-generated entry of the form:
include => outrt-1-custom
This last one can be used to keep the system form generating the automatic custom context in cases where there is no reasonable usage of such an custom context because of the way Asterisk works and an inability to add any useful dialplan into such a case.
Or disable all generation with:
and add amportal.conf settting:
DISABLECUSTOMCONTEXTS=true|false