<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi Volga,</p>
    <p>Sorry for getting to this so late. Do you still encounter this
      issue? I have tried to reproduce this myself but it seems that
      AVP_set() does set the value correctly.</p>
    <p>Regards,<br>
    </p>
    <pre class="moz-signature" cols="72">Vlad Patrascu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 12/14/19 7:12 AM, volga629 via Users
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:1576300326.3097.7@skillsearch.ca">
      <meta http-equiv="content-type" content="text/html;
        charset=windows-1252">
      <div id="geary-body" dir="auto">
        <div>Hello Everyone,</div>
        <div>Having some issue get lua to set proper avp.  When it set
          in insert some extra characters into value of avp</div>
        <div>Here are log </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>
          <div>Dec 14 05:53:41 dev1-fr /usr/sbin/opensips[12985]:
            siplua: test::wwwww nah.uy/u5bmnc</div>
          <div>Dec 14 05:53:41 dev1-fr /usr/sbin/opensips[12985]:
            siplua: Tested string ~>0</div>
          <div>Dec 14 05:53:41 dev1-fr /usr/sbin/opensips[12985]:
            SMS_ROUTE_IN: Test string ~> [0#012]</div>
        </div>
        <div><br>
        </div>
        <div>It insert #012</div>
        <div><br>
        </div>
        <div>Lua script </div>
        <div><br>
        </div>
        <div>
          <div>                local cmd_var = handle:read("*all")</div>
          <div>                handle:close()</div>
          <div>                xlog("Tested string ~> " .. cmd_var ..
            "\n")</div>
          <div>                r eturn AVP_set("test-str", cmd_var)</div>
        </div>
        <div><br>
        </div>
        <div>Any help thank you</div>
        <div><br>
        </div>
        <div>volga629</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
  </body>
</html>