<div dir="ltr"><div><div>Hi,<br><br></div><div><br><div class="gmail_extra">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">
<span style="background-color:rgb(255,255,0)">[SNABEL] yes it's the same account.</span><br></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><span style="background-color:rgb(255,255,0)">[SNABEL] i did that, you can see inline both requests.<br>
</span></div><span style="background-color:rgb(255,255,0)">the only difference i saw, is this header: <br>Supported: precondition, path, replaces<br>highlighted in the requests: </span><br></div><div><div><div><br>/**************************************************************************************************************<br>
</div><div> Working server<br></div><div>***************************************************************************************************************/<br>2014-04-06 18:00:20.896614 [NOTICE] sofia_reg.c:418 Registering DIDLogic<br>
send 618 bytes to udp/[46.165.252.40]:5060 at 15:00:20.898875:<br> ------------------------------------------------------------------------<br> REGISTER sip:<a href="http://sip.de.didlogic.net">sip.de.didlogic.net</a>;transport=udp SIP/2.0<br>
Via: SIP/2.0/UDP 5.9.23.171:5080;rport;branch=z9hG4bKXrH2QjNrt081K<br> Max-Forwards: 70<br> From: <<a href="mailto:sip%3A95299@sip.de.didlogic.net">sip:95299@sip.de.didlogic.net</a>>;tag=4eaeaXtSSUc3a<br> To: <<a href="mailto:sip%3A95299@sip.de.didlogic.net">sip:95299@sip.de.didlogic.net</a>><br>
Call-ID: 2c4ba5f8-bd9c-11e3-8545-0d578f78ffdf<br> CSeq: 58062146 REGISTER<br> Contact: <sip:gw+DIDLogic@5.9.23.171:5080;transport=udp;gw=DIDLogic><br> Expires: 3600<br> User-Agent: FreeSWITCH-mod_sofia/1.2.12+git~20130806T202138Z~22ab34c507<br>
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY<br><span style="background-color:rgb(255,255,0)"> Supported: precondition, path, replaces</span><br> Content-Length: 0<br> <br>
------------------------------------------------------------------------<br>recv 444 bytes from udp/[46.165.252.40]:5060 at 15:00:20.912841:<br> ------------------------------------------------------------------------<br>
SIP/2.0 401 Unauthorized<br> Via: SIP/2.0/UDP 5.9.23.171:5080;rport=5080;branch=z9hG4bKXrH2QjNrt081K<br> From: <<a href="mailto:sip%3A95299@sip.de.didlogic.net">sip:95299@sip.de.didlogic.net</a>>;tag=4eaeaXtSSUc3a<br>
To: <<a href="mailto:sip%3A95299@sip.de.didlogic.net">sip:95299@sip.de.didlogic.net</a>>;tag=b27e1a1d33761e85846fc98f5f3a7e58.c173<br> Call-ID: 2c4ba5f8-bd9c-11e3-8545-0d578f78ffdf<br> CSeq: 58062146 REGISTER<br>
WWW-Authenticate: Digest realm="<a href="http://sip.de.didlogic.net">sip.de.didlogic.net</a>", nonce="U0FtMFNBbARsF99U0eRscR/9s7cQ6Y2ULDJAKIA=", qop="auth"<br> Content-Length: 0<br> <br>
------------------------------------------------------------------------<br>send 898 bytes to udp/[46.165.252.40]:5060 at 15:00:20.913382:<br> ------------------------------------------------------------------------<br>
REGISTER sip:<a href="http://sip.de.didlogic.net">sip.de.didlogic.net</a>;transport=udp SIP/2.0<br> Via: SIP/2.0/UDP 5.9.23.171:5080;rport;branch=z9hG4bKy1aUSD6UQ9ymF<br> Max-Forwards: 70<br> From: <<a href="mailto:sip%3A95299@sip.de.didlogic.net">sip:95299@sip.de.didlogic.net</a>>;tag=4eaeaXtSSUc3a<br>
To: <<a href="mailto:sip%3A95299@sip.de.didlogic.net">sip:95299@sip.de.didlogic.net</a>><br> Call-ID: 2c4ba5f8-bd9c-11e3-8545-0d578f78ffdf<br> CSeq: 58062147 REGISTER<br> Contact: <sip:gw+DIDLogic@5.9.23.171:5080;transport=udp;gw=DIDLogic><br>
Expires: 3600<br> User-Agent: FreeSWITCH-mod_sofia/1.2.12+git~20130806T202138Z~22ab34c507<br> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY<br> Supported: precondition, path, replaces<br>
Authorization: Digest username="username", realm="<a href="http://sip.de.didlogic.net">sip.de.didlogic.net</a>", nonce="U0FtMFNBbARsF99U0eRscR/9s7cQ6Y2ULDJAKIA=", cnonce="A8sptzg/EjKkSwAejPT25g", algorithm=MD5, uri="sip:<a href="http://sip.de.didlogic.net">sip.de.didlogic.net</a>;transport=udp", response="42c896b44b2ed46127099aa90adf5c01", qop=auth, nc=00000001<br>
Content-Length: 0<br> <br> ------------------------------------------------------------------------<br>recv 780 bytes from udp/[46.165.252.40]:5060 at 15:00:20.927553:<br> ------------------------------------------------------------------------<br>
SIP/2.0 200 OK<br> Via: SIP/2.0/UDP 5.9.23.171:5080;rport=5080;branch=z9hG4bKy1aUSD6UQ9ymF<br> From: <<a href="mailto:sip%3A95299@sip.de.didlogic.net">sip:95299@sip.de.didlogic.net</a>>;tag=4eaeaXtSSUc3a<br> To: <<a href="mailto:sip%3A95299@sip.de.didlogic.net">sip:95299@sip.de.didlogic.net</a>>;tag=b27e1a1d33761e85846fc98f5f3a7e58.dbc6<br>
Call-ID: 2c4ba5f8-bd9c-11e3-8545-0d578f78ffdf<br> CSeq: 58062147 REGISTER<br> Contact: <sip:gw+DIDLogic@5.9.23.171:5080;transport=udp;gw=DIDLogic>;expires=3600, <sip:gw+DIDLogic@144.76.109.73:5080;transport=udp;gw=DIDLogic>;expires=3150, <sip:gw+DIDLogic@144.76.98.11:5080;transport=udp;gw=DIDLogic>;expires=3010, <sip:gw+DIDLogic@5.9.201.120:5080;transport=udp;gw=DIDLogic>;expires=2869, <sip:gw+DIDLogic@144.76.98.12:5080;transport=udp;gw=DIDLogic>;expires=1281, <sip:gw+DIDLogic@5.9.201.121:5080;transport=udp;gw=DIDLogic>;expires=2545<br>
Content-Length: 0<br><br><br>/**************************************************************************************************************<br><div> problematic server<br></div>***************************************************************************************************************/<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">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">sip:95299@sip.de.didlogic.net</a>>;tag=XK0KSD17jemDN<br>
To: <<a href="mailto:sip%3A95299@sip.de.didlogic.net">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> <span style="background-color:rgb(255,255,0)"> Supported: path, replaces</span><br>
Authorization: Digest username="username", realm="<a href="http://sip.de.didlogic.net">sip.de.didlogic.net</a>", nonce="U0DtvVNA7JFDwqn/iKN2y0i7jjJF/xDpK+45ZYA=", cnonce="tZUwATUmEjKDKHBU0sVf8A", algorithm=MD5, uri="sip:<a href="http://sip.de.didlogic.net">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">sip:95299@sip.de.didlogic.net</a>>;tag=XK0KSD17jemDN<br>
To: <<a href="mailto:sip%3A95299@sip.de.didlogic.net">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">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">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">sip:95299@sip.de.didlogic.net</a>>;tag=XK0KSD17jemDN<br>
To: <<a href="mailto:sip%3A95299@sip.de.didlogic.net">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> <span style="background-color:rgb(255,255,0)">Supported: path, replaces</span><br>
Authorization: Digest username="username", realm="<a href="http://sip.de.didlogic.net">sip.de.didlogic.net</a>", nonce="U0D2EVNA9OVIqS6bUrch5649kHnuK6PXK/Fii4A=", cnonce="tZUwATUmEjKDKHBU0sVf8A", algorithm=MD5, uri="sip:<a href="http://sip.de.didlogic.net">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">sip:95299@sip.de.didlogic.net</a>>;tag=XK0KSD17jemDN<br>
To: <<a href="mailto:sip%3A95299@sip.de.didlogic.net">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">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><br><br><br><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Apr 6, 2014 at 10:27 PM, <span dir="ltr"><<a href="mailto:freeswitch-users-request@lists.freeswitch.org" target="_blank">freeswitch-users-request@lists.freeswitch.org</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">Send FreeSWITCH-users mailing list submissions to<br>
<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:freeswitch-users-request@lists.freeswitch.org">freeswitch-users-request@lists.freeswitch.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:freeswitch-users-owner@lists.freeswitch.org">freeswitch-users-owner@lists.freeswitch.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of FreeSWITCH-users digest..."<br>
<br>Today's Topics:<br>
<br>
1. Re: [ERR] sofia_reg.c:2110 "some gateway" Registration Failed<br>
with status Unauthorized [401]. failure #37 (Snabel Kaabiya)<br>
(Snabel Kabiya)<br>
2. Re: [ERR] sofia_reg.c:2110 "some gateway" Registration Failed<br>
with status Unauthorized [401]. failure #37 (Snabel Kaabiya)<br>
(Steven Ayre)<br>
<br><br>---------- Forwarded message ----------<br>From: Snabel Kabiya <<a href="mailto:snabel@lexifone.com">snabel@lexifone.com</a>><br>To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
Cc: <br>Date: Sun, 6 Apr 2014 17:29:43 +0300<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">
<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 <<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>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></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><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><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"><<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><br></div></div></div></div>
<br><br>---------- Forwarded message ----------<br>From: Steven Ayre <<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>><br>To: FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>><br>
Cc: <br>Date: Sun, 6 Apr 2014 15:26:28 -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">
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);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>
<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>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><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><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><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" target="_blank">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" 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>
<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></div></div></div></div>