Hi All,
I have a query regarding the inclusion of port in SIP-URI.
The port in the SIP-URI is optional as per the ABNF grammar (RFC 3261 section
25)
SIP-URI = "sip:" [ userinfo ] hostport
uri-parameters [ headers ]
SIPS-URI = "sips:" [ userinfo ] hostport
uri-parameters [ headers ]
userinfo = ( user / telephone-subscriber ) [ ":" password ] "@"
user = 1*( unreserved / escaped / user-unreserved )
user-unreserved = "&" / "=" / "+" / "$" / "," / ";" / "?" / "/"
password = *( unreserved / escaped /
"&" / "=" / "+" / "$" / "," )
hostport = host [ ":" port ]
host = hostname / IPv4address / IPv6reference
hostname = *( domainlabel "." ) toplabel [ "." ]
domainlabel = alphanum
/ alphanum *( alphanum / "-" ) alphanum
toplabel = ALPHA / ALPHA *( alphanum / "-" ) alphanum
IPv4address = 1*3DIGIT "." 1*3DIGIT "." 1*3DIGIT "." 1*3DIGIT
Now if hostname is present in Request-URI or Contact (like INVITE sip:[EMAIL
PROTECTED] SIP/2.0) is it valid to include the port number in the URI (like
INVITE sip:[EMAIL PROTECTED]:8080 SIP/2.0). I feel the mentioned SIP address'
port can be resolved at UAS end through a DNS SRV query.
Please let me know whether the port MUST be (or MUST NOT be) included in this
case.
Thanks,
Praveen Dandin
---------------------------------
Download prohibited? No problem. CHAT from any browser, without download.
_______________________________________________
Sip-implementors mailing list
[email protected]
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors