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. Installing FOP2 on MiRTA PBX

Installing FOP2 on MiRTA PBX

Scheduled Pinned Locked Moved Blog
1 Posts 1 Posters 794 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

    #Installing FOP2 on MiRTA PBX ( http://www.mirtapbx.com )

    Since version 2.30, FOP2 includes support for the multi tenant MiRTA PBX. As this system uses the Asterisk realtime backend in all aspects, there are some specific steps to integrate FOP2 with it. Also the multi tenancy aspect of the PBX might require some code tweaks on certain FOP2 components (like call history/cdr).

    Here is a brief guide on installing FOP2 on this platform:

    • Download and Install FOP2 normally. MiRTA uses the Centos 64 bits platform. So you should run these commands:

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

    • Change ownership of files to ‘apache’ user:

    [fixed]
    chgrp apache /usr/local/fop2
    chown apache.apache /var/www/html/fop2
    chown apache.apache /var/www/html/fop2/* -R
    chgrp apache /usr/local/fop2/fop2settings.db
    [/fixed]

    • Add a new manager user into Asterisk by editing the file /etc/asterisk/manager.conf and adding at the end:
    [fop2]
    secret = fop333
    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
    
    • Edit the fop2 configuration file located in /usr/local/fop2/fop2.cfg

    ** set manager_user and manager_secret with the same user/secret you created on the previous step:

    manager_user=fop2
    manager_secret=fop333
    

    ** set odbc voicemail:

    voicemail_path=dbi:ODBC:asterisk1!voicemail_messages
    
    • Edit the FOP2 Manager configuration file located in /var/www/html/fop2/admin/config.php
    $DBHOST="localhost";
    $DBUSER="root";
    $DBPASS="passw0rd";
    $DBNAME=“asterisk";
    $ENGINE="mirtapbx";
    
    • In the same FOP2 Manager configuration file, change the admin user and password. We strongly suggest to use a different user/password combo than the one provided by default.
    $ADMINUSER = "fop2admin";
    $ADMINPWD  = "fop2admin";
    
    • Initialize de FOP2 Database by running this command:

    [fixed]
    php -f /var/www/html/fop2/admin/update_conf.php 1
    [/fixed]

    • Restart the Asterisk Manager with this command:

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

    • Log into the FOP2 Manager by pointing your browser to http://your.server/fop2/admin using the user/password you configured before. Once logged in, go to the Plugins tab and install the MiRTA plugin.

    • Once the plugin is installed, copy the ODBC compatibility helper into your MiRTA installation:

    [fixed]
    cp /var/www/html/fop2/admin/plugins/mirtapbx/fop2-odbc-mirta.conf /etc/asterisk/func_odbc.d/
    [/fixed]

    • From the FOP2 Manager, select a particular tenant, then go to the Users tab and select the "Recreate Users" options from the Action menu for that tenant.

    This is the basics to get you started.

    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