<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Dear Daniel </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
appreciate your kind reply ..</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;">After updating the configuration from </span><span style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;">HSS side to support
 the SIP-Digest,</span><br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
i found the result as following <span style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;">: </span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;">
<ol style="margin-bottom: 0cm;color: rgb(33, 33, 33); -webkit-font-smoothing: antialiased; font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 15px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px;">
<li style="-webkit-font-smoothing: antialiased; margin-left: 0px;">when the register message passed form the s-cscf to the hss and in the diameter trace I found the</li></ol>
<div style="-webkit-font-smoothing: antialiased; margin: 0px; padding: 0px; border: 0px; font-size: 15px; font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; vertical-align: baseline; -webkit-text-stroke-width: 0px;">
<font size="2" style="-webkit-font-smoothing: antialiased;"><span style="-webkit-font-smoothing: antialiased; margin: 0px; padding: 0px; border: 0px; font-size: 11pt; vertical-align: baseline;"><font color="#212121"><span style="background-color: rgb(255, 255, 255);"> 
           “</span></font><span style="color: black; background-color: rgb(255, 255, 255); -webkit-font-smoothing: antialiased; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;">SIP</span><span style="color: rgb(33, 33, 33); background-color: rgb(255, 255, 255);">-AUTHENTICATION-SCHEME”
 in the MAR request as “</span><font color="#000000"><span style="background-color: rgb(255, 255, 255);">HSS-Selected</span></font><font color="#212121"><span style="background-color: rgb(255, 255, 255);">”</span></font></span></font></div>
<ol start="2" style="margin-bottom: 0cm;color: rgb(33, 33, 33); -webkit-font-smoothing: antialiased; font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 15px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px;">
<li style="-webkit-font-smoothing: antialiased; margin-left: 0px;">After that the HSS send MAA message “DIAMETER-SUCCESS" with <span style="color: rgb(0, 0, 0); font-size: 14.6667px; text-align: start; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); float: none; display: inline !important;">auth
 schema</span><span style="background-color: rgb(255, 255, 255);"> "</span><span style="color: rgb(0, 0, 0); font-size: 14.6667px; text-align: start; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); float: none; display: inline !important;">SIP-DIGEST
  </span><span style="background-color: rgb(255, 255, 255);">”</span></li><li style="-webkit-font-smoothing: antialiased; margin-left: 0px;">S-cscf reply to the user with "401 unauthorized - challenge UE "</li><li style="-webkit-font-smoothing: antialiased; margin-left: 0px;">on the second register S-cscf reply with the message “Forbidden – private  identity not found (Authorization : username) and the registration fails.   </li></ol>
