[OpenSER-Devel] is_privacy() and privacy parser bug

Iñaki Baz Castillo ibc at in.ilimit.es
Fri Jul 11 18:55:27 CEST 2008


El Friday 11 July 2008 18:43:35 Iñaki Baz Castillo escribió:
> El Friday 11 July 2008 17:58:59 Juha Heinanen escribió:
> > can you point to an rfc that tells that case of privacy value does not
> > matter?
>
> Hi Juha,
>
> All BNF grammar in SIP is case insensitive except common methods name:
>
> Method  =    INVITEm / ACKm / OPTIONSm
>  / BYEm / CANCELm / REGISTERm
>  / INFOm / PRACKm / SUBSCRIBEm / NOTIFYm
>  / UPDATEm / MESSAGEm / REFERm / PUBLISHm
>  / extension-method
>
>   INVITEm  =  %x49.4E.56.49.54.45  ; INVITE in caps
>   ACKm  =  %x41.43.4B  ; ACK in caps
>   OPTIONSm  =  %x4F.50.54.49.4F.4E.53  ; OPTIONS in caps
>   BYEm  =  %x42.59.45  ; BYE in caps
>   CANCELm  =  %x43.41.4E.43.45.4C  ; CANCEL in caps
>   REGISTERm  =  %x52.45.47.49.53.54.45.52  ; REGISTER in caps
>   INFOm  =  %x49.4E.46.4F  ; INFO in caps   [RFC2976]
>   PRACKm  =  %x50.52.41.43.4B  ; PRACK in caps   [RFC3262]
>   SUBSCRIBEm  =  %x53.55.42.53.43.52.49.42.45  ; SUBSCRIBE in caps  
> [RFC3265] NOTIFYm  =  %x4E.4F.54.49.46.59  ; NOTIFY in caps   [RFC3265]
>   UPDATEm  =  %x55.50.44.41.54.45  ; UPDATE in caps   [RFC3311]
>   MESSAGEm  =  %x4D.45.53.53.41.47.45  ; MESSAGE in caps   [RFC3428]
>   REFERm  =  %x52.45.46.45.52  ; REFER in caps   [RFC3515]
>   PUBLISHm  =  %x50.55.42.4C.49.53.48  ; PUBLISH in caps   [RFC3903]


Also:

-----------------------------------
 This is determined by the following from the definition of ABNF in RFC
 2234 (now superseded by 4234):
 
 ABNF permits specifying literal text string directly, enclosed in
 quotation-marks. Hence:
 
 command = "command string"
 
 Literal text strings are interpreted as a concatenated set of
 printable characters.
 
 NOTE: ABNF strings are case-insensitive and
 the character set for these strings is us-ascii.
 
 Hence:
 
 rulename = "abc"
 
 and:
 
 rulename = "aBc"
 
 will match "abc", "Abc", "aBc", "abC", "ABc", "aBC", "AbC" and "ABC".
 -----------------------------------

-- 
Iñaki Baz Castillo
ibc at in.ilimit.es



More information about the Devel mailing list