Hello guys!
I have two separate instances with FusionPBX with the same version - 4.5.19 at Debian 10, PostgreSQL.
I have some strange things with the databases.
At one database-server I have tables - fusionpbx.registrations and freeswitch.registrations.
At another DB instance, I have only freeswitch.registrations table, and no table fusionpbx.registrations.
I am trying to find in the install scripts how does FusionPBX install the fusionpbx database, from dump, or so on. I made grep -io -r 'CREATE TABLE', but didn't find it in install scripts.
1) In my first instance where I have two registrations tables, I see changes at both tables (usionpbx.registrations and freeswitch.registrations. ). I need to move some functionality to another instance, but there is no fusionpbx.registrations table. I created it, but it doesn't filling with the data. Who writes to the fusionpbx.registrations table? I thought there is some trigger or so on, but didn't find it in the DB-dump file. Cause I greped (grep registrations /var/lib/postgresql/11/main/pg_log/postgresql-2021-02-16_171201.log | grep -v "select\|SELECT") in the pgsql debug log and found only this:
fusionpbx@freeswitch LOG: statement: delete from registrations where expires > 0 and expires <= 1613488963 and hostname='fusion161'
So, who deletes the data from the fusionpbx.registrations?
2) Where can I find the "vanilla" fusionpbx database dump to compare my DB with this dump?
Thanks in advance!
I have two separate instances with FusionPBX with the same version - 4.5.19 at Debian 10, PostgreSQL.
I have some strange things with the databases.
At one database-server I have tables - fusionpbx.registrations and freeswitch.registrations.
At another DB instance, I have only freeswitch.registrations table, and no table fusionpbx.registrations.
I am trying to find in the install scripts how does FusionPBX install the fusionpbx database, from dump, or so on. I made grep -io -r 'CREATE TABLE', but didn't find it in install scripts.
1) In my first instance where I have two registrations tables, I see changes at both tables (usionpbx.registrations and freeswitch.registrations. ). I need to move some functionality to another instance, but there is no fusionpbx.registrations table. I created it, but it doesn't filling with the data. Who writes to the fusionpbx.registrations table? I thought there is some trigger or so on, but didn't find it in the DB-dump file. Cause I greped (grep registrations /var/lib/postgresql/11/main/pg_log/postgresql-2021-02-16_171201.log | grep -v "select\|SELECT") in the pgsql debug log and found only this:
fusionpbx@freeswitch LOG: statement: delete from registrations where expires > 0 and expires <= 1613488963 and hostname='fusion161'
So, who deletes the data from the fusionpbx.registrations?
2) Where can I find the "vanilla" fusionpbx database dump to compare my DB with this dump?
Thanks in advance!