[OpenSIPS-Devel] [OpenSIPS/opensips] bcc3d8: dialog: call values/profiles write callbacks befor...

Vlad Patrascu vladp at opensips.org
Fri Apr 13 13:47:43 EDT 2018


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: bcc3d8c0fb69073f49980c64aa80fba41d7b7961
      https://github.com/OpenSIPS/opensips/commit/bcc3d8c0fb69073f49980c64aa80fba41d7b7961
  Author: Vlad Patrascu <vladp at opensips.org>
  Date:   2018-04-13 (Fri, 13 Apr 2018)

  Changed paths:
    M modules/acc/acc_logic.c
    M modules/cgrates/cgrates_acc.c
    M modules/dialog/dlg_cb.h
    M modules/dialog/dlg_db_handler.c
    M modules/dialog/dlg_replication.c
    M modules/siprec/siprec_logic.c
    M modules/siprec/siprec_sess.c
    M modules/siprec/siprec_sess.h

  Log Message:
  -----------
  dialog: call values/profiles write callbacks before replicating dialogs

Rename DLGCB_DB_WRITE_VP to DLGCB_WRITE_VP since it should also be
triggered when replicating a created dialog. This allow modules
to properly save context information in the dialog which can then be
visibile on all instances where the dialog is replicated.

This fixes issues with received replicated dialogs in acc, cgrates and
siprec modules.


  Commit: d11aa92bb9aff955487988d6ae564501586a5473
      https://github.com/OpenSIPS/opensips/commit/d11aa92bb9aff955487988d6ae564501586a5473
  Author: Vlad Patrascu <vladp at opensips.org>
  Date:   2018-04-13 (Fri, 13 Apr 2018)

  Changed paths:
    M modules/dialog/dialog.c
    M modules/dialog/dlg_db_handler.c
    M modules/dialog/dlg_handlers.c
    M modules/dialog/dlg_replication.c
    M modules/dialog/dlg_req_within.c

  Log Message:
  -----------
  dialog: fix DB operations to be performed by all nodes in the cluster

In the context of dialog replication and with the new feature of
synchronization at startup, there is no longer the need for the DB backend
to be shared between the nodes in the cluster. Each node can still have a
local dialog table but only for restart persistency as a failsafe for the
binary replication.


  Commit: 0784c38b15a9e96cc498b54bd50afb5d5dc8a803
      https://github.com/OpenSIPS/opensips/commit/0784c38b15a9e96cc498b54bd50afb5d5dc8a803
  Author: Vlad Patrascu <vladp at opensips.org>
  Date:   2018-04-13 (Fri, 13 Apr 2018)

  Changed paths:
    M modules/clusterer/api.h
    M modules/clusterer/sync.c
    M modules/dialog/dlg_db_handler.c
    M modules/dialog/dlg_handlers.c
    M modules/dialog/dlg_hash.h
    M modules/dialog/dlg_replication.c

  Log Message:
  -----------
  dialog: drop inactive DB loaded dialogs when syncing from cluster is done

Dialogs loaded from the database at startup are dropped and also deleted from
the DB once the sync from cluster is complete. This is valid for dialogs that
are not reconfirmed as being active in the meantime (SIP updates, received
in sync data).


Compare: https://github.com/OpenSIPS/opensips/compare/4c07fe9bacd2...0784c38b15a9


More information about the Devel mailing list