From 6484b199fb48acc2c55f318812f2c968b845ca80 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Wed, 18 Mar 2015 19:50:09 +0100 Subject: [PATCH] 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 --- modules/tm/t_suspend.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/tm/t_suspend.c b/modules/tm/t_suspend.c index 4b12dcf18ba..4abfe72270e 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;