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
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@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@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users