Hi,

Indeed, it is very dangerous to use the sleep function in your cfg as it will block the current process (like not being able to do anything else in terms of traffic handling) during the sleep time.

If you simply have no way around the sleep (in your logic), use the async version of it.

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS Summit 2019
  https://www.opensips.org/events/Summit-2019Amsterdam/

On 03/01/2019 10:33 AM, sagar malam wrote:
Is it safe to use sleep function from cfgutils module ? I have doubt that using sleep function may sleep particular process processing that function which can be problematic.
Any inputs are appreciated.

--
Thanks,

Sagar


_______________________________________________
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

Reply via email to