To restart/reload asterisk what can I run by the command line after editing /etc/asterisk/extensions_additional.conf?

To restart/reload asterisk what can I run by the command line after editing /etc/asterisk/extensions_additional.conf?

I know it says not to edit that file, but I’m using a previously saved version of it, generated from the GUI, so it should work.

How do I do the equivalent of red “Apply Config” button from the GUI using the command line?

ITA

There is NEVER a good reason to edit extensions_additional.conf, you have both

/etc/asterisk/extensions_custom.conf
/etc/asterisk/extensions_override_freepbx.conf

to do what you are trying to do (whatever it is :smile: )

given that

rasterisk -x reload

for your first answer and

amportal admin reload

for your second.

I’m trying to do this:
[root@voip ~]# diff phoneon.conf phoneoff.conf
11600c11600
< exten => 3,n,GotoIf($[“${TCMAINT}”!=“RETURN”]?ivr-5,s,1)

exten => 3,n,GotoIf($[“${TCMAINT}”!=“RETURN”]?app-announcement-2,s,1)

Is there a way to do that in:
/etc/asterisk/extensions_custom.conf
or
/etc/asterisk/extensions_override_freepbx.conf

yes, add that context (presumably an announcement or a time condition ) to

/etc/asterisk/extensions_override_freepbx.conf

and play with it there.

Yep, thats to switch from IVR to an announcement for the time condition.

Do I need to restart anything after adding that line to:
/etc/asterisk/extensions_override_freepbx.conf

just reload asterisk but I still don’t get why you don’t do that in the GUI

I’m trying to give a user access for 1 sudo command vs access to the whole GUI.

And he can’t use the feature code for the time condition?

I’m not sure the feature code will work, because I want a different announcement, than the one for time condition no match.

I’m getting this error when I try to reload:

rasterisk -x reload

No such command ‘reload’ (type ‘core show help reload’ for other possible commands)

Any ideas?

IWFM depending on your version of asterisk

https://wiki.asterisk.org/wiki/display/AST/Asterisk+Command+Line+Interface

try for Asterisk 13

rasterisk -x “core reload”

or

rasterisk -x “dialplan reload”

it will just reload the dialplan

yes rasterisk -x “dialplan reload” is the best way to reload a dialplan change, all all changes should be in extensions_custom.conf

Technically “dialplan reload” reloads extensions.conf, and hence anything #iincuded in that file. For the OP the override file probably makes more sense.