Check if the method of the message matches the name. If name is a known method (invite, cancel, ack, bye, options, info, update, register, message, subscribe, notify, refer, prack), the function performs method ID testing (integer comparison) instead of ignore
case string comparison.
kamailio.org
|
modparam("auth_db", "load_credentials", "$avp(email)=email_address")
_______________________________________________Hello
you can use load_credentials. After Auth is done , defined columns load to avp. and you can use it.
Yasin CANER
From: sr-users <sr-users-bounces@lists.kamailio.org> on behalf of Mojtaba <mespio@gmail.com>
Sent: Monday, January 21, 2019 10:06 AM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] Additional Param Check in ConsumeCredential AuthHello Prabhat,
Would you look at this function pv_www_authenticate in auth module? It seems it would be useful for youYou could use the email as authentication parameter too,With Regards.Mojtaba
On Mon, Jan 21, 2019 at 10:08 AM Prabhat Kumar <prabhat.kumar@myoperator.co> wrote:
Hi,_______________________________________________
I want to check additional param in Auth module. For. ex., other than username and secret , i want to validate user by its email address. How can i do that?
Regards,
Prabhat Kumar
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
--Mojtaba Esfandiari.S
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users