<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body>
<div dir="auto">We have 2 rtpengines in production and thousands of calls coming in. Few of them get timed out because they don't get processed in time by rtpengine. Simply by making 3 commands; offer, answer and delete. It can help us a lot with this.</div>
<div dir="auto"><br>
</div>
<div dir="auto">I think I've under<span>stood what needs to <span>be done and, in a day, or two I'll raise a PR with the changes for rtpengine module. </span></span></div>
<div dir="auto"><span><span>After that I guess there are some changes that needs to be done in sipwise/rtpengine media servers which seems complicated at this point.</span></span></div>
<div dir="auto"><span style="font-size: 12pt;">I'm hoping for your support in improving my PR for now. Against which branch should I raise my PR??</span></div>
<div dir="auto"><span style="font-size: 12pt;"><br>
</span></div>
<div dir="auto"><span style="font-size: 12pt;">Thank you</span></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Henning Westerholt <hw@gilawa.com><br>
<b>Sent:</b> Monday, November 28, 2022 1:47:00 PM<br>
<b>To:</b> Kamailio (SER) - Development Mailing List <sr-dev@lists.kamailio.org><br>
<b>Cc:</b> Aditya Gupta <aditya.gupta@alumni.iiit.ac.in><br>
<b>Subject:</b> RE: Make some commands in kamailio rtpengine module asynchronous</font>
<div> </div>
</div>
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
@font-face
        {font-family:HelveticaNeue}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
span.x_E-MailFormatvorlage18
        {font-family:"Calibri",sans-serif;
        color:windowtext}
.x_MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:70.85pt 70.85pt 2.0cm 70.85pt}
div.x_WordSection1
        {}
-->
</style>
<div lang="DE" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="x_WordSection1">
<p class="x_MsoNormal"><span style="">Hello,</span></p>
<p class="x_MsoNormal"><span style=""> </span></p>
<p class="x_MsoNormal"><span lang="EN-GB" style="">what is the motivation behind this? Are you seeing performance issues in a production environment that could not solved e.g., by adding some more rtpengine resources?</span></p>
<p class="x_MsoNormal"><span lang="EN-GB" style=""> </span></p>
<p class="x_MsoNormal"><span lang="EN-GB" style="">Regarding implementation, you could also have a look for example at the http_async_client module, which might be a bit more easy to understand regarding the async implementation in Kamailio.</span></p>
<p class="x_MsoNormal"><span lang="EN-GB" style=""> </span></p>
<p class="x_MsoNormal"><span lang="EN-GB" style="">Cheers,</span></p>
<p class="x_MsoNormal"><span lang="EN-GB" style=""> </span></p>
<p class="x_MsoNormal"><span lang="EN-GB" style="">Henning</span></p>
<p class="x_MsoNormal"><span lang="EN-GB" style=""> </span></p>
<div>
<p class="x_MsoNormal"><span lang="EN-GB" style="">-- </span></p>
<p class="x_MsoNormal"><span lang="EN-GB" style="">Henning Westerholt – </span><span style=""><a href="https://skalatan.de/blog/"><span lang="EN-GB" style="color:#0563C1">https://skalatan.de/blog/</span></a></span><span lang="EN-GB" style=""></span></p>
<p class="x_MsoNormal"><span lang="EN-GB" style="">Kamailio services – </span><span style=""><a href="https://gilawa.com/"><span lang="EN-GB" style="color:#0563C1">https://gilawa.com</span></a></span><span lang="EN-GB" style=""></span></p>
</div>
<p class="x_MsoNormal"><span lang="EN-GB" style=""> </span></p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="x_MsoNormal" style="margin-left:35.4pt"><b>From:</b> sr-dev <sr-dev-bounces@lists.kamailio.org>
<b>On Behalf Of </b>Aditya Gupta<br>
<b>Sent:</b> Thursday, November 24, 2022 2:47 PM<br>
<b>To:</b> sr-dev@lists.kamailio.org<br>
<b>Subject:</b> [sr-dev] Make some commands in kamailio rtpengine module asynchronous</p>
</div>
</div>
<p class="x_MsoNormal" style="margin-left:35.4pt"> </p>
<p class="x_MsoNormal" style="margin-left:35.4pt"><span style="font-size:12.0pt; font-family:"HelveticaNeue",serif">Hello!</span>
</p>
<div>
<p class="x_MsoNormal" style="margin-left:35.4pt"><span style="font-size:12.0pt; font-family:"HelveticaNeue",serif">We needed some commands in rtpengine module to be asynchronous that is offer, answer and delete. I needed help for this.</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin-left:35.4pt; background:white"><span style="font-size:12.0pt; font-family:"HelveticaNeue",serif"> </span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin-left:35.4pt; background:white"><span style="font-size:12.0pt; font-family:"HelveticaNeue",serif; color:black">Firstly, I went through the evapi module to understand how asynchronous commands were implemented by suspending
 request/responses and then by continuing. But I couldn't see anywhere where the suspended commands were being continued. </span><span style="font-size:12.0pt; font-family:"HelveticaNeue",serif"></span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin-left:35.4pt; background:white"><span style="font-size:12.0pt; font-family:"HelveticaNeue",serif"> </span></p>
</div>
<p class="x_MsoNormal" style="margin-left:35.4pt"><span style="font-size:12.0pt; font-family:"HelveticaNeue",serif; color:black; background:white">Thank you.</span>
</p>
<div>
<p class="x_MsoNormal" style="margin-left:35.4pt"> </p>
</div>
</div>
</div>
</body>
</html>