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. Multi Server configuration

Multi Server configuration

Scheduled Pinned Locked Moved Support
4 Posts 3 Posters 254 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.
  • P
    P
    Pigsfoot
    wrote on last edited by
    #1

    Hi, We use FOP2 very successfully on a single server running Free PBX. We have just installed another server in a remote office also running Free PBX with an IAX trunk between them.

    We would like to link up Fop2 on our reception to monitor extensions at both sites.

    I have added the extra server into the fop.cfg file and now just need to configure the buttons which is where I am getting confused.

    As we use FreePBX we have auto configured all our buttons so do not have a buttons.cfg file, only sample ones.

    I know the code I need to use is as follows for each remote extension

    SIP/100]
    type=extension
    extension=100
    context=some-context
    label=John Doe
    server=192.168.0.1

    But I just don't know where to put it due to not having a buttons.cfg file. If I do need to create a buttons.cfg file and add all the remote extensions to it what happens to the auto created ones... do I then have to add them manually as well?

    Can anyone help?

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

      You either have to modify the autoconfig files on the "central" fop2 to read the remote site and output valid user or button config files for the remote server, or you can use manually configured buttons/users for everything.

      The former is quite of complex, as you will need to install fop2admin and modify the autoconfig scripts to output also the server line for your buttons, use perhaps passwordless ssh so you can run those scripts remotely, and then call those scripts from within the 'central' fop2 autoconfig scriopts (this is what we usually do when hired to perform such configurations to monitor multiple servers).

      The later is much simpler, but whenever you make a change you will have to mantain the fop2 config files (either add or remove buttons or users). You can run autoconfig-users-freepbx.sh on the central server and remote servers, capture the output to get a basic config of users/groups/permissions that you can copy in fop2.cfg, then be sure you set buttonfile=buttons.cfg or simliar, and then run autoconfig-buttons-freepbx.sh on each server and concatenate the output on the buttons.cfg file (for both your central and remote servers, being sure you add the server=x.x.x.x to each button definition appropriately.

      Best regards,

      1 Reply Last reply
      0
      • F
        F
        FreerPBXer
        wrote on last edited by
        #3

        Did you, or has anyone else gotten this working? Have a similar situation where the main office would like to be able to monitor the remote office extensions.

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

          Yes, there are customers monitoring multiple extensions. As I said, it requires some sysadmin work + modify scripts to get the configuration right. You can purchase support hours if you want us to help you set that up. Or you can read some posts here in the forum, there was a user posting his solution by using manual configuration, found it:

          View Post 1752

          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