Moving to sip-implementors.
> -----Original Message-----
> From: Sean Olson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 23, 2001 12:05 PM
> To: Shail Bhatnagar
> Cc: [EMAIL PROTECTED]
> Subject: Re: [SIP] Escaped characters in sip/tel URLs
>
>
>
> Shail Bhatnagar wrote:
>
> > I am trying to understand how a proxy or UA would handle
> > escaped characters in sip/tel URLs and what are its uses.
> > Are you supposed to unescape those characters in the
> > parsed form and re-escape them when generating the
> > unparsed form ?
>
> Yes.
I disagree. Its an implementation detail. The specifications merely state
that on the wire, it needs to be escaped.
>
> > I understand it provides a mechanism to
> > put illegal characters but what is the real use of this
> > feature. Can somebody provide some examples ?
>
> The whole point is to allow someone else define
> how they will use the fields of the URI and what
> information they will put in them. In a word,
> extensibility.
Actually, I believe the primary reason is to allow nice rendering of the
URL, yet still maintain the portability benefits afforded by escaping this
troublesome characters.
>
> > I see one example on page 29 of rfc2543bis-02.ps, according
> > to which the To header of the REGISTER request would look
> > like this :
> >
> > To: [EMAIL PROTECTED]
> > ^^^ ( note the '@' sign in the user portion).
> >
> > Does it mean that proxy/registrar at example.com would
> > actually save [EMAIL PROTECTED] as the search key/user
> > portion of this registration.
>
> Yes. Note that is it also legal to escape
> characters that can legally appear unescaped.
> For this reason, you will also need to unescape
> the user portion, for instance, before doing
> comparisons, sorts, storing, etc.
I disagree again. It depends on implementation. You can choose to implement
your database such that all names and URL encoded before placing them into
the database. IN that case, you always do lookups on the encoded format.
-Jonathan R.
---
Jonathan D. Rosenberg 72 Eagle Rock Ave.
Chief Scientist First Floor
dynamicsoft East Hanover, NJ 07936
[EMAIL PROTECTED] FAX: (973) 952-5050
http://www.cs.columbia.edu/~jdrosen PHONE: (973) 952-5000
http://www.dynamicsoft.com
_______________________________________________
Sip-implementors mailing list
[EMAIL PROTECTED]
http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors