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

rvlad-patrascu vladp at opensips.org
Mon Oct 16 10:59:23 EDT 2017


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 8c8f27f6091289061f6aaf0d3c85ccd27db80a0d
      https://github.com/OpenSIPS/opensips/commit/8c8f27f6091289061f6aaf0d3c85ccd27db80a0d
  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.


  Commit: ad35e7cedc44efd90c58f26a853585ece5883bac
      https://github.com/OpenSIPS/opensips/commit/ad35e7cedc44efd90c58f26a853585ece5883bac
  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


Compare: https://github.com/OpenSIPS/opensips/compare/c0cdc66b2fe9...ad35e7cedc44


More information about the Devel mailing list