Module: kamailio
Branch: master
Commit: 76f1f06d1edab3f4fd530ec28a6834adaf3d3e1a
URL:
https://github.com/kamailio/kamailio/commit/76f1f06d1edab3f4fd530ec28a6834a…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Committer: GitHub <noreply(a)github.com>
Date: 2016-07-08T10:54:18+02:00
Merge pull request #702 from kamailio/grumvalski/ts_append-instance
tm: check branch uri against current uri when deciding if append a neâ¦
---
Modified: modules/tm/t_append_branches.c
---
Diff:
https://github.com/kamailio/kamailio/commit/76f1f06d1edab3f4fd530ec28a6834a…
Patch:
https://github.com/kamailio/kamailio/commit/76f1f06d1edab3f4fd530ec28a6834a…
---
diff --git a/modules/tm/t_append_branches.c b/modules/tm/t_append_branches.c
index f38a0a2..f745e75 100644
--- a/modules/tm/t_append_branches.c
+++ b/modules/tm/t_append_branches.c
@@ -127,7 +127,9 @@ int t_append_branches(void) {
found = 0;
for (i=0; i<outgoings; i++) {
if (t->uac[i].ruid.len == ruid.len
- && !memcmp(t->uac[i].ruid.s, ruid.s, ruid.len)) {
+ && !memcmp(t->uac[i].ruid.s, ruid.s, ruid.len)
+ && t->uac[i].uri.len == current_uri.len
+ && !memcmp(t->uac[i].uri.s, current_uri.s, current_uri.len)) {
LM_DBG("branch already added [%.*s]\n", ruid.len, ruid.s);
found = 1;
break;