<div dir="ltr">Definitely a bug, thanks for reporting!<div>I've just pushed a fix on master. If you could try and give feedback I'll backport then.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 12, 2016 at 2:25 PM, AlainDubois78 <span dir="ltr"><<a href="mailto:notifications@github.com" target="_blank">notifications@github.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><p>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.<br>
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:<br>
static int w_http_async_get(sip_msg_t <em>msg, char *query, char</em> rt)<br>
{<br>
...<br>
    return async_send_query(msg, &sdata, NULL, act);</p>

<p>}</p>

<p>static int w_http_async_post(sip_msg_t <em>msg, char *query, char</em> post, char* rt)<br>
{<br>
...<br>
    if(async_send_query(msg, &sdata, &post_data, act)<0)<br>
        return -1;</p>

<pre><code>/* force exit in config */
return 0;
</code></pre>

<p>}</p>

<p>I was expecting the post function to work as the get one and to finish with something like:<br>
return async_send_query(msg, &sdata, &post_data, act);</p>

<p>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?)</p>

<p style="font-size:small;color:#666">—<br>You are receiving this because you are subscribed to this thread.<br>Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/744" target="_blank">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZdU-9YfQ27wpMr9DXr9cYDUmmq93ks5qfGZNgaJpZM4JjCSr" target="_blank">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZaLxAL1FST0o7hpLiJ8hGuc0WuCEks5qfGZNgaJpZM4JjCSr.gif" width="1"></p>
<div>
<div>
  
  
</div>

</div>

</div></div><br>______________________________<wbr>_________________<br>
sr-dev mailing list<br>
<a href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev" rel="noreferrer" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>dev</a><br>
<br></blockquote></div><br></div>