400 is an apt response for syntactically incorrect messages.

Regards,
Tarun
ARICENT




-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of cool goose
Sent: Saturday, March 07, 2009 4:31 AM
To: [email protected]
Subject: [Sip-implementors] Ideal Response Code,when UAC's Register request 
Digest Uri field doesn't comply to SIPBNF

Hi Guys,

What should UAS respond with when it receives REGISTER request where the
"Uri" field has its value with out being double quoted? Say for eg:

REGISTER sip:192.168.104.113 SIP/2.0
Via: SIP/2.0/UDP 192.168.104.110:5060;branch=z9hG4bKbab835b91939ee5dd
Max-Forwards: 0
From: <sip:192.168.104.113:5060>;tag=4be5501b2b
To: <sip:[email protected]:5060>
Call-ID: 0f2633d154e734df
CSeq: 2 REGISTER
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, OPTIONS, UPDATE,PRACK,
SUBSCRIBE, INFO
Contact: <sip:[email protected]:5060;transport=udp>; expires=3600
User-Agent: SipTool
Authorization: Digest username="001AA040A", realm="abcd.com",
cnonce="8684c3c0", nc=00000001, qop=auth, uri=SIP:192.168.104.113,
nonce="4805c00a969ec901f146d1927b99fe102ffbc8e21b64fe55",
response="ad9d72e63ff808fe020a07813962023f", algorithm=MD5, opaque=""
Content-Length: 0


Observe the "uri" field value in the above Register request.

RFC 3261 in Section 22.4 specifies the following:

2.  The BNF in RFC 2617 has an error in that the 'uri' parameter
          of the Authorization header field for HTTP Digest

authentication is not enclosed in quotation marks.  (The
          example in Section 3.5 of RFC 2617 is correct.)  For SIP, the
          'uri' MUST be enclosed in quotation marks.



Thank You,
CoolGoose.
_______________________________________________
Sip-implementors mailing list
[email protected]
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors

"DISCLAIMER: This message is proprietary to Aricent and is intended solely for 
the use of the individual to whom it is addressed. It may contain privileged or 
confidential information and should not be circulated or used for any purpose 
other than for what it is intended. If you have received this message in 
error,please notify the originator immediately. If you are not the intended 
recipient, you are notified that you are strictly prohibited from using, 
copying, altering, or disclosing the contents of this message. Aricent accepts 
no responsibility for loss or damage arising from the use of the information 
transmitted by this email including damage from virus."

_______________________________________________
Sip-implementors mailing list
[email protected]
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors

Reply via email to