Module: kamailio
Branch: master
Commit: 705969d40d5e0326f6b0ccf055e5ada7229f720b
URL:
https://github.com/kamailio/kamailio/commit/705969d40d5e0326f6b0ccf055e5ada…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-11-04T11:58:20+01:00
tmx: warning message if updates to destination attributes fail
---
Modified: modules/tmx/tmx_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/705969d40d5e0326f6b0ccf055e5ada…
Patch:
https://github.com/kamailio/kamailio/commit/705969d40d5e0326f6b0ccf055e5ada…
---
diff --git a/modules/tmx/tmx_mod.c b/modules/tmx/tmx_mod.c
index e3e7b7d..07b1f00 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);
}