Cannot login to FOP2

Hi,

Just upgraded to v2.11 and find that I can't get a login as an extension. FOP2 is running on port 4445 and appears to be OK, however I enter the extension number and password on starting the flash client, then it attempts to connect to the server but fails. fop2_server -X 15 gives:

192.168.200.33 => <?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">;
<cross-domain-policy>
<allow-access-from domain="*" secure="false" to-ports="4445" />
</cross-domain-policy>


** CLEAN SOCKET connection lost removing socket IO::Socket::INET=GLOB(0xab01ce8)
** CLEAN SOCKET flash client connection lost
No flash clients connected

192.168.200.33 <= <msg data="GENERAL|contexto|1|" />
192.168.200.33 => { 'btn': '0', 'cmd': 'key', 'data': 'ZiQmv0sh6uNJNcm7WbgeuLpCg', 'slot': '' }

192.168.200.33 => { 'btn': '0@GENERAL', 'cmd': 'version', 'data': '2.11', 'slot': '' }

192.168.200.33 <= <msg data="1|auth|501|e1a60eeb9f4026059a177f3f3e22bb4e" />
192.168.200.33 => { 'btn': '0', 'cmd': 'incorrect', 'data': '0', 'slot': '' }

** CLEAN SOCKET connection lost removing socket IO::Socket::INET=GLOB(0xaa38c44)
** CLEAN SOCKET flash client connection lost
No flash clients connected

Any ideas?

Cheers,

Carlos

Comments

  • Hello,

    Run the script autoconfig-users-freepbx.sh in the linux command line and look for the output for valid extnesions and passwords to login.
  • Thanks Nicolas,

    You're correct, there's no appropriate output. Checking the MySQL databases, there's no such table as 'fop2users' within the 'asterisk' database, hence autoconfig-users.sh produces no output other than the button file.

    How was that supposed to be added? During the installation of FOP2?

    Cheers,

    Carlos.
  • Hola Carlos,

    The autoconfig-users-scripts.sh first try to determine if you have the table created or not, maybe that part is failing or not correctly done ? The table is created when you install the fop2admin freepbx module, that lets you manage users password, permissions and groups from the web gui.
    for A in `mysql -NB -u $DBUSER -p$DBPASS -h $DBHOST $DBNAME -e "SHOW tables FROM asterisk LIKE 'fop2users'"`
    do
    let FOP2PLUGIN=FOP2PLUGIN+1
    done
    

    That is the part of the script that will increment the FOP2PLUGIN variable if it finds the fop2user table. Perhaps you can add an echo line so we can debug why it is failing:
    for A in `mysql -NB -u $DBUSER -p$DBPASS -h $DBHOST $DBNAME -e "SHOW tables FROM asterisk LIKE 'fop2users'"`
    do
    echo $A
    let FOP2PLUGIN=FOP2PLUGIN+1
    done
    


    You can also just set the variable to zero after that snippet to force the regular user creationg based on voicemail.conf... but if you use freepbx the fop2admin module is much better.

    Best regards,
Sign In or Register to comment.