While trying the following code with sdp content-length of 2978 : -
$var(telephone-event) = $(avp(sdp){re.subst,/.*a=rtpmap:([0-9]+) 
telephone-event.*/\1/s});

kamailio -v
version: kamailio 5.1.4 (x86_64/linux)

got the following errors: -
ERROR: textops [txt_var.c:80]: tr_txt_eval_re(): PV value too big 2978, 
increase buffer size
ERROR: <core> [core/lvalue.c:346]: lval_pvar_assign(): non existing right pvar
ERROR: <core> [core/lvalue.c:404]: lval_assign(): assignment failed at pos: 
(424,27-424,91)
ERROR: <script>: telephone-event: 0

This is due to the fixed size of 2048 modules/textops/txt_var.c at line 48 : - 

'''#define TR_TXT_BUF_SIZE      2048
        static char tr_txt_buf[TR_TXT_BUF_SIZE];'''

Please can anybody check..

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1592
_______________________________________________
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to