Hi Daniel,

 

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”.

 

Regards,

Joao

From: sr-users [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Daniel-Constantin Mierla
Sent: quinta-feira, 11 de Junho de 2015 20:22
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] Problems with http_query(POST)

 

Hello,

On 11/06/15 18:13, Joao Alves wrote:

Hi,

 

I’m finding a problem submitting a HTTP POST using the http_query().  Currently running on kamailio version: 4.1.8 on Debian wheezy.

 

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:

 

8(49381) ERROR: <core> [pvapi.c:1338]: pv_printf(): no more space for spec value

8(49381) ERROR: <core> [pvapi.c:1347]: pv_printf(): buffer overflow -- increase the buffer size...

8(49381) ERROR: <core> [sr_module.c:1696]: get_str_fparam(): Could not convert the PV-formated string to str

8(49381) ERROR: utils [functions.c:112]: http_query(): cannot get post value

 

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:

 

pv_buffer_size=32768

tcp_rd_buf_size=32768

maxbuffer=262144

 

Can someone assist and suggest a solution.


this should be controlled by the the pv_buffer_size. What are the parameters for http_query()?

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com
This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp