Quick question: I have a bash script that I want to use to connect to and set up asterisk, pass some commands to it via the atserisk CLI (reloading config files, etc...) then leave the asterisk CLI open in the terminal. I've written a script that can connect to asterisk but I don't know how to pass commands to the asterisk CLI via bash:
sudo asterisk -rv
I tried using the -x option but it seemed to just quit asterisk:
sudo asterisk -rvx "sip reload"
Can anyone help?