<div dir="ltr"><blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex" class="gmail_quote"><span style="background-color:rgb(255,255,0)">i'm not sure it's an error at DIDLogic's end. because we have another server with freeswitch verion:<br>
</span><span style="background-color:rgb(255,255,0)">FreeSWITCH Version 1.2.12+git~20130806T202138Z~22ab34c507 (git 22ab34c 2013-08-06 20:21:38Z)<br></span><span style="background-color:rgb(255,255,0)">which works fine, we don't get this error there...</span></blockquote>
<div class="gmail_extra"><br>Are they using the same account? That could conceivable cause issues, you'd need to check with DIDLogic if they support that.</div><div class="gmail_extra"><br></div><div class="gmail_extra">
Since you have a working and non-working servers you could compare the requests to see what differs between them.</div><div class="gmail_extra"><br></div><div class="gmail_extra">-Steve</div><div class="gmail_extra"><br>
</div>
<div class="gmail_extra"><br><div class="gmail_quote">On 6 April 2014 10:29, Snabel Kabiya <span dir="ltr"><<a href="mailto:snabel@lexifone.com" target="_blank">snabel@lexifone.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<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"><div class="">
<br><br>---------- Forwarded message ----------<br>From: Steven Ayre <<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>><br>To: FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>><br>
Cc: <br></div><div class="">Date: Sun, 6 Apr 2014 09:59:43 -0400<br>Subject: Re: [Freeswitch-users] [ERR] sofia_reg.c:2110 "some gateway" 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's end and I suggest you contact them to find out what is causing the 401.</div>
</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'm not sure it's an error at DIDLogic'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't get this error there...</span><br>
</div><div class=""><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 'sofia profile <profilename> killgw <gateway>', wait for the gateway to be removed (gives a log message or check via 'sofia status gateway') then 'sofia profile <name> rescan' to add the gateway with the new settings. Or restart FreeSWITCH.</div>
</div></div></blockquote></div><div><span style="background-color:rgb(255,255,0)">[SNABEL] i did restarted freeswitch.</span><br></div><div class=""><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><div><span style="background-color:rgb(255,255,0)">[SNABEL] i see, so i could just remove them... </span><br></div><div><div class="h5"><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"><<a href="mailto:snabel@lexifone.com" target="_blank">snabel@lexifone.com</a>></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'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've looked at SIP trace and freeswitch logs but i can't figure out what'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"> <gateway name="DIDLogic"><br> <param name="username" value="username"/><br> <param name="realm" value="<a href="http://sip.de.didlogic.net" target="_blank">sip.de.didlogic.net</a>"/><br>
<param name="password" value="password"/><br> <param name="register" value="true"/><br> <param name="context" value="public"/><br>
<param name="caller-id-in-from" value="true"/><br> <param name="sip_cid_type" value="none"/><br> <param name="ping" value="30"/><br>
<param name="ping-max" value="3"/><br> </gateway><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: <<a href="mailto:sip%3A95299@sip.de.didlogic.net" target="_blank">sip:95299@sip.de.didlogic.net</a>>;tag=XK0KSD17jemDN<br>
To: <<a href="mailto:sip%3A95299@sip.de.didlogic.net" target="_blank">sip:95299@sip.de.didlogic.net</a>><br>
Call-ID: de332712-ba83-11e3-b33f-0dc96adc5bb0<br> CSeq: 57892398 REGISTER<br> Contact: <sip:gw+DIDLogic@144.76.98.11:5080;transport=udp;gw=DIDLogic><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="username", realm="<a href="http://sip.de.didlogic.net" target="_blank">sip.de.didlogic.net</a>", nonce="U0DtvVNA7JFDwqn/iKN2y0i7jjJF/xDpK+45ZYA=", cnonce="tZUwATUmEjKDKHBU0sVf8A", algorithm=MD5, uri="sip:<a href="http://sip.de.didlogic.net" target="_blank">sip.de.didlogic.net</a>;transport=udp", response="8aaadef8769d2234def69a699c53f95c", 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: <<a href="mailto:sip%3A95299@sip.de.didlogic.net" target="_blank">sip:95299@sip.de.didlogic.net</a>>;tag=XK0KSD17jemDN<br>
To: <<a href="mailto:sip%3A95299@sip.de.didlogic.net" target="_blank">sip:95299@sip.de.didlogic.net</a>>;tag=b27e1a1d33761e85846fc98f5f3a7e58.437e<br> Call-ID: de332712-ba83-11e3-b33f-0dc96adc5bb0<br> CSeq: 57892398 REGISTER<br>
WWW-Authenticate: Digest realm="<a href="http://sip.de.didlogic.net" target="_blank">sip.de.didlogic.net</a>", nonce="U0D2EVNA9OVIqS6bUrch5649kHnuK6PXK/Fii4A=", qop="auth"<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: <<a href="mailto:sip%3A95299@sip.de.didlogic.net" target="_blank">sip:95299@sip.de.didlogic.net</a>>;tag=XK0KSD17jemDN<br>
To: <<a href="mailto:sip%3A95299@sip.de.didlogic.net" target="_blank">sip:95299@sip.de.didlogic.net</a>><br> Call-ID: de332712-ba83-11e3-b33f-0dc96adc5bb0<br> CSeq: 57892399 REGISTER<br> Contact: <sip:gw+DIDLogic@144.76.98.11:5080;transport=udp;gw=DIDLogic><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="username", realm="<a href="http://sip.de.didlogic.net" target="_blank">sip.de.didlogic.net</a>", nonce="U0D2EVNA9OVIqS6bUrch5649kHnuK6PXK/Fii4A=", cnonce="tZUwATUmEjKDKHBU0sVf8A", algorithm=MD5, uri="sip:<a href="http://sip.de.didlogic.net" target="_blank">sip.de.didlogic.net</a>;transport=udp", response="3dc99375cf925ad9af145899dcf83b1a", 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: <<a href="mailto:sip%3A95299@sip.de.didlogic.net" target="_blank">sip:95299@sip.de.didlogic.net</a>>;tag=XK0KSD17jemDN<br>
To: <<a href="mailto:sip%3A95299@sip.de.didlogic.net" target="_blank">sip:95299@sip.de.didlogic.net</a>>;tag=b27e1a1d33761e85846fc98f5f3a7e58.b648<br> Call-ID: de332712-ba83-11e3-b33f-0dc96adc5bb0<br> CSeq: 57892399 REGISTER<br>
WWW-Authenticate: Digest realm="<a href="http://sip.de.didlogic.net" target="_blank">sip.de.didlogic.net</a>", nonce="U0D2EVNA9OUTYGscaPkV4MvAB1IDDtpQK/FjjIA=", qop="auth"<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></div></div><br></div></div></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">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>