<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Done. Feature request: <br>
</p>
<h1 class="gh-header-title f1 mr-0 flex-auto break-word"><span
class="gh-header-number">#1980</span></h1>
<div class="moz-cite-prefix">On 21.02.20 12:10, Vlad Patrascu wrote:<br>
</div>
<blockquote type="cite"
cite="mid:1eaa5db4-ae13-ce63-b050-70bd3edf173e@opensips.org">Hi
Johan,
<br>
<br>
There is no workaround unfortunately so indeed you should open a
feature request for this.
<br>
<br>
Regards,
<br>
<br>
Vlad Patrascu
<br>
OpenSIPS Developer
<br>
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>
<br>
<br>
On 2/21/20 12:48 PM, johan wrote:
<br>
<blockquote type="cite">Hello,
<br>
<br>
when I use lua_exec in local_route, I have below error:
<br>
<br>
Feb 21 10:31:26 hendrix opensips[26811]: Not starting opensips:
invalid
<br>
configuration file!
<br>
Feb 21 10:31:26 hendrix opensips[26811]: Feb 21 10:31:26 [26823]
<br>
Traceback (last included file at the bottom):
<br>
Feb 21 10:31:26 hendrix opensips[26811]: Feb 21 10:31:26 [26823]
0.
<br>
/data/opensips/etc/opensips/opensips.cfg
<br>
Feb 21 10:31:26 hendrix opensips[26811]: Feb 21 10:31:26 [26823]
<br>
CRITICAL:core:yyerror: parse error in
<br>
/data/opensips/etc/opensips/opensips.cfg:1165:23-24: Command
<lua_exec>
<br>
cannot be used in the block
<br>
<br>
<br>
Context: when I receive an sms in ucs2, proto_smpp returns the
message
<br>
in utf16 big endian. I need to to convert this to utf8. You
find the body in local_route as the message is created by tm.
Therefore I thought to do the decoding using lua.
<br>
<br>
<br>
so I assume that lua_exec is there forbidden. If this is true,
should I open a feature request to add this functionality or is
there a workaround ?
<br>
<br>
<br>
BR, Johan.
<br>
<br>
<br>
<br>
<br>
_______________________________________________
<br>
Users mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<br>
<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>
<br>
</blockquote>
<br>
_______________________________________________
<br>
Users mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<br>
<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>
<br>
</blockquote>
</body>
</html>