`

Asterisk CLI命令

阅读更多

 Asterisk 1.4.0 CLI commands 

 引用地址:

http://www.asteriskguru.com/tutorials/cli_cmd_14.html

Introduction

Asterisk CLI supports large variety of commands which can be used for testing, configuration and monitoring. In this tutorial we will describe all commands available at the standard Asterisk version 1.4.0. We will divide this tutorial into few sections in order to facilitate the reading.

 

General CLI commands

! - Execute a shell command
abort halt - Cancel a running halt
cdr status - Display the CDR status
feature show - Lists configured features
feature show channels - List status of feature channels
file convert - Convert audio file
group show channels - Display active channels with group(s)
help - Display help list, or specific help on a command
indication add - Add the given indication to the country
indication remove - Remove the given indication from the country
indication show - Display a list of all countries/indications
keys init - Initialize RSA key passcodes
keys show - Displays RSA key information
local show channels - List status of local channels
logger mute - Toggle logging output to a console
logger reload - Reopens the log files
logger rotate - Rotates and reopens the log files
logger show channels - List configured log channels
meetme - Execute a command on a conference or conferee
mixmonitor - Execute a MixMonitor command.
moh reload - Music On Hold
moh show classes - List MOH classes
moh show files - List MOH file-based classes
no debug channel (null)
originate - Originate a call
realtime load - Used to print out RealTime variables.
realtime update - Used to update RealTime variables.
restart gracefully - Restart Asterisk gracefully
restart now - Restart Asterisk immediately
restart when convenient - Restart Asterisk at empty call volume
sla show - Show status of Shared Line Appearances
soft hangup - Request a hangup on a given channel
stop gracefully - Gracefully shut down Asterisk
stop now - Shut down Asterisk immediately
stop when convenient - Shut down Asterisk at empty call volume
stun debug - Enable STUN debugging
stun debug off - Disable STUN debugging
udptl debug - Enable UDPTL debugging
udptl debug ip - Enable UDPTL debugging on IP
udptl debug off - Disable UDPTL debugging

 

AEL commands

ael debug contexts - Enable AEL contexts debug (does nothing)
ael debug macros - Enable AEL macros debug (does nothing)
ael debug read - Enable AEL read debug (does nothing)
ael debug tokens - Enable AEL tokens debug (does nothing)
ael nodebug - Disable AEL debug messages
ael reload - Reload AEL configuration

 

Agents commands

agent logoff - Sets an agent offline
agent show - Show status of agents
agent show online - Show all online agents

 

AGI commands

agi debug - Enable AGI debugging
agi debug off - Disable AGI debugging
agi dumphtml - Dumps a list of agi commands in html format
agi show- List AGI commands or specific help
dnsmgr reload - Reloads the DNS manager configuration
dnsmgr status - Display the DNS manager status
http show status - Display HTTP server status

 

Console commands

console active - Sets/displays active console
console answer - Answer an incoming console call
console autoanswer - Sets/displays autoanswer
console boost - Sets/displays mic boost in dB
console dial - Dial an extension on the console
console flash - Flash a call on the console
console hangup - Hangup a call on the console
console mute - Disable mic input
console send text - Send text to the remote device
console transfer - Transfer a call to a different extension
console unmute - Enable mic input

 

Core related commands

core clear profile - Clear profiling info
core set debug channel - Enable/disable debugging on a channel
core set debug - Set level of debug chattiness
core set debug off - Turns off debug chattiness
core set global - Set global dialplan variable
core set verbose - Set level of verboseness
core show applications - Shows registered dialplan applications
core show application - Describe a specific dialplan application
core show audio codecs - Displays a list of audio codecs
core show channels - Display information on channels
core show channel - Display information on a specific channel
core show channeltypes - List available channel types
core show channeltype - Give more details on that channel type
core show codecs - Displays a list of codecs
core show codec - Shows a specific codec
core show config mappings - Display config mappings (file names to config engines)
core show file formats - Displays file formats
core show file version - List versions of files used to build Asterisk
core show functions - Shows registered dialplan functions
core show function - Describe a specific dialplan function
core show globals - Show global dialplan variables
core show hints - Show dialplan hints
core show image codecs - Displays a list of image codecs
core show image formats - Displays image formats
core show license - Show the license(s) for this copy of Asterisk
core show profile - Display profiling info
core show switches - Show alternative switches
core show threads - Show running threads
core show translation - Display translation matrix
core show uptime - Show uptime information
core show version - Display version info
core show video codecs - Displays a list of video codecs
core show warranty - Show the warranty (if any) for this copy of Asterisk

 

Database commands

database del - Removes database key/value
database deltree - Removes database keytree/values
database get - Gets database value
database put - Adds/updates database value
database show - Shows database contents
database showkey - Shows database contents

 

Dialplan commands

dialplan add extension - Add new extension into context
dialplan add ignorepat - Add new ignore pattern
dialplan add include - Include context in other context
dialplan reload - Reload extensions and *only* extensions
dialplan remove extension - Remove a specified extension
dialplan remove ignorepat - Remove ignore pattern from context
dialplan remove include - Remove a specified include from context
dialplan save - Save dialplan
dialplan show - Show dialplan

 

DUNDI commands

dundi debug - Enable DUNDi debugging
dundi flush - Flush DUNDi cache
dundi lookup - Lookup a number in DUNDi
dundi no debug - Disable DUNDi debugging
dundi no store history - Disable DUNDi historic records
dundi precache - Precache a number in DUNDi
dundi query - Query a DUNDi EID
dundi show entityid - Display Global Entity ID
dundi show mappings - Show DUNDi mappings
dundi show peers - Show defined DUNDi peers
dundi show peer - Show info on a specific DUNDi peer
dundi show precache - Show DUNDi precache
dundi show requests - Show DUNDi requests
dundi show trans - Show active DUNDi transactions
dundi store history - Enable DUNDi historic records

 

GTalk & Jabber commands

gtalk reload - Enable Jabber debugging
gtalk show channels - Show GoogleTalk Channels
jabber debug - Enable Jabber debugging
jabber debug off - Disable Jabber debug
jabber reload - Enable Jabber debugging
jabber show connected - Show state of clients and components
jabber test - Shows roster, but is generally used for mog's debugging.

 

IAX2 commands

iax2 provision - Provision an IAX device
iax2 prune realtime - Prune a cached realtime lookup
iax2 reload - Reload IAX configuration
iax2 set debug - Enable IAX debugging
iax2 set debug jb - Enable IAX jitterbuffer debugging
iax2 set debug jb off - Disable IAX jitterbuffer debugging
iax2 set debug off - Disable IAX debugging
iax2 set debug trunk - Enable IAX trunk debugging
iax2 set debug trunk off - Disable IAX trunk debugging
iax2 show cache - Display IAX cached dialplan
iax2 show channels - List active IAX channels
iax2 show firmware - List available IAX firmwares
iax2 show netstats - List active IAX channel netstats
iax2 show peers - List defined IAX peers
iax2 show peer - Show details on specific IAX peer
iax2 show provisioning - Display iax provisioning
iax2 show registry - Display IAX registration status
iax2 show stats - Display IAX statistics
iax2 show threads - Display IAX helper thread info
iax2 show users - List defined IAX users
iax2 test losspct - Set IAX2 incoming frame loss percentage

 

Manager commands

manager show command - Show a manager interface command
manager show commands - List manager interface commands
manager show connected - List connected manager interface users
manager show eventq - List manager interface queued events
manager show users - List configured manager users
manager show user - Display information on a specific manager user

 

MGCP commands

mgcp audit endpoint - Audit specified MGCP endpoint
mgcp reload - Reload MGCP configuration
mgcp set debug - Enable MGCP debugging
mgcp set debug off - Disable MGCP debugging
mgcp show endpoints - List defined MGCP endpoints

 

Module management

module load - Load a module by name
module reload - Reload configuration
module show - List modules and info
module show like - List modules and info
module unload - Unload a module by name

 

PRI commands

pri debug span - Enables PRI debugging on a span
pri intense debug span - Enables REALLY INTENSE PRI debugging
pri no debug span - Disables PRI debugging on a span
pri set debug file - Sends PRI debug output to the specified file
pri show debug - Displays current PRI debug settings
pri show spans - Displays PRI Information
pri show span - Displays PRI Information
pri unset debug file - Ends PRI debug output to file

 

Queue commands

queue add member - Add a channel to a specified queue
queue remove member - Removes a channel from a specified queue
queue show - Show status of a specified queue
rtcp debug ip - Enable RTCP debugging on IP
rtcp debug - Enable RTCP debugging
rtcp debug off - Disable RTCP debugging
rtcp stats - Enable RTCP stats
rtcp stats off - Disable RTCP stats
rtp debug ip - Enable RTP debugging on IP
rtp debug - Enable RTP debugging
rtp debug off - Disable RTP debugging
say load - Set/show the say mode
show parkedcalls - Lists parked calls
show queue - Show information for target queue
show queues - Show the queues

 

SIP commands

sip history - Enable SIP history
sip history off - Disable SIP history
sip notify - Send a notify packet to a SIP peer
sip prune realtime - Prune cached Realtime object(s)
sip prune realtime peer - Prune cached Realtime peer(s)
sip prune realtime user - Prune cached Realtime user(s)
sip reload - Reload SIP configuration
sip set debug - Enable SIP debugging
sip set debug ip - Enable SIP debugging on IP
sip set debug off - Disable SIP debugging
sip set debug peer - Enable SIP debugging on Peername
sip show channels - List active SIP channels
sip show channel - Show detailed SIP channel info
sip show domains - List our local SIP domains.
sip show history - Show SIP dialog history
sip show inuse - List all inuse/limits
sip show objects - List all SIP object allocations
sip show peers - List defined SIP peers
sip show peer - Show details on specific SIP peer
sip show registry - List SIP registration status
sip show settings - Show SIP global settings
sip show subscriptions - List active SIP subscriptions
sip show users - List defined SIP users
sip show user - Show details on specific SIP user

 

Skinny commands

skinny reset - Reset Skinny device(s)
skinny set debug - Enable Skinny debugging
skinny set debug off - Disable Skinny debugging
skinny show devices - List defined Skinny devices
skinny show lines - List defined Skinny lines per device

 

Voicemail commands

voicemail show users - List defined voicemail boxes
voicemail show users for - List defined voicemail boxes for target context
voicemail show zones - List zone message formats

 

Zaptel commands

zap destroy channel - Destroys a channel
zap restart - Fully restart zaptel channels
zap show cadences - List cadences
zap show channels - Show active zapata channels
zap show channel - Show information on a channel
zap show status - Show all Zaptel cards status


 

分享到:
评论

相关推荐

    Asterisk CLI 命令列表

    Asterisk CLI 命令列表 Asterisk 是一个开源的 VoIP 系统平台,提供了一个命令行接口(CLI),允许用户通过命令行控制 Asterisk 系统。下面是 Asterisk CLI 命令列表: 1. ! 命令:执行 shell 命令 使用格式:! ...

    Asterisk CLI命令1

    本文将详细解析一些重要的Asterisk CLI命令,帮助你更好地理解和操作Asterisk系统。 1. `!` 命令:这个命令用于在CLI中执行Shell命令,让你能够直接在Asterisk的控制台环境中运行Linux系统的命令。 2. `ael reload...

    Asterisk CLI 命令列表.

    ### Asterisk CLI命令详解 #### 一、Asterisk CLI简介 Asterisk是一款非常流行的开源PBX(Private Branch Exchange)系统,它支持多种语音通信协议,如SIP、IAX等,广泛应用于构建企业级的电话系统。CLI(Command ...

    Asterisk-CLI-命令列表.zip_asterisk_cli

    "Asterisk CLI命令列表.pdf"这份文档会是一个很好的起点,它列出了大部分可用的CLI命令,有助于日常操作和故障排查。 总的来说,掌握Asterisk CLI是管理Asterisk系统的关键,通过熟练使用这些命令,您可以高效地...

    asterisk-1.6 command

    以下是对给定文件中部分Asterisk CLI命令的详细解析,旨在帮助读者深入理解这些命令的功能与应用。 ### 执行Shell命令:! 在Asterisk CLI环境中,通过输入“!”后跟任何合法的shell命令,可以在Asterisk服务器上...

    Asterisk一些常用的命令

    如果Asterisk已经启动,可以用 asterisk -r 命令连接到它的控制台,在这里面可以执行CLI命令,管控Asterisk。 3. CLI 命令 CLI 命令可以用来查看和管理Asterisk的状态。 * sip show peers 查看SIP电话设备的注册...

    Asterisk Manager API(AMI) 中文文档

    3. **Command**:发送Asterisk CLI命令。 - 参数: - Command:Asterisk CLI命令。 - 示例: ``` Action: Command command: ShowChannels ``` #### 七、结论 Asterisk Manager Interface (AMI) 为开发者提供...

    20120605_扩展Asterisk1.8.7的CLI接口1

    - 完成编译后,使用 Asterisk 的 CLI 命令 `module load` 加载新编译的模块,使扩展的 CLI 命令生效。 在实际应用中,如果需要与数据库交互,例如存储或查询录音记录,可以在 `testApp_exec` 或其他适当的地方引入...

    Asterisk commander:星号管理器PHP CLI-开源

    通过Asterisk Commander,用户可以便捷地在Web浏览器中执行Asterisk的CLI命令,而无需直接登录到服务器进行操作,这大大提高了远程管理的便利性。 1. **Asterisk简介** Asterisk是一个功能丰富的PBX(Private ...

    asterisk学习综合

    - **cli命令.txt**:列出了Asterisk CLI中的常用命令及其用途。 - **asterisk表达式.txt**:可能涉及Asterisk中的条件语句和表达式,用于控制呼叫流程。 - **asterisk可加载模块.txt**:介绍了Asterisk的可加载模块...

    Asterisk_manager_API(AMI)文档

    - **Command**: 允许客户端执行 Asterisk 的命令行界面 (CLI) 命令,如查看状态、配置修改等。例如,`Action: Command Command: show channels` 可以显示当前的通道状态。 通过 `show manager commands` 命令,可以...

    最全Asterisk代码学习笔记

    14. **CLI命令**:Asterisk提供命令行接口(CLI)进行实时监控和控制,如查看状态、修改配置等。 15. **Manager API**:通过HTTP或TCP提供接口,允许外部程序或脚本远程管理Asterisk,进行挂断、转移呼叫等操作。 ...

    asterisk1.8安装参考录像

    使用`asterisk -r`进入Asterisk控制台,然后执行`dbinit`命令。 7. **启动Asterisk服务** 使用`sudo systemctl start asterisk`(对于Systemd系统)或`sudo service asterisk start`(对于传统的init系统)启动...

    Asterisk安装和测试[归类].pdf

    一旦Asterisk配置完毕,你可以通过命令行工具(如asterisk CLI)启动和停止服务,或者配置为在系统启动时自动启动。然后,你可以使用软电话进行呼叫测试,检查Asterisk是否能够正确处理呼入和呼出通话。 在测试过程...

    Asterisk API文档

    此外,`Command`动作允许执行Asterisk命令行接口(CLI)中的任何命令,如: ``` Action: Command Command: core show version ``` Asterisk的响应将以“Response”数据包的形式返回,如“Success”或“Error...

    asterisk 安装教程

    你可以通过命令行接口(CLI)测试它,使用`asterisk -rv`登录。为了进一步了解Asterisk的功能,建议阅读官方文档,学习如何配置拨号计划、IVR(Interactive Voice Response)、录音、会议和其它高级特性。 总结,...

    asterisk reference card

    - **help**:列出所有可用的CLI命令。 - **help sip**:列出所有与SIP相关的命令。 - **help sipshow**:列出所有与`sipshow`命令相关的子命令。 - **help sipshow peers**:显示`sipshow peers`命令的帮助信息。 #...

    asterisk gui 按装指导手册

    这些命令将创建名为`asterisk-1.4-current`、`zaptel-1.4-current`和`asterisk-addons-1.4-current`的文件夹。 ``` tar xvzf asterisk-1.4-current.tar.gz && tar xvzf zaptel-1.4-current.tar.gz && tar xvzf ...

Global site tag (gtag.js) - Google Analytics