FreePBX FOP1 to FOP2
FreePBX FOP1 to FOP2
How to change FOP1 to FOP2 on Elastix
1. Download and install FOP2
1
2
3
4
5
cd /usr/src
wget http://www.fop2.com/file.php?file=20
tar -zxvf fop2-2.22-centos5-i386.tgz
cd fop2
make && make install
2. Add fop2 user to Asterisk Manager.
Edit /etc/asterisk/manager.conf
1
2
3
4
5
6
[fop2]
secret = psfop2
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
read = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate
write = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate
3. Edit /usr/localfop2/fop2.cfg and change the following lines.
1
2
manager_user=fop2
manager_secret=psfop2
4.Edit /etc/amportal.conf and edit the uncomment the line starting FOPRUN and change it as following.
1
FOPRUN=false
5. Edit /var/www/html/panel/op_server.cfg and change listen_port.
1
listen_port=4444
6. Edit /etc/httpd/conf/httpd.conf and add the following line under Aliases:
1
alias /panel /var/www/html/fop2
7. Add FreePBX index file and change the fop2 ownership asterisk.
1
2
cp /var/www/html/fop2/index.html /var/www/html/fop2/index_amp.php
chown -R asterisk.asterisk /var/www/html/fop2
8. Restart httpd,amportal and fop2 services.
1
2
3
4
/etc/init.d/httpd restart
chkconfig fop2 on
service fop2 start
/usr/sbin/amportal restart
This post is licensed under CC BY 4.0 by the author.