[sr-dev] [Async module] ERROR: async [async_mod.c:150]: cannot be executed as last action in a route block

Daniel-Constantin Mierla miconda at gmail.com
Thu Aug 4 12:07:50 CEST 2011


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.
>

-- 
Daniel-Constantin Mierla -- http://www.asipto.com
Kamailio Advanced Training, Oct 10-13, Berlin: http://asipto.com/u/kat
http://linkedin.com/in/miconda -- http://twitter.com/miconda




More information about the sr-dev mailing list