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. FOP 2 shows Duplicate Users in Extension Panel

FOP 2 shows Duplicate Users in Extension Panel

Scheduled Pinned Locked Moved Support
8 Posts 2 Posters 145 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.
  • R
    R
    rustybeans
    wrote on last edited by
    #1

    Hello. I am not sure why but my Extension Panel shows the users twice. I am using FreePBX 2.9.0.0. So far FOP2 seems to work very nicely. I just need to find a way to remove the duplicates. With that said, Usually 1 works and the other doesn't.
    Any assistance would help.
    Thanks

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

      the button configuration is created by the /usr/local/fop2/autoconfig-buttons-freepbx.sh script.

      That script will read the freepbx database and create buttons based on those entries. Do you see duplicate buttons when running the above script in the command line? Perhaps you have some kind of configuration in your DB that is generating duplicate records with a slight difference?

      1 Reply Last reply
      0
      • R
        R
        rustybeans
        wrote on last edited by
        #3

        It looks like there are 2 different configurations.... here is a pastebin link if you want to look at it http://pastebin.com/chscH3YD

        Here is an example....

        [SIP/2005]
        type=extension
        extension=2005
        label=Serina Mendoza
        mailbox=2005@default
        context=from-internal
        queuecontext=from-queue
        extenvoicemail=*2005@default
        privacy=none
        customastdb=CF/2005

        SIP/2005]
        type=extension
        extension=2005
        label=Serina Mendoza
        mailbox=2005@default
        context=from-internal
        queuecontext=from-queue
        extenvoicemail=*2005@default
        privacy=none
        queuechannel=Local/2005@from-queue/n|Penalty=0|MemberName=Serina Mendoza|StateInterfac e=SIP/2005
        customastdb=CF/2005

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

          Did you modify the autoconfig button script in any way? As it seems the script is running the mysql query TWICE? The 2nd one has some strange spacing issues (or perhaps it was a problem with the copy&paste for the long lines).

          If you did not modify the scripts then you have some kind of strange data in your freepbx mysql tables. If using fop2admin, try uninstalling it. You will lose your fop2 permissions and custom config if you have any. Then run the autoconfig script again, inspect the output. Then install fop2admin again, apply changes, and run the autoconfig script once more.

          1 Reply Last reply
          0
          • R
            R
            rustybeans
            wrote on last edited by
            #5

            Nothing changed. when I ran the script agian, it still showed me the same list of names. I have not modified anything that would cause this. I did what you said and I re ran the script /usr/local/fop2/autoconfig-buttons-freepbx.sh. what else can I do to resolve?

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

              The script does nothing, it will not fix nothing. It will show you the button list and configuration as taken from the mysql tables in freepbx, joined with the fop2 talbes if you installed fop2admin.

              Did you install fop2admin for freepbx? If so, how many buttons do you see on the fop2 buttons page? Do you see them duplicated? This is not a fop2 problem itself, is an interaction with probably some dirty data in your mysql tables and freepbx. If you installed fop2admin, UNINSTALL it, as I recommended before. Then check again.

              1 Reply Last reply
              0
              • R
                R
                rustybeans
                wrote on last edited by
                #7

                Hello. I did install fop2admin. I see the correct amount of buttons. They are not duplicated. I have uninstalled and I get the same problem. do I install fop2 completely? if the DB is dirty, wont the data remain in the tables?

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

                  If you uninstall fop2admin, the autoconfiguration scripts will not use the fop2 tables but only the freepbx tables. After uninstalling fop2admin, is the output from the autoconfiguration script still duplicate? If so, the dirty data is in freepbx tables, so installing or uninstalling fop2 will not make any difference.

                  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