在asterisk里嵌入astercc最好的安装方法是脚本安装php
采用install.sh安装脚本进行快速安装astercchtml
设置install.sh执行权限(脚本默认在程序的根目录下)mysql
chmod +x ./install.shweb
进入安装向导sql
Please enter database information数据库
database host(default localhost): apache
设置数据库地址,默认为 localhost服务器
database port(default 3306):spa
设置数据库链接端口,默认为:3306orm
database name(default astercc):
设置数据库名,默认为astercc
database user name(default root):
设置数据库链接用户,默认为root
database user password(default null):eLaStIx.2oo7
设置数据库链接密码
database bin path(default /usr/bin):
设置mysql的程序路径,默认指定 /usr/bin
Please enter the Asterisk infomation:
Asterisk Host(default 127.0.0.1):
设置Asterisk服务器地址,默认为127.0.0.1
Asterisk Manager API port(default 5038):
设置Asterisk的AMI端口默认为5038
AMI User name:
AMI用户名 admin
AMI User password:
AMI密码 elastix456
Please enter main html directory for astercc
Are you want to auto start astercc daemon when system startup?
Must be redhat-release system
"Press 'y' to auto start
设置是否系统启动时加载astercc进程,输入Y为赞成
Are you want to start astercc daemon now?
"Press 'y' to start:"
是否如今就启动,输入Y为赞成
AMI
admin
elastix456
能够查看相关的配置文件:/opt/asterisk/scripts/astercc/astercc.conf
[database]
Database connection parameter
dbtype = mysql
dbport = 3306
dbhost = localhost
dbname = astercc
username = root
password = eLaStIx.2oo7
[asterisk]
Asterisk connection parameter
server = 127.0.0.1
should be matched in manager.conf
port = 5038
username = admin
secret = elastix456
; Recorded file path, if you want to lisens records from web,
; the path must could be read by apache and allow php to exec
monitorpath = /var/spool/asterisk/monitor/
; gsm,wav
monitorformat = wav
安装成功后就有了astercc的asterCMR和asterBilling两大功能了。