Reputation: 19
I need to change one character in the file, but Asterisk overwrites that file. How can I make the changes persistent?
Upvotes: 1
Views: 3216
Reputation: 42750
That file is automatically created by FreePBX on every reload, as stated in the header:
;--------------------------------------------------------------------------------;
; Do NOT edit this file as it is auto-generated by FreePBX. All modifications to ;
; this file must be done via the web gui. There are alternative files to make ;
; custom modifications, details at: http://freepbx.org/configuration_files ;
;--------------------------------------------------------------------------------;
;
To override an existing dialplan, you need to put your code into /etc/asterisk/extensions_override_freepbx.conf
. Despite that you only want to change one character, you will need to copy the entire context into this file.
To create new dialplan, as mentioned in the answer from MichelV69, you would indeed use /etc/asterisk/extensions_custom.conf
. This will not work for modifying existing dialplan, due to order in which files are included.
Upvotes: 2
Reputation: 1212
You don't. Per the documentation, you reproduce the section you want to override in extensions_custom.conf and make your changes there.
Also, this is for "FreePBX", not "Asterisk". Asterisk natively doesn't use / come-with "extensions_additional.conf".
Upvotes: 0