It&#39;s not the first request because it&#39;s sending a challenge response using a nonce, which it must have received in a previous challenge (401)... It can&#39;t just make that up.<div><br><br>On Tuesday, April 8, 2014, Snabel Kabiya &lt;<a href="mailto:snabel@lexifone.com">snabel@lexifone.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">please see inline:<br><div><br><div class="gmail_extra"><br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<div><div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">_________________________________________________________________________<br>

</blockquote></div></div></div></div><br>---------- Forwarded message ----------<br>From: Michael Jerris &lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;mike@jerris.com&#39;);" target="_blank">mike@jerris.com</a>&gt;<br>
To: FreeSWITCH Users Help &lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;freeswitch-users@lists.freeswitch.org&#39;);" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;<br>
Cc: <br>Date: Tue, 8 Apr 2014 05:52:55 -0400<br>Subject: Re: [Freeswitch-users] [ERR] sofia_reg.c:2110 &quot;some gateway&quot; Registration Failed with status Unauthorized [401]. failure #37 (Snabel Kaabiya)<br><div dir="auto">

<div>That isn&#39;t the first register request.</div></div></blockquote><div><br></div><div><span style="background-color:rgb(255,255,0)"><b>[SNABEL</b></span>] But in the logs i see Registering DIDLogic then the register request i sent. how did you know it&#39;s not the first request?<br>

<br></div><div>Thanks,<br> <br><span style="background-color:rgb(255,255,0)">2014-04-06 09:32:05.472850 [NOTICE] <span style="background-image:none;background-repeat:repeat">sofia</span>_reg.c:423 <font size="4"><b>Registering <span style="background-image:none;background-repeat:repeat">DIDLogic</span></b></font></span><br>



send 894 bytes to <span style="background:none repeat scroll 0% 0% yellow">udp</span>/[46.165.252.40]:5060 at 06:32:05.492557:<br>   ------------------------------<div>------------------------------------------<br>
   REGISTER sip:<a href="http://sip.de.didlogic.net" target="_blank">sip.<span style="background:none repeat scroll 0% 0% yellow">de</span>.<span style="background:none repeat scroll 0% 0% yellow">didlogic</span>.net</a>;transport=<span style="background:none repeat scroll 0% 0% yellow">udp</span> SIP/2.0<br>



   Via: SIP/2.0/<span style="background:none repeat scroll 0% 0% yellow">UDP</span> <a href="http://144.76.98.11:5080" target="_blank">144.76.98.11:5080</a>;<span style="background:none repeat scroll 0% 0% yellow">rport</span>;branch=z9hG4bKUZ0p2Fjget1KN<br>



   Max-Forwards: 70<br>   From: &lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;sip:95299@sip.de.didlogic.net&#39;);" target="_blank">sip:95299@sip.<span style="background:none repeat scroll 0% 0% yellow">de</span>.<span style="background:none repeat scroll 0% 0% yellow">didlogic</span>.net</a>&gt;;tag=XK0KSD17jemDN<br>




   To: &lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;sip:95299@sip.de.didlogic.net&#39;);" target="_blank">sip:95299@sip.<span style="background:none repeat scroll 0% 0% yellow">de</span>.<span style="background:none repeat scroll 0% 0% yellow">didlogic</span>.net</a>&gt;<br>



   Call-ID: de332712-ba83-11e3-b33f-0dc96adc5bb0<br>   <span style="background:none repeat scroll 0% 0% yellow">CSeq</span>: 57892398 REGISTER<br>   Contact: &lt;sip:<span style="background:none repeat scroll 0% 0% yellow">gw</span>+<span style="background:none repeat scroll 0% 0% yellow">DIDLogic</span>@144.76.98.11:5080;transport=<span style="background:none repeat scroll 0% 0% yellow">udp</span>;<span style="background:none repeat scroll 0% 0% yellow">gw</span>=<span style="background:none repeat scroll 0% 0% yellow">DIDLogic</span>&gt;<br>




   Expires: 3600<br>   User-Agent: <span style="background:none repeat scroll 0% 0% yellow">FreeSWITCH</span>-mod_<span style="background:none repeat scroll 0% 0% yellow">sofia</span>/1.2.23+git~20140317T213443Z~769a03a629~64bit<br>



   Allow: INVITE, <span style="background:none repeat scroll 0% 0% yellow">ACK</span>, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY<br>  <span style="background-color:rgb(255,255,0)"> Supported: path, replaces</span><br>




   Authorization: Digest <span style="background:none repeat scroll 0% 0% yellow">username</span>=&quot;<span style="background:none repeat scroll 0% 0% yellow">username</span>&quot;, realm=&quot;<a href="http://sip.de.didlogic.net" target="_blank">sip.<span style="background:none repeat scroll 0% 0% yellow">de</span>.<span style="background:none repeat scroll 0% 0% yellow">didlogic</span>.net</a>&quot;, nonce=&quot;U0DtvVNA7JFDwqn/iKN2y0i7jjJF/<span style="background:none repeat scroll 0% 0% yellow">xDpK</span>+45ZYA=&quot;, <span style="background:none repeat scroll 0% 0% yellow">cnonce</span>=&quot;tZUwATUmEjKDKHBU0sVf8A&quot;, algorithm=MD5, <span style="background:none repeat scroll 0% 0% yellow">uri</span>=&quot;sip:<a href="http://sip.de.didlogic.net" target="_blank">sip.<span style="background:none repeat scroll 0% 0% yellow">de</span>.<span style="background:none repeat scroll 0% 0% yellow">didlogic</span>.net</a>;transport=<span style="background:none repeat scroll 0% 0% yellow">udp</span>&quot;, response=&quot;8aaadef8769d2234def69a699c53f95c&quot;, <span style="background:none repeat scroll 0% 0% yellow">qop</span>=<span style="background:none repeat scroll 0% 0% yellow">auth</span>, <span style="background:none repeat scroll 0% 0% yellow">nc</span>=0000018e<br>




   Content-Length: 0</div><br>  <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div><br>On Apr 8, 2014, at 3:11 AM, Snabel Kabiya &lt;<a>snabel@lexifone.com</a>&gt; wrote:<br>


