Microseconds not milliseconds in cfgutils usleep
Hello, According to this page : http://kamailio.org/docs/modules/stable/modules/cfgutils.html#idp15252400 usleep will sleep for the number of milli-seconds specified. I am familiar with Linux's usleep which accepts milliseconds and therefore had a look at the code in Kamailio, it looks to me that your usleep accepts micro-seconds ( 1/1000000 of a second ) and not milli seconds. Can anyone confirm this? If so, maybe update the doc. Thanks, David
Hello, indeed it is microseconds, I fixed the docs on master branch. I will backport soon. Thanks, Daniel On 6/5/13 5:42 PM, David K wrote:
Hello,
According to this page :
http://kamailio.org/docs/modules/stable/modules/cfgutils.html#idp15252400
usleep will sleep for the number of milli-seconds specified.
I am familiar with Linux's usleep which accepts milliseconds and therefore had a look at the code in Kamailio, it looks to me that your usleep accepts micro-seconds ( 1/1000000 of a second ) and not milli seconds.
Can anyone confirm this? If so, maybe update the doc.
Thanks,
David
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013 * http://asipto.com/u/katu *
participants (2)
-
Daniel-Constantin Mierla -
David K