<div dir="ltr"><div>Hi,<br><br></div>please see my answers inline:<br><div><div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks,<br></div><div class="gmail_extra">Snabel<br></div><div class="gmail_extra">
<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">
<br><br>---------- Forwarded message ----------<br>From: Steven Ayre &lt;<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>&gt;<br>To: FreeSWITCH Users Help &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>&gt;<br>
Cc: <br>Date: Sun, 6 Apr 2014 09:59:43 -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="ltr">
According to <a href="https://wiki.freeswitch.org/wiki/Provider_Configuration:_DIDLogic" target="_blank">https://wiki.freeswitch.org/wiki/Provider_Configuration:_DIDLogic</a> nothing particularly special is required. What you have should work.<div>



<div><br></div><div>Does this gateway ever register successfully - does it register fine then start getting the 401 later, or does it never register at all. If the latter perhaps the username/password is incorrect? If it works at first then starts to fail then it might be an error at DIDLogic&#39;s end and I suggest you contact them to find out what is causing the 401.</div>
</div></div></blockquote><div><span style="background-color:rgb(255,255,0)">[SNABEL]  the gateway registers fine then start getting the 401 later, it works at first then starts to fail.<br></span></div><div><span style="background-color:rgb(255,255,0)">i&#39;m not sure it&#39;s  an error at DIDLogic&#39;s end. because we have another server with freeswitch verion:<br>
FreeSWITCH Version 1.2.12+git~20130806T202138Z~22ab34c507 (git 22ab34c 2013-08-06 20:21:38Z)<br></span></div><div><span style="background-color:rgb(255,255,0)">which works fine, we don&#39;t get this error there...</span><br>
</div><div><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="ltr"><div>


<div><br></div><div>Also any modifications to the gateway (eg changing password) take more than reloadxml to take effect. You need to run &#39;sofia profile &lt;profilename&gt; killgw &lt;gateway&gt;&#39;, wait for the gateway to be removed (gives a log message or check via &#39;sofia status gateway&#39;) then &#39;sofia profile &lt;name&gt; rescan&#39; to add the gateway with the new settings. Or restart FreeSWITCH.</div>
</div></div></blockquote><div><span style="background-color:rgb(255,255,0)">[SNABEL] i did restarted freeswitch.</span><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="ltr"><div>


<div><br></div><div>By the way sip_cid_type is a variable not a parameter. See <a href="http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files#Variables" target="_blank">http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files#Variables</a> - but unknown parameters are ignored so it should make no difference to registration; ping, ping-max and caller-id-in-from should also have no effect on registration.</div>
</div></div></blockquote><div><span style="background-color:rgb(255,255,0)">[SNABEL] i see, so i could just remove them... </span><br></div><div> </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="ltr"><div><div></div><div>-Steve</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 6 April 2014 03:37, Snabel Kabiya <span dir="ltr">&lt;<a href="mailto:snabel@lexifone.com" target="_blank">snabel@lexifone.com</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi All,<br><br></div>I&#39;m still getting this error:<br>

<br>[ERR] sofia_reg.c:2110 DIDLogic Registration Failed with status Unauthorized [401]. failure #72 <br>
<div><div><div class="gmail_extra"><br></div>
<div class="gmail_extra">I&#39;ve looked at SIP trace and freeswitch logs but i can&#39;t figure out what&#39;s causing the registration failure. <br></div><div class="gmail_extra"><br></div><div class="gmail_extra">here is more info on the issue, i would really appreciate your help guys.<br>




<br></div><div class="gmail_extra"><u><b>Server: </b></u><br>Linux Ubuntu-1204-precise-64-minimal 3.5.0-34-generic #55~precise1-Ubuntu SMP Fri Jun 7 16:25:50 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux<br><br></div><div class="gmail_extra">




<u><b>freeswitch version:</b></u><br></div><div class="gmail_extra">FreeSWITCH Version 1.2.23+git~20140317T213443Z~769a03a629~64bit (git 769a03a 2014-03-17 21:34:43Z 64bit)<br><br><u><b>Gateway configuration:</b></u><br>



