Dear Pekka, all I noticed some strange behavior in extract_first of msg_parser.c. It seems that a request line that begins with LWS, or ends after CRLF is a valid request line. The followings are all valid according sofia-sip parser (double quote excluded).
" INVITE sip:a...@b.c SIP/2.0" "INVITE sip:a...@b.c SIP/2.0 " I also noticed that you have tests for that (test1.txt and test1a.txt). According to RFC3261, request line is Request-Line = Method SP Request-URI SP SIP-Version CRLF and Method cannot begin with SP. Also Request-Line ends with CRLF. Headers have HCOLON that could span multiple line (but always begin at the start of the line), but not Request-Line. Also I noticed that in RFC 4475 (SIP Torture Test Messages), the 3.1.1.1 message (that recalls test1.txt very much) has not spaces before the To header. What do you think ? Is there any reason for that implementation ? Thanks in advance, Filippo Questo messaggio e i suoi allegati sono indirizzati esclusivamente alle persone indicate. La diffusione, copia o qualsiasi altra azione derivante dalla conoscenza di queste informazioni sono rigorosamente vietate. Qualora abbiate ricevuto questo documento per errore siete cortesemente pregati di darne immediata comunicazione al mittente e di provvedere alla sua distruzione, Grazie. This e-mail and any attachments is confidential and may contain privileged information intended for the addressee(s) only. Dissemination, copying, printing or use by anybody else is unauthorised. If you are not the intended recipient, please delete this message and any attachments and advise the sender by return e-mail, Thanks. ------------------------------------------------------------------------------ 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