</div>
<div>So i am Still unable to register successfully with the SIP-digest schema.</div>
<div>could anyone g<span style=" -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none">uide me </span>please to solve this issue or where to start ??</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;"><br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;">thanks in advance </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Daniel-Constantin Mierla <miconda@gmail.com><br>
<b>Sent:</b> Monday, June 11, 2018 6:37 AM<br>
<b>To:</b> eyas barhouk; Kamailio (SER) - Users Mailing List<br>
<b>Subject:</b> Re: [SR-Users] sip digest authentication</font>
<div> </div>
</div>
<meta content="text/html; charset=Windows-1252">
<div style="background-color:#FFFFFF">
<p>Then (not being an IMS user, though), the error message you received from HSS indicated that it doesn't support this auth scheme, so either you need to configure something on HSS to enable it or that HSS simply doesn't implement it.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="x_moz-cite-prefix">On 08.06.18 17:24, eyas barhouk wrote:<br>
</div>
<blockquote type="cite">
<meta content="text/html; charset=Windows-1252">
<div>thanks for your replay </div>
<div>yes i need to deploy it on IMS </div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div id="x_composer_signature">
<div dir="auto" style="font-size:85%; color:#575757">Sent from my Samsung Galaxy smartphone.</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>-------- Original message --------</div>
<div>From: Daniel-Constantin Mierla <a class="x_moz-txt-link-rfc2396E" href="mailto:miconda@gmail.com">
<miconda@gmail.com></a> </div>
<div>Date: 08/06/2018 12:31 pm (GMT+02:00) </div>
<div>To: "Kamailio (SER) - Users Mailing List" <a class="x_moz-txt-link-rfc2396E" href="mailto:sr-users@lists.kamailio.org">
<sr-users@lists.kamailio.org></a>, eyas barhouk <a class="x_moz-txt-link-rfc2396E" href="mailto:eyas37@hotmail.com">
<eyas37@hotmail.com></a> </div>
<div>Subject: Re: [SR-Users] sip digest authentication </div>
<div><br>
</div>
<div>
<p>Hello,</p>
<p>do you need it in an IMS deployment? If not, you should look at auth and auth_db modules instead.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="x_moz-cite-prefix">On 07.06.18 21:45, eyas barhouk wrote:<br>
</div>
<blockquote type="cite">
<meta name="x_Generator" content="Microsoft Word 15 (filtered
            medium)">
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
p.x_MsoListParagraph, li.x_MsoListParagraph, div.x_MsoListParagraph
        {margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        line-height:105%;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
p.x_MsoListParagraphCxSpFirst, li.x_MsoListParagraphCxSpFirst, div.x_MsoListParagraphCxSpFirst
        {margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        line-height:105%;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
p.x_MsoListParagraphCxSpMiddle, li.x_MsoListParagraphCxSpMiddle, div.x_MsoListParagraphCxSpMiddle
        {margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        line-height:105%;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
p.x_MsoListParagraphCxSpLast, li.x_MsoListParagraphCxSpLast, div.x_MsoListParagraphCxSpLast
        {margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        line-height:105%;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
@page WordSection1
        {margin:72.0pt 90.0pt 72.0pt 90.0pt}
ol
        {margin-bottom:0cm}
ul
        {margin-bottom:0cm}
-->
</style>
<div class="x_WordSection1">
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
Hello dears </p>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
 </p>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
I’m trying to setup Kamailio with sip digest authentication scheme by using  the following configuration from s-cscf side :
</p>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
 </p>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
modparam("ims_auth", "registration_default_algorithm", "HSS-Selected")</p>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
 </p>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
and the result was as following : </p>
<ol start="1" type="1" style="margin-bottom: 0cm;margin-bottom: 0cm;margin-top:0cm">
<li class="x_MsoNormalCxSpMiddle" style="margin-left:0cm; line-height:105%">when the register message passed form the s-cscf to the hss and in the diameter trace I found the
</li></ol>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
“SIP-AUTHENTICATION-SCHEME” in the MAR request as “Digest-MD5”</p>
<ol start="2" type="1" style="margin-bottom: 0cm;margin-bottom: 0cm;margin-top:0cm">
<li class="x_MsoNormalCxSpMiddle" style="margin-left:0cm; line-height:105%">After that the HSS send MAA message with “DIAMETER-ERROR-AUTH-SCHEME-NOT-SUPPORTED”
</li><li class="x_MsoNormalCxSpLast" style="margin-left:0cm; line-height:105%">S-cscf replay with the message “Forbidden – privet identity not found (Authorization : username)”
</li></ol>
<p class="x_MsoListParagraph" style="margin: 0cm 0cm 0.0001pt 36pt; line-height: 105%; font-size: 11pt; font-family: Calibri, sans-serif;margin: 0cm 0cm 0.0001pt 36pt; line-height: 105%; font-size: 11pt; font-family: Calibri, sans-serif;">
 </p>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
So based on that could any one tell where was my mistake or how can I setup Kamailio with SIP-DIGEST scheme
</p>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
 </p>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
Thanks </p>
<p class="x_MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
 </p>
</div>
<br>
<fieldset class="x_mimeAttachmentHeader"></fieldset> <br>
<pre>_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="x_moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="x_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>
<br>
<pre class="x_moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="x_moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="x_moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="x_moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio World Conference -- <a class="x_moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</div>
</blockquote>
<br>
<pre class="x_moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="x_moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="x_moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="x_moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio World Conference -- <a class="x_moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</div>
</body>
</html>