[OpenSIPS-Users] Python functions

Alberto alberto.rinaudo at gmail.com
Wed Mar 23 08:29:43 UTC 2022


Hi,
3.2
Sorry for not mentioning it earlier

On Wed, 23 Mar 2022, 08:22 Răzvan Crainea, <razvan at opensips.org> wrote:

> 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
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20220323/fef0630a/attachment.html>


More information about the Users mailing list