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