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..