[sr-dev] git:master: modules_k/dialog: Add multiple features.

Timo Reimann timo.reimann at 1und1.de
Tue Aug 16 19:55:25 CEST 2011


Module: sip-router
Branch: master
Commit: c021559e414892b9bafae0f1ce40081945fff49a
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c021559e414892b9bafae0f1ce40081945fff49a

Author: Timo Reimann <timo.reimann at 1und1.de>
Committer: Timo Reimann <timo.reimann at 1und1.de>
Date:   Tue Aug  2 18:29:05 2011 +0200

modules_k/dialog: Add multiple features.

- Set and get dialog variables programmatically (needed in certain
  cases where PV access does not suffice).
- Change dialog callback signature to pass both request and
  response message instead of just the request. This is to enable
  access to at least one type of message when the other is not
  available; e.g., DLGCB_FAILED callbacks due to a local timeout
  (408) do not provide requests but responses only.
  Also, adapt callback usages accordingly at multiple spots.
- Provide additional callback DLGCB_TERMINATED_CONFIRMED that is
  executed whenever the response to a BYE request is sent.
- Move unreference_dialog() to a more suitable location.
- Provide functions to add and remove a dialog from a transaction
  (required for referencing at certain occassions).
- Move spiral detection functionality into dlg_new_dialog() to
  faciliate spiral detection when dlg_manage() is used.
- Add a dialog's reference count to list of printable statistics.

Credits to Sven Knoblich, sven.knoblich at 1und1.de .

---

 modules_k/dialog/dialog.c         |    4 +-
 modules_k/dialog/dlg_cb.c         |   18 +-
 modules_k/dialog/dlg_cb.h         |   19 ++-
 modules_k/dialog/dlg_handlers.c   |  429 ++++++++++++++++++++++++-------------
 modules_k/dialog/dlg_hash.c       |   21 ++-
 modules_k/dialog/dlg_load.h       |    2 +
 modules_k/dialog/dlg_profile.c    |   39 ++--
 modules_k/dialog/dlg_profile.h    |    6 +
 modules_k/dialog/dlg_req_within.c |    2 +-
 modules_k/dialog/dlg_var.c        |   59 +++++-
 modules_k/dialog/dlg_var.h        |    2 +
 11 files changed, 421 insertions(+), 180 deletions(-)

Diff:   http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=c021559e414892b9bafae0f1ce40081945fff49a



More information about the sr-dev mailing list