4) 备份modules.conf , FreePBX安装时会修改Apache的配置文件
sudo cp /etc/asterisk/modules.conf ~/asterisk-modules.conf
5) 安装FreePBX
sudo ./install_amp
输入对应的参数
- Enter your USERNAME to connect to the 'asterisk' database:
- [asteriskuser] asterisk
- Enter your PASSWORD to connect to the 'asterisk' database:
- [amp109] badasspassword
- Enter the hostname of the 'asterisk' database:
- [localhost]
- Enter a USERNAME to connect to the Asterisk Manager interface:
- [admin]
- Enter a PASSWORD to connect to the Asterisk Manager interface:
- [amp111]
- Enter the path to use for your AMP web root:
- [/var/www/html]
- /var/www/freepbx/public
- Enter the IP ADDRESS or hostname used to access the AMP web-admin:
- [xx.xx.xx.xx] freepbx
- Enter a PASSWORD to perform call transfers with the Flash Operator Panel:
- [passw0rd] password
- Use simple Extensions [extensions] admin or separate Devices and Users [deviceanduser]?
- [extensions]
- Enter directory in which to store AMP executable scripts:
- [/var/lib/asterisk/bin]
6)恢复asterisk-modules.conf
sudo cp ~/asterisk-modules.conf /etc/asterisk/modules.conf
7) 添加asterisk用户
sudo adduser www-data asterisk
修改权限/etc/amportal.conf 中添加
AMPASTERISKUSER=www-data
AMPASTERISKGROUP=asterisk
AMPASTERISKWEBUSER=www-data
AMPASTERISKWEBGROUP=asterisk
重启amportal
sudo amportal start
