[sr-dev] git:andrei/cancel_reason: tm: improved Reason support for E2E CANCELs

Andrei Pelinescu-Onciul andrei at iptel.org
Mon Mar 15 20:02:55 CET 2010


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

Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Sat Mar 13 14:13:40 2010 +0100

tm: improved Reason support for E2E CANCELs

When generating CANCELs on-the-fly as response to a received
provisional reply on a branch of an E2E CANCELed transaction,
remember the Reason(s) from the original E2E CANCEL.
Up until now, the Reason was not remembered for branches where no
provisional replies were received (on these branches no CANCEL is
sent, unless cancel_b_method is set to 2 or at a later point a
provisional reply arrives).
Now each time an E2E CANCEL is received the Reason headers are
saved inside the INVITE transaction, for possible use in later
branch CANCEL generation (triggered by receiving a provisional
reply).

---

 modules/tm/h_table.c      |    2 +
 modules/tm/h_table.h      |    2 +
 modules/tm/t_fwd.c        |  123 +++++++++++++++++++++++++++++++++++++++++++--
 modules/tm/t_msgbuilder.c |   22 +++++---
 modules/tm/t_reply.c      |   22 +++++---
 modules/tm/t_reply.h      |   12 ++++-
 6 files changed, 160 insertions(+), 23 deletions(-)

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



More information about the sr-dev mailing list