Tech-invite3GPPspaceIETF RFCsSIP ↠  ExamplesGrammarsPresence

ABNF for SIP/SIPS URI — hostport

Section 19.1.1 of RFC 3261  and  ABNF in RFC 3261

hostport =
host  [ ":"  port ]

; examples:
;   sip:alice@atlanta.com
;   sip:alice:secretword@atlanta.com;transport=tcp
;   sip:+1-212-555-1212:1234@gateway.com;user=phone
;   sip:alice@192.0.2.4

Top
host =
Up
hostname =
*( domainlabel  "." )  toplabel  [ "." ]
Up
domainlabel =
alphanum /  alphanum  *( alphanum /  "-" )  alphanum
Up
toplabel =
ALPHA /  ALPHA  *( alphanum /  "-" )  alphanum
Up
IPv6reference =
"["  IPv6address  "]"
Up
IPv6address =
;  as updated by:   RFC 5954Section 4.1
6( h16  ":" )  ls32  /
"::"  5( h16  ":" )  ls32  /
[ h16 ]  "::"  4( h16  ":" )  ls32  /
[ *1( h16  ":" )  h16 ]  "::"  3( h16  ":" )  ls32  /
[ *2( h16  ":" )  h16 ]  "::"  2( h16  ":" )  ls32  /
[ *3( h16  ":" )  h16 ]  "::"  h16  ":"    ls32  /
[ *4( h16  ":" )  h16 ]  "::"  ls32  /
[ *5( h16  ":" )  h16 ]  "::"  h16  /
[ *6( h16  ":" )  h16 ]  "::"
Up
h16 =
1*4HEXDIG
Up
ls32 =
h16   ":"   h16 ) /  IPv4address
Up
IPv4address =
dec-octet  "."  dec-octet  "."  dec-octet  "."  dec-octet
Up
dec-octet =
DIGIT /  ; 0‑9
%x31‑39   DIGIT /  ; 10‑99
"1"  2DIGIT /  ; 100‑199
"2"  %x30‑34   DIGIT /  ; 200‑249
"25"  %x30‑35  ; 250‑255
Up
port =
1*DIGIT
Up

Top