[OpenSIPS-Devel] [OpenSIPS/opensips] 3d3c27: dialog: fix a runtime bug with DLGCB_LOADED callba...

rvlad-patrascu vladp at opensips.org
Mon Oct 16 11:06:06 EDT 2017


  Branch: refs/heads/2.3
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 3d3c27aec344307358a7a5e7a09a75168216a631
      https://github.com/OpenSIPS/opensips/commit/3d3c27aec344307358a7a5e7a09a75168216a631
  Author: rvlad-patrascu <vladp at opensips.org>
  Date:   2017-10-16 (Mon, 16 Oct 2017)

  Changed paths:
    M modules/dialog/dialog.c
    M modules/dialog/dlg_cb.c

  Log Message:
  -----------
  dialog: fix a runtime bug with DLGCB_LOADED callbacks

Relying on the fact that all modules that register dialog callbacks are initialised
after the dialog module (thanks to module dependencies), we can run all DLGCB_LOADED
callbacks at registration time and also keep them in a list for calling them later
(i.e reloading from database via MI cmd or receiving replicated dialog).

This fixes a series of bugs where the DLGCB_LOADED callback is not run during, e.g.
"dlg_db_sync" MI command or received replicated dialogs which do not have their
callbacks installed or run.

(cherry picked from commit 8c8f27f6091289061f6aaf0d3c85ccd27db80a0d)


  Commit: 18a9ad19aee2f6928ea32b13a664271d2632d11c
      https://github.com/OpenSIPS/opensips/commit/18a9ad19aee2f6928ea32b13a664271d2632d11c
  Author: rvlad-patrascu <vladp at opensips.org>
  Date:   2017-10-16 (Mon, 16 Oct 2017)

  Changed paths:
    M modules/dialog/dlg_replication.c

  Log Message:
  -----------
  dialog: also share module flags when replicating dialogs

(cherry picked from commit ad35e7cedc44efd90c58f26a853585ece5883bac)


Compare: https://github.com/OpenSIPS/opensips/compare/9cf184ec7473...18a9ad19aee2


More information about the Devel mailing list