Hi everybody,

Can I do the autehntification from DB with AVPOPS and UAC modules ?

I want to do the authentification from DB (no opensips DB)  but I don't know
how to proceed.

I don't know if my start's code is right ? (befor, I'd like to test on
opesips DB):

modparam("avpops","db_url","mysql://opensips:opensip...@localhost/opensips")
modparam("avpops","avp_table","subscriber")

modparam("uac", "auth_username_avp", "$avp(i:1)")
modparam("uac", "auth_password_avp", "$avp(i:2)")
modparam("uac", "auth_realm_avp", "$avp(i:3)") 

avp_db_query("SELECT username, password, realm FROM subscriber WHERE where
username='$tu'", "$avp(i:1);$avp(i:2);$avp(i:3)");

can anyone help me please ?.

Thanks.

Sam.



-- 
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/Autehntification-from-DB-with-AVPOPS-module-tp4979020p4979020.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to