[SR-Users] usleep with variable

Antanas Masevicius antanas.masevicius at ntt.lt
Thu Jul 9 06:49:54 CEST 2015


Hello,

i noticed that there was some very old patch, but its for opensips branch:

http://sourceforge.net/p/opensips/patches/42/

can this still be something with usage? Did anyone try sleeping for 
random period in kamailio?

Antanas


On 08/07/15 11:01, Antanas Masevicius wrote:
> Hello,
>
> been struggling to make a random sleep with cfgutils functions.
>
> ex:
> $avp(i:444) = 123;
> usleep("$avp(i:444)");
>
> gives an error:
>
> ERROR: <core> [route.c:1189]: fix_actions(): fixing failed (code=-1) 
> at cfg:/etc/kamailio/kamailio-sp1new.cfg:723
>
> Kamailio version: 4.3
>
> If usleep accepts only numbers, is there any other way to sleep by 
> passing variable?
>
> best regards,
> Antanas
>
> -- 
> # <#>
> Antanas Masevičius
> Technikos Direktorius
> UAB Nacionalinis telekomunikacijų tinklas
> Panerių g. 51, LT-03160 Vilnius
> *Tel.* 8 5 2056000
> *Tiesiog. tel.* 8 700 00031
> *Mob. tel.* 8 685 77730
> *Faks.* 8 700 00034
> *El. p.:* antanas.masevicius at ntt.lt <#>
> #
> www.ntt.lt <http://www.ntt.lt>   | www.spykas.com <http://www.spykas.com>
>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
# <#>
Antanas Masevičius
Technikos Direktorius
UAB Nacionalinis telekomunikacijų tinklas
Panerių g. 51, LT-03160 Vilnius
*Tel.* 8 5 2056000
*Tiesiog. tel.* 8 700 00031
*Mob. tel.* 8 685 77730
*Faks.* 8 700 00034
*El. p.:* antanas.masevicius at ntt.lt <#>
#
www.ntt.lt <http://www.ntt.lt>   | www.spykas.com <http://www.spykas.com>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150709/faca60ae/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 1611 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150709/faca60ae/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 1316 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150709/faca60ae/attachment-0001.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logo.gif
Type: image/gif
Size: 1611 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150709/faca60ae/attachment-0002.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: line.gif
Type: image/gif
Size: 1316 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150709/faca60ae/attachment-0003.gif>


More information about the sr-users mailing list