I don know how to do one thing:
As I understand I need to set values for variables
modparam("uac","auth_realm_avp","$avp(i:10)")
modparam("uac","auth_username_avp","$avp(i:11)")
modparam("uac","auth_password_avp","$avp(i:12)")
Am I right?
If I get query results with password and realm through sqlops, how can I
send it to
modparam("uac","credential","username:domain:password")
Must I use something like:
$avp(i:12)=$avp(my_query_result_password)
$avp(i:10)=$avp(my_query_result_realm)
$avp(i:11)=$avp(my_query_result_username)
?
2014-08-20 13:10 GMT+04:00 Daniel-Constantin Mierla <miconda(a)gmail.com>om>:
Hello,
see avpops or sqlops for how to load values from database and access them
in config file via variables.
Cheers,
Daniel
On 19/08/14 22:53, Yuriy Gorlichenko wrote:
Hello. I suceesfully authenticate some accounts of providers from UAc
using DB.
When I try to Call to any provider it responds me 407 or 401 reply.
To Send to It new INVITE with auth Creditans I use UAC_AUTH() with
configured modparams:
modparam("uac","credential","username:domain:password")
modparam("uac","auth_realm_avp","$avp(i:10)")
modparam("uac","auth_username_avp","$avp(i:11)")
modparam("uac","auth_password_avp","$avp(i:12)")
I think that avp`s used to get varibles from DB, but at test it is not
write.
So my question- how to get this varibles from DB (uacreg table)
Thanks
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin
Mierlahttp://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda
Next Kamailio Advanced Trainings 2014 -
http://www.asipto.com
Sep 22-25, Berlin, Germany ::: Oct 15-17, San Francisco, USA
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users