diff --git a/src/modules/dialog/dialog.c b/src/modules/dialog/dialog.c index 84262ea25f4..e33401be57b 100644 --- a/src/modules/dialog/dialog.c +++ b/src/modules/dialog/dialog.c @@ -711,7 +711,6 @@ static int mod_init(void) LM_ERR("failed to initialize the DB support\n"); return -1; } - run_load_callbacks(); } destroy_dlg_callbacks( DLGCB_LOADED ); @@ -764,6 +763,10 @@ static int child_init(int rank) LM_ERR("failed to start clean timer routine as process\n"); return -1; /* error */ } + + if (dlg_db_mode!=DB_MODE_NONE) { + run_load_callbacks(); + } } if ( ((dlg_db_mode==DB_MODE_REALTIME || dlg_db_mode==DB_MODE_DELAYED) &&