Hello Jimmy,
not being the author of the module, so some generic comments.
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.
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).
Cheers,
Henning
Am 16.01.20 um 23:02 schrieb Jimmy Rodley:
Hi,
I am on kamailio 5.2.4 and want to use the xhttp module for certain management
operations.
The request involves some DB queries . The DB is remote and via ODBC and might have some
delay.
The documentation on the xhttp module states about latency
http://kamailio.org/docs/modules/devel/modules/xhttp.html<http://kamaili…
mentioning that the request is handled in an asynchronous manner.
However, the JSONRPC-S module documentation says that this module implements the support
for asynchronous RPC commands only for HTTP and HTTPS transports.
https://www.kamailio.org/docs/modules/devel/modules/jsonrpcs.html#idm104941…
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 ?
Thanks,
Rupesh
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Henning Westerholt -
https://skalatan.de/blog/
Kamailio services -
https://gilawa.com
Kamailio Merchandising -
https://skalatan.de/merchandising/