[sr-dev] [kamailio/kamailio] Problem when using http_async_client with a POST (#744)

Federico Cabiddu federico.cabiddu at gmail.com
Fri Aug 12 14:41:25 CEST 2016


Definitely a bug, thanks for reporting!
I've just pushed a fix on master. If you could try and give feedback I'll
backport then.

On Fri, Aug 12, 2016 at 2:25 PM, AlainDubois78 <notifications at github.com>
wrote:

> On a Linux 64 bits Ubuntu, I'm trying to use the http_async_client to send
> a POST message but whatever I set, it always suspends the current route
> contrary to the content of the documentation.
> When I look at the C code it seems to be done on purpose as the return for
> the POST is different than the return from the get:
> static int w_http_async_get(sip_msg_t *msg, char *query, char* rt)
> {
> ...
> return async_send_query(msg, &sdata, NULL, act);
>
> }
>
> static int w_http_async_post(sip_msg_t *msg, char *query, char* post,
> char* rt)
> {
> ...
> if(async_send_query(msg, &sdata, &post_data, act)<0)
> return -1;
>
> /* force exit in config */
> return 0;
>
> }
>
> I was expecting the post function to work as the get one and to finish
> with something like:
> return async_send_query(msg, &sdata, &post_data, act);
>
> Based on the document it looks like a bug but the comment bothers me and
> let me think it might be done on purpose (which one?)
>
>> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/kamailio/kamailio/issues/744>, or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AF36ZdU-9YfQ27wpMr9DXr9cYDUmmq93ks5qfGZNgaJpZM4JjCSr>
> .
>
> _______________________________________________
> sr-dev mailing list
> sr-dev at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20160812/f20cfbb7/attachment.html>


More information about the sr-dev mailing list