[OpenSIPS-Users] Python and avp
Vlad Patrascu
vladp at opensips.org
Tue Jan 18 16:07:22 UTC 2022
Hi Alberto,
You should be able to call any opensips script function from the python
code, including pv_printf() as suggested in #1893, by using the
/call_function()/ method [1]. This has been made possible from 3.1
onwards, but indirectly, by porting all opensips core functions to the
same calling interface as module functions.
[1] https://opensips.org/docs/modules/3.2.x/python.html#overview
Regards,
--
Vlad Patrascu
OpenSIPS Core Developer
http://www.opensips-solutions.com
On 17.01.2022 20:14, Alberto wrote:
> Hi,
>
> I'm using opensips 3.4 and I'm looking to set avp variables from a
> python script, looking at
> https://github.com/OpenSIPS/opensips/issues/1893
> <https://github.com/OpenSIPS/opensips/issues/1893> seems this feature
> was available from after 3.0.
> Is there any documentation on how to do it?
>
> Thanks
>
> _______________________________________________
> 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/20220118/b5a26bf5/attachment.html>
More information about the Users
mailing list