<div dir="ltr"><div>I have used load_credentials for loading email, but not able to consume it. </div><div><pre style="color:rgb(0,0,0)">modparam("auth_db", "load_credentials", "$avp(email)=email_address")</pre></div><div>Also not able to access avp as it prints null </div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Regards,</div><div><br></div></div><div dir="ltr"><div style="font-family:sans-serif;font-size:small"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Prabhat</div><div dir="ltr"><br></div></div></div></div></div></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 21, 2019 at 12:40 PM YASIN CANER <<a href="mailto:caner_yaso@hotmail.com">caner_yaso@hotmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Hello</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
you can use load_credentials. After Auth is done , defined columns load to avp. and you can use it.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<a href="http://kamailio.org/docs/modules/5.2.x/modules/auth_db.html#auth_db.p.load_credentials" id="gmail-m_-8449579163797562704LPlnk869286" target="_blank">http://kamailio.org/docs/modules/5.2.x/modules/auth_db.html#auth_db.p.load_credentials</a><br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Yasin CANER</div>
<div>
<div id="gmail-m_-8449579163797562704appendonsend"></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<hr style="display:inline-block;width:98%">
<div id="gmail-m_-8449579163797562704divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> sr-users <<a href="mailto:sr-users-bounces@lists.kamailio.org" target="_blank">sr-users-bounces@lists.kamailio.org</a>> on behalf of Mojtaba <<a href="mailto:mespio@gmail.com" target="_blank">mespio@gmail.com</a>><br>
<b>Sent:</b> Monday, January 21, 2019 10:06 AM<br>
<b>To:</b> Kamailio (SER) - Users Mailing List<br>
<b>Subject:</b> Re: [SR-Users] Additional Param Check in ConsumeCredential Auth</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>Hello Prabhat, <br>
</div>
<div>Would you look at this function pv_www_authenticate in auth module? It seems it would be useful for you</div>
<div>You could use the email as authentication parameter too,</div>
<div>With Regards.Mojtaba<br>
</div>
<div><br>
</div>
</div>
<br>
<div class="gmail-m_-8449579163797562704x_gmail_quote">
<div dir="ltr" class="gmail-m_-8449579163797562704x_gmail_attr">On Mon, Jan 21, 2019 at 10:08 AM Prabhat Kumar <<a href="mailto:prabhat.kumar@myoperator.co" target="_blank">prabhat.kumar@myoperator.co</a>> wrote:<br>
</div>
<blockquote class="gmail-m_-8449579163797562704x_gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">Hi,
<div><br>
</div>
<div>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?</div>
<div><br clear="all">
<div>
<div dir="ltr" class="gmail-m_-8449579163797562704x_gmail-m_-6169290856386082941gmail_signature">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div>Regards,</div>
<div><br>
</div>
</div>
<div dir="ltr">
<div style="font-family:sans-serif;font-size:small">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div>Prabhat Kumar</div>
<div dir="ltr"><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote>
</div>
<br clear="all">
<br>
-- <br>
<div dir="ltr" class="gmail-m_-8449579163797562704x_gmail_signature">--Mojtaba Esfandiari.S</div>
</div>
</div>
</div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>