[OpenSIPS-Users] Dialog DB backend only updates on clean shutdown not crash
razvan at opensips.org
Fri Jun 24 09:00:06 CEST 2016
The behavior you are describing is normal: if you kill opensips with
SIGKILL, OpenSIPS closes instantly, without being able to run the code
that dumps the data into the file.
If you want to prevent this, you should always dump the db data into the
file (note that this is not very good in terms of performance). To do
this, you should turn off the db_text caching mode.
On 06/23/2016 05:39 PM, Jim DeVito wrote:
> Hi All.
> modparam("dialog", "db_url", "text:///var/lib/opensips/dbtext")
> modparam("dialog", "db_mode", 1)
> modparam("dialog", "table_name", "dialog")
> db_mode 1 should be realtime correct? The DB is only being synced from
> memory on clean shutdown. If I kill -9 the process the dialog info is
> lost. Thoughts?
More information about the Users