Module: kamailio Branch: master Commit: c6a8b10995a00d8dfc4bbfc176ad8b98a619154e URL: https://github.com/kamailio/kamailio/commit/c6a8b10995a00d8dfc4bbfc176ad8b98...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2025-07-08T12:35:36+02:00
textops: exported set_body_hex(...) to kemi
---
Modified: src/modules/textops/textops.c
---
Diff: https://github.com/kamailio/kamailio/commit/c6a8b10995a00d8dfc4bbfc176ad8b98... Patch: https://github.com/kamailio/kamailio/commit/c6a8b10995a00d8dfc4bbfc176ad8b98...
---
diff --git a/src/modules/textops/textops.c b/src/modules/textops/textops.c index 1b6ede470a0..4686d72fce9 100644 --- a/src/modules/textops/textops.c +++ b/src/modules/textops/textops.c @@ -2638,7 +2638,7 @@ static int set_body_f(struct sip_msg *msg, char *p1, char *p2) return ki_set_body(msg, &nb, &nc); }
-int ki_set_body_hex_f(sip_msg_t *msg, str *htxt, str *ct) +int ki_set_body_hex(sip_msg_t *msg, str *htxt, str *ct) { str sraw; int i; @@ -2730,7 +2730,7 @@ static int set_body_hex_f(struct sip_msg *msg, char *p1, char *p2) return -1; }
- return ki_set_body_hex_f(msg, &nb, &nc); + return ki_set_body_hex(msg, &nb, &nc); }
static int ki_set_rpl_body(sip_msg_t *msg, str *nb, str *nc) @@ -5579,6 +5579,11 @@ static sr_kemi_t sr_kemi_textops_exports[] = { { SR_KEMIP_STR, SR_KEMIP_STR, SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE } }, + { str_init("textops"), str_init("set_body_hex"), + SR_KEMIP_INT, ki_set_body_hex, + { SR_KEMIP_STR, SR_KEMIP_STR, SR_KEMIP_NONE, + SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE } + }, { str_init("textops"), str_init("set_reply_body"), SR_KEMIP_INT, ki_set_rpl_body, { SR_KEMIP_STR, SR_KEMIP_STR, SR_KEMIP_NONE,