<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>try to set debug=3 in kamailio config files, restart, reproduce
      and see if you get any hints about why it fails via the syslog
      debug messages.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 09.10.19 22:48, Bao, Yin wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:06B5B4B4-DECA-483E-BE1D-DB8D0A090A52@mitre.org">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@DengXian";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1808234762;
        mso-list-type:hybrid;
        mso-list-template-ids:-861878074 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Symbol;}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Wingdings;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Symbol;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Wingdings;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Symbol;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Wingdings;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style>
      <div class="WordSection1">
        <p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">I have a
            Boghe (v2.0.153.836) working fine with Kamailio with MD5
            algorithm however fails to authenticate if I configure
            S-CSCF to use AKAv1-MD5. We have the same configuration on
            private user identity in FHoSS on both the succ MD5 run and
            failed AKAv1-MD5 run.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">I wonder if
            anyone has faced this issue before. Here are some details on
            message exchanges:<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
        <ul style="margin-top:0in" type="disc">
          <li class="MsoListParagraph"
            style="margin-left:0in;mso-list:l0 level1 lfo1"><span
              style="font-size:11.0pt">S-CSCF included the challenge in
              401 Unauthorized – Challenging the UE:<o:p></o:p></span></li>
        </ul>
        <p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
        <p class="MsoNormal" style="margin-left:.5in"><i><span
              style="font-size:9.0pt">WWW-Authenticate: Digest
              realm="example.example.org",
              nonce="rzGnTBGPw3hE+mDPHrZ1PAAAAAAApAAAmfftHqYUuUA=",
              algorithm=AKAv1-MD5,
              ck="629d6d9a6a6befa509b1a9bb17a9c2a3",
              ik="32fcd14a102279de2e38200a2257efcb",
              qop="auth,auth-int"\r\n<o:p></o:p></span></i></p>
        <p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
        <ul style="margin-top:0in" type="disc">
          <li class="MsoListParagraph"
            style="margin-left:0in;mso-list:l0 level1 lfo1"><span
              style="font-size:11.0pt">The same header was seen when 401
              Unauth travelled through I-CSCF and P-CSCF (<span
                style="color:red">shouldn’t P-CSCF strips out the ck and
                ik fields before sending to UE</span>?)<o:p></o:p></span></li>
        </ul>
        <p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
        <ul style="margin-top:0in" type="disc">
          <li class="MsoListParagraph"
            style="margin-left:0in;mso-list:l0 level1 lfo1"><span
              style="font-size:11.0pt">UE responded with another
              register with response:<o:p></o:p></span></li>
        </ul>
        <p class="MsoListParagraph"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
        <p class="MsoListParagraph"><i><span style="font-size:9.0pt">Authorization:
              Digest
username=<a class="moz-txt-link-rfc2396E" href="mailto:bob@example.example.org">"bob@example.example.org"</a>,realm="example.example.org",nonce="rzGnTBGPw3hE+mDPHrZ1PAAAAAAApAAAmfftHqYUuUA=",uri=<a class="moz-txt-link-rfc2396E" href="sip:example.example.org">"sip:example.example.org"</a>,response="6445f9df2b785eab3fa461849880b48d",algorithm=AKAv1-MD5,cnonce="34baf441e99a23e0fcb2bc001355c4bf",qop=auth-int,nc=00000001\r\n<o:p></o:p></span></i></p>
        <p class="MsoNormal"><i><span style="font-size:8.0pt"><o:p> </o:p></span></i></p>
        <ul style="margin-top:0in" type="disc">
          <li class="MsoListParagraph"
            style="margin-left:0in;mso-list:l0 level1 lfo1"><span
              style="font-size:10.0pt">S-CSCF failed the calculation and
              sent back 403 Authentication Failed<o:p></o:p></span></li>
        </ul>
        <p class="MsoNormal"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:10.0pt">I tried
            AKAv2-MD5 setting as default algorithm on S-CSCF and the
            result is the same as above. It seems that only MD5 works on
            my setup.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:10.0pt">What are the
            different configs in HSS (or other places) AKAv1-MD5 need? I
            checked the AMF/OP on both HSS and Boghe and they match.
            Boghe does not have SQN setting but I set HSS to start with
            0.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:10.0pt">Any pointers
            are appreciated!<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:10.0pt">Yin<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Oct 21-23, 2019, Berlin, Germany -- <a class="moz-txt-link-freetext" href="https://asipto.com/u/kat">https://asipto.com/u/kat</a></pre>
  </body>
</html>