How to run Asterisk command from shell

Use

asterisk_run_command.sh
asterisk -rx "[command]"

to run an Asterisk command (-x) in an already running Asterisk server (-r), for example:

asterisk_restart.sh
asterisk -rx "core restart now"

 


Check out similar posts by category: FreePBX