[OpenSIPS-Users] lua_exec in local_route

johan johan at democon.be
Fri Feb 21 10:48:09 EST 2020


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.






More information about the Users mailing list