It worked fine, many thanks. I am very grateful for this list. On Thu, Sep 22, 2022 at 11:44 AM Jonathan Abrams <[email protected]> wrote:
> Hi Michael, > > It looks like you may need to send an OK to the caller side before > invoking the asynchronous sleep. Something like: > > sl_send_reply(200, "OK"); > > - Jon Abrams > > On Thu, Sep 22, 2022 at 10:29 AM Saint Michael <[email protected]> wrote: > >> Dear friends >> 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. >> >> This is the issue: the call extender technology does not confirm the BYE >> to the caller >> if ($avp(hold_seconds) > 0) { >> $avp(total_duration) = >> $DLG_lifetime + $avp(hold_seconds); >> >> cache_store("local","start_$ci","$dlg_val(start_time)",180); >> >> cache_store("local","duration_$ci","$avp(total_duration)",180); >> async( sleep($avp(hold_seconds)), >> bye_resume ); >> exit; >> } >> if that code executes, because hold_seconds > 0, then we don't confim the >> BYE and we keep >> getting more BYEs. >> 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? >> I guess the new line if code should be called before >> $avp(total_duration) = $DLG_lifetime + $avp(hold_seconds); >> >> Many thanks for your help >> >> _______________________________________________ >> Users mailing list >> [email protected] >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> > _______________________________________________ > Users mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users >
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
