[SR-Users] Problems with http_query(POST)

Daniel-Constantin Mierla miconda at gmail.com
Thu Jun 11 21:21:31 CEST 2015


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150611/a1c11c0d/attachment.html>


More information about the sr-users mailing list