[OpenSIPS-Users] lua_exec in local_route

SIP & IPBX Expert - Dust Mobile sip-ipbx at dustmobile.com
Fri Feb 21 10:45:34 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.  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