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