Tutorial: Installing FOP2 on Elastix & other Freepbx Dist.

For those that are interested, I have just posted up a Tutorial on installing FOP2 Elastix (1.5 and 1.6Beta & will probably suit earlier).

This is not a replacement for Nicolas's extensive and very good documentation, but more of a quick how to get moving with FOP2 so that you can experience what FOP2 is all about. Once you have got the basics working, then spend the time and read the FOP2 documentation on how to improve and use FOP2.

The link if you are interested is

http://www.elastixconnection.com/index. ... &Itemid=97

It should also suit anyone with distributions such as PIAF, Trixbox and generally any Freepbx based distribution.

Regards
Bob

Comments

  • This is really helpful. Thanks for sharing!
  • I have followed the instructions and triple checked everything but when I run

    /usr/local/fop2/fop2_server –test

    I get the following error

    -bash: /usr/local/fop2/fop2_server: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

    Please help
  • You are probably running the incorrect binary for your plataform. Be sure to download the correct one for your distribution: centos/debian 32/64 bits.

    You can find out if its 32 or 64 bits with this command:

    uname -a

    If you see the i386, i585 or i686 strings in there, it is 32 bits. If not it is 64 bits.

    Best regards,
  • ah ha. thanks very much. do i need to uninstall the 32 bit ver and how do i do it
  • You can download the other version and install over, no need to uninstall. The needed files will be overwritten.
  • Bob, your link went bad :o

    http://www.elastixconnection.com/index. ... &Itemid=89
  • I have problem in installation when using :

    /usr/local/fop2/fop2_server –test

    I get:


    Can't run with DEBUGGING Perl at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 253.
    BEGIN failed--compilation aborted at /loader/0x8b28084/Filter/Crypto/Decrypt.pm line 37.
    Compilation failed in require at script/fop2_server.pl line 1.
    BEGIN failed--compilation aborted at script/fop2_server.pl line 1.

    I have stopped fop
  • Hi,

    FOP2 does not work with perl compiled in debugging mode. You will need to update your perl or recompile without debugging flags. There are some .rpm in the download page for fedora systems and old centos 4 that come with such a perl.

    I have problem in installation when using :

    /usr/local/fop2/fop2_server –test

    I get:


    Can't run with DEBUGGING Perl at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 253.
    BEGIN failed--compilation aborted at /loader/0x8b28084/Filter/Crypto/Decrypt.pm line 37.
    Compilation failed in require at script/fop2_server.pl line 1.
    BEGIN failed--compilation aborted at script/fop2_server.pl line 1.

    I have stopped fop
  • HI there

    Every time I run /usr/share/fop2/fop2_server I get the following out put:

    cat: /usr/share/freepbx/admin/modules/framework/module.xml: No such file or directory
    /usr/share/fop2/autoconfig-buttons-freepbx.sh: line 17: [: -gt: unary operator expected

    Can anyone assist?
  • I think I have sent you an email. You have an old/outdated FreePBX version. The fix is not complicated, you have to edit autoconfig_buttons_freepbx.sh and remove the following block:
    AMPVERSION=`cat $AMPDIR | grep "<version>" | sed -e 's/<[^>]*>//g' | cut -b 2,4`
    
    if [ $AMPVERSION -gt 25 ]; then
    QUEUECONTEXT="from-queue"
    else
    QUEUECONTEXT="from-internal"
    fi
    

    and replace it with:
    QUEUECONTEXT="from-internal"
    


    You have FreePBX or a fork based on version 2.5, consider that FreePBX is now on stable version 2.10. Even in version 2.5 the module.xml file was present as far as I remember. But it is not on your system.
  • OK here is where I am with this. I did a fresh install off elastix 2.2 then install fop2 from the addon mod, setup an extension, add a manager, I then tried to connect via the extension that I setup, and no go, it don't work. It just comes up with "could not connect to server" . does anyone out their really have a step by step instruction off how this work. I Know that the addon mod was to make the install easy. But I believe that their more to it than what is posted. I bought the licence off witch I can't used, because I can't even get the basic setup to work. I paid for support from elastix off which was no help. I don't mind paying someone to install this for me, but I also need to know how its done. again is their anyone out their that real knows how this thing works. Help.
  • OK here is where I am with this. I did a fresh install off elastix 2.2 then install fop2 from the addon mod, setup an extension, add a manager, I then tried to connect via the extension that I setup, and no go, it don't work. It just comes up with "could not connect to server" . does anyone out their really have a step by step instruction off how this work. I Know that the addon mod was to make the install easy. But I believe that their more to it than what is posted. I bought the licence off witch I can't used, because I can't even get the basic setup to work. I paid for support from elastix off which was no help. I don't mind paying someone to install this for me, but I also need to know how its done. again is their anyone out their that real knows how this thing works. Help.

    Hi,

    You can contact the live help for assistance... If you installed via market then there is nothing else to do.

    But, fop2 is a client/server application, and requires a clean network connection to tcp port 4445. If you do not clear that connection up, you won't be able to connect. It is not a user/password problem, it is a network connection/configuration problem. And as such, there is no step by step guide, as the network was set by someone, with some particular rules, equipment, etc. There are no two networks alike, so it is impossible to have a step by step guide. As there are no steps, just the clear notion that your network path from the client(browser), and the server (fop2_Server) should clear up tcp port 4445 (forwarding if server if behind a router, and also allowing that flow).

    How to check: telnet to port tcp 4445 from your desktop to the server. If it connects, then your browser connection should work fine. If it does not connect, you must fix your network.

    If you contact me via the live help and provide access to your panel, I can verify network issues in 2 minutes, trying that telnet command is quite easy.

    Best regards,
  • I did everything from the first post and I got this:

    /usr/local/fop2/fop2_server --test
    Flash Operator Panel 2 - No valid license found. Demo Mode
    Connection to manager OK!

    When I try to log in into FOP2 it shows follow error

    Could not connect to server

    Can you help me, What should I do to make it works..
  • One thing is the server connection to the asterisk box

    Another thing is your browser trying to connect to fop2 server

    You are --testing the former

    You have problems with the later.

    To troubleshot CLIENT problems, there is a nice troubleshoter that might help you out

    http://support.asternic.biz/index.php?/ ... tep/View/4

    My guess is that you have a firewall in place preventing connection to port tcp/4445 OR the fop2 service is not started
  • Hello Admins,

    Please help me with my issue :(

    I installed Asterisk PBX Distro 64bit:
    Stable-3.211.63-10
    FreePBX 2.11, Centos 6.3
    Asterisk 1.8

    After that installed fop2 trial version.

    When I checked
    /usr/local/fop2/fop2_server –test

    I have this is message in console
    Flash Operator Panel 2 - No valid license found. Demo Mode

    Can't listen to port 4445

    Early I don't installed previous version FOP.
    How I can fix this problem?
    Thank you in advance!
  • It is --test (dash dash test)

    It seems you are entering only one dash, so when you type that fop2 tries to execute normally, and if it is already running, it will say that it can listen to port 4445.

    Best regards,
  • Thank you!
    This is really fixed my issue.

    Best regards,
    Edem
  • I have a problem installing FOP2 admin on freepbx. I have made sure that I have the park and queue modules enabled, I have even re-installed them. But I still get the 'Please wait while module actions are performed' hanging upon trying to install the module.

    I am using FreePBX 2.11

    Any help would be greatly appreciated :-)
  • what fop2admin version are you having problems with?
  • Hi All,
    Before I get the login screen the message "something went wrong" appears briefly. When I am logged in to FOP2 I only see a menu bar with Filter, Dial, and Available buttons on the left and a Logout button on the right. No buttons for extensions, queues etc. The placeholders for the extensions, queues etc areas briefly show up after I login but they are not filled in and disappear. The screen remains blank with a dark grey status bar at the bottom ("FOP2 - Version 2.28 - Lite Version - Limited to 15 extensions . Buy it now for unlimited extensions. If you already have a code enter it here"),

    I Installed the i386 version fop2-2.28-centos-i386(1).tgz according to the tutorial.
    on PBX in A Flash :
    PIAF Installed Version = 2.0.6.5
    FreePBX Version = 2.10.1.16
    Running Asterisk Version = 11.10.0
    Asterisk Source Version = 11.10.0
    Dahdi Source Version = 2.9.0
    Libpri Source Version = 1.4.14
    Operating System = CentOS release 6.5 (Final)
    Kernel Version = 2.6.32-431.1.2.0.1.el6.i686 - 32 Bit

    I uninstalled FOP ( 1) amportal stop_fop, 2) in freepbx:module admin remove the fop framework. 3) and then reboot)

    "/usr/local/fop2/fop2_server --test" gives:
    Flash Operator Panel 2 - License file fop2.lic not found.
    Running in Demo Mode
    Connection to manager OK!

    I enabled a debug log with options "-l /var/log -X 15". This produced a log in which I can find no obvious errors. All extensions and one queue on my system seem to be found,

    Any idea what is wrong?

    regards,
    Tom
  • Did you modify fop2.cfg in any way appart from the manager user and secret?

    What is the output from :

    /usr/local/fop2/autoconfig-users.sh

    ?
  • The output of
    Hi
    Thanks for the quick reply,
    $ /usr/local/fop2/autoconfig-users.sh
    user=1234:4242:all
    user=234:1234:all
    user=1234:5678:all
    
    buttonfile=autobuttons.cfg
    

    In the proces of getting things to work I changed :
    manager_host=localhost  to manager_host=127.0.0.1   (seems hardly a change :D  )
    monitor_ipaddress = 1 (not relevant i suppose)
    
    and added:
    user=712:ab12:all (which gives the same result as an extension login)
    

    regards
    Tom
  • BTW , I did not change the manager user and secret, this is still testing. They are the same as in the other file

    Tom
  • For the user configuration it seems you did not log into fop2manager or you did not apply changes into freepbx configuration so the fop2manager could do its job. Go to http://your.server/fop2/admin and check the "fop2 users" and "fop2 buttons" tabs, what do you see there? After that, restart fop2 with the command "service fop2 restart" and try again.

    Best regards,
  • Hi Nicolas,

    That works!
    (How did I miss fop2 manager?)

    When connecting to fop2/admin, the user tab says 6 users, the buttons tab 7 buttons. Restart of fop2 did not do the trick but a compleet reboot did. I have a working fop2 now with all extension buttons and queue button, and function buttons on the menu bar. Thanks!

    When connecting to the fop2 page I still get a message "Something went wrong". Apparently there is:
    The groups I created in the groups tab (add group, mark some extensions , reload asterisk with the button on bottom left) were not visible as boxes in the fop2 panel. The group names were also not filled in in the 'Group' field for each button on the buttons tab, When I filled in the group names there (with pressing reload asterisk on bottom left), the group boxes were still not visible
    amportal stop; service fop2 restart; amportal start did result in group boxes for the extensions.
    Any idea why the boxes do not show up until after a compleet restart of Asterisk? However, this is not a big problem.

    Thanks for helping me so quickly. Everything is working now as far as I can see, but I still need to get to the telephones and try it.

    regards,
    Tom
  • Hi,

    The "something went wrong" message is always there, but is quickly hidden when the app statrs. If the app fails for whatever reason, then you will still see the message and that is how you know that something went bad, otherwise if the app fails you won't notice as the app itself is the one that hides/unhides page elements.

    As for the groups, there are two kinds of groups, you are interested in the visual grouping of buttons on the page, that is set only in the "fop2 buttons" tab, not in the "fop2 groups" tab (fop2 groups are used to filter views or to limit advanced permissions, not to visually group on the display.

    There is no need to restart asterisk for any fop2 settings to work, you need to reload fop2 (and that reload is triggered also when asterisk itself reloads). Then login off and on again into fop2 should work. The only exception are install/uninstall plugins, for new plugins to be activated fop2 needs to be restarted (not asterisk), with the command: "service fop2 restart".

    If the asterisk reload from menu does not appear to work when changing some settings, you might have some kind of problem with the execution of the script that actually reloads fop2 (/var/www/html/fop2/admin/update_conf.php). You can try to execute that script from the command line and check for errors there, if you do not see any errors, then you should be fine.

    Best regards,
  • OK, perfect!

    thanks again,

    Tom
Sign In or Register to comment.