下载后可任意编辑Asterisk 的管理方法很晚了,刚才略微看了一下 Asterisk 的管理方法。现在想做一个记录。Asterisk 有三种管理方法,最常用的当然是通过 asterisk 命令进入 CLI 模式对 Asterisk 进行管理。另外还有两种方法:1)用 TCP 协议,连接到 5038 端口,然后用 AMI 命令来管理 Asterisk;2)用 HTTP 协议,连接到 8080 端口,通过 WEB 的形式对 Asterisk 进行管理;下面是基本的 URL:http://xxx.xxx.xxx.xxx:8088/static/config/index.html1. Asterisk 命令行命令行是最常用的方法,执行的命令有两种:[root@kernel asterisk]# asterisk -rvvvvvv或者:[root@kernel asterisk]# rasterisk -vvvvvv其实都是通过 UNIX 的本地套接字连接到 Asterisk 的后台进程,然后进行管理。对应的套接字文件是:/var/run/asterisk/asterisk.ctl管理员可以配置 cli_permissions.conf 对操作系统用户登录 asterisk 进行授权。具体的授权方法就不在这里介绍,有兴趣的人可以看看 cli_premissions.conf 中的说明。rasterisk 的作用基本上和 asterisk –r 是一致的,不作特别介绍,只对 Asterisk 命令进行分析。下面是 asterisk 的帮助信息:[root@kernel asterisk]# asterisk -hAsterisk 11.0.0, Copyright (C) 1999 - 2024, Digium, Inc. and others.Usage: asterisk [OPTIONS]Valid Options: -V Display version number and exit -C Use an alternate configuration file -G Run as a group other than the caller -U Run as a user other than the caller -c Provide console CLI -d Enable extra debugging -f Do not fork -F Always fork -g Dump core in case of a crash -h This help screen -i Initialize crypto keys at startup -I Enable internal timing if DAHDI timer is available -L Limit the maximum load average before rejecting new calls -M Limit the maximum number of calls to the specified value -m Mute debugging and console output on the console -n Disable console colorization -p Run as pseudo-realtime thread下载后可任意编辑 -q Quiet mode (suppress output) -r ...