Hello,
with latest versions you just need to set a global parameter, pv_buffer_size:
- http://www.kamailio.org/wiki/cookbooks/4.1.x/core#pv_buffer_size
Cheers, Daniel
On 24/01/14 09:47, Aman Agarwal wrote:
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
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users