[SR-Users] Additional Param Check in ConsumeCredential Auth

Prabhat Kumar prabhat.kumar at myoperator.co
Tue Jan 22 07:38:34 CET 2019


Is there any function for username authentication? as we have for password
i.e. pv_www_authenticate(realm, passwd, flags)
 Also how can i modify username before authentication?

Regards,

Prabhat



On Mon, Jan 21, 2019 at 8:11 PM Daniel Tryba <d.tryba at pocos.nl> wrote:

> On Mon, Jan 21, 2019 at 06:55:32PM +0530, Prabhat Kumar wrote:
> > How can i modify username before consuming credentials set in *$au*
> > variable. I tried $au=$_s("xyz:"+$au); but it says "*read only pvar in
> > assignment left side*"
> > ERROR: bad config file (1 errors)
>
> $au is readonly. My workaround is to set $avp(au) and use that instead
> of $au
>
> >  I have also tried "*rewriteuser("xyz:$au");*" but its not working.
>
> rewriteuser is the same a $rU
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190122/f31d6bbe/attachment.html>


More information about the sr-users mailing list