Hi, this code in a route block:
$avp(i:999) = "hola"; xlog("L_INFO", "avp(i:999) before async_sleep(5): $avp(i:999)\n"); async_sleep("5"); xlog("L_INFO", "avp(i:999) after async_sleep(5): $avp(i:999)\n");
produces:
INFO: <script>: avp(i:999) before async_sleep(5): hola ERROR: async [async_mod.c:150]: cannot be executed as last action in a route block INFO: <script>: avp(i:999) after async_sleep(5): hola
What is wrong in the above code?
Thanks a lot.
Hello,
there was a wrong condition to detect the last action in route block, added in one of my last commits to this module. Should be fixed now in git, let me know if works.
Thanks, Daniel
On 8/4/11 11:59 AM, Iñaki Baz Castillo wrote:
Hi, this code in a route block:
$avp(i:999) = "hola"; xlog("L_INFO", "avp(i:999) before async_sleep(5): $avp(i:999)\n"); async_sleep("5"); xlog("L_INFO", "avp(i:999) after async_sleep(5): $avp(i:999)\n");
produces:
INFO:<script>: avp(i:999) before async_sleep(5): hola ERROR: async [async_mod.c:150]: cannot be executed as last action in a route block INFO:<script>: avp(i:999) after async_sleep(5): hola
What is wrong in the above code?
Thanks a lot.
2011/8/4 Daniel-Constantin Mierla miconda@gmail.com:
there was a wrong condition to detect the last action in route block, added in one of my last commits to this module. Should be fixed now in git, let me know if works.
Thanks Daniel, it works now.