[OpenSIPS-Users] Launch and async

Brett Nemeroff brett at nemeroff.com
Thu Apr 18 16:50:36 UTC 2024


Can you do those operations outside of opensips? For example, can you
receive that 200 and push an event to RabbitMQ and have an outboard worker
do the delay and action?
-Brett


On Tue, Apr 16, 2024 at 9:27 AM Parthesh Bhavsar via Users <
users at lists.opensips.org> wrote:

> I'm facing a challenge in my OpenSIPS implementation where I need to
> perform certain operations after receiving a 200 OK response, but only
> after waiting for 10 seconds. Currently, I'm considering using the sleep()
> function, but I'm concerned about its impact on performance.
>
> Is there a recommended approach to achieve this functionality without
> compromising OpenSIPS performance? I'd appreciate any advice or alternative
> solutions you can offer.
>
>
> Regards,
>
> *Parthesh Bhavsar | Software Engineer | VOIP*
>
>
>
> On Tue, Apr 16, 2024 at 7:39 PM Parthesh Bhavsar <
> parthesh.bhavsar at ecosmob.com> wrote:
>
>> Hello,
>> I want to use Launch and async function for function sleep() as I need to
>> wait for some time to do some operations but from the route which I use in
>> above function I am not able to use any variable for my operation and from
>> documentation it seems only able to use those variable which sleep()
>> function use so is there any alternative solution to get variable??? or any
>> other function on which I can wait for a specific time without blocking
>> opensips??
>>
>>
>> Regards,
>>
>> *Parthesh Bhavsar | Software Engineer | VOIP*
>>
>>
>
> *[image: https://www.ecosmob.com/opensips-summit/]
> <https://www.ecosmob.com/opensips-summit/>*
> *Disclaimer*
> In addition to generic Disclaimer which you have agreed on our website,
> any views or opinions presented in this email are solely those of the
> originator and do not necessarily represent those of the Company or its
> sister concerns. Any liability (in negligence, contract or otherwise)
> arising from any third party taking any action, or refraining from taking
> any action on the basis of any of the information contained in this email
> is hereby excluded.
>
> *Confidentiality*
> This communication (including any attachment/s) is intended only for the
> use of the addressee(s) and contains information that is PRIVILEGED AND
> CONFIDENTIAL. Unauthorized reading, dissemination, distribution, or copying
> of this communication is prohibited. Please inform originator if you have
> received it in error.
>
> *Caution for viruses, malware etc.*
> This communication, including any attachments, may not be free of viruses,
> trojans, similar or new contaminants/malware, interceptions or
> interference, and may not be compatible with your systems. You shall carry
> out virus/malware scanning on your own before opening any attachment to
> this e-mail. The sender of this e-mail and Company including its sister
> concerns shall not be liable for any damage that may incur to you as a
> result of viruses, incompleteness of this message, a delay in receipt of
> this message or any other computer problems.
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20240418/b5fa3eaf/attachment.html>


More information about the Users mailing list