Asterisk CLI

The Asterisk CLI page allows you to execute Asterisk commands.

To execute an Asterisk CLI command, perform the following steps:

  1. Open the UCX Web-based Configuration Utility
  2. From the PBX tab, select PBX Tools
  3. From the left side column, select Asterisk CLI
  4. Enter the command you want to execute in the Command field
  5. Press the Execute button (or Enter) to execute the command.  The output is presented on the page.

PBXToolsAsteriskCLI.png

You can use the command "help" to display a list of all available Asterisk CLI commands.

Usage Examples

Reboot a Phone

To reboot a phone remotely during troubleshooting or to ensure it has downloaded the latest firmware and configuration data, you can enter the following text in the Command field:

ucx reboot peer 269
Note that the reboot peer xxx command can be used on XSTIM digital and IP phones.

Call Forwarding

To configure Call Forwarding All Calls on extension 221 and forward them to extension 269 you can enter the following text in the Command field:

database put CF 221 269

Show all phones with a Custom Context

To show all extensions that have been configured with a Custom Context

database showkey ccontext

After clicking Execute, the UCX will respond with a list similar to the following:
 
AstersikCLICustContext.png

Show the time since the last Asterisk restart

To show the time since the Telephony process was last restarted.

core show uptime