Hi @miconda
If dlg_db_mode = DB_MODE_NONE is done on PROC_MAIN,
then on PROC_POSTCHILDINIT is not restored, I don't see how that could happen.
It's restored as the value is reset at the start of `child_init()` as so:
```c
static int child_init(int rank)
{
dlg_db_mode = dlg_db_mode_param;
```
Happy to update the PR if checking against both `PROC_MAIN` and `PROC_POSTCHILDINIT` is
preferred.
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3221#issuecomment-1217631509
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3221/c1217631509(a)github.com>