Re: [SR-Users] #cfgutils: sleep(x) does not work in failure_route

2013-11-07 Thread Klaus Feichtinger
Hello Daniel, I´ve patched the code and found that the return value of the 'sleep' command is - as expected - differing in the scenarios. For scenario 1 (no provisional response), the return value is '0' and for scenario 2, the return value is '2' (see log output): scenario 1: Nov 7 12:40:51 sip

Re: [SR-Users] #cfgutils: sleep(x) does not work in failure_route

2013-11-07 Thread Daniel-Constantin Mierla
Hello, can you try to see if sleep_us() works? It is rather strange because sleep() from cfgutils just uses sleep() from system library, nothing special internally... sleep is interrupted by signals as well. Can you patch the function in kamailio to log the return code from sleep()? Cheers,

Re: [SR-Users] #cfgutils: sleep(x) does not work in failure_route

2013-11-06 Thread klaus.lists#inode.at
Hello, I have an update: today I´ve tested with kamailio version 4.0.4, but the behaviour is still the same: it is working fine only when no response has been received; as soon as a provisional response is received, the failure route is ignoring the "sleep" function. Klaus > Hello list, > >

[SR-Users] #cfgutils: sleep(x) does not work in failure_route

2013-11-06 Thread Klaus Feichtinger
Hello list, I have troubles using the function "usleep(x)" or "sleep(x)" (the behaviour is the same) of the "cfgutils" module (http://kamailio.org/docs/modules/3.2.x/modules_k/cfgutils.html#idp76968) in the failure_route. According documentation, this function could be used in any route, incl