[OpenSIPS-Devel] [OpenSIPS/opensips] 3c18db: [acc] added loose dependency to dialog module

Bogdan Andrei IANCU noreply at github.com
Mon Sep 23 05:27:28 EDT 2019


  Branch: refs/heads/3.0
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 3c18dbfc198d7bece144e708762ea35299bdc8b5
      https://github.com/OpenSIPS/opensips/commit/3c18dbfc198d7bece144e708762ea35299bdc8b5
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2019-09-23 (Mon, 23 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





More information about the Devel mailing list