<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
<div class="moz-cite-prefix">On 11/06/15 18:13, Joao Alves wrote:<br>
</div>
<blockquote
cite="mid:BE9CCC3E59E41A43B74480AD128661E80114A7B128@ILRAADAGBE3.corp.amdocs.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Menlo;
panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m finding a problem submitting a HTTP
POST using the http_query(). Currently running
<span style="font-family:"Menlo",serif">on kamailio
version: 4.1.8 on Debian wheezy.</span><span
style="font-size:12.0pt;font-family:"Menlo",serif"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Normally this command has been worked fine,
but since the body of the message increased (the POST data
size is around 2000 bytes ) I start to get the following
problem:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">8(49381) ERROR: <core>
[pvapi.c:1338]: pv_printf(): no more space for spec value<o:p></o:p></p>
<p class="MsoNormal">8(49381) ERROR: <core>
[pvapi.c:1347]: pv_printf(): buffer overflow -- increase the
buffer size...<o:p></o:p></p>
<p class="MsoNormal">8(49381) ERROR: <core>
[sr_module.c:1696]: get_str_fparam(): Could not convert the
PV-formated string to str<o:p></o:p></p>
<p class="MsoNormal">8(49381) ERROR: utils [functions.c:112]:
http_query(): cannot get post value
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’ve searched on how to increase buffer and
found some global settings that could be directly, however the
problem persist despite having set very high values for those:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span
style="font-family:"Menlo",serif">pv_buffer_size=32768<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Menlo",serif">tcp_rd_buf_size=32768<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Menlo",serif">maxbuffer=262144<o:p></o:p></span></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Can someone assist and suggest a solution.</p>
</div>
</blockquote>
<br>
this should be controlled by the the pv_buffer_size. What are the
parameters for http_query()?<br>
<br>
Cheers,<br>
Daniel<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<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>
Book: SIP Routing With Kamailio - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
</body>
</html>