Module: sip-router
Branch: master
Commit: 9ae149ba25ee6467da1d95dd435995b9a59166a3
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=9ae149b…
Author: Miklos Tirpak <miklos(a)iptel.org>
Committer: Miklos Tirpak <miklos(a)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;
}