Module: kamailio
Branch: master
Commit: c7212940b7bddd296475fe62fac7f1bda61cc74e
URL:
https://github.com/kamailio/kamailio/commit/c7212940b7bddd296475fe62fac7f1b…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Committer: GitHub <noreply(a)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/c7212940b7bddd296475fe62fac7f1b…
Patch:
https://github.com/kamailio/kamailio/commit/c7212940b7bddd296475fe62fac7f1b…
---
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();