Module: kamailio
Branch: master
Commit: 464bf61788e86551509c08e07f9eed2a9bba0b58
URL: 
https://github.com/kamailio/kamailio/commit/464bf61788e86551509c08e07f9eed2a9bba0b58

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2018-07-14T08:14:07+02:00

textops: set the buffer size for re transformation to 8196

- 2048 is rather small for handlin message body
- reported by #1592

---

Modified: src/modules/textops/txt_var.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/464bf61788e86551509c08e07f9eed2a9bba0b58.diff
Patch: 
https://github.com/kamailio/kamailio/commit/464bf61788e86551509c08e07f9eed2a9bba0b58.patch

---

diff --git a/src/modules/textops/txt_var.c b/src/modules/textops/txt_var.c
index 6970b66bc7..c4d777e6a6 100644
--- a/src/modules/textops/txt_var.c
+++ b/src/modules/textops/txt_var.c
@@ -45,13 +45,13 @@ int tr_txt_eval_re(struct sip_msg *msg, tr_param_t *tp, int 
subtype,
        struct subst_expr *se = NULL;
        int nmatches;
        str* result;
-#define TR_TXT_BUF_SIZE        2048
+#define TR_TXT_BUF_SIZE        8192
        static char tr_txt_buf[TR_TXT_BUF_SIZE];
        pv_value_t v;
 
        if(val==NULL || (!(val->flags&PV_VAL_STR)) || val->rs.len<=0)
                return -1;
-       
+
        switch(subtype)
        {
                case TR_TXT_RE_SUBST:


_______________________________________________
Kamailio (SER) - Development Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to