Hello All, I am getting two different sofia-sip parsing results when registering lines that require authentication with two different servers.
First Server Case: 1) Server sends following header in the "401 Unauthorized" message: WWW-Authenticate: Digest algorithm=MD5, realm="asterisk.greyhawk.tonecommander.com", nonce="626e3278" 2) In callback function, sip_header_as_string(home, sip_www_authenticate(sip)) returns a pointer to "Digest algorithm=MD5, realm="asterisk.greyhawk.tonecommander.com",nonce="626e3278"" Second Server Case: 1) Server sends following header in the "401 Unauthorized" message: WWW-Authenticate: Digest realm="Registered_Subscribers", domain="sip:206.229.26.61", nonce="20dfb7e5a77abee7a02dbe53efe42cdd",opaque="2a794e58", stale=FALSE,algorithm=MD5 2) In callback function, sip_header_as_string(home, sip_www_authenticate(sip)) returns a pointer to a NULL string. 3) But, sip->sip_www_authenticate->au_params points to "realm="Registered_Subscribers"" Do you know why in the first case sip_header_as_string() returns the complete header string, and in the second case it returns a NULL string? 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