[sr-dev] [kamailio/kamailio] re.subst cannot process sdp content-length of 2978 (#1592)

adil-mafzool notifications at github.com
Fri Jul 13 16:01:34 CEST 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20180713/bcf0ade5/attachment.html>


More information about the sr-dev mailing list