<div dir="ltr"><div><div><div><div><div><div><div><div>Hello all,<br><br></div>I've been exploring the async module a little, and async_task_route() more specifically. I have async_workers set, and the async module loaded.<br></div><br></div>However, whenever this async function is involved in SIP processing, kamailio returns a 500 error to the UAC. I was hoping that someone could confirm that this function is suitable for my needs, I'm not sure I understand the docs very well on this one.<br><br></div>So the plan is to have some of the processing of the transaction performed asynchronously, as it is not required for routing etc. Here's an example of what I'm trying to achieve, it's not really critical if NICE_TO_HAVE route functions fail etc, I just need request_route processing to continue normally without waiting for async_task_route("NICE_TO_HAVE") to finish whatever it's going to be doing:<br><br></div>request_route() {<br><br><div style="margin-left:40px">...<br><br>SIP_PROCESSING_A<br><br>...<br><br>async_task_route("NICE_TO_HAVE")<br><br>...<br><br>SIP_PROCESSING_B<br><br>t_relay();<br></div></div></div></div><br>}<br><div><div><br></div><div>route(NICE_TO_HAVE) {<br><br><div style="margin-left:40px">dlg_var(sth) = something_derived_from_global_vars();<br><br></div>}<br><br></div><div>Is this possible, or am I completely out of scope here? Thanks!<br><br></div><div>BR,<br></div><div>George<br></div></div></div>