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.
Otherwise, you can use the existing async mechanisms for doing the query
with utils module -- see async module.
Cheers,
Daniel
On 11/06/15 21:48, Joao Alves wrote:
I had realized that later on. However for the time being just using
this for demo purposes. I’ll lower down the value nonetheless.
Thanks!
*From:*sr-users [mailto:sr-users-bounces@lists.sip-router.org] *On
Behalf Of *Alex Balashov
*Sent:* quinta-feira, 11 de Junho de 2015 20:38
*To:* Joao Alves
*Subject:* Re: [SR-Users] Problems with http_query(POST)
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.
--
Alex Balashov | Principal | Evariste Systems LLC
303 Perimeter Center North, Suite 300
Atlanta, GA 30346
United States
Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)
Web:
http://www.evaristesys.com/,
http://www.csrpswitch.com/
Sent from my BlackBerry.
*From: *Joao Alves
*Sent: *Thursday, June 11, 2015 15:36
*To: *miconda(a)gmail.com <mailto:miconda@gmail.com>; Kamailio (SER) -
Users Mailing List
*Reply To: *Kamailio (SER) - Users Mailing List
*Subject: *Re: [SR-Users] Problems with http_query(POST)
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://twitter.com/#%21/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
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users