The Asterisk command line interface (CLI) is reached by using the Linux shell command
asterisk -r or rasterisk
If you want debugging output, add one or many v:s
asterisk -vvvvvr
The Asterisk server has to be running in the background for the CLI to start.
If you want to run a CLI command in a shell script, use the x option
asterisk -rx "logger reload"
For help in the CLI mode, use the core show help command (formerly help). To get help on various applications you can use in the extensions.conf config file, use the core show applications command (formerly show applications).
asterisk -r or rasterisk
If you want debugging output, add one or many v:s
asterisk -vvvvvr
The Asterisk server has to be running in the background for the CLI to start.
Page Contents
- General commands
- Server management
- AGI commands
- Database handling commands
- IAX Channel commands
- H323 channel commands
- SIP channel commands
- Zap channel commands
- Console channel commands
- Asterisk channel MGCP commands
- skinny channel commands
- Asterisk channel CAPI commands
- Sirrix ISDN channel commands
- Batch files with CLI
- See also
asterisk -rx "logger reload"
For help in the CLI mode, use the core show help command (formerly help). To get help on various applications you can use in the extensions.conf config file, use the core show applications command (formerly show applications).
General commands
- !<command>: Executes a given shell command
- abort halt: Cancel a running halt
- add extension: Add new extension into context
- add ignorepat: Add new ignore pattern
- add indication: Add the given indication to the country
- agent show: Show status of agents
- debug channel: Enable debugging on a channel
- dont include: Remove a specified include from context
- help: Display help list, or specific help on a command
- include context: Include context in other context
- load: Load a dynamic module by name
- logger reload: Reopen log files. Use after rotating the log files.
- mixmonitor {start|stop|list}: Execute a MixMonitor command.
- no debug channel: Disable debugging on a channel
- originate: originate a call. ...