Hi All,
Does anybody have a guide on moving freeswitch from sqlite to postgresql?
I've tried everything, but don't seem to get this working 100%.
At the moment I've got set in:
.When I connect to postgres I can see the freeswitch database, and I can see data is being populated in ex. sip_registrations.
When I restart Freeswitch, the folder /var/lib/freeswitch/db is being populated again.
When I do a simple function like *8, fs_cli gives error:
2024-01-14 16:27:49.142903 97.33% [ERR] switch_core_db.c:246 SQL ERR [unable to open database file]
2024-01-14 16:27:49.142903 97.33% [CRIT] switch_core_sqldb.c:645 Failure to connect to CORE_DB /var/lib/freeswitch/db/core.db!
2024-01-14 16:27:49.142903 97.33% [ERR] freeswitch_lua.cpp:374 Connection failed. DBH NOT Connected.
2024-01-14 16:27:49.142903 97.33% [ERR] mod_lua.cpp:202 ...eeswitch/scripts/resources/functions/database/native.lua:35: assertion failed!
So it seems like sqlite is still in play here somewhere.
Am I missing something somewhere?
Does anybody have a guide on moving freeswitch from sqlite to postgresql?
I've tried everything, but don't seem to get this working 100%.
At the moment I've got set in:
/etc/freeswitch/autoload_configs/switch.conf.xml
<param name="core-db-dsn" value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch user=fusionpbx password='fusionpbx'" />.When I connect to postgres I can see the freeswitch database, and I can see data is being populated in ex. sip_registrations.
When I restart Freeswitch, the folder /var/lib/freeswitch/db is being populated again.
When I do a simple function like *8, fs_cli gives error:
2024-01-14 16:27:49.142903 97.33% [ERR] switch_core_db.c:246 SQL ERR [unable to open database file]
2024-01-14 16:27:49.142903 97.33% [CRIT] switch_core_sqldb.c:645 Failure to connect to CORE_DB /var/lib/freeswitch/db/core.db!
2024-01-14 16:27:49.142903 97.33% [ERR] freeswitch_lua.cpp:374 Connection failed. DBH NOT Connected.
2024-01-14 16:27:49.142903 97.33% [ERR] mod_lua.cpp:202 ...eeswitch/scripts/resources/functions/database/native.lua:35: assertion failed!
So it seems like sqlite is still in play here somewhere.
Am I missing something somewhere?
Last edited: