<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p>Hello Jimmy,</p>
<p>not being the author of the module, so some generic comments.</p>
<p>The xhttp module is used from the jsonrpcs module, but the jsonrpcs module controls the handling. This module implements the asynchronous processing as you quoted below. The xhttp module does not implement asynchronous handling, so it will block if you use
 it stand alone. <br>
</p>
<p>I would suggest to just test if your worker process block in your particular situation and configuration. You can e.g. use the sleep() function of cfgutils to simulate a long running execution. See if you still are able to process SIP messages after you
 trigger n requests (for n = kamailio children count).<br>
</p>
<p>Cheers,</p>
<p>Henning<br>
</p>
<div class="moz-cite-prefix">Am 16.01.20 um 23:02 schrieb Jimmy Rodley:<br>
</div>
<blockquote type="cite" cite="mid:443353431.8467378.1579212160245@mail.yahoo.com">
<div class="ydpa2f8a8e8yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial,
        sans-serif;font-size:16px;">
<div id="ydpa2f8a8e8yiv8231784753">
<div class="ydpa2f8a8e8yiv8231784753ydpc5c94e4dyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial,
            sans-serif;font-size:16px;">
<div dir="ltr">Hi,</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">I am on kamailio 5.2.4 and want to use the xhttp module for certain management operations.</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">The request involves some DB queries . The DB is remote and via ODBC and might have some delay.</div>
<div dir="ltr">The documentation on the xhttp module states about latency <span><a href="http://kamailio.org/docs/modules/5.2.x/modules/xhttp.html" rel="nofollow" target="_blank" moz-do-not-send="true">http://kamailio.org/docs/modules/devel/modules/xhttp.html</a> mentioning
 that the request is handled in an asynchronous manner. </span></div>
<div dir="ltr"><span><br>
</span></div>
<div dir="ltr" data-setdir="false">However, the JSONRPC-S module documentation says that this module implements the support for asynchronous RPC commands only for HTTP and HTTPS transports.<br>
</div>
<div dir="ltr">
<div><br>
</div>
<div dir="ltr" data-setdir="false"><span><a href="https://www.kamailio.org/docs/modules/devel/modules/jsonrpcs.html#idm1049416972" rel="nofollow" target="_blank" moz-do-not-send="true">https://www.kamailio.org/docs/modules/devel/modules/jsonrpcs.html#idm1049416972</a></span><br>
</div>
<div dir="ltr" data-setdir="false"><br>
</div>
<div dir="ltr" data-setdir="false">I am confused about the process under whose context the xttp request . Can there be a dedicated process to handle certain management requests which do some custom instructions like certain DB operations or initiate certain
 http requests ?</div>
<div dir="ltr" data-setdir="false"><br>
</div>
<div dir="ltr" data-setdir="false">Thanks,</div>
<div dir="ltr" data-setdir="false">Rupesh</div>
<div><br>
</div>
<br>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">-- 
Henning Westerholt - <a class="moz-txt-link-freetext" href="https://skalatan.de/blog/">https://skalatan.de/blog/</a>
Kamailio services - <a class="moz-txt-link-freetext" href="https://gilawa.com">https://gilawa.com</a>
Kamailio Merchandising - <a class="moz-txt-link-freetext" href="https://skalatan.de/merchandising/">https://skalatan.de/merchandising/</a></pre>
</body>
</html>