<div dir="ltr"><div>Hi Michael,</div><div><br></div><div>It looks like you may need to send an OK to the caller side before invoking the asynchronous sleep. Something like:</div><div><br></div><div>sl_send_reply(200, "OK");</div><div><br></div><div>- Jon Abrams<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Sep 22, 2022 at 10:29 AM Saint Michael <<a href="mailto:venefax@gmail.com">venefax@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-size:small">Dear friends</div><div class="gmail_default" style="font-size:small">I have a call extender technology that is very useful, but it has a problem, and my support provider, who wrote it, is missing in action.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">This is the issue: the call extender technology does not confirm the BYE to the caller<br> if ($avp(hold_seconds) > 0) {<br> $avp(total_duration) = $DLG_lifetime + $avp(hold_seconds);<br> cache_store("local","start_$ci","$dlg_val(start_time)",180); <br> cache_store("local","duration_$ci","$avp(total_duration)",180); <br> async( sleep($avp(hold_seconds)), bye_resume );<br> exit;<br> } <br>if that code executes, because hold_seconds > 0, then we don't confim the BYE and we keep </div><div class="gmail_default" style="font-size:small">getting more BYEs. <br>The call extender technology should confirm the BYE to the caller as normally, and it does not. It should hold the call open towards the callee, not the caller. Can you suggest a change in the code?<br></div><div class="gmail_default" style="font-size:small">I guess the new line if code should be called before</div><div class="gmail_default" style="font-size:small">$avp(total_duration) = $DLG_lifetime + $avp(hold_seconds);<br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Many thanks for your help</div><div class="gmail_default" style="font-size:small"><br></div></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>