thanks,

Dani

On 11/22/11 16:09, Bogdan-Andrei Iancu wrote:
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.

On Tue, Nov 22, 2011 at 6:26 PM, Dani Popa <dani.p...@gmail.com <mailto:dani.p...@gmail.com>> wrote:

    Hi,

    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).

    Thanks,
    Dani

    _______________________________________________
    Users mailing list
    Users@lists.opensips.org <mailto:Users@lists.opensips.org>
    http://lists.opensips.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


--
Bogdan-Andrei Iancu
OpenSIPS solutions and "know-how"
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to