Module: kamailio
Branch: 4.4
Commit: b1e3d396bb8ef8989895d9017bc8a98a85ce307f
URL:
https://github.com/kamailio/kamailio/commit/b1e3d396bb8ef8989895d9017bc8a98…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-11-30T07:42:09+01:00
rtjson: fix for replacing to header based on json document
- reported by GH #868
(cherry picked from commit 1d5f39a23f1b92575153c5bb2ba87f15f80fa827)
---
Modified: modules/rtjson/rtjson_routing.c
---
Diff:
https://github.com/kamailio/kamailio/commit/b1e3d396bb8ef8989895d9017bc8a98…
Patch:
https://github.com/kamailio/kamailio/commit/b1e3d396bb8ef8989895d9017bc8a98…
---
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);
}
}
}