To access the Asterisk command-line interface (CLI), pass the
-r argument to the Asterisk executable. In other
words, type this from your shell prompt:
If you want the system to provide you with more information about
what it is doing (an excellent idea, especially when you’re new to
Asterisk), you can add the argument
as many times as you’d like:
vs you include, the more
vvvvvvvvvverbose the output will be.
The CLI allows you to interact with a running Asterisk server, and it will be very useful to you for troubleshooting and monitoring.
Since the CLI employs tabbed name completion, you can press the Tab key to see a list of possible commands. This makes the CLI very easy to use. Let’s take a look at the commands.