<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi all,<br>
<br>
Using sleep() functions in script is really dangerous as actually
you block an opensips process in doing the sleep. So if you have 8
processes and you have 8 calls in sleep for 5 secs, you will end up
blocking your entire opensips for all SIP traffic.<br>
<br>
A not simple approach, but more efficient is to first set fr_timer
to 5 and send the invite to a destination that does not exists /
answer -> in 5 seconds you will end up in failure route and you
can resume the processing there.....and there is no blocking in
opensips.<br>
<br>
Regards,<br>
Bogdan<br>
<br>
On 11/22/2011 03:46 PM, Sammy Govind wrote:
<blockquote
cite="mid:CAJUJwthB=H+zg5SsZJEGQ74hV0wT3HKTqqF0XeoutFgkjZ4T=w@mail.gmail.com"
type="cite">We can add delay for a particular host, add error,
packet drop and packet reordering in network layer but for just
first invite !! ummm...yes in configuration where you detect
_first_ INVITE put a sleep in there but then it won't be true
network latency simulation.<br>
<br>
<div class="gmail_quote">On Tue, Nov 22, 2011 at 6:26 PM, Dani
Popa <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:dani.popa@gmail.com">dani.popa@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
Hi,<br>
<br>
I know it's a weird question, but still, it is possible to add
a delay (let's say 5 seconds) for the first invite(somehow to
increase post dial delay with 5 seconds).<br>
<br>
Thanks,<br>
Dani<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a moz-do-not-send="true"
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>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Bogdan-Andrei Iancu
OpenSIPS solutions and "know-how"</pre>
</body>
</html>