<div dir="ltr"><div>Hi there,</div><div>I'm using kamailio version 4.2.2 to a short time, and I'm using lua scripts to build some avps with information needed to make calls(lua functions uses redis as source data to build avp data.), what i have noticed today making some tests is that when i make a call my lua function:</div><div><span style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre">if(!lua_run("get_prefs","$fU","$fd"))</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre"><span style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre">{</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre"><span style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre">   xdbg("SCRIPT: failed to execute lua function!\n");</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre"><span style="color:rgb(0,0,0);font-family:monospace;font-size:12px;line-height:18px;white-space:pre">}</span><br clear="all"><div><br></div><div><div>kamailio gets the avp's after send the invite to the destine,(the invite will fail because kamailio needs avp information).</div><div>it seems that kamailio calls the lua_run in asynchronous way, i never noticed that before in old version. is that a normal behavior or it is an issue in this version?</div></div><div><br></div><div>Best Regards</div>-- <br><div class="gmail_signature">Cumprimentos<div>José Seabra</div></div>
</div></div>