[OpenSIPS-Users] How to tell if uac_auth() is successful
Bogdan-Andrei Iancu
bogdan at opensips.org
Wed Jul 27 09:51:08 CEST 2016
Hi Ben
The uac_auth() should return true if the authentication was successfully
performed. Are you sure you correctly perform the test on the return
code? Do you see any error log from the function ?
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 25.07.2016 23:00, Newlin, Ben wrote:
>
> I am using the UAC and UAC_AUTH modules to perform trunk
> authentication. The uac_auth() function will only use credentials when
> the realm matches one in the 401/407 challenge. Is there any way to
> tell whether there was a successful authentication match?
>
> The function doesn’t provide any return code (returns false even if
> match was found). I have tried checking for values in Authorization
> header ($ar, $auth.resp) but they are not populated.
>
> If I can’t tell whether appropriate credentials were found, then I
> must always send another INVITE which might not have any Authorization
> and will just be rejected again.
>
> Any help would be appreciated.
>
> Thanks,
>
> Ben Newlin
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160727/aed09ccf/attachment.htm>
More information about the Users
mailing list