[OpenSIPS-Users] Python functions

Alberto alberto.rinaudo at gmail.com
Mon Mar 21 23:41:58 UTC 2022


Hi lads and ladies,
I'm working on a python script called via python_exec, but I can't see any
function to do debug logs, except LM_ERR.

I tried
msg.call_function('log', str("test"))
or
msg.call_function('xlog', str("test"))

but I always get this error:
ERROR:python:opensips_LM_ERR: 37, SystemError, <method 'call_function' of
'OpenSIPS.msg' objects> returned a result with an error set

How should this be done?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20220321/47ac5c9a/attachment-0001.html>


More information about the Users mailing list