</div>
<div class="gmail_extra">    &lt;gateway name=&quot;DIDLogic&quot;&gt;<br>        &lt;param name=&quot;username&quot; value=&quot;username&quot;/&gt;<br>        &lt;param name=&quot;realm&quot; value=&quot;<a href="http://sip.de.didlogic.net" target="_blank">sip.de.didlogic.net</a>&quot;/&gt;<br>




        &lt;param name=&quot;password&quot; value=&quot;password&quot;/&gt;<br>        &lt;param name=&quot;register&quot; value=&quot;true&quot;/&gt;<br>        &lt;param name=&quot;context&quot; value=&quot;public&quot;/&gt;<br>




        &lt;param name=&quot;caller-id-in-from&quot; value=&quot;true&quot;/&gt;<br>        &lt;param name=&quot;sip_cid_type&quot; value=&quot;none&quot;/&gt;<br>        &lt;param name=&quot;ping&quot; value=&quot;30&quot;/&gt;<br>




        &lt;param name=&quot;ping-max&quot; value=&quot;3&quot;/&gt;<br>    &lt;/gateway&gt;<br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><u><b><br>SIP trace:</b></u><br><br>2014-04-06 09:32:05.472850 [NOTICE] sofia_reg.c:423 Registering DIDLogic<br>




