[OpenSIPS-Users] lua_exec in local_route
johan
johan at democon.be
Fri Feb 21 12:19:42 EST 2020
Done. Feature request:
#1980
On 21.02.20 12:10, Vlad Patrascu wrote:
> Hi Johan,
>
> There is no workaround unfortunately so indeed you should open a
> feature request for this.
>
> Regards,
>
> Vlad Patrascu
> OpenSIPS Developer
> http://www.opensips-solutions.com
>
> On 2/21/20 12:48 PM, johan wrote:
>> Hello,
>>
>> when I use lua_exec in local_route, I have below error:
>>
>> Feb 21 10:31:26 hendrix opensips[26811]: Not starting opensips: invalid
>> configuration file!
>> Feb 21 10:31:26 hendrix opensips[26811]: Feb 21 10:31:26 [26823]
>> Traceback (last included file at the bottom):
>> Feb 21 10:31:26 hendrix opensips[26811]: Feb 21 10:31:26 [26823] 0.
>> /data/opensips/etc/opensips/opensips.cfg
>> Feb 21 10:31:26 hendrix opensips[26811]: Feb 21 10:31:26 [26823]
>> CRITICAL:core:yyerror: parse error in
>> /data/opensips/etc/opensips/opensips.cfg:1165:23-24: Command <lua_exec>
>> cannot be used in the block
>>
>>
>> Context: when I receive an sms in ucs2, proto_smpp returns the message
>> 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.
>>
>>
>> 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, Johan.
>>
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20200221/3a66a1a0/attachment.html>
More information about the Users
mailing list