[Freeswitch-users] [ERR] sofia_reg.c:2110 "some gateway" Registration Failed with status Unauthorized [401]. failure #37 (Snabel Kaabiya)
Steven Ayre
steveayre at gmail.com
Tue Apr 8 16:07:27 MSD 2014
It's not the first request because it's sending a challenge response using
a nonce, which it must have received in a previous challenge (401)... It
can't just make that up.
On Tuesday, April 8, 2014, Snabel Kabiya <snabel at lexifone.com> wrote:
> please see inline:
>
>
>
> _________________________________________________________________________
>>>
>>
>> ---------- Forwarded message ----------
>> From: Michael Jerris <mike at jerris.com<javascript:_e(%7B%7D,'cvml','mike at jerris.com');>
>> >
>> To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org<javascript:_e(%7B%7D,'cvml','freeswitch-users at lists.freeswitch.org');>
>> >
>> Cc:
>> Date: Tue, 8 Apr 2014 05:52:55 -0400
>> Subject: Re: [Freeswitch-users] [ERR] sofia_reg.c:2110 "some gateway"
>> Registration Failed with status Unauthorized [401]. failure #37 (Snabel
>> Kaabiya)
>> That isn't the first register request.
>>
>
> *[SNABEL*] But in the logs i see Registering DIDLogic then the register
> request i sent. how did you know it's not the first request?
>
> Thanks,
>
> 2014-04-06 09:32:05.472850 [NOTICE] sofia_reg.c:423 *Registering DIDLogic*
> send 894 bytes to udp/[46.165.252.40]:5060 at 06:32:05.492557:
> ------------------------------
> ------------------------------------------
> REGISTER sip:sip.de.didlogic.net;transport=udp SIP/2.0
> Via: SIP/2.0/UDP 144.76.98.11:5080;rport;branch=z9hG4bKUZ0p2Fjget1KN
> Max-Forwards: 70
> From: <sip:95299 at sip.de.didlogic.net<javascript:_e(%7B%7D,'cvml','sip:95299 at sip.de.didlogic.net');>
> >;tag=XK0KSD17jemDN
> To: <sip:95299 at sip.de.didlogic.net<javascript:_e(%7B%7D,'cvml','sip:95299 at sip.de.didlogic.net');>
> >
> Call-ID: de332712-ba83-11e3-b33f-0dc96adc5bb0
> CSeq: 57892398 REGISTER
> Contact: <sip:gw+DIDLogic at 144.76.98.11:5080;transport=udp;gw=DIDLogic>
> Expires: 3600
> User-Agent: FreeSWITCH-mod_sofia
> /1.2.23+git~20140317T213443Z~769a03a629~64bit
> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE,
> REGISTER, REFER, NOTIFY
> Supported: path, replaces
> Authorization: Digest username="username", realm="sip.de.didlogic.net",
> nonce="U0DtvVNA7JFDwqn/iKN2y0i7jjJF/xDpK+45ZYA=", cnonce="tZUwATUmEjKDKHBU0sVf8A",
> algorithm=MD5, uri="sip:sip.de.didlogic.net;transport=udp",
> response="8aaadef8769d2234def69a699c53f95c", qop=auth, nc=0000018e
> Content-Length: 0
>
>
>
>>
>> On Apr 8, 2014, at 3:11 AM, Snabel Kabiya <snabel at lexifone.com> wrote:
>>
>> Hi,
>>
>> Thank you, but since it will be really difficult to convince our provider
>> to change their response, I'm trying to resolve the issue from our side.
>>
>> I've noticed that in the problematic servers this header:
>>
>> Authorization: Digest username="username", realm="sip.de.didlogic.net",
>> nonce="U0DtvVNA7JFDwqn/iKN2y0i7jjJF/xDpK+45ZYA=", cnonce="tZUwATUmEjKDKHBU0sVf8A",
>> algorithm=MD5, uri="sip:sip.de.didlogic.net;transport=udp",
>> response="8aaadef8769d2234def69a699c53f95c", qop=auth, nc=0000018e
>>
>> is sent in the first REGISTER request, could this cause the issue? any
>> ideas?
>>
>> 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?
>>
>> Thanks,
>> Snabel
>>
>>
>>
>> /**************************************************************************************************************
>> Working server
>>
>> ***************************************************************************************************************/
>> 2014-04-06 18:00:20.896614 [NOTICE] sofia_reg.c:418 Registering DIDLogic
>> send 618 bytes to udp/[46.165.252.40]:5060 at 15:00:20.898875:
>>
>>
>> ------------------------------------------------------------------------
>> REGISTER sip:sip.de.didlogic.net;transport=udp SIP/2.0
>> Via: SIP/2.0/UDP 5.9.23.171:5080;rport;branch=z9hG4bKXrH2QjNrt081K
>> Max-Forwards: 70
>> From: <sip:95299 at sip.de.didlogic.net>;tag=4eaeaXtSSUc3a
>> To: <sip:95299 at sip.de.didlogic.net>
>> Call-ID: 2c4ba5f8-bd9c-11e3-8545-0d578f78ffdf
>> CSeq: 58062146 REGISTER
>> Contact: <sip:gw+DIDLogic at 5.9.23.171:5080;transport=udp;gw=DIDLogic>
>> Expires: 3
>>
>> _______________________________________________
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org<javascript:_e(%7B%7D,'cvml','FreeSWITCH-users at lists.freeswitch.org');>
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140408/20bd68ae/attachment.html
Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users
mailing list