Module: kamailio
Branch: master
Commit: 4d122e15f4599010000f6e5d2e60e9bc13b2281a
URL:
https://github.com/kamailio/kamailio/commit/4d122e15f4599010000f6e5d2e60e9b…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Committer: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Date: 2015-11-20T11:13:40+01:00
tm: set next hop as dst_uri for appended branches
---
Modified: modules/tm/t_append_branches.c
---
Diff:
https://github.com/kamailio/kamailio/commit/4d122e15f4599010000f6e5d2e60e9b…
Patch:
https://github.com/kamailio/kamailio/commit/4d122e15f4599010000f6e5d2e60e9b…
---
diff --git a/modules/tm/t_append_branches.c b/modules/tm/t_append_branches.c
index 65073b1..f38a0a2 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, ¤t_uri,
(dst_uri.len) ? (&dst_uri) : ¤t_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);