Module: kamailio
Branch: master
Commit: 1d5f39a23f1b92575153c5bb2ba87f15f80fa827
URL:
https://github.com/kamailio/kamailio/commit/1d5f39a23f1b92575153c5bb2ba87f1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-11-30T07:41:11+01:00
rtjson: fix for replacing to header based on json document
- reported by GH #868
---
Modified: modules/rtjson/rtjson_routing.c
---
Diff:
https://github.com/kamailio/kamailio/commit/1d5f39a23f1b92575153c5bb2ba87f1…
Patch:
https://github.com/kamailio/kamailio/commit/1d5f39a23f1b92575153c5bb2ba87f1…
---
diff --git a/modules/rtjson/rtjson_routing.c b/modules/rtjson/rtjson_routing.c
index 5542e63..60bdcad 100644
--- a/modules/rtjson/rtjson_routing.c
+++ b/modules/rtjson/rtjson_routing.c
@@ -481,7 +481,7 @@ int rtjson_prepare_branch(sip_msg_t *msg, srjson_doc_t *jdoc, srjson_t
*nj)
xuri.len = strlen(xuri.s);
}
if(xdsp.len>0 || xuri.len>0) {
- uacb.replace_from(msg, &xdsp, &xuri);
+ uacb.replace_to(msg, &xdsp, &xuri);
}
}
}