Asterisk使用命令

运行调试Asterisk 1. 运行调试常用命令 ./asterisk & 在后台启动asterisk ./asterisk –vvvc 启动asterisk并尽量多的在控制台显示调试信息 ./asterisk –r 连接asterisk控制台 set verbose 9999 设置打印详细信息 /usr/sbin/asterisk -cvvv 启动并连接到CLI,使用3级复杂度调试 /usr/sbin/asterisk -vvvr 连接到CLI,使用3级复杂度调试 /usr/sbin/asterisk命令参数     * -c console 控制以,用于连接到CLI界面     * -v 简繁程度,设置CLI的调试信息的多少     * -g 核心。如果asterisk突然瘫痪,在接下来的时间,为了用gdb来做trace,可以产生一个核心文件     * -r 远程。用来远程重新连接到一个已经运行的asterisk进程中。     * -rx “restart now” 执行一个CLI命令,而不需要连接到CLI并手动输入命令   2.asterisk控制台下常用命令   sip show subscriptions sip notify             Send a notify packet to a SIP peer sip prune realtime [peer|user|  Prune cached Realtime users/peers sip reload             Reload SIP configuration sip set debug {on|off|ip|peer}  Enable/Disable SIP debugging sip set history {on|off}     Enable/Disable SIP history sip show {channels|subscriptio  List active SIP channels/subscriptions 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 tcp             List TCP Connections sip show users            List defined SIP users sip show user             Show details on specific SIP user sip unregister     Unregister (force expiration) a SIP peer from the registery   dialplan show 显示拨号方案 dialplan reload重新加载拨打方案   stop gracefully 优雅地停止asterisk stop now 立即停止运行asterisk   module show 显示所有已加载模块 module load cdr_radius.so     加载模块cdr_radius.so module reload cdr_radius.so 重新加载模块cdr_radius.so module unload cdr_radius.so 卸载模块cdr_radius.so   core show applications 显示所有的应用,比如Dial, Radius, Hangup, Answer等 core show channels 显示所有的通话频道 core show codecs 显示所有支持的编解码器 core show functions 显示所有的功能函数 For more information on applications, just type "core show applications" at your ; friendly Asterisk CLI prompt. ; ; "core show application <command>" will show details of how you ; use that particular application in this file, the dial plan. ; "core show functions" will list all dialplan functions ; "core show function <COMMAND>" will show you more information about ; one function. Remember that function names are UPPER CASE.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值