[sr-dev] Delayed branches?

Jasmin Schnatterbeck js at data-cmr.net
Wed Jun 30 15:14:56 CEST 2010


Hi Juha,

thanks for your response

There is such a sleep function:

http://kamailio.org/docs/modules/3.0.x/modules_k/cfgutils.html#id2753004

"The module provides as well functions to delay the execution of the
server. The functions “sleep” and “usleep” could be used to let the
server wait a specific time interval."

Hmm...letting the whole server sleep would not really be the idea ;-)

Do you know of other functions like this?

Best Regards
Jasmin

> Jasmin Schnatterbeck writes:
> 
> > For example if one INVITE lookup results in 2 contacts/branches, then
> > the first branch should be executed directly but the second should
> > experience a delay of some seconds, until the INVITE is being sent out
> > to the 2nd contact.
> 
> you can do this using serial forking if there is a sleep() function (i
> don't remember if such exists).
> 
> -- juha





More information about the sr-dev mailing list