[sr-dev] git:4.1: tmx: handle branch_route for $T_reply_code

Daniel-Constantin Mierla miconda at gmail.com
Tue Aug 5 15:20:24 CEST 2014


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Mon Jun 30 14:37:40 2014 +0200

tmx: handle branch_route for $T_reply_code

- use latest sent reply code
- related to the log message reported in FS#445

(cherry picked from commit 2e28163f2f3e756c89f8cc43df0644be38c5e06f)

---

 modules/tmx/t_var.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/tmx/t_var.c b/modules/tmx/t_var.c
index 897f156..6b27ff5 100644
--- a/modules/tmx/t_var.c
+++ b/modules/tmx/t_var.c
@@ -472,6 +472,7 @@ int pv_get_tm_reply_code(struct sip_msg *msg, pv_param_t *param,
 	} else {
 		switch (get_route_type()) {
 			case REQUEST_ROUTE:
+			case BRANCH_ROUTE:
 				/* use the status of the last sent reply */
 				code = t->uas.status;
 				break;




More information about the sr-dev mailing list