<p></p>
<p dir="auto">At first look, this is not about async processing, but only suspending the transaction before doing the rtpproxy control command. There is no passing of a task to some async worker, nor resuming the transaction.</p>
<p dir="auto">Practically your code does something like:</p>
<pre class="notranslate"><code class="notranslate">t_suspend();
rtpengine_offer()/_answer()/_delete();
</code></pre>
<p dir="auto">Maybe you can just to use <code class="notranslate">async_task_route()</code> for INVITE:</p>
<ul dir="auto">
<li><a href="https://www.kamailio.org/docs/modules/stable/modules/async.html#async.f.async_task_route" rel="nofollow">https://www.kamailio.org/docs/modules/stable/modules/async.html#async.f.async_task_route</a></li>
</ul>
<p dir="auto">And use the rtpengine functions in the target routing block. It looks like what you want to implement inside rtpengine module, but you can achieve that by using async module.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/3286#issuecomment-1329221420">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZL6CKMUI4RDP2EFIT3WKS7YDANCNFSM6AAAAAASNGVX4U">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/ABO7UZOC4JQSLCIJBZP7JY3WKS7YDA5CNFSM6AAAAAASNGVX4WWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSPHJHSY.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><kamailio/kamailio/pull/3286/c1329221420</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/pull/3286#issuecomment-1329221420",
"url": "https://github.com/kamailio/kamailio/pull/3286#issuecomment-1329221420",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>