Hi all,
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.
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.
Regards,
Bogdan
On 11/22/2011 03:46 PM, Sammy Govind wrote:
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.
_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
--
Bogdan-Andrei Iancu
OpenSIPS solutions and "know-how"
_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users