[OpenSIPS-Devel] [OpenSIPS/opensips] 149d41: [acc] added loose dependency to dialog module

Bogdan Andrei IANCU noreply at github.com
Wed Sep 25 09:39:02 EDT 2019

  Branch: refs/heads/2.4
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 149d41c5ed176062312ffb15fedf6931c684b317
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2019-09-25 (Wed, 25 Sep 2019)

  Changed paths:
    M modules/acc/acc_mod.c

  Log Message:
  [acc] added loose dependency to dialog module

We need to be sure that dialog module is init before acc (if dialog is loaded), to prevent any crashes when acc registers the DLGCB_LOADED callback in dialog (the registraion of the callback will try to run the callback on any pre-existing dialogs, so the hash table for the dialogs must be created/init).
It is a loose dependency as it does not require the dialog module to be loaded. But if loaded, it must be init before ACC module.

Fixes #1833

(cherry picked from commit 3c18dbfc198d7bece144e708762ea35299bdc8b5)
(cherry picked from commit 7ade34c578e9219e66472e213f8ae70ec915dfbb)

More information about the Devel mailing list