<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello,<br>
<br>
with latest versions you just need to set a global parameter,
pv_buffer_size:<br>
<br>
- <a class="moz-txt-link-freetext" href="http://www.kamailio.org/wiki/cookbooks/4.1.x/core#pv_buffer_size">http://www.kamailio.org/wiki/cookbooks/4.1.x/core#pv_buffer_size</a><br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 24/01/14 09:47, Aman Agarwal wrote:<br>
</div>
<blockquote
cite="mid:CAE_m_-4k6UU5GBcoi8R=4A1+ziBNqPN24QrOntuKJ3iSALG3mw@mail.gmail.com"
type="cite">
<div dir="ltr">I am running Kamailio-4.1.0 and I am getting this
error If I try to parse JSON string longer than 1024
characters.<br>
<div><br>
ERROR: <core> [pvapi.c:1338]: pv_printf(): no more space
for spec value<br>
ERROR: <core> [pvapi.c:1347]: pv_printf(): buffer
overflow -- increase the buffer size...<br>
ERROR: <core> [sr_module.c:1696]: get_str_fparam():
Could not convert the PV-formated string to str<br>
ERROR: json [json_funcs.c:42]: json_get_field(): cannot get
json string value<br>
<br>
</div>
<div>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?<br>
<br>
</div>
<div>Thanks<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
</body>
</html>