send 894 bytes to udp/[46.165.252.40]:5060 at 06:32:05.492557:<br>   ------------------------------------------------------------------------<br>   REGISTER sip:<a href="http://sip.de.didlogic.net" target="_blank">sip.de.didlogic.net</a>;transport=udp SIP/2.0<br>




   Via: SIP/2.0/UDP 144.76.98.11:5080;rport;branch=z9hG4bKUZ0p2Fjget1KN<br>   Max-Forwards: 70<br>   From: &lt;<a href="mailto:sip%3A95299@sip.de.didlogic.net" target="_blank">sip:95299@sip.de.didlogic.net</a>&gt;;tag=XK0KSD17jemDN<br>



   To: &lt;<a href="mailto:sip%3A95299@sip.de.didlogic.net" target="_blank">sip:95299@sip.de.didlogic.net</a>&gt;<br>
   Call-ID: de332712-ba83-11e3-b33f-0dc96adc5bb0<br>   CSeq: 57892398 REGISTER<br>   Contact: &lt;sip:gw+DIDLogic@144.76.98.11:5080;transport=udp;gw=DIDLogic&gt;<br>   Expires: 3600<br>   User-Agent: FreeSWITCH-mod_sofia/1.2.23+git~20140317T213443Z~769a03a629~64bit<br>




   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY<br>   Supported: path, replaces<br>   Authorization: Digest username=&quot;username&quot;, realm=&quot;<a href="http://sip.de.didlogic.net" target="_blank">sip.de.didlogic.net</a>&quot;, nonce=&quot;U0DtvVNA7JFDwqn/iKN2y0i7jjJF/xDpK+45ZYA=&quot;, cnonce=&quot;tZUwATUmEjKDKHBU0sVf8A&quot;, algorithm=MD5, uri=&quot;sip:<a href="http://sip.de.didlogic.net" target="_blank">sip.de.didlogic.net</a>;transport=udp&quot;, response=&quot;8aaadef8769d2234def69a699c53f95c&quot;, qop=auth, nc=0000018e<br>




   Content-Length: 0<br>   <br>   ------------------------------------------------------------------------<br>recv 446 bytes from udp/[46.165.252.40]:5060 at 06:32:05.520506:<br>   ------------------------------------------------------------------------<br>




   SIP/2.0 401 Unauthorized<br>   Via: SIP/2.0/UDP 144.76.98.11:5080;rport=5080;branch=z9hG4bKUZ0p2Fjget1KN<br>   From: &lt;<a href="mailto:sip%3A95299@sip.de.didlogic.net" target="_blank">sip:95299@sip.de.didlogic.net</a>&gt;;tag=XK0KSD17jemDN<br>




   To: &lt;<a href="mailto:sip%3A95299@sip.de.didlogic.net" target="_blank">sip:95299@sip.de.didlogic.net</a>&gt;;tag=b27e1a1d33761e85846fc98f5f3a7e58.437e<br>   Call-ID: de332712-ba83-11e3-b33f-0dc96adc5bb0<br>   CSeq: 57892398 REGISTER<br>




   WWW-Authenticate: Digest realm=&quot;<a href="http://sip.de.didlogic.net" target="_blank">sip.de.didlogic.net</a>&quot;, nonce=&quot;U0D2EVNA9OVIqS6bUrch5649kHnuK6PXK/Fii4A=&quot;, qop=&quot;auth&quot;<br>   Content-Length: 0<br>



   <br>
   ------------------------------------------------------------------------<br>send 894 bytes to udp/[46.165.252.40]:5060 at 06:32:05.520845:<br>   ------------------------------------------------------------------------<br>




   REGISTER sip:<a href="http://sip.de.didlogic.net" target="_blank">sip.de.didlogic.net</a>;transport=udp SIP/2.0<br>   Via: SIP/2.0/UDP 144.76.98.11:5080;rport;branch=z9hG4bKv8SF4a3KB3Q6g<br>   Max-Forwards: 70<br>   From: &lt;<a href="mailto:sip%3A95299@sip.de.didlogic.net" target="_blank">sip:95299@sip.de.didlogic.net</a>&gt;;tag=XK0KSD17jemDN<br>




   To: &lt;<a href="mailto:sip%3A95299@sip.de.didlogic.net" target="_blank">sip:95299@sip.de.didlogic.net</a>&gt;<br>   Call-ID: de332712-ba83-11e3-b33f-0dc96adc5bb0<br>   CSeq: 57892399 REGISTER<br>   Contact: &lt;sip:gw+DIDLogic@144.76.98.11:5080;transport=udp;gw=DIDLogic&gt;<br>




   Expires: 3600<br>   User-Agent: FreeSWITCH-mod_sofia/1.2.23+git~20140317T213443Z~769a03a629~64bit<br>   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY<br>   Supported: path, replaces<br>




   Authorization: Digest username=&quot;username&quot;, realm=&quot;<a href="http://sip.de.didlogic.net" target="_blank">sip.de.didlogic.net</a>&quot;, nonce=&quot;U0D2EVNA9OVIqS6bUrch5649kHnuK6PXK/Fii4A=&quot;, cnonce=&quot;tZUwATUmEjKDKHBU0sVf8A&quot;, algorithm=MD5, uri=&quot;sip:<a href="http://sip.de.didlogic.net" target="_blank">sip.de.didlogic.net</a>;transport=udp&quot;, response=&quot;3dc99375cf925ad9af145899dcf83b1a&quot;, qop=auth, nc=0000018f<br>




   Content-Length: 0<br>   <br>   ------------------------------------------------------------------------<br>recv 446 bytes from udp/[46.165.252.40]:5060 at 06:32:05.536657:<br>   ------------------------------------------------------------------------<br>




   SIP/2.0 401 Unauthorized<br>   Via: SIP/2.0/UDP 144.76.98.11:5080;rport=5080;branch=z9hG4bKv8SF4a3KB3Q6g<br>   From: &lt;<a href="mailto:sip%3A95299@sip.de.didlogic.net" target="_blank">sip:95299@sip.de.didlogic.net</a>&gt;;tag=XK0KSD17jemDN<br>




   To: &lt;<a href="mailto:sip%3A95299@sip.de.didlogic.net" target="_blank">sip:95299@sip.de.didlogic.net</a>&gt;;tag=b27e1a1d33761e85846fc98f5f3a7e58.b648<br>   Call-ID: de332712-ba83-11e3-b33f-0dc96adc5bb0<br>   CSeq: 57892399 REGISTER<br>




   WWW-Authenticate: Digest realm=&quot;<a href="http://sip.de.didlogic.net" target="_blank">sip.de.didlogic.net</a>&quot;, nonce=&quot;U0D2EVNA9OUTYGscaPkV4MvAB1IDDtpQK/FjjIA=&quot;, qop=&quot;auth&quot;<br>   Content-Length: 0<br>



   <br>
   ------------------------------------------------------------------------<br>2014-04-06 09:32:05.532842 [ERR] sofia_reg.c:2110 DIDLogic Registration Failed with status Unauthorized [401]. failure #72<br>2014-04-06 09:32:06.472844 [WARNING] sofia_reg.c:478 DIDLogic Failed Registration [904], setting retry to 2160 seconds.<br>




<br><br></div></div></div></div></blockquote></div></div></div></blockquote></div><br></div></div></div></div>