Tech-invite   3GPPspecs   Glossaries   IETFRFCs   Groups   SIP   ABNFs   Ti+   Search in Tech-invite

ABNF for SIP
RFC 3261and subsequent RFCs

SIP basic rules

Section 25.1 of RFC 3261

alphanum =
ALPHA /  DIGIT
Top
LHEX =
DIGIT /  %x61‑66
; lowercase a‑f
Top
LWS =
[ *WSPCRLF ]  1*WSP
; linear whitespace
Top
SWS =
LWS ]
; sep whitespace
Top
HCOLON =
*( SP /  HTAB )   ":"   SWS
Top
separators =
"(" /  ")" /  "<" /  ">" /  "@" /  "," /  ";" /  ":" /  "\" /  DQUOTE /  "/" /  "[" /  "]" /  "?" /  "=" /  "{" /  "}" /  SP /  HTAB
Top
STAR =
SWS  "*"  SWS
; asterisk
Top
SLASH =
SWS  "/"  SWS
; slash
Top
EQUAL =
SWS  "="  SWS
; equal
Top
LPAREN =
SWS  "("  SWS
; left parenthesis
Top
RPAREN =
SWS  ")"  SWS
; right parenthesis
Top
LAQUOT =
SWS  "<"
; left angle quote
Top
RAQUOT =
">"  SWS
; right angle quote
Top
COMMA =
SWS  ","  SWS
; comma
Top
SEMI =
SWS  ";"  SWS
; semicolon
Top
COLON =
SWS  ":"  SWS
; colon
Top
LDQUOT =
SWSDQUOTE
; open double quotation mark
Top
RDQUOT =
DQUOTESWS
; close double quotation mark
Top
token =
1*( alphanum /  "-" /  "." /  "!" /  "%" /  "*" /  "_" /  "+" /  "`" /  "'" /  "~" )
Top
quoted-string =
SWS   DQUOTE   *( qdtext /  quoted‑pair )   DQUOTE
Top
qdtext =
LWS /  %x21 /  %x23‑5B /  %x5D‑7E /  UTF8‑NONASCII
Top
quoted-pair =
"\"  ( %x00‑09 /  %x0B‑0C /  %x0E‑7F )
Top
comment =
LPAREN   *( ctext /  quoted‑pair /  comment )   RPAREN
Top
ctext =
%x21‑27 /  %x2A‑5B /  %x5D‑7E /  UTF8‑NONASCII /  LWS
Top
word =
1*( alphanum /  "-" /  "." /  "!" /  "%" /  "*" /  "_" /  "+" /  "`" /  "'" /  "~" /  "(" /  ")" /  "<" /  ">" /  ":" /  "\" /  DQUOTE /  "/" /  "[" /  "]" /  "?" /  "{" /  "}" )
Top
TEXT-UTF8-TRIM =
Top
TEXT-UTF8char =
%x21‑7E /  UTF8‑NONASCII
Top
UTF8-NONASCII =
%xC0-DF   1UTF8‑CONT /
%xE0-EF   2UTF8‑CONT /
%xF0-F7   3UTF8‑CONT /
%xF8-FB   4UTF8‑CONT /
%xFC-FD   5UTF8‑CONT
Top
UTF8-CONT =
%x80-BF
Top
escaped =
"%"   HEXDIG   HEXDIG
Top
mark =
"-" /  "_" /  "." /  "!" /  "~" /  "*" /  "'" /  "(" /  ")"
Top
reserved =
";" /  "/" /  "?" /  ":" /  "@" /  "&" /  "=" /  "+" /  "$" /  ","
Top
unreserved =
alphanum /  mark
Top