[sr-dev] git:master:c7212940: Merge pull request #955 from grumvalski/serial_suspend

GitHub noreply at github.com
Mon Jan 30 16:13:06 CET 2017


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

Author: Federico Cabiddu <federico.cabiddu at gmail.com>
Committer: GitHub <noreply at github.com>
Date: 2017-01-30T16:12:59+01:00

Merge pull request #955 from grumvalski/serial_suspend

tm: reset T_ASYNC_CONTINUE flag in t_suspend

---

Modified: src/modules/tm/t_suspend.c

---

Diff:  https://github.com/kamailio/kamailio/commit/c7212940b7bddd296475fe62fac7f1bda61cc74e.diff
Patch: https://github.com/kamailio/kamailio/commit/c7212940b7bddd296475fe62fac7f1bda61cc74e.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