[SR-Users] WWW-Authenticate header Query

Daniel-Constantin Mierla miconda at gmail.com
Wed Jul 1 10:17:51 CEST 2015


Hello,

On 30/06/15 13:27, Anil Kumar wrote:
> Hi,
>
> I am using Kamailio(4.2.5) as my SIP proxy also enabled authentication.
>
> Added two users xyz_0 and xyz_1 to the kamailio database.
>
> While Registration I am getting 401 Unauthorized as shown below
>
> SIP/2.0 401 Unauthorized
> Via: SIP/2.0/TCP 192.168.1.107:48601;branch=z9hG4bK858339335
> From: <sip:xyz_0 at 192.168.1.107
> <mailto:sip%3Axyz_0 at 192.168.1.107>>;tag=251958751
> To: <sip:xyz_0 at 192.168.1.107
> <mailto:sip%3Axyz at 192.168.1.107>>;tag=ca5a1db24813f1937965921e320b98e4.6232
> Call-ID: 1808202998 at 192.168.1.107 <mailto:1808202998 at 192.168.1.107>
> CSeq: 2 REGISTER
> WWW-Authenticate: Digest realm="192.168.1.107",
> nonce="VZJ3hlWSdlr0HS/jGQljEKmY20ZrO0Qz"
> Server: kamailio (4.2.5 (x86_64/linux))
> Content-Length: 0
>
> The WWW-Authenticate header is not complete here, May I know the
> reason for this ?
>
> I am expecting algorithm, domain and other stuff in the
> WWW-Authenticate header.
>
> I am not able to proceed further , Please do needful.
>
the domain is what was configured for the phone (because the sip address
is user at domain) and in this case seems to be 192.168.1.107.

When a server authenticates it specifies the realm, which can be any
kind of string, but is common to be the domain of the user to avoid
conflicts with other services.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150701/a238849b/attachment.html>


More information about the sr-users mailing list