> -----Original Message-----
> From: [email protected] [mailto:sip-
> [email protected]] On Behalf Of Harbhanu
> Sent: Wednesday, 9 June 2010 8:11 PM
> To: 'Alex Balashov'
> Cc: [email protected]
> Subject: Re: [Sip-implementors] regarding Reason-Phrase
> 
> I absolutely agree to your point, but here we need to decide its
> handling
> incase we get this format from network
> 
> Would it be reasonable to ignore/drop a response *just because* the
> Reason-Phrase is a quoted string?
> How do other commercial or widely used stacks handles this?

I think the double quotes are allowed in the Reason Phrase.

Reason-Phrase   =  *(reserved / unreserved / escaped
                   / UTF8-NONASCII / UTF8-CONT / SP / HTAB)

In either case you'd be better off accepting them as it's an informational
field only and doesn't affect the processing of the response. The Status
Code is the definitive field for the response type, the Reason Phrase is
meant for users and is arbitrary.

Aaron

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

Reply via email to