[OpenSIPS-Users] Python functions

Răzvan Crainea razvan at opensips.org
Wed Mar 23 08:20:38 UTC 2022


What OpenSIPS version are you using?

Răzvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com

On 3/22/22 01:41, Alberto wrote:
> 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
> 
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users



More information about the Users mailing list