<div id="geary-body" dir="auto"><div>Hello Everyone,</div><div>I am trying some conversion lua script with parameters and opensips return unexpected  data</div><div>Based on module doc param should be as string.</div><div><br></div><div>If I set </div><div><br></div><div><span style="color: rgb(238, 238, 238); font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 14px; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; background-color: rgb(5, 17, 20);">if(lua_exec("arg_function", "encode:UTF16:$rb")) {</span></div><div><span style="color: rgb(238, 238, 238); font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 14px; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; background-color: rgb(5, 17, 20);"><br></span></div><div><br></div><div
 ><span style="font-variant-ligatures: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255);">then return </span></div><div><span style="font-variant-ligatures: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255);"><br></span></div><div><span style="font-variant-ligatures: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255);"><div>Dec  6 21:29:37 dev1-fr /usr/sbin/opensips[3473]: SMS encode UTF16 with body Efcjjfrd</div><div>Dec  6 21:29:37 dev1-fr /usr/sbin/opensips[3473]: siplua: got opensips string : userdata: 0x7f9226d30080</div><div><br></div><div>Lua code</div><div><br></div><div><div>function arg_function(str)</div><div>        print("got opensips string : ".. tostring(str))</div></div><div><br></div><div><br></div><div>Also second question how to set avp from lua script ?</div><div><br></div><div><h3 class="title" style="font-family: Helvetica, Arial; font-variant-ligatures: normal;">AVP_set(msg
 , name, value)</h3></div><div><br></div><div><br></div></span></div><div><span style="background-color: rgb(255, 255, 255);">volga629</span></div></div>