Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Descargar el tarball, descomprimirlo e instalar el paquete.
- # cd /usr/src
- # wget http://download.fop2.com/fop2-2.24-debian-i386.tgz
- # ls
- fop2-2.24-debian-i386.tgz
- # tar zxvf fop2-2.24-debian-i386.tgz
- # cd fop2
- # make install
- =========================================
- Configurar el manager de asterisk
- # vim /etc/asterisk/manager.conf
- [general]
- displaysystemname = yes ;Solo vale para Asterisk 1.4
- enabled = yes
- port = 5038
- bindaddr = 0.0.0.0
- ;
- ;FOP2
- [admin]
- secret = amp111
- deny = 0.0.0.0/0.0.0.0
- permit = 127.0.0.1/255.255.255.0
- read = system,call,command,agent,user,originate
- write = system,call,command,agent,user,originate
- # asterisk -rx "module reload"
- ==========================================
- Verificar la misma configuración en el archivo /usr/local/fop2/fop2.cfg
- # vim /usr/local/fop2/fop2.cfg
- [general]
- manager_host=127.0.0.1
- manager_port=5038
- manager_user=admin
- manager_secret=amp111
- ==========================================
- Crear el directorio indicado a continuación y editar el archivo /etc/init.d/fop2 y agregar la línea export PAR_GLOBAL_TMPDIR=/usr/local/fop2/temp en los lugares indicados.
- # mkdir /usr/local/fop2/temp
- # vim /etc/init.d/fop2
- start)
- echo -n "Starting $DESC: $NAME"
- export PAR_GLOBAL_TMPDIR=/usr/local/fop2/temp
- stop)
- echo -n "Stopping $DESC: $NAME"
- export PAR_GLOBAL_TMPDIR=/usr/local/fop2/temp
- reload)
- # If the daemon can reload its config files on the fly
- # for example by sending it SIGHUP, do it here.
- #
- # If the daemon responds to changes in its config file
- # directly anyway, make this a do-nothing entry.
- #
- echo -n "Reloading $DESC configuration..."
- export PAR_GLOBAL_TMPDIR=/usr/local/fop2/temp
- restart|force-reload)
- #
- # If the "reload" option is implemented, move the "force-reload"
- # option to the "reload" entry above. If not, "force-reload" is
- # just the same as "restart".
- #
- echo -n "Restarting $DESC: $NAME"
- export PAR_GLOBAL_TMPDIR=/usr/local/fop2/temp
- ==========================================
- Correr el test para verificar si la conexión con el manager fue satisfactoria.
- # export PAR_GLOBAL_TMPDIR=/usr/local/fop2/temp
- # /usr/local/fop2/fop2_server --test
- Flash Operator Panel 2 - No valid license found. Demo Mode
- Connection to manager OK!
- ==========================================
- Se puede proceder a lanzar el servicio
- # /etc/init.d/fop2 start
- Starting Flash Operator Panel 2: [ OK ]
- ==========================================
- Agregar el parámetro callevents al general del sip.conf
- # vim /etc/asterisk/sip.conf
- [general]
- callevents=yes
- ==========================================
- Agregar el parámetro eventwhencalled a cada una de las colas del queues.conf que queramos exhibir en el panel.
- # vim /etc/asterisk/queues.conf
- [INBOUND]
- eventwhencalled=yes
- ==========================================
- Editar el archivo fop2.cfg y comentar la línea #exec que se usa solo para integración con FreePBX. Se crea un usuario para poder hacer login en el panel. Se verifica la línea que indica dónde se alojará la configuración de los botones.
- # vim /usr/local/fop2/fop2.cfg
- ;
- ;#exec autoconfig-users-freepbx.sh
- ;
- user=user:user:all
- ;
- buttonfile=buttons.cfg
- ==========================================
- Editar el archivo buttons.cfg y agregar la configuración de los botones que se desean visualizar
- # vim /usr/local/fop2/buttons.cfg
- [SIP/1010]
- type=extension
- extension=1010
- context=extensiones
- label=Extension 1010
- channel=SIP/1010
- ;
- [QUEUE/INBOUND]
- type=queue
- label=Entrante Comercial
- ===========================================
- Para hacer debug del servicio se usa la cadena siguiente
- # /usr/local/fop2/fop2_server -X 511
- ===========================================
- Identificar la versión actual del panel
- # /usr/local/fop2/fop2_server -v
- ===========================================
- Para instalar una licencia se lleva a cabo lo siguiente:
- # export PAR_GLOBAL_TMPDIR=/usr/local/fop2/temp
- /usr/local/fop2/fop2_server --register
- License Activation
- ------------------
- Enter your serial code: xxxxxxxxx
- Serial code available!
- Registration Successfull
- ===========================================
- Para revocar una licencia existente llevar a cabo lo siguiente:
- # export PAR_GLOBAL_TMPDIR=/usr/local/fop2/temp
- # /usr/local/fop2/fop2_server --revoke
- License Revoke
- --------------
- Enter your serial code: xxxxxxxxx
- Revokation Successfull
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement