Segue o passo a passo:
TROCANDO FOP por FOP2 ELASTIX
SE Não baixar pelo wget, ir no site do FOP2, baixar pelo pc e transferir para o Elastix:
cd /usr/src
tar -zxvf fop2-2.xx-centos7-x86_64.tgz
cd fop2
make && make install
vim /etc/asterisk/manager.conf
[fop2]
secret = 123456
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
vim /usr/localfop2/fop2.cfg
manager_user=fop2
manager_secret=123456
vim /var/www/html/admin/modules/fw_fop/op_server.cfg
listen_port=4444
Colocar o Alias abaixo do <ifModule alias_module>, acredito que não precise mais, porem está incluido:
vim /etc/httpd/conf/httpd.conf
<IfModule alias_module>
Alias /panel/ "/var/www/html/fop2"
#
# Redirect: Allows you to tell clients about documents that used to
# exist in
cp /var/www/html/fop2/index.html /var/www/html/fop2/index_amp.php
cp /var/www/html/fop2/index_amp.php /var/www/html/fop2/index.php
chown -R asterisk.asterisk /var/www/html/fop2
rm -rf /var/www/html/admin/modules/fw_fop
ln -s /var/www/html/fop2 /var/www/html/admin/modules/fw_fop
mkdir /usr/local/fop2/js/
ln -s /var/www/html/fop2/js/presence.js /usr/local/fop2/js/presence.js
vim /var/www/html/fop2/js/presence.js
var presence = new Object();
presence[''] = '';
presence['Do Pertube'] = '#FF8A8A';
presence['Almoco'] = '#57BCD9';
presence['Pausa'] = '#6094DB';
presence['Reuniao'] = '#CDD11B';
/* Uncomment the following to enable pause menu with reasons
*/
var pauseReasons = new Object();
pauseReasons['Pausa'] = 1;
pauseReasons['Almoco'] = 2;
pauseReasons['Lanche'] = 3;
pauseReasons['Saida'] = 4;
pauseReasons['Reuniao'] = 5;
/* Uncomment the following to enable queue penalty set
*/
var queuePenalties = new Object();
queuePenalties['Baixa'] = 2;
queuePenalties['Media'] = 1;
queuePenalties['Alta'] = 0;
vim /usr/local/fop2/fop2.cfg
#exec autoconfig-users.sh
vim /usr/local/fop2/autobuttons.cfg
#exec autoconfig-buttons.sh
service httpd restart
chkconfig fop2 on
service fop2 start
/usr/sbin/amportal restart
/usr/local/fop2/fop2_server --test
/usr/local/fop2/fop2_server --test
Flash Operator Panel 2 - License file fop2.lic not found.
Running in Demo Mode
Connection to manager OK!
ALTERAR O SCRIPT DE BACKUP, se tiver .lic incluir no arquivo:
vim /usr/share/elastix/privileged/backupengine
'desc' => 'Flash Operator Panel Config Files',
'components' => array(
array(
'type' => 'dir',
/*
'parentdir' => '/var/www/html/',
'pathlist' => array(
'panel/*.cfg',
'panel/*.txt',
),
'backupfile' => 'var.www.html.panel.tgz',
*/
'parentdir' => '/usr/local/',
'pathlist' => array(
'fop2/*.cfg',
'fop2/js/presence.js',
/* 'fop2/*.txt', */
),
'backupfile' => 'fop2.tgz',
),