[sr-dev] git:4.3:2fe732bd: tm: set next hop as dst_uri for appended branches

Federico Cabiddu federico.cabiddu at gmail.com
Fri Nov 20 11:16:51 CET 2015


Module: kamailio
Branch: 4.3
Commit: 2fe732bd12fd45d2845626589b255a9d78acd7d1
URL: https://github.com/kamailio/kamailio/commit/2fe732bd12fd45d2845626589b255a9d78acd7d1

Author: Federico Cabiddu <federico.cabiddu at gmail.com>
Committer: Federico Cabiddu <federico.cabiddu at gmail.com>
Date: 2015-11-20T11:16:37+01:00

tm: set next hop as dst_uri for appended branches

(cherry picked from commit 4d122e15f4599010000f6e5d2e60e9bc13b2281a)

---

Modified: modules/tm/t_append_branches.c

---

Diff:  https://github.com/kamailio/kamailio/commit/2fe732bd12fd45d2845626589b255a9d78acd7d1.diff
Patch: https://github.com/kamailio/kamailio/commit/2fe732bd12fd45d2845626589b255a9d78acd7d1.patch

---

diff --git a/modules/tm/t_append_branches.c b/modules/tm/t_append_branches.c
index 92f73fe..7a928f7 100644
--- a/modules/tm/t_append_branches.c
+++ b/modules/tm/t_append_branches.c
@@ -140,7 +140,7 @@ int t_append_branches(void) {
 		new_branch=add_uac( t, &faked_req, &current_uri,
 					(dst_uri.len) ? (&dst_uri) : &current_uri,
 					&path, 0, si, faked_req.fwd_send_flags,
-					PROTO_NONE, (dst_uri.len)?-1:UAC_SKIP_BR_DST_F, &instance,
+					PROTO_NONE, (dst_uri.len)?0:UAC_SKIP_BR_DST_F, &instance,
 					&ruid, &location_ua);
 		
 		LM_DBG("added branch [%.*s] with ruid [%.*s]\n", current_uri.len, current_uri.s, ruid.len, ruid.s);




More information about the sr-dev mailing list