[OpenSIPS-Users] Set AVP variables from Python script ?
Vlad Patrascu
vladp at opensips.org
Wed Nov 27 05:47:58 EST 2019
Hi Alexandro,
Unfortunately, you cannot do this in Python, but as you've noticed you
can use Lua or Perl.
Starting from OpenSIPS 3.1 though, it will be possible to call OpenSIPS
core script functions from Python, so 'pv_printf()' would facilitate
writing AVPs from Python.
Regards,
Vlad Patrascu
OpenSIPS Developer
http://www.opensips-solutions.com
On 11/26/19 11:43 PM, Alexandro Conde wrote:
>
> Hi all,
>
> Is there a way to set a AVP variable from a Python script ?
>
> I need to authenticate the endpoints with the username & password
> stored and managed on other system DB, I already have an API that can
> return the user information, so it will be great to create a Python
> script that consume the API and return the username & password on a
> AVP variable to do the Authorization using the pv_www_authorize command.
>
> I prefer to program that on Python but if it's not possible it can be
> on LUA or Perl Right? (AVP_set & OpenSIPS::AVP)
>
> Thanks in Advance !
>
> --
>
> *Alexandro Conde Mtz.*
> Voip Specialist & Developer
> aconde at perfectpitchtech.com <mailto:aconde at perfectpitchtech.com>
> Facebook <https://www.facebook.com/perfectpitchtech> Twitter
> <https://twitter.com/PerfectPitchTM>
> https://perfectpitchtech.com/
>
>
> _______________________________________________
> 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/20191127/64cf8c51/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: janelbkljpnbapfj.png
Type: image/png
Size: 9612 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20191127/64cf8c51/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gbpkpknoedlglipm.gif
Type: image/gif
Size: 125 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20191127/64cf8c51/attachment-0002.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kckinaifmblehjja.gif
Type: image/gif
Size: 248 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20191127/64cf8c51/attachment-0003.gif>
More information about the Users
mailing list