Arjun Nair wrote:
> Dale Worley wrote:
>> On Tue, 2008-12-16 at 16:10 -0500, Arjun Nair wrote:
>>> So, I changed the status server to get the credentials from the
>>> Proxy-Authorization header. If the phone re-subscribes within 5 mins,
>>> the nonce is still valid, and the status server sends back a 202.
>>> However, any re-SUBSCRIBEs after 5mins are turned down with a 401.
>>> And, as was happening before, the phone chokes on the 401. 
>> If I understand you right, the phone chokes on this 401, but the request
>> was a re-SUBSCRIBE, which was *not* challenged for a 407.  That would
>> mean that the phone wasn't handling the *first* challenge of the
>> request.
>>
>> Dale
> 
> 
> Correct. This was a re-Subscribe that was not 407 challenged (as sipXproxy 
> PAI feature does not challenge in-dialog subscribes).
> 

To be perfectly clear, these are the 4 scenarios I tested --


                 SCENARIO 0 - FAIL
===================================================
Phone                  Far-end
        SUBSCRIBE
   --------------------->

          407
   <---------------------

        SUBSCRIBE w. 
  Proxy-Authorization header
   --------------------->

          202
   <---------------------
.
.
. 6 minutes later - subscription expires
.

   re-SUBSCRIBE w. cached 
  Proxy-Authorization header 
     [expired nonce]
   --------------------->

            401
   <---------------------

   ** Phone Hangs Here **

===================================================


                 SCENARIO 1 - FAIL
===================================================
Phone                  Far-end
        SUBSCRIBE
   --------------------->

          407
   <---------------------

        SUBSCRIBE w. 
  Proxy-Authorization header
   --------------------->

            401
   <---------------------

   ** Phone Hangs Here **

===================================================


                 SCENARIO 2 - PASS
===================================================
Phone                  Far-end
        SUBSCRIBE
   --------------------->

          407
   <---------------------

        SUBSCRIBE w. 
  Proxy-Authorization header
   --------------------->

          202
   <---------------------
.
.
. 6 minutes later - subscription expires
.

   re-SUBSCRIBE w. cached 
  Proxy-Authorization header 
     [expired nonce]
   --------------------->

            407
   <---------------------

       re-SUBSCRIBE w. 
  Proxy-Authorization header
     [new valid nonce]
   --------------------->

          202
   <---------------------

 ** Phone Works Fine Here **

===================================================


                 SCENARIO 3 - PASS
===================================================
Phone                  Far-end
        SUBSCRIBE
   --------------------->

          401
   <---------------------

        SUBSCRIBE w. 
    Authorization header
   --------------------->

          202
   <---------------------
.
.
. 6 minutes later - subscription expires
.

   re-SUBSCRIBE w. cached 
    Authorization header 
     [expired nonce]
   --------------------->

            401
   <---------------------

       re-SUBSCRIBE w. 
    Authorization header
     [new valid nonce]
   --------------------->

          202
   <---------------------

 ** Phone Works Fine Here **

===================================================
_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev

Reply via email to