Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

FreePBX + FOPv2. Major Kudos to PowerBX.org for this guide.

For integration with FreePBX v13 read here

First create a Manager in the FreePBX GUI under Asterisk API, we will be making fop2.cfg match Asterisks manager_addition.conf. (Just the user/pwd)
Use the following in the Asterisk API (web) :

 

deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
cat /usr/local/fop2/fop2.cfg | grep manager_user && cat /usr/local/fop2/fop2.cfg | grep manager_secret && head -2  /etc/asterisk/manager_additional.conf
manager_user=admin
manager_secret=amp111 
[admin]
secret = amp111 
If Needed:
sudo nano /etc/asterisk/manager_additional.conf


 

Make FreePBX report FOP2

cd /usr/local/fop2 && cat extensions_override_freepbx.conf >>/etc/asterisk/extensions_override_freepbx.conf && cp /var/www/html/fop2/index.html /var/www/html/fop2/index_amp.php && chown -R asterisk.asterisk /var/www/html/fop2 && chown -R asterisk.asterisk /var/www/html/fop2 && sudo nano /etc/httpd/conf/httpd.conf && service httpd restart && /usr/local/fop2/fop2_server --test && sh -c 'echo "listen_port=4444" >> /var/www/html/panel/op_server.cfg' && nano /usr/src/fop2patch.diff && cd /var/www/html/admin/modules/dashboard && patch < /usr/src/fop2patch.diff && chkconfig fop2 on && service fop2 start && reboot 
/etc/httpd/conf/httpd.conf :
alias /panel/ "/var/www/html/fop2/" 

/usr/src/fop2patch.diff

--- class.procinfo.php  2011-01-06 12:54:05.000000000 -0500
+++ class.procinfo.php.new      2011-01-06 12:47:55.000000000 -0500
@@ -24,6 +24,7 @@
     } else {
       $listen_port = 4445;
     }
+     $listen_port = 4445;
 
                return $this->check_port($listen_port);
        }
  • No labels