[OpenSIPS-Devel] [OpenSIPS/opensips] b7f194: Extended the callback in dialog module.

Bogdan-Andrei Iancu bogdan at opensips.org
Mon Jul 25 12:18:56 CEST 2016


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: b7f194e26472b7c12265219fee91afbb51aced63
      https://github.com/OpenSIPS/opensips/commit/b7f194e26472b7c12265219fee91afbb51aced63
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2016-07-25 (Mon, 25 Jul 2016)

  Changed paths:
    M modules/dialog/dlg_cb.c
    M modules/dialog/dlg_cb.h
    M modules/dialog/dlg_db_handler.c
    M modules/dialog/dlg_handlers.c
    M modules/dialog/dlg_hash.c
    M modules/dialog/dlg_hash.h
    M modules/dialog/dlg_profile.c
    M modules/dialog/dlg_req_within.c
    M modules/dialog/dlg_vals.c

  Log Message:
  -----------
  Extended the callback in dialog module.

1) avoid deadlock if from a dialog callback run under the lock (like DLG_SAVED) you use dialog functions (via API) to add dlg vals or set profiles.
2) renamed DLG_SAVED into DLG_DB_SAVED
3) added new DLGCB_DB_WRITE_VP callback that is triggered (while dialog is locked) just before flushing the vals/profiles into DB - this will allow other modules to quickly insert / update dlg vals just before the DB flush (to take advantage of the dlg persistency, while handling dynamic values). <- this is required by some ongoing work in ACC module.




More information about the Devel mailing list