[sr-dev] git:master: tm: fix the multiple t_suspend+t_continue scenario

Miklos Tirpak miklos at iptel.org
Thu Mar 29 10:54:45 CEST 2012


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

Author: Miklos Tirpak <miklos at iptel.org>
Committer: Miklos Tirpak <miklos at iptel.org>
Date:   Thu Mar 29 10:45:02 2012 +0200

tm: fix the multiple t_suspend+t_continue scenario

When t_suspend() was called in the route block executed
by t_continue(), the function did not recognize the newly
added blind UAC and claimed that there is no new branch added.
This resulted in the transaction being killed by t_continue().

---

 modules/tm/t_suspend.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/modules/tm/t_suspend.c b/modules/tm/t_suspend.c
index 578d6b0..e6e2e35 100644
--- a/modules/tm/t_suspend.c
+++ b/modules/tm/t_suspend.c
@@ -210,9 +210,7 @@ int t_continue(unsigned int hash_index, unsigned int label,
 			branch < t->nr_of_outgoings;
 			branch++
 		) {
-			if ((t->uac[branch].request.buffer != NULL)
-				&& (t->uac[branch].last_received < 200)
-			)
+			if (t->uac[branch].last_received < 200)
 				break;
 		}
 




More information about the sr-dev mailing list