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
[email protected] <mailto:[email protected]>
Facebook <https://www.facebook.com/perfectpitchtech> Twitter
<https://twitter.com/PerfectPitchTM>
https://perfectpitchtech.com/
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users