[SR-Users] Sleep command working
Nicolas Breuer
Nicolas.Breuer at belcenter.biz
Fri Jul 21 11:39:35 CEST 2017
Hello,
I'm trying to do a sleep in the request route but seems it's not working
if (src_ip == $sel(cfg_get.kamalio2.gw) ){
xlog("L_NOTICE","Sleep 5 seconds");
usleep("5000");
}
xlog("L_NOTICE","End of sleeping");
Result :
Jul 21 11:38:02 proxy2 /usr/sbin/kamailio[31442]: NOTICE: <script>: Sleep 5 seconds
Jul 21 11:38:02 proxy2 /usr/sbin/kamailio[31442]: NOTICE: <script>: End of sleeping
Breuer Nicolas
Network Supervisor
Sales Executive
BELCENTER sprl/bvba
Operations - NCC
7 Boulevard de France,
1420 Braine - L'Alleud
Tel +32 2 403 04 61
Fax +32 2 403 04 63
National Contact Center
+32 2 403 04 60
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170721/114a4d06/attachment.html>
More information about the sr-users
mailing list