using freepbx gui for configuring other asterisks

hi freepbx community
I’m trying to configure 2 asterisk 21.3.1 with a freepbx with same asterisk version.
i define extentions, queues and other settings on freepbx. then on asterisks i use nfs and read the /etc/asterisk from freepbx machine.
bt my calls fail.
is there any specific way for this scenario?
thank a lot

You need to look at the log files on your vanilla asterisk box to see exactly what is failing. If you simply copied over the asterisk folder from FreePBX, some of those files will likely be referencing FreePBX modules which do not exist on vanilla asterisk.

There’s more going on in FreePBX than just what gets saved in /etc/asterisk. Notably, there is a vast amount of configuration in the AstDB, and numerous AGI files that pull data from sql and probably other places. A former coworker would say this about your project: ‘The juice ain’t worth the squeeze’.

Thanks my dear friend.
So according to what you have experienced, i must move not only /etc/asterisk, but also asterisk database, and whole AGI’s.
is there any documents, that explain how freepbx works and what AGIs are in use?
i couldn’t find one

Use the FreePBX backup from your source system and restore the FreePBX backup on the new system. Then make changes in the Settings > Asterisk SIP Settings to update the IP address. Also modify the trunks for any changes in registration.

If you are trying to make a hot standby system for failover, there is a lot more involved including purchasing a commercial module for FreePBX.

thanks for your reply
backup is not actually what I’m looking for
i want to configure 2 asterisks in same time using freepx GUI
freepbx is not going to be used
phones are gonna register on other asterisks and read configurations from freepbx machine using nfs

The GUI is not a tool for configuring Asterisk; it is a tool for configuring FreePBX, which is both much more than a configuration tool for Asterisk, and not a general purpose configuration tool.

FreePBX writes much of the configuration to a MariaDB database. The Asterisk config files generated by FreePBX may not be compatible to use with a purely Asterisk implementation.

This is going to be practically impossible. Aside from the basic issues with FreePBX softlinking Asterisk config files into the webserver directories, there’s a LOT of assumptions that anyone configuring Asterisk makes. Basic things like for example whether or not a video call is supported can be defined in the main config and can be overridden in the extension configs. Some installs might say no in the main config expecting to say yes for specific extensions while other installs may say yes in the main config expecting to say no for most extensions except the video ones. And there’s at least 50 of those configuration items that are like that maybe more, and no logic in how FreePBX makes assumptions other than “historical since that’s the way we’ve always done it”

Perhaps many years ago FreePBX version 1 was nothing more than a wrapper GUI around Asterisk config files and could be used as an “aid” in configuring the Asterisk config files, but those days are gone. It’s getting more and more integrated with Asterisk every release.

thanks for your reply
that was helpful
my idea was to mount /var/lib/asterisk/agi-bin , /etc/asterisk , /var/www/ from freepbx on my debian.
these were files which freepbx edits from GUI
and change odbc.ini and database configs
so asterisk uses freepbx database to write/read cde/ registers & …
you are telling me that this will not work?

no it won’t work

is there any document about this issue?

No, because you are using something that is not designed to work as you would like to do, so you would only have problems and no support and as you were told freepbx is not just a graphical interface. The closest thing to what you want to do is to use the HA module to have 2 identical freepbx, or schedule an export and import of the backup and in each case you should use some tricks since for example some carriers do not support simultaneous registration of trunks

In short, if you want to waste time and hurt yourself, go ahead and try :sweat_smile:

1 Like

thanks mate
i’m a bit amateur in this field, that’s why i’m asking
can you tell me where extacly problem happens?
like registrations or routing or …
that can be helpfull for me

No one can say and no one will tell you for sure because as you have been told you are using something designed for something else for which the answers you are looking for are not there, surely database corruption, problems with active trunks and more… I don’t understand why you insist on using something that will surely give you an infinite number of problems, to which no one will want to answer, not even the official Support, considering you are merging two systems with duct tape

actually this is a task assigned to me
i understood it can’t be done
i just want a reason to share with my team
like we will face registration issues, in cause of database conflict

but sorry, but if something is not designed to be used as you want, how can you expect someone, maybe some developer, to tell you why…what you ask doesn’t make sense, then the first thing you were told is database corruption, what more do you need. Anyway I think no one can help you in this sense

1 Like

thanks a lot mate
i should find a way to describe it to my team
your reply was helpful

you could tell them

'You are looking fo a ‘blue lights-off factory’ but
FreePBX is a ‘yellow public transport system’ "

1 Like

that was such a good statement :slight_smile: