[OpenSIPS-Users] lua_exec in local_route

Vlad Patrascu vladp at opensips.org
Fri Feb 21 11:10:04 EST 2020


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



More information about the Users mailing list