[Home]

Summary:ASTERISK-07402: Authentication in register request fails if it consists of multiple lines
Reporter:nick_lewis (nick_lewis)Labels:
Date Opened:2006-07-26 09:36:36Date Closed:2006-08-07 15:15:52
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Channels/chan_sip/Interoperability
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Authentication request fails if it contains a carriage return <CR> even if followed by a space <SP>.

Authorization: Digest username="vidtest"
,realm="atltcomplete",nonce="6bd6295d",u
ri="sip:213.160.116.4",<CR><SP>response=
"ce77835f8409301dff1518b40b642bf1"

This is valid sip according to RFC3261

"Header fields can be extended over multiple lines by preceding each
  extra line with at least one SP or horizontal tab (HT).  The line
  break and the whitespace at the beginning of the next line are
  treated as a single SP character. "

****** ADDITIONAL INFORMATION ******



> REGISTER sip:213.160.116.4 SIP/2.0
> Via: SIP/2.0/UDP 213.160.123.112:5060;branch=z9hG4bK5TUPmMYnrru
> Max-Forwards: 70
> To: vidtest <sip:vidtest@213.160.116.4>
> From: vidtest <sip:vidtest@213.160.116.4>;tag=v5nrQYPC27jxT5rQ
> Call-ID: zDnVQ1FBQED8Ovjr@213.160.123.112
> CSeq: 2 REGISTER
> Expires: 3600
> Contact: <sip:vidtest@213.160.123.112>
> Authorization: Digest
> username="vidtest",realm="atltcomplete",nonce="6bd6295d",
> uri="sip:213.160.116.4",
>  response="ce77835f8409301dff1518b40b642bf1"
> User-Agent: VizufonSIP/2.0 (beta.EP.ATL.Oct 29 2005)
> Content-Length: 0
Comments:By: Joshua C. Colp (jcolp) 2006-07-26 10:01:16

Have you enabled pedantic mode and tried that?

By: Olle Johansson (oej) 2006-08-07 15:15:52

Support issue, not a bug. Change configuration to include "pedantic=yes"