Module: sip-router
Branch: master
Commit: 30ea1726754fdc12646e35a6ec49a636a57ab7f0
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=30ea172…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Wed Jun 24 15:06:26 2009 +0200
tm: fix t_check messing up replies branch
- when t_check was called twice for a reply (e.g. t_check_trans() in
script in the main onreply_route and then internally in tm
reply_received), the second call did return an invalid branch.
Now the current branch is remembered along T so t_check will
always return a valid branch.
- added T_branch, a new global variable that holds the current
branch corresponding to T (is valid only if T is valid).
- set_t() takes now 2 parameters: a transaction and the current
branch for the transaction. If the current branch does not make
sense (e.g. for requests), T_BR_UNDEFINED must be used.
This change ensures that every time T is set or changed, the
current branch is also updated.
- more comments added
---
modules/tm/t_lookup.c | 138 ++++++++++++++++++++++++++++++++++++++-----------
modules/tm/t_lookup.h | 6 ++-
modules/tm/t_reply.c | 17 ++++--
3 files changed, 123 insertions(+), 38 deletions(-)
Diff:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=30e…