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

Iñaki Baz Castillo ibc at aliax.net
Thu Aug 4 11:59:19 CEST 2011


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.

-- 
Iñaki Baz Castillo
<ibc at aliax.net>



More information about the sr-dev mailing list