[sr-dev] git:4.2:37f89671: tm: iterate over the destination set starting from 0

Federico Cabiddu federico.cabiddu at gmail.com
Fri Sep 4 15:51:52 CEST 2015


Module: kamailio
Branch: 4.2
Commit: 37f89671eb17f5f4bfe82e2dd5ce8ade5b6ebe84
URL: https://github.com/kamailio/kamailio/commit/37f89671eb17f5f4bfe82e2dd5ce8ade5b6ebe84

Author: Federico Cabiddu <federico.cabiddu at gmail.com>
Committer: Federico Cabiddu <federico.cabiddu at gmail.com>
Date: 2015-09-04T15:51:38+02:00

tm: iterate over the destination set starting from 0

(cherry picked from commit 380712accd89ba1f520314f5caf3cded6d8253ea)

---

Modified: modules/tm/t_append_branches.c

---

Diff:  https://github.com/kamailio/kamailio/commit/37f89671eb17f5f4bfe82e2dd5ce8ade5b6ebe84.diff
Patch: https://github.com/kamailio/kamailio/commit/37f89671eb17f5f4bfe82e2dd5ce8ade5b6ebe84.patch

---

diff --git a/modules/tm/t_append_branches.c b/modules/tm/t_append_branches.c
index f16c672..16ed9ab 100644
--- a/modules/tm/t_append_branches.c
+++ b/modules/tm/t_append_branches.c
@@ -109,9 +109,8 @@ int t_append_branches(void) {
 		set_branch_route(t->on_branch_delayed);
 	}
 
-	/* not really sure that the following is needed */
+	init_branch_iterator();
 
-	set_branch_iterator(nr_branches-1);
 	found = 0;
 	while((current_uri.s=next_branch( &current_uri.len, &q, &dst_uri, &path,
 										&bflags, &si, &ruid, &instance, &location_ua))) {




More information about the sr-dev mailing list