Login Issues with FOP2 on Elastix 2.2

  1. 12 years ago

    Hi,

    I've installed FOP2 on Elastix 2.2 using the Add-ons feature, The demo worked fine (Firefox 12), I could see 15 extensions and this is exactly what we wanted and we bought a license. But then the login stopped working. I've been through the forums and none of the solutions appear to have worked.

    FOP2 is running and listening, 192.168.231.3 is my address:

    [root@server ~]# service fop2 status
    fop2_server (pid 24169 8336) is running...
    
    [root@server ~]# netstat -pant | grep 444
    tcp        0      0 0.0.0.0:4445                0.0.0.0:*                   LISTEN      8336/fop2_server    
    tcp        0      0 0.0.0.0:4446                0.0.0.0:*                   LISTEN      5991/perl           
    tcp        0      0 10.0.4.4:4445               192.168.231.3:37253         ESTABLISHED 8336/fop2_server

    But then I found this issue. I try to run the fop2_server --test command, and it gets so far but never connects:

    [root@server ~]# /usr/local/fop2/fop2_server -v
    fop2_server version 2.25
    
    [root@server ~]# /usr/local/fop2/fop2_server --test
    Flash Operator Panel 2 - Valid License (1)
    

    Nothing ever appears after the first line to say connection to the manager was a success. I let it sit until the ssh connection was automatically disconnected (I'm guessing at least an hour, I went to put the kids to bed.)

    I saw this site:

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

    And I've seen both things described happen.

    For "After entering extension and password, I am prompted to enter them again" I ran the script, but I don't see the voice passwords in the output file for any user. However, I know the credentials are correct. It was working before, and I can see what the voicemail password is in the Elastix web interface.

    For "After entering extension and password, it shows Connect Attempt 1,2,3 and eventually times out", I have made sure fop2 is running and the old fop is off. The file /etc/amportal.conf didn't have it set to false, just the true commented out, so I put the false in there just to be sure. I have disabled my adblock completely and restarted firefox. And I have double checked and the firewall is allowing port 4445.

    Any advice would be greatly appreciated! Thanks!

  2. admin

    4 Jun 2012 Administrator

    Hi,

    Either you are prompted for the password again, or you don't. If the connection to the server times out, it is impossible to reject you so it ask for the password again!.

    But it could be something else. In Elastix, you can use non ascii characters in extension names, in FreePBX that is forbidden. FOP2 supports accented characters, but only if they are saved as UTF8, but the labels in elastix are saved as Latin1.

    So maybe the problem is that you have an accented character in a button label (when in demo mode, perhaps that button was not in view because of the 15 buttons limit).

    To find out if that is the problem, do this, from the command line

    /etc/asterisk/fop2/autoconfig-buttons-freepbx.sh >/tmp/buttons.cfg
    file /tmp/buttons.cfg

    the output from file should be "ASCII text", if you see any other result, then most probably you have non ascii chars on a button label, you can fix that in the fop2 buttons menu option or directly in the elastix gui.

  3. After posting last night, I studied the scripts in /etc/asterisk/fop2/ more closely. I ended up manually added extension to fop2.cfg and I was able to log in. It then became apparent what /etc/asterisk/fop2/fop2settings.db was for, so added more extensions that can log in via the Elastix interface. That worked. So the lesson here is if FOP2 is installed via the add-ons in Elastix, extensions that can log into FOP2 must be created.

    Thanks!

  4. admin

    4 Jun 2012 Administrator

    You are right, you must create users in fop2 in order to login. When I say that you must check your credentials, if using FreePBX/Elastix you can check the users that fop2 will see/allow by running the autoconfig-users-freepbx.sh script. That way is simple to check if your extension/pass is the one fop2 will accept, in Elastix run:

    /etc/asterisk/fop2/autoconfig-users-freepbx.sh

    If you do not have any users created, then the list won't have any "user=" lines. Running this script will also give you an idea on how to configure things by hand when needed, or how to check for permissions or groups settings.

    Best regards,

or Sign Up to reply!