Re: [OpenSIPS-Users] Python functions
Hi, 3.2 Sorry for not mentioning it earlier On Wed, 23 Mar 2022, 08:22 Răzvan Crainea, 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, > of 'OpenSIPS.msg' objects> returned a result with an error set > > > > How should this be done? > > > > Thanks > > > > ___ > > Users mailing list > > Users@lists.opensips.org > > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Python functions
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, of 'OpenSIPS.msg' objects> returned a result with an error set How should this be done? Thanks ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Python functions
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, returned a result with an error set How should this be done? Thanks ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users