[sr-dev] git:master:f81149d8: tm: reset T_ASYNC_CONTINUE flag in t_suspend

grumvalski federico.cabiddu at gmail.com
Mon Jan 30 16:13:05 CET 2017


Module: kamailio
Branch: master
Commit: f81149d820246242db0e48f32948784b9db4ce82
URL: https://github.com/kamailio/kamailio/commit/f81149d820246242db0e48f32948784b9db4ce82

Author: grumvalski <federico.cabiddu at gmail.com>
Committer: grumvalski <federico.cabiddu at gmail.com>
Date: 2017-01-29T09:10:23+01:00

tm: reset T_ASYNC_CONTINUE flag in t_suspend

---

Modified: src/modules/tm/t_suspend.c

---

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

---

diff --git a/src/modules/tm/t_suspend.c b/src/modules/tm/t_suspend.c
index a23429d..5703493 100644
--- a/src/modules/tm/t_suspend.c
+++ b/src/modules/tm/t_suspend.c
@@ -143,7 +143,8 @@ int t_suspend(struct sip_msg *msg,
 	*hash_index = t->hash_index;
 	*label = t->label;
 
-
+	/* reset the continue flag to be able to suspend in a failure route */
+	t->flags &= ~T_ASYNC_CONTINUE;
 
 	/* backup some extra info that can be used in continuation logic */
 	t->async_backup.backup_route = get_route_type();




More information about the sr-dev mailing list