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. questions on using fop2 manager

questions on using fop2 manager

Scheduled Pinned Locked Moved Support
6 Posts 2 Posters 377 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
    rbyerjr
    wrote on last edited by
    #1

    We have gotten our arms around fop2 and the chrome fop2 extension at this point. We update to 2.28 earlier this week as well.
    We looked into fop2 manager a bit today and have some questions/issues.

    • Our environment can be best described as plain, vanilla asterisk, as there is no freePBX involved.
    • In our demo environment, we have about 4 users, 10 extensions, 2 queues, 4 Ringgroups, etc setup. probably around 25 buttons. configured into the fop2 and button cfg files.
    • When we go into the fop2 manager,we see traces of the users and buttons we created in the cfg files, but by no means many of them.
    • If we create a user in the manager interface, we see if created, but we can't log in using that info, and it is not reflected back in our cfg files -- it is presumably resident in the mysql tables.

    How do the two environments (flat cfg files and the fop2manager database) inter-relate ? Does it require a freePBX based install ?
    If so, then OK, we will stop here with the manager and just focus on fop2. Otherwise, can you give us some hints as to how to diagnose the issue(s).

    last question for this round:
    I went into plugins directory and clicked an Install button for Busy Counter. I see a fast-moving red box in the lower right that says "Error extracting plugin archive(2)" almost immediately. This occurs on any and all of them.

    Please advise next steps when convenient.
    Thanks,
    Ron

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

      9721:@rbyerjr escribió:

      • When we go into the fop2 manager,we see traces of the users and buttons we created in the cfg files, but by no means many of them.

      When you use vanilla asterisk, you MUST tweak the functions-custom.php file to suit your needs. It is just not possible to derive every configuration on a vanilla asterisk install from thin air. Every configuration is different, and the custom functions make several assumptions that might not be fulfilled in your config. For example, extension are just sip peers that appears in sip.conf that have a callerid set, every other one will be considered a trunk. IT does not consider other channel types as possible extensions. Anyways, the source is there for you to modify/tweak and match your own environment.

      As for FreePBX, as the system is known, the configuration is already taken care of much more correctly, although is not always perfect as FreePBX has modules that might alter configurations, like custom contexts, etc.

      9721:@rbyerjr escribió:

      • If we create a user in the manager interface, we see if created, but we can't log in using that info, and it is not reflected back in our cfg files -- it is presumably resident in the mysql tables.

      You must reload asterisk so fop2 will reload itself also. Go to "Actions / Reload Asterisk" whenever you make a config change and you want to see it reflected

      9721:@rbyerjr escribió:

      How do the two environments (flat cfg files and the fop2manager database) inter-relate ? Does it require a freePBX based install ?
      If so, then OK, we will stop here with the manager and just focus on fop2. Otherwise, can you give us some hints as to how to diagnose the issue(s).

      I already explained interactions above, you have vanilla asterisk, edit functions-custom.php to better suit your needs/config. Or be sure to set a callerid for every sip peer you have defined as an extension, for a start.

      9721:@rbyerjr escribió:

      last question for this round:
      I went into plugins directory and clicked an Install button for Busy Counter. I see a fast-moving red box in the lower right that says "Error extracting plugin archive(2)" almost immediately. This occurs on any and all of them.

      You must chown all the fop2/admin directory to the same user that owns the web server process, otherwise the script won't be able to write files to it. Assuming it runs with user www-data, run

      chown www-data.www-data /var/www/html/fop2/* -R
      

      Best regards,

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

        Hello again.
        Maybe I have missed the purpose of the fop2 manager. When I review functions-custom.php I see code attempting to decipher extensions, trunks, queues, etc from asterisk conf files. I would never have expected or anticipated the fop2 manager to decipher extensions, and queues, etc from my asterisk conf files. I wrote my own php code to generate the button.cfg file(s) for this very purpose. We generate our own fop2 configuration from our asterisk conf files.

        I was just questioning whether the fop2 manager should be able to add/edit the button cfg files that we have already created. I was anticipating that the fop2 manager should be able to show the button objects that already exist.

        Similarly, when I create a user in the fop2 manager, I am anticipating it is a fop2 user, that logs into fop2. I wouldn't anticipate have to reload asterisk for that to happen, since it has nothing to do with asterisk -- in least the way I am thinking now.

        Based on your responses, I am beginning to realize that possibly the intent of the fop2 manager is not so much to manage the display objects in fop2, but to manage (i.e. create/modify/delete) the objects in asterisk ?

        MAYBE what I should do is take the php script that I use to generate my own button files and fit it into the functions-custom.php.

        Thanks for the tip on the plugins chmod. that is certainly easy enough. Should have thought of that myself.

        1 Reply Last reply
        0
        • R
          R
          rbyerjr
          wrote on last edited by
          #4

          Hello again.
          Maybe I have missed the purpose of the fop2 manager. When I review functions-custom.php I see code attempting to decipher extensions, trunks, queues, etc from asterisk conf files. I would never have expected or anticipated the fop2 manager to decipher extensions, and queues, etc from my asterisk conf files. I wrote my own php code to generate the button.cfg file(s) for this very purpose. We generate our own fop2 configuration from our asterisk conf files.

          I was just questioning whether the fop2 manager should be able to add/edit the button cfg files that we have already created. I was anticipating that the fop2 manager should be able to show the button objects that already exist.

          Similarly, when I create a user in the fop2 manager, I am anticipating it is a fop2 user, that logs into fop2. I wouldn't anticipate have to reload asterisk for that to happen, since it has nothing to do with asterisk -- in least the way I am thinking now.

          Based on your responses, I am beginning to realize that possibly the intent of the fop2 manager is not so much to manage the display objects in fop2, but to manage (i.e. create/modify/delete) the objects in asterisk ?

          MAYBE what I should do is take the php script that I use to generate my own button files and fit it into the functions-custom.php.

          Thanks for the tip on the plugins chmod. that is certainly easy enough. Should have thought of that myself.

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

            apologies for the duplication

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

              Yes, you missed the point of FOP2 Manager, you already wrote your own, so you do not need FOP2 Manager at all.

              Or, you can adapt FOP2 Manager custom functions with your own code, and use it instead of your own custom script/manager.

              FOP2 Manager lets you manage fop2 users, permissions and install plugins, so it might be handy to adapt it instead of going with your own.

              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