Hello,

One correction to what I said below:  "pStruct=sip_www_authenticate(sip)"
returns a valid address, but "pString=sip_header_as_string(home, (const
sip_header_t *)pStruct)" returns a NULL value, as shown in my logging below.

Any ideas on how I might debug this?

Best Regards,
Jerry


-----Original Message-----
From: Jerry Richards [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 14, 2008 11:02 AM
To: 'Pekka Pessi'
Cc: 'sofia-sip-devel@lists.sourceforge.net'
Subject: RE: [Sofia-sip-devel] 401 Unauthorized Parsing Bug?

Pekka,

Sip_www_authenticate(sip) returned 0x9442c8, which is a valid address.
However, the string located at 0x9442c8 is NULL (i.e. first character is
zero).  And there is only one WWW-Authenticate header in the 401 response
from either server.

This is 100% reproducible.  Here is the complete 401 message content and
what my NUA logs (Log [405] below shows the NULL string):

[-][397] [RCV STA] 401 UnAuthorized (from 206.229.26.60:14060), CSEQ:
97966695 REGISTER
    --Status-Line: SIP/2.0 401 UnAuthorized
   [-]Message Header
       --Via: SIP/2.0/UDP
192.168.72.72;received=206.80.111.2;branch=z9hG4bKQU8Hvyy77g7aF;rport=63586
      [+]From: <sip:[EMAIL PROTECTED]:14060>;tag=Q7ZjXrKt9Ba8D
      [+]To: <sip:[EMAIL PROTECTED]>;tag=745645637687876
       --Call-ID: 0d7ab2b0-84b3-122b-608b-e349ee6790df
       --CSeq: 97966695 REGISTER
       --WWW-Authenticate: Digest
realm="Registered_Subscribers",domain="sip:206.229.26.61",nonce="cff93a1a2a3
4f6de702802af286c77ec",opaque="7e12e853",stale=FALSE,algorithm=MD5
 --[398] ProcCallback __ENTRY__: nua_i_outbound event: 101 NAT detected,
nh=0x940a78, hmagic=0x8f4bf0, sip=0x0
 --[399]    pMkData=[MK1]
 --[400]    Discarding Event...
 --[401] ProcCallback __ENTRY__: nua_r_register event: 401 UnAuthorized,
nh=0x940a78, hmagic=0x8f4bf0, sip=0x943c5c
 --[402]    pMkData=[MK1]
 --[403] ce_Parse40xUnauth:
 --[404] ce_WwwAuthentRealm:
 --[405]    sip_www_authenticate(sip)=0x9442c8=''
 --[406]       .au_common=0x9442c8, .au_next=0x0, .au_scheme='Digest'
 --[407]       .au_params='realm="Registered_Subscribers"'
 --[408]
sip->sip_www_authenticate->au_params='realm="Registered_Subscribers"'
 --[409]    Using realm=Registered_Subscribers

Best Regards,
Jerry



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to