Elastix 4 com FOP2 novo procedimento ?

386 views
Skip to first unread message

Jose Carlos Lucas

unread,
Mar 13, 2016, 4:19:51 PM3/13/16
to ElastixBrasil
Boa Tarde,

     Alguém já conseguiu colocar o FOP2 no lugar do FOP no Elastix 4 ? tentei pelo procedimento do 2.5 mas não foi.

Obrigado.

Jose Carlos Lucas

unread,
Mar 26, 2016, 2:16:49 PM3/26/16
to ElastixBrasil
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',
                ),
Reply all
Reply to author
Forward
0 new messages