[OpenSIPS-Users] Set AVP variables from Python script ?

Alexandro Conde aconde at perfectpitchtech.com
Tue Nov 26 16:43:32 EST 2019


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/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20191126/e4d71263/attachment.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/20191126/e4d71263/attachment.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/20191126/e4d71263/attachment.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/20191126/e4d71263/attachment-0001.gif>


More information about the Users mailing list