buttons file for multiple freepbx
Hi, I know its possible to link 2x asterisk boxs to fop2 by putting the 2nd PBX in the fop2.cfg file
However, as these are Freepbx based, the buttons are configured automatically by the fop2 module for FPBX.
I want to show the buttons from PBX2 on PBX1
This is probably not something that can be done automatically - but could get fop2 to read the autobuttons file AND the manual buttons file??
I could then have all PBX1 buttons created automatically, and just manually add the few extra buttons for PBX2
Is this possible?
However, as these are Freepbx based, the buttons are configured automatically by the fop2 module for FPBX.
I want to show the buttons from PBX2 on PBX1
This is probably not something that can be done automatically - but could get fop2 to read the autobuttons file AND the manual buttons file??
I could then have all PBX1 buttons created automatically, and just manually add the few extra buttons for PBX2
Is this possible?
Comments
1) setup passwordless ssh between both servers
2) install fop2admin on the 2nd asterisk box
3) copy autoconfig-users-freepbx.sh and autoconfig-buttons-freepbx.sh into the 2ndary box
4) edit those scripts to add a server=x.x.x.x line, and display only extensions to avoid name collisions with trunks/park
5) edit autoconfig scripts on main server to run via ssh autoconfig scripts in the remote box
We do this kind of work, for a fee. It is not *that* hard but it is not easy either, it takes time to set everything up.
Best regards,
Ive just finished setting that up, but when we run the buttons script on PBX2 from PBX1 we get this error-
/root/autoconfig-buttons-freepbx.sh: line 41: syntax error near unexpected token `<'
/root/autoconfig-buttons-freepbx.sh: line 41: `done < <( mysql -NB -u $DBUSER -p$DBPASS -h $DBHOST $DBNAME -e "SHOW tables FROM \`$DBNAME\` LIKE 'fop2users'" )'
Server 1 calls the script autoconfig-buttons-freepbx.sh on server 2 via SSH
autoconfig-buttons-freepbx.sh script on server 2 has server=x.x.x.x as the first line (correct IP address though!)
Is this incorrect? It seems to be the correct method you mentioned previously on this thread.