Hi,
Please refer to Section 20.10 in bis-09.
"When the header field value contains a display name, the URI including all
URI parameters is enclosed in '<'
and '>'. If no '<' and '>' are present, all parameters after the URI are
header parameters, not URI
parameters. Even if the display-name is empty,the name-addr form MUST be
used if the addr-spec
contains a comma, semicolon, or question mark. "
Basicaly, when the addr-spec contains a comma, semicolon, or question mark,
it should be enclosed in angular braces(<>).This acts as a delimeter
between the
URL parameters and header parameters.
So, the correct syntax for To header will be
To: <sip:[EMAIL PROTECTED];user=phone;ttl=10>;tag=1234
Here, the tag parameter will be a header parameter.
Rgds
Seshu
"ashwani" <[EMAIL PROTECTED]> on 05/27/2002 06:20:13 PM
To: [EMAIL PROTECTED]
cc: (bcc: Seshashayi T/HSSBLR)
Subject: [Sip-implementors] SIP Grammer ambiguity
Hi All
There seems to be an ambiguity in the SIP ABNF grammer in case of "To"
header.
According to the bis-09
It is Like this
To = ( "To" / "t" ) HCOLON ( name-addr / addr-spec ) *( SEMI to-param )
name-addr = [ display-name ] LAQUOT addr-spec RAQUOT
addr-spec = SIP-URI / SIPS-URI / absoluteURI
Now since both the SIP URL Parameters and the TO Parameters are seperated
by SEMICOLON so if the To Header contains Addr-spec field then on what
basis
parser will determine whether incoming parameter is SIP URL Parameter or a
To Header parameter.
For example see the line below
To: sip:[EMAIL PROTECTED];user=phone;ttl=10;tag=1234
Is there something wrong in my interpretation of SIP Grammer.
Regards
Ashwani
_______________________________________________
Sip-implementors mailing list
[EMAIL PROTECTED]
http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors
_______________________________________________
Sip-implementors mailing list
[EMAIL PROTECTED]
http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors