I am running Kamailio-4.1.0 and I am getting this error If I try to parse  JSON string  longer than 1024 characters.

ERROR: <core> [pvapi.c:1338]: pv_printf(): no more space for spec value
ERROR: <core> [pvapi.c:1347]: pv_printf(): buffer overflow -- increase the buffer size...
ERROR: <core> [sr_module.c:1696]: get_str_fparam(): Could not convert the PV-formated string to str
ERROR: json [json_funcs.c:42]: json_get_field(): cannot get json string value

I searched online for a fix and it was suggested to increase the PV_PRINT_BUF_SIZE in pvar.c. The source code for Kamailio 4.1.0 does not contain this file. I did not find this constant in other files too . Can some please suggest how to increase the buffer size?

Thanks