<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hello <br>
      <br>
      do you mean that the avp you assign inside the lua scripts are not
      yet ready after "lua_run"? What do you obtain if you print their
      values?<br>
      <br>
      Regards<br>
      On 06/03/15 00:20, José Seabra wrote:<br>
    </div>
    <blockquote
cite="mid:CAEVZRWuXQZGT=0x3zLiLaUeQTNx=27Gm9Mmg+p0h+_Fgjj1cmw@mail.gmail.com"
      type="cite">
      <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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>