Com.X Administrator Guide
Page 186
'sudo' executes the command with root privileges.
'asterisk' launches the CLI (command line interface) for the PBX software subsystem.
'-vvvr' indicates three levels of verbosity (v) enabled, and remote console (r) access.
6.4.2 Stopping and restarting the Asterisk PBX software
For certain maintenance tasks it may be necessary to temporarily stop or restart the
AsterisPBX software.
6.4.2.1 Restarting Asterisk
To restart the Asterisk PBX software:
sudo /etc/init.d/asterisk restart
6.4.2.2 Stopping Asterisk
To stop the Asterisk PBX software, waiting until there are no longer any active calls,
but allowing new calls in the interim:
sudo asterisk rx “stop when convenient”
To stop the Asterisk PBX software, waiting until there are no longer any active calls,
without allowing new calls in the interim:
sudo asterisk rx “stop gracefully”
To stop the Asterisk PBX software immediately:
sudo /etc/init.d/asterisk stop
6.4.2.3 Starting Asterisk
To start the Asterisk PBX software:
sudo /etc/init.d/asterisk start
6.4.2.4 Notify when no calls
In some situations you may want to wait until there are no calls on the sytem before
performing some action. The script below will print the message “0 active channels”
when no calls are active:
#!/bin/bash
while [ 1 lt 2 ]; do
printf "."
sudo asterisk rx "core show channels" | grep x "0 active calls"
sleep 1
done
6.5 FreePBX access
Though we strongly recommend using the Com.X GUI for all configuration tasks,
occasional advanced configuration might be required that necessitate the use of
FreePBX.
To access the FreePBX configuration GUI, point your browser at:
http://<ipofpbx>/freepbx
The login username is 'admin' and the password is the same as the password
configured for the Com.X GUI.
©2010 –
2016
Far South Networks