<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    <div class="moz-cite-prefix">On 30/06/15 13:27, Anil Kumar wrote:<br>
    </div>
    <blockquote
cite="mid:CADjoLeOsNsP+Cu9HytF44En8Kw49wEc+r1YUCHEsHmrS+eLkGA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>Hi,<br>
                  <br>
                </div>
                I am using Kamailio(4.2.5) as my SIP proxy also enabled
                authentication.<br>
                <br>
              </div>
              <div>Added two users xyz_0 and xyz_1 to the kamailio
                database.<br>
              </div>
              <div><br>
              </div>
              While Registration I am getting 401 Unauthorized as shown
              below<br>
              <br>
              SIP/2.0 401 Unauthorized<br>
              Via: SIP/2.0/TCP
              192.168.1.107:48601;branch=z9hG4bK858339335<br>
              From: <<a moz-do-not-send="true"
                href="mailto:sip%3Axyz_0@192.168.1.107" target="_blank">sip:xyz_0@192.168.1.107</a>>;tag=251958751<br>
              To: <<a moz-do-not-send="true"
                href="mailto:sip%3Axyz@192.168.1.107" target="_blank">sip:xyz_0@192.168.1.107</a>>;tag=ca5a1db24813f1937965921e320b98e4.6232<br>
              Call-ID: <a moz-do-not-send="true"
                href="mailto:1808202998@192.168.1.107" target="_blank">1808202998@192.168.1.107</a><br>
              CSeq: 2 REGISTER<br>
              WWW-Authenticate: Digest realm="192.168.1.107",
              nonce="VZJ3hlWSdlr0HS/jGQljEKmY20ZrO0Qz"<br>
              Server: kamailio (4.2.5 (x86_64/linux))<br>
              Content-Length: 0<br>
              <br>
            </div>
            The WWW-Authenticate header is not complete here, May I know
            the reason for this ?<br>
            <br>
          </div>
          <div>I am expecting algorithm, domain and other stuff in the
            WWW-Authenticate header.<br>
          </div>
          <div><br>
          </div>
          I am not able to proceed further , Please do needful.<br>
          <br>
        </div>
      </div>
    </blockquote>
    the domain is what was configured for the phone (because the sip
    address is user@domain) and in this case seems to be 192.168.1.107.<br>
    <br>
    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.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
  </body>
</html>