Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

FOP2 Community Forum

  1. Home
  2. Blog
  3. Instalando FOP2 en Elastix 4

Instalando FOP2 en Elastix 4

Scheduled Pinned Locked Moved Blog
2 Posts 2 Posters 992 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N
    N
    nicolas
    wrote on last edited by
    #1

    Ingrese al sistema como root, y desde la línea de comandos ingrese los siguientes comandos:

    [fixed]cd /usr/src
    wget http://www.fop2.com/download/centos64 -O fop2.tgz
    tar zxvf fop2.tgz
    cd fop2
    make install
    /usr/local/fop2/generate_override_contexts.pl -w[/fixed]

    Con eso el FOP2 ya queda instalado. Pero ahora deberá desactivar el FOP 1 que viene por defecto en Elastix 4, ya que no pueden correr de forma simultánea. Para hacerlo, edite el archivo /etc/rc.d/rc.local y comente la línea que inicia el viejo FOP 1 anteponiendo el signo # a la que dice /usr/sbin/amportal start_fop. Se verá así:

    #!/bin/sh
    #
    # This script will be executed *after* all the other init scripts.
    # You can put your own initialization stuff in here if you don't
    # want to do the full Sys V style init stuff.
    
    touch /var/lock/subsys/local
    /usr/local/sbin/motd.sh > /etc/motd
    /usr/sbin/fxotune -s
    #/usr/sbin/amportal start_fop
    

    Luego edite el archivo safe_opserver que se encuentra generalmente en esta ruta: /var/www/html/admin/modules/fw_fop/safe_opserver

    En dicho archivo hay que insertar una nueva línea que diga "exit" justo al principio del mismo en la segunda línea, se debería ver asi:

    #!/usr/bin/env sh
    exit
    . /etc/amportal.conf
    
    while true; do
    $FOPWEBROOT/op_server.pl
    sleep 4
    done
    

    Finalmente debe detener el FOP1 que está en ejecución con el comando:

    [fixed]/usr/sbin/amportal stop_fop[/fixed]

    Luego debe configurar el usuario del manager en Asterisk para que el FOP2 pueda funcionar. En /etc/asterisk/manager_custom.conf agregue el usuario del fop2 como este:

    [fop2]
    secret = fop222
    deny = 0.0.0.0/0.0.0.0
    permit = 127.0.0.1/255.255.255.0
    read = all
    write = all
    writetimeout = 1000
    eventfilter=!Event: RTCP*
    eventfilter=!Event: VarSet
    eventfilter=!Event: Cdr
    eventfilter=!Event: DTMF
    eventfilter=!Event: AGIExec
    eventfilter=!Event: ExtensionStatus
    eventfilter=!Event: ChannelUpdate
    eventfilter=!Event: ChallengeSent
    eventfilter=!Event: SuccessfulAuth
    

    Luego de agregado dicho usuario , debe recargar la configuración del manager:

    [fixed]
    asterisk -rx "manager reload"
    [/fixed]

    Y luego edite el archivo /usr/local/fop2/fop2.cfg y pon el mismo usuario y clave (modifique las entradas que están al principio de dicho archivo, no agregue líneas nuevas)

    manager_user=fop2
    manager_secret=fop222
    

    Una vez guardados los cambios, puedee comprobar si el usuario de manager y la configuración del FOP2 coinciden:

    [fixed]
    /usr/local/fop2/fop2_server --test
    [/fixed]

    Deberá responder que la conexión al manager se realizó con éxito.

    Finalmente ingrese al FOP2 Manager del FOP2 con su navegador:

    http://su.servidor/fop2/admin

    Ingresas con las mismas credenciales de Elastix/FreePBX, la primera vez se crearán las tablas necesarias para configuración. Aproveche la oportunidad para seleccionar la solapa Usuarios y configurar un usuario o bien una clave para un un usuario. Luego de lo cual puedes iniciar o reiniciar el servicio:

    [fixed]
    service fop2 restart
    [/fixed]

    Finalmente puede ingresar al panel con su navegador

    http://su.servidor/fop2

    1 Reply Last reply
    0
    • J
      J
      jcattan
      wrote on last edited by
      #2

      hi,
      if you don't use fop1 you can remove it from freepbx modules admin (FOP Framework)
      it 's more easy

      1 Reply Last reply
      0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      Powered by NodeBB Contributors
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups