← 返回命令列表

Linux command

asterisk 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Connect

asterisk -r -vvv

Example

asterisk -r -x "command"

Example

asterisk -r -x "sip show peers"

Example

asterisk -r -x "core show channels"

Example

asterisk -r -x "voicemail show users"

Hangup

asterisk -r -x "hangup request channel_ID"

Reload

asterisk -r -x "sip reload"

说明

asterisk runs and manages the Asterisk PBX (Private Branch Exchange) telephony server. It handles VoIP calls, traditional phone lines, and provides features like voicemail, conferencing, and interactive voice response (IVR).

参数

-r
Reconnect to a running Asterisk instance
-R
Same as -r but attempt reconnection if disconnected
-x _command_
Execute a CLI command and exit
-v
Increase verbosity (can be used multiple times)
-c
Start Asterisk in console mode (foreground)
-g
Dump core on crash
-n
Disable ANSI color in console

FAQ

What is the asterisk command used for?

asterisk runs and manages the Asterisk PBX (Private Branch Exchange) telephony server. It handles VoIP calls, traditional phone lines, and provides features like voicemail, conferencing, and interactive voice response (IVR).

How do I run a basic asterisk example?

Run `asterisk -r -vvv` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -r do in asterisk?

Reconnect to a running Asterisk instance