From 705969d40d5e0326f6b0ccf055e5ada7229f720b Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Fri, 4 Nov 2016 11:58:20 +0100 Subject: [PATCH] tmx: warning message if updates to destination attributes fail --- modules/tmx/tmx_mod.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/tmx/tmx_mod.c b/modules/tmx/tmx_mod.c index e3e7b7de132..07b1f00c11e 100644 --- a/modules/tmx/tmx_mod.c +++ b/modules/tmx/tmx_mod.c @@ -729,10 +729,14 @@ static int w_t_reuse_branch(struct sip_msg* msg, char *p1, char *p2) " in MODE_ONFAILURE\n", branch); return -1; } - rewrite_uri(msg, &(t->uac[branch].uri)); + if(rewrite_uri(msg, &(t->uac[branch].uri))<0) { + LM_WARN("failed to rewrite the r-uri\n"); + } set_ruid(msg, &(t->uac[branch].ruid)); if (t->uac[branch].path.len) { - set_path_vector(msg, &(t->uac[branch].path)); + if(set_path_vector(msg, &(t->uac[branch].path))<0) { + LM_WARN("failed to set the path vector\n"); + } } else { reset_path_vector(msg); }