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
dicko
(dicko)
July 14, 2015, 11:12pm
2
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 )
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
dicko
(dicko)
July 15, 2015, 12:13am
4
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
dicko
(dicko)
July 15, 2015, 12:21am
6
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.
dicko
(dicko)
July 15, 2015, 2:00am
8
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?
dicko
(dicko)
July 15, 2015, 7:53pm
10
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
Cyford
July 16, 2015, 3:43pm
11
yes rasterisk -x “dialplan reload” is the best way to reload a dialplan change, all all changes should be in extensions_custom.conf
dicko
(dicko)
July 16, 2015, 3:56pm
12
Technically “dialplan reload” reloads extensions.conf, and hence anything #iincuded in that file. For the OP the override file probably makes more sense.