[Freeswitch-dev] Sip RFC2543 and FreeSwitch

R P Herrold herrold at owlriver.com
Mon Aug 16 12:59:32 PDT 2010


On Mon, 16 Aug 2010, Tech Micron wrote:

> Hi Anthony,
>
> According to RFC3261 and RFC 2543, Double quote "" is not 
> mandatory. But I have seen it in some debug traces from 
> other SoftPhones.
>
> Ref: Section 20.39 of RFC 3261

I am no RFC lawyer, but inter alia, that out refers to RFC 
2616, and the relevant part is the description of 'tokens' in 
a 'field', and when certain separaters are present, must be 
protected in a QUOTE form

http://www.ietf.org/rfc/rfc2616.txt at section 2.2

   Many HTTP/1.1 header field values consist of words separated by LWS
    or special characters. These special characters MUST be in a quoted
    string to be used within a parameter value (as defined in section
    3.6).

        token          = 1*<any CHAR except CTLs or separators>
        separators     = "(" | ")" | "<" | ">" | "@"
                       | "," | ";" | ":" | "\" | <">
                       | "/" | "[" | "]" | "?" | "="
                       | "{" | "}" | SP | HT

---------------------------

Your target string as indicated by the error message in 
the first post was:

 	To: sip:1000 at 66.220.15.234 <sip:1000 at 66.220.15.234>

and the relevant unprotected section:
 	sip:1000 at 66.220.15.234
contains: ":" and "@"
without such quotation.  I see Brian mentioned one, but it 
looks as though two are required to be protected

A proper line might look like:

 	To: "sip:1000 at 66.220.15.234" <sip:1000 at 66.220.15.234>

-- Russ herrold



More information about the FreeSWITCH-dev mailing list