<div dir="ltr">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.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 30, 2014 at 1:09 PM, Gary Nyquist <span dir="ltr"><<a href="mailto:gn62@gmx.us" target="_blank">gn62@gmx.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span style="font-family:Verdana"><span style="font-size:12px">Thanks Tito....<p style="margin:0px;padding:0px"> </p><blockquote style="border-left:1px solid #ccc;padding-left:5px;margin-left:5px;margin-bottom:0px;margin-top:0px;margin-right:0px" type="cite">
<p style="margin:0px;padding:0px"><span style="font-family:Verdana"><span style="font-size:12px">----- Original Message -----</span></span></p><p style="margin:0px;padding:0px"><span style="font-family:Verdana"><span style="font-size:12px">From: Tito Cumpen</span></span></p>
<p style="margin:0px;padding:0px"><span style="font-family:Verdana"><span style="font-size:12px">Sent: 04/30/14 03:10 PM</span></span></p><p style="margin:0px;padding:0px"><span style="font-family:Verdana"><span style="font-size:12px">To: OpenSIPS users mailling list</span></span></p>
<p style="margin:0px;padding:0px"><span style="font-family:Verdana"><span style="font-size:12px">Subject: Re: [OpenSIPS-Users] sleep</span></span></p><div><div class="h5"> <div><div>Gary,<div> </div><div> </div><div>You may use this module</div>
<div> </div><div><a href="http://www.opensips.org/html/docs/modules/1.4.x/cfgutils.html" target="_blank">http://www.opensips.org/html/docs/modules/1.4.x/cfgutils.html</a></div><div> </div><div>and this function</div><div>
</div><div><a href="http://www.opensips.org/html/docs/modules/1.4.x/cfgutils.html#id293666" target="_blank">http://www.opensips.org/html/docs/modules/1.4.x/cfgutils.html#id293666</a></div><div> </div><div> </div><div>Thanks,</div>
<div>Tito</div></div><div class="gmail_extra"> <div class="gmail_quote">On Wed, Apr 30, 2014 at 2:47 PM, Gary Nyquist <span><<a href="mailto:gn62@gmx.us" target="_blank">gn62@gmx.us</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p style="margin:0px;padding:0px;margin:0px;padding:0px"><span style="font-family:Verdana"><span style="font-size:12px"><font face="monospace" size="3"><span style="white-space:pre-wrap">Hello,</span></font></span></span></p>
<p style="margin:0px;padding:0px;margin:0px;padding:0px"><span style="font-family:Verdana"><span style="font-size:12px"><font face="monospace" size="3"><span style="white-space:pre-wrap"> </span></font></span></span></p><p style="margin:0px;padding:0px;margin:0px;padding:0px">
<span style="font-family:Verdana"><span style="font-size:12px"><font face="monospace" size="3"><span style="white-space:pre-wrap">I am using to use a 'while()' loop in the opensips.cfg file.</span></font></span></span></p>
<p style="margin:0px;padding:0px;margin:0px;padding:0px"><span style="font-family:Verdana"><span style="font-size:12px"><font face="monospace" size="3"><span style="white-space:pre-wrap">And need to put a delay of 1 second in the loop.</span></font></span></span></p>
<p style="margin:0px;padding:0px;margin:0px;padding:0px"><span style="font-family:Verdana"><span style="font-size:12px"> </span></span></p><p style="margin:0px;padding:0px;margin:0px;padding:0px"><span style="font-family:Verdana"><span style="font-size:12px"><font face="monospace" size="3"><span style="white-space:pre-wrap">Is there any 'sleep' function to create the delay?</span></font></span></span></p>
<p style="margin:0px;padding:0px;margin:0px;padding:0px"><span style="font-family:Verdana"><span style="font-size:12px"><font face="monospace" size="3"><span style="white-space:pre-wrap"> </span></font></span></span></p><p style="margin:0px;padding:0px;margin:0px;padding:0px">
<span style="font-family:Verdana"><span style="font-size:12px"><font face="monospace" size="3"><span style="white-space:pre-wrap">Best</span></font></span></span></p><p style="margin:0px;padding:0px;margin:0px;padding:0px">
<span style="font-family:Verdana"><span style="font-size:12px"><span><font color="#888888"><font face="monospace" size="3"><span style="white-space:pre-wrap">--Gary</span></font></font></span></span></span></p><div><span style="font-family:Verdana"><span style="font-size:12px"><span><font color="#888888"> </font></span></span></span></div>
<br>_______________________________________________<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" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div></div></div></div></div></blockquote><p style="margin:0px;padding:0px"> </p></span></span>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Ryan Mitchell <<a href="mailto:rjm@tcl.net" target="_blank">rjm@tcl.net</a>><br>Telecom Logic, LLC<br>+15035934551
</div>