[OpenSIPS-Users] sleep

Ryan Mitchell rjm at tcl.net
Sat May 3 20:00:28 CEST 2014


Be aware that OpenSips uses a fixed number of processes to handle requests
(see "fork" and "children" parameters), so looping and sleeping in the
script could really kill performance.


On Wed, Apr 30, 2014 at 1:09 PM, Gary Nyquist <gn62 at gmx.us> wrote:

> Thanks Tito....
>
>
>
> ----- Original Message -----
>
> From: Tito Cumpen
>
> Sent: 04/30/14 03:10 PM
>
> To: OpenSIPS users mailling list
>
> Subject: Re: [OpenSIPS-Users] sleep
>
> Gary,
>
>
> You may use this module
>
> http://www.opensips.org/html/docs/modules/1.4.x/cfgutils.html
>
> and this function
>
> http://www.opensips.org/html/docs/modules/1.4.x/cfgutils.html#id293666
>
>
> Thanks,
> Tito
>
> On Wed, Apr 30, 2014 at 2:47 PM, Gary Nyquist <gn62 at gmx.us> wrote:
>>
>> Hello,
>>
>>
>>
>> I am using to use a 'while()' loop in the opensips.cfg file.
>>
>> And need to put a delay of 1 second in the loop.
>>
>>
>>
>> Is there any 'sleep' function to create the delay?
>>
>>
>>
>> Best
>>
>> --Gary
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>


-- 
Ryan Mitchell <rjm at tcl.net>
Telecom Logic, LLC
+15035934551
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140503/a02bbc58/attachment.htm>


More information about the Users mailing list