Multi Server configuration

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?

Comments

  • 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,
  • 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.
  • 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,
Sign In or Register to comment.