Module: kamailio Branch: master Commit: 6484b199fb48acc2c55f318812f2c968b845ca80 URL: https://github.com/kamailio/kamailio/commit/6484b199fb48acc2c55f318812f2c968...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2015-03-18T19:50:09+01:00
tm: propagate the on_failure value in to the branch for t_suspend()
- likely lost when on_failure was added to each branch structure - reported by Mickael Marrache
---
Modified: modules/tm/t_suspend.c
---
Diff: https://github.com/kamailio/kamailio/commit/6484b199fb48acc2c55f318812f2c968... Patch: https://github.com/kamailio/kamailio/commit/6484b199fb48acc2c55f318812f2c968...
---
diff --git a/modules/tm/t_suspend.c b/modules/tm/t_suspend.c index 4b12dcf..4abfe72 100644 --- a/modules/tm/t_suspend.c +++ b/modules/tm/t_suspend.c @@ -93,6 +93,10 @@ int t_suspend(struct sip_msg *msg, LM_ERR("failed to add the blind UAC\n"); return -1; } + /* propagate failure route to new branch + * - failure route to be executed if the branch is not continued + * before timeout */ + t->uac[t->async_backup.blind_uac].on_failure = t->on_failure; } else { LM_DBG("this is a suspend on reply - setting msg flag to SUSPEND\n"); msg->msg_flags |= FL_RPL_SUSPENDED;