<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Note that there is another module named CURL in a personal branch by
Olle (look in git repository for branches starting with oej/) --
that module should do async http query -- for some demos it might be
enough.<br>
<br>
Otherwise, you can use the existing async mechanisms for doing the
query with utils module -- see async module.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 11/06/15 21:48, Joao Alves wrote:<br>
</div>
<blockquote
cite="mid:BE9CCC3E59E41A43B74480AD128661E80114A7B2A4@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:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 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;
color:black;}
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;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;
color:black;}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle20
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:#1F497D;}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@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"><span style="color:#1F497D">I had realized
that later on. However for the time being just using this
for demo purposes. I’ll lower down the value nonetheless.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thanks!<o:p></o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="color:windowtext">From:</span></b><span
style="color:windowtext"> sr-users
[<a class="moz-txt-link-freetext" href="mailto:sr-users-bounces@lists.sip-router.org">mailto:sr-users-bounces@lists.sip-router.org</a>]
<b>On Behalf Of </b>Alex Balashov<br>
<b>Sent:</b> quinta-feira, 11 de Junho de 2015 20:38<br>
<b>To:</b> Joao Alves<br>
<b>Subject:</b> Re: [SR-Users] Problems with
http_query(POST)<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="background:white"><span
style="color:#1F497D">I don't know if you want to do that.
That's going to block the given Kamailio SIP receiver
process, of which there are a small, fixed number, for up
to 30 seconds. http_query() is not implemented in an
asynchronous manner under the hood.</span><span
style="font-size:12.0pt;color:#1F497D"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span
style="color:#1F497D"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span
style="color:#1F497D">--<br>
Alex Balashov | Principal | Evariste Systems LLC<br>
303 Perimeter Center North, Suite 300<br>
Atlanta, GA 30346<br>
United States<br>
<br>
Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)<br>
Web: <a moz-do-not-send="true"
href="http://www.evaristesys.com/">http://www.evaristesys.com/</a>, <a
moz-do-not-send="true" href="http://www.csrpswitch.com/">http://www.csrpswitch.com/</a><br>
<br>
Sent from my BlackBerry.<o:p></o:p></span></p>
</div>
<table class="MsoNormalTable"
style="width:100.0%;background:white;border-spacing:0px"
border="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt
.75pt;font-size:initial;text-align:initial">
<div style="border:none;border-top:solid #B5C4DF
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<div>
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif">From:
</span></b><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif">Joao
Alves</span><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:windowtext"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif">Sent:
</span></b><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif">Thursday,
June 11, 2015 15:36<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif">To:
</span></b><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif"><a
moz-do-not-send="true"
href="mailto:miconda@gmail.com">miconda@gmail.com</a>;
Kamailio (SER) - Users Mailing List<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif">Reply
To:
</span></b><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif">Kamailio
(SER) - Users Mailing List<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif">Subject:
</span></b><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif">Re:
[SR-Users] Problems with http_query(POST)<o:p></o:p></span></p>
</div>
</div>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Times New
Roman",serif"><o:p> </o:p></span></p>
<div id="_originalContent">
<p class="MsoNormal" style="background:white"><span
style="color:#1F497D">Hi Daniel,</span><o:p></o:p></p>
<p class="MsoNormal" style="background:white"><span
style="color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="background:white"><span
style="color:#1F497D">Thanks for the quick answer. I’ve
just set the “http_query_timeout" to 30 sec as I also need
to do a “long pulling”.
</span><o:p></o:p></p>
<p class="MsoNormal" style="background:white"><span
style="color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="background:white"><span
style="color:#1F497D">Regards,</span><o:p></o:p></p>
<p class="MsoNormal" style="background:white"><span
style="color:#1F497D">Joao</span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="background:white"><b><span
style="color:windowtext">From:</span></b><span
style="color:windowtext"> sr-users [<a
moz-do-not-send="true"
href="mailto:sr-users-bounces@lists.sip-router.org">mailto:sr-users-bounces@lists.sip-router.org</a>]
<b>On Behalf Of </b>Daniel-Constantin Mierla<br>
<b>Sent:</b> quinta-feira, 11 de Junho de 2015 20:22<br>
<b>To:</b> Kamailio (SER) - Users Mailing List<br>
<b>Subject:</b> Re: [SR-Users] Problems with
http_query(POST)</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="background:white"> <o:p></o:p></p>
<p class="MsoNormal"
style="margin-bottom:12.0pt;background:white">Hello,<o:p></o:p></p>
<div>
<p class="MsoNormal" style="background:white">On 11/06/15
18:13, Joao Alves wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal" style="background:white">Hi,<o:p></o:p></p>
<p class="MsoNormal" style="background:white"> <o:p></o:p></p>
<p class="MsoNormal" style="background:white">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><o:p></o:p></p>
<p class="MsoNormal" style="background:white"> <o:p></o:p></p>
<p class="MsoNormal" style="background:white">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" style="background:white"> <o:p></o:p></p>
<p class="MsoNormal" style="background:white">8(49381)
ERROR: <core> [pvapi.c:1338]: pv_printf(): no more
space for spec value<o:p></o:p></p>
<p class="MsoNormal" style="background:white">8(49381)
ERROR: <core> [pvapi.c:1347]: pv_printf(): buffer
overflow -- increase the buffer size...<o:p></o:p></p>
<p class="MsoNormal" style="background:white">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" style="background:white">8(49381)
ERROR: utils [functions.c:112]: http_query(): cannot get
post value
<o:p></o:p></p>
<p class="MsoNormal" style="background:white"> <o:p></o:p></p>
<p class="MsoNormal" style="background:white">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" style="background:white"> <o:p></o:p></p>
<p class="MsoNormal" style="background:white"><span
style="font-family:"Menlo",serif">pv_buffer_size=32768</span><o:p></o:p></p>
<p class="MsoNormal" style="background:white"><span
style="font-family:"Menlo",serif">tcp_rd_buf_size=32768</span><o:p></o:p></p>
<p class="MsoNormal" style="background:white"><span
style="font-family:"Menlo",serif">maxbuffer=262144</span><o:p></o:p></p>
<p class="MsoNormal" style="background:white"> <o:p></o:p></p>
<p class="MsoNormal" style="background:white">Can someone
assist and suggest a solution.<o:p></o:p></p>
</blockquote>
<p class="MsoNormal" style="background:white"><span
style="font-size:12.0pt;font-family:"Times New
Roman",serif"><br>
this should be controlled by the the pv_buffer_size. What
are the parameters for http_query()?<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<br>
</span><o:p></o:p></p>
<pre style="background:white">-- <o:p></o:p></pre>
<pre style="background:white">Daniel-Constantin Mierla<o:p></o:p></pre>
<pre style="background:white"><a moz-do-not-send="true" href="http://twitter.com/#%21/miconda">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a><o:p></o:p></pre>
<pre style="background:white">Book: SIP Routing With Kamailio - <a moz-do-not-send="true" href="http://www.asipto.com">http://www.asipto.com</a><o:p></o:p></pre>
<p class="MsoNormal" style="background:white"><span
style="font-size:12.0pt;font-family:"Times New
Roman",serif;color:windowtext">This message and the
information contained herein is proprietary and
confidential and subject to the Amdocs policy statement,
you may review at <a moz-do-not-send="true"
href="http://www.amdocs.com/email_disclaimer.asp">http://www.amdocs.com/email_disclaimer.asp</a>
<br>
<br>
<o:p></o:p></span></p>
</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://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>