<br></div><blockquote type="cite"><div><div dir="ltr">Hi,<div><br>Thank you, but since it will be really difficult to convince our provider to change their response, I&#39;m trying to resolve the issue from our side.    <br>


</div><div><br></div><div>I&#39;ve noticed that in the problematic servers this header:</div>
<div><div><br></div>
<div>Authorization: Digest <span style="background:none repeat scroll 0% 0% yellow">username</span>=&quot;<span style="background:none repeat scroll 0% 0% yellow">username</span>&quot;, realm=&quot;<a href="http://sip.de.didlogic.net/" target="_blank">sip.<span style="background:none repeat scroll 0% 0% yellow">de</span>.<span style="background:none repeat scroll 0% 0% yellow">didlogic</span>.net</a>&quot;, nonce=&quot;<span style="background-color:rgb(255,255,0)">U0DtvVNA7JFDwqn/</span><span style="background-color:rgb(255,255,0)">iKN2y0i7jjJF/<span style="background:none repeat scroll 0% 0% yellow">xDpK</span>+45ZYA=</span>&quot;, <span style="background:none repeat scroll 0% 0% yellow">cnonce</span>=&quot;tZUwATUmEjKDKHBU0sVf8A&quot;, algorithm=MD5, <span style="background:none repeat scroll 0% 0% yellow">uri</span>=&quot;sip:<a href="http://sip.de.didlogic.net/" target="_blank">sip.<span style="background:none repeat scroll 0% 0% yellow">de</span>.<span style="background:none repeat scroll 0% 0% yellow">didlogic</span>.net</a>;transport=<span style="background:none repeat scroll 0% 0% yellow">udp</span>&quot;, response=&quot;8aaadef8769d2234def69a699c53f95c&quot;, <span style="background:none repeat scroll 0% 0% yellow">qop</span>=<span style="background:none repeat scroll 0% 0% yellow">auth</span>, <span style="background:none repeat scroll 0% 0% yellow">nc</span>=0000018e </div>




</div><div><br></div><div>is sent in the first REGISTER request, could this cause the issue? any ideas?<br><br></div><div>why would freeswitch sometimes send this header in the first REGISTER request? is this related to the new version 1.2.23? is it configurable in freeswitch, when to add this header and when not?   </div>



<div><br></div><div>Thanks,</div>
<div><span style="background:none repeat scroll 0% 0% yellow">Snabel</span></div><br><div><br>/**************************************************************************************************************<br>



<div>                 Working server<br></div>***************************************************************************************************************/<br><div>2014-04-06 18:00:20.896614 [NOTICE] <span style="background:none repeat scroll 0% 0% yellow">sofia</span>_reg.c:418 Registering <span style="background:none repeat scroll 0% 0% yellow">DIDLogic</span><br>




send 618 bytes to <span style="background:none repeat scroll 0% 0% yellow">udp</span>/[46.165.252.40]:5060 at 15:00:20.898875:<div><br>   ------------------------------------------------------------------------<br>

   REGISTER sip:<a href="http://sip.de.didlogic.net" target="_blank">sip.<span style="background:none repeat scroll 0% 0% yellow">de</span>.<span style="background:none repeat scroll 0% 0% yellow">didlogic</span>.net</a>;transport=<span style="background:none repeat scroll 0% 0% yellow">udp</span> SIP/2.0<br>



</div>
   Via: SIP/2.0/<span style="background:none repeat scroll 0% 0% yellow">UDP</span> <a href="http://5.9.23.171:5080" target="_blank">5.9.23.171:5080</a>;<span style="background:none repeat scroll 0% 0% yellow">rport</span>;branch=z9hG4bKXrH2QjNrt081K<br>



   Max-Forwards: 70<br>   From: &lt;<a>sip:95299@sip.<span style="background:none repeat scroll 0% 0% yellow">de</span>.<span style="background:none repeat scroll 0% 0% yellow">didlogic</span>.net</a>&gt;;tag=4eaeaXtSSUc3a<br>



   To: &lt;<a>sip:95299@sip.<span style="background:none repeat scroll 0% 0% yellow">de</span>.<span style="background:none repeat scroll 0% 0% yellow">didlogic</span>.net</a>&gt;<br>



   Call-ID: 2c4ba5f8-bd9c-11e3-8545-0d578f78ffdf<br>   <span style="background:none repeat scroll 0% 0% yellow">CSeq</span>: 58062146 REGISTER<br>   Contact: &lt;sip:<span style="background:none repeat scroll 0% 0% yellow">gw</span>+<span style="background:none repeat scroll 0% 0% yellow">DIDLogic</span>@5.9.23.171:5080;transport=<span style="background:none repeat scroll 0% 0% yellow">udp</span>;<span style="background:none repeat scroll 0% 0% yellow">gw</span>=<span style="background:none repeat scroll 0% 0% yellow">DIDLogic</span>&gt;<br>



   Expires: 3</div></div></div></div></blockquote></div>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;FreeSWITCH-users@lists.freeswitch.org&#39;);" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div></div></div>
</blockquote></div>