Hello Attila,
yes I'm refering to userinfo and that also includes telephone-subscriber. But
as the paragraph from RFC3261 clearly states you can build the userinfo part
according to the rules from RFC2806, but you have to escape every character
which is not allowed in SIP. And as the "user" from the RFC3261 BNF does not
allow # as character you have to escape it in my opinion.
user = 1*( unreserved / escaped / user-unreserved )
unreserved = alphanum / mark
mark = "-" / "_" / "." / "!" / "~" / "*" / "'" / "(" / ")"
escaped = "%" HEXDIG HEXDIG
user-unreserved = "&" / "=" / "+" / "$" / "," / ";" / "?" / "/"
At least I do not see any # in these characters, so escaped seem the only
option to me.
Regards
Nils Ohlmeier
On Wednesday 22 September 2004 17:02, Attila Sipos wrote:
> Hi Nils,
>
> Thanks for your reply.
>
> > And in the SIP username # is not allowed.
>
> Can you help me understand why the # is not allowed.
>
> From RFC3261, the relevant grammar (I think) is:
>
> SIP-URI = "sip:" [ userinfo ] hostport
> uri-parameters [ headers ]
> SIPS-URI = "sips:" [ userinfo ] hostport
> uri-parameters [ headers ]
> userinfo = ( user / telephone-subscriber ) [ ":" password ] "@"
>
>
> Is "userinfo" what you refer to as the "SIP username"?
> If so, then I thought the # is allowed since it is part
> of the "telephone-subscriber" definition.
>
> Have I misunderstood something?
>
> Regards,
>
> Attila
>
> > -----Original Message-----
> > From: Nils Ohlmeier [mailto:[EMAIL PROTECTED]
> > Sent: 22 September 2004 15:50
> > To: [EMAIL PROTECTED]
> > Cc: Attila Sipos; Miriyala Srinivas-FSM016
> > Subject: Re: [Sip-implementors] Question on including character "#" in
> > the userportion of the IN VITE message
> >
> >
> > Cite from the BNF part of RFC 3261:
> >
> > The BNF for telephone-subscriber can be found in RFC 2806
> > [9]. Note,
> > however, that any characters allowed there that are not allowed in
> > the user part of the SIP URI MUST be escaped.
> >
> > And in the SIP username # is not allowed.
> >
> > Regards
> > Nils Ohlmeier
> >
> > On Wednesday 22 September 2004 16:21, Attila Sipos wrote:
> > > The # is technically Ok.
> > >
> > > INVITE sip:[EMAIL PROTECTED] should work.
> > >
> > > The # is allowed because it is part of "telephone-subscriber"
> > > in the sip grammar. (The BNF for telephone-subscriber can be
> > > found in RFC 2806)
> > >
> > > Regards,
> > >
> > > Attila
> > >
> > >
> > > Attila Sipos
> > > Software Engineer
> > > <http://www.vegastream.com/>
> > >
> > > > -----Original Message-----
> > > > From: [EMAIL PROTECTED]
> > > > [mailto:[EMAIL PROTECTED]
> >
> > Behalf Of Miriyala
> >
> > > > Srinivas-FSM016
> > > > Sent: 21 September 2004 23:37
> > > > To: '[EMAIL PROTECTED]'
> > > > Subject: [Sip-implementors] Question on including
> >
> > character "#" in the
> >
> > > > userportion of the IN VITE message
> > > >
> > > >
> > > > Hello All,
> > > >
> > > > How can I send "#" (no quotes) in the Request-URI and To
> > > > header of INVITE
> > > > message. Can I send the character directly or should I use %
> > > > HEXDIG HEXDIG
> > > > (%35) instead.
> > > >
> > > > E.g : INVITE sip:[EMAIL PROTECTED] or should it be INVITE
> > > > sip:[EMAIL PROTECTED]
> > > >
> > > >
> > > > Best Regards
> > > > Srini
> > > > _______________________________________________
> > > > 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
> >
> > --
> > snom technology AG Pascalstrasse 10b D-10581 Berlin
> > Nils Ohlmeier
> > mailto:[EMAIL PROTECTED] http://www.snom.com
--
snom technology AG Pascalstrasse 10b D-10581 Berlin
Nils Ohlmeier
mailto:[EMAIL PROTECTED] http://www.snom.com
_______________________________________________
Sip-implementors mailing list
[EMAIL PROTECTED]
http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors