service mysqld restart
/etc/init.d/httpd restart
访问 http://asterisk18rc2/phpmyadmin/
排错:
Forbidden
You don't have permission to access /phpmyadmin/ on this server.
原因1:没有关闭SE Linux,或者关闭了SE Linux配置但是没有reboot Linux
原因2:phpmyadmin的owner不是asterisk,mode不是777
=================================================================================================================
2:安装 lame
# wget http://sourceforge.net/projects/lame/files/lame/3.99/lame-3.99.5.tar.gz/download
or http://nchc.dl.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz
# tar zxvf lame-3.99.5.tar.gz
# cd lame-3.99.5
# ./configure
# make
# make install
=================================================================================================================
四:安装FreePBX
这个必须在asterisk 完全安装后才能装
下载地址:可以到 http://www.freepbx.org(官方)
http://mirror.freepbx.org/freepbx-2.9.0.tar.gz
# tar -xvf freepbx-2.9.0.tar.gz
# cd freepbx-2.9.0
# ./start_asterisk start
这里要注意的是。首先我们必须吧mysql密码设置为空,方便运行以下命令(建立相关asterisk 数据库)
/etc/init.d/mysqld start
mysql -u root -ppassw0rd
mysql> set password for root@localhost=password('');
mysql -u root
# mysqladmin create asterisk
# mysqladmin create asteriskcdrdb
# mysql asterisk < SQL/newinstall.sql
# mysql asteriskcdrdb < SQL/cdr_mysql_table.sql
# mysql
# GRANT ALL PRIVILEGES ON asteriskcdrdb.* TO asteriskuser@localhost IDENTIFIED BY 'passw0rd';
# GRANT ALL PRIVILEGES ON asterisk.* TO asteriskuser@localhost IDENTIFIED BY 'passw0rd';
# ./install_amp --username=root --password=passw0rd //这里我的mysql用名为root,密码是888888
Checking for PEAR DB..OK
Checking for PEAR Console::Getopt..OK
Using username: root
Using password: ********
Checking user..OK
Checking if Asterisk is running..running with PID: 4173..OK
Checking for /etc/amportal.conf../etc/amportal.conf does not exist, copying defa
ult
Creating new /etc/amportal.conf
Enter your USERNAME to connect to the 'asterisk' database:
[root]
Enter your PASSWORD to connect to the 'asterisk' database:
[passw0rd]
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]
Enter the IP ADDRESS or hostname used to access the AMP web-admin:
[xx.xx.xx.xx] asterisk18rc2
Enter a PASSWORD to perform call transfers with the Flash Operator Panel:
[passw0rd]
Use simple Extensions [extensions] admin or separate Devices and Users [devicean
duser]?
[extensions]
Created /var/lib/asterisk/bin
Enter directory in which to store super-user scripts:
[/usr/local/sbin]