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. Support
  3. Cannot login to FOP2

Cannot login to FOP2

Scheduled Pinned Locked Moved Support
4 Posts 2 Posters 65 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.
  • C
    C
    CTJackal
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • N
      N
      nicolas
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • C
        C
        CTJackal
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • N
          N
          nicolas
          wrote on last edited by
          #4

          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,

          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