[Freeswitch-users] 401

Michael Collins msc at freeswitch.org
Mon Dec 10 21:42:58 MSK 2012


FYI,

Darren Schreiber did a nice presentation on SIP 101 that covers this. Look
at June 20, 2012 here:
http://wiki.freeswitch.org/wiki/Weekly_Conference_Call

There is a PDF to go along with the audio recording. I highly recommend any
SIP n00bs check it out.

On Mon, Dec 10, 2012 at 9:49 AM, Steven Ayre <steveayre at gmail.com> wrote:

> Please provide more information. Is your authentication failing?
>
> 401 Unauthorized is 100% normal behaviour for a SIP call to authenticate.
>
> The call flow is:
> > REGISTER
> < 401 Unauthorized (with WWW-Authenticate header)
> > REGISTER (with Authorization header)
> < 200 OK
> Ditto for INVITE.
>
> The 401 is required to give the WWW-Authenticate challenge which is
> required to generate the Authorization header. Thus for a authenticated
> call the 401 'error' is normal and expected.
>
> If authentication is failing after the upgrade or you were not requiring
> authentication before the upgrade, perhaps during the upgrade your
> configuration files were modified or the location has moved?
>
> -Steve
>
>
>
> On 10 December 2012 15:39, Blake Priddy <bpriddy at bryantschools.org> wrote:
>
>> So I updated to the latest git head and now several phones NOT ALL,
>> including mine :( are giving me
>>
>> 2012-12-10 09:36:04.584347 [DEBUG] sofia_reg.c:1498 Send challenge for [
>> 1206 at pbx.bryantschools.org]
>> 2012-12-10 09:36:04.584347 [WARNING] sofia_reg.c:1502 SIP auth challenge
>> (REGISTER) on sofia profile 'internal' for [1206 at pbx.bryantschools.org]
>> from ip 10.10.24.20
>> send 679 bytes to udp/[10.10.24.20]:3072 at 15:36:04.585091:
>>
>>  ------------------------------------------------------------------------
>>    SIP/2.0 401 Unauthorized
>>    Via: SIP/2.0/UDP 10.10.24.20:3072
>> ;branch=z9hG4bK-n757mrbdlqdw;rport=3072
>>    From: "Blake Priddy" <sip:1206 at pbx.bryantschools.org>;tag=dbou3jy9kf
>>    To: "Blake Priddy" <sip:1206 at pbx.bryantschools.org>;tag=v2Kpa56439DgK
>>    Call-ID: 4e000000e08c-cm5eg6nr96al
>>    CSeq: 7373 REGISTER
>>    User-Agent: FreeSWITCH-mod_sofia/1.3.9b+git~20121206T182231Z~a7fafb2039
>>    Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE,
>> REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
>>    Supported: timer, precondition, path, replaces
>>    WWW-Authenticate: Digest realm="pbx.bryantschools.org",
>> nonce="4f0b07b6-42df-11e2-ab4a-4bb963400da6", algorithm=MD5, qop="auth"
>>    Content-Length: 0
>>
>>
>>  ------------------------------------------------------------------------
>> recv 884 bytes from udp/[10.10.24.20]:3072 at 15:36:04.680840:
>>
>>  ------------------------------------------------------------------------
>>    REGISTER sip:pbx.bryantschools.org SIP/2.0
>>    Via: SIP/2.0/UDP 10.10.24.20:3072;branch=z9hG4bK-cpukgis6pexk;rport
>>    From: "Blake Priddy" <sip:1206 at pbx.bryantschools.org>;tag=dbou3jy9kf
>>    To: "Blake Priddy" <sip:1206 at pbx.bryantschools.org>
>>    Call-ID: 4e000000e08c-cm5eg6nr96al
>>    CSeq: 7374 REGISTER
>>     Max-Forwards: 70
>>    Contact: <sip:1206 at 10.10.24.20:3072
>> >;reg-id=1;q=1.0;+sip.instance="<urn:uuid:cb7105d7-ce2c-4835-8300-000413411CA5>"
>>    User-Agent: snom870/8.7.3.10
>>    Allow-Events: dialog
>>    X-Real-IP: 10.10.24.20
>>    Supported: path, gruu
>>    WWW-Contact: <http://10.10.24.20:80>
>>    WWW-Contact: <https://10.10.24.20:443>
>>    Authorization: Digest username="1206",realm="pbx.bryantschools.org
>> ",nonce="4f0b07b6-42df-11e2-ab4a-4bb963400da6",uri="sip:
>> pbx.bryantschools.org
>> ",qop=auth,nc=00000001,cnonce="4afc06b9",response="8c9a1fcedd906467bd0afa2b98b50829",algorithm=MD5
>>    Expires: 3600
>>    Content-Length: 0
>>
>>
>> So........ Yea ha
>>
>> --
>>
>> *Blakelund Priddy*
>>  Network Systems Engineer
>> Bryant Public School District
>> Bryant, Arkansas 72022
>> http://www.bryantschools.org
>> p 501-653-5038
>> f 501-847-5656
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> 
>> 
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> 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
>>
>>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> 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
>
>


-- 
Michael S Collins
Twitter: @mercutioviz
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20121210/eb575a89/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list