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

Author: Federico Cabiddu <federico.cabi...@gmail.com>
Committer: GitHub <nore...@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();


_______________________________________________
sr-dev mailing list
sr-dev@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to