Hi,

>-----Original Message-----
>From: ext Martin Drasar [mailto:dra...@optimsys.cz] 
>Sent: Monday, March 09, 2009 10:24 AM
>To: sofia-sip-devel
>Subject: Re: [Sofia-sip-devel] 904 No Matching Challenge
>
>Jerry Richards napsal(a):
>> Hello All,
>> 
>> If my MD5 Authentication username is incorrect, I noticed my 
>sofia-sip phone
>> will get a "904 No Matching Challenge" event in response to my
>> nua_authenticate() call.  This only happens AFTER the first
>> nua_authenticate() call (the first one works correctly).
>> 
>> Has anyone encountered a similar issue?
>
>Yup, I did and some others too (for a bit different use cases 
>though)...
>
>I suggest you search the mailing list. Maybe one of these two 
>will help you a bit:
>
>Sofia-sip no matching challenge 904 in event_callback.
>proxy authentication failed when redirecting

I was onto it when investigating some other problem recently.
It's intended to be legitimate, if the proxy keeps challenging a request to 
which the user supplies the same authentication string more than once. The 
purpose is to eliminate endless request loops.
When I removed the line that invalidated the cached challenge upon 
authentication failure, NUA still failed gracefully on a challenge loop 
condition. I should investigate if this is true for all cases.

>
>There maybe others, but these two I know about
>
>Martin
>
>> Here is the scenario:
>> 
>>     NUA                    Sofia-SIP               Network
>> ------------------      -------------------      -----------
>> nua_register()     ===>                     ===> REGISTER
>>                                                  (w/o Auth)
>>                    <=== nua_r_register      <=== 401 Unauth.
>>                         (401 Unauthorized)
>> nua_authenticate() ===>                     ===> REGISTER
>>                                                  (with Auth)
>>                    <=== nua_r_register
>>                         (401 Unauthorized)
>> nua_authenticate() ===> 
>>                    <=== nua_r_register
>>                         (904 Operation has
>>                          no matching chal-
>>                          lenge)
>> ... 30 seconds elapse here ...
>> nua_register()     ===>                     ===> REGISTER
>>                                                  (w/o Auth)
>>                    <=== nua_r_register      <=== 401 Unauth.
>>                         (401 Unauthorized)
>> nua_authenticate() ===> 
>>                    <=== nua_r_register
>>                         (904 Operation has
>>                          no matching chal-
>>                          lenge)

Best regards,
  Mikhail
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to