How to send message to URI containing "#"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I think we have misunderstanding here, this is Table 1 of RFC3261, and it
describes whether certain URI components can be included in a SIP URI.
"user" is clearly optional because in a SIP REGISTER it's not included in
the request URI but the host portion is mandatory.

If you look a little bit down section 19.1.2, here is the paragraph:

For each component, the set of valid BNF expansions defines exactly which
characters may appear unescaped. All other characters MUST be escaped.

# is not in the list of characters which may appear unescaped in the user
component. Hence it MUST be escaped.

Thanks
Donald

2008/11/12 Peter Cai <newptcai at gmail.com>

> It's not a MUST in RFC3216, it's only OPTIONAL.
>
> See PAGE 152.  "o" means optional.
>
>              default  Req.-URI  To  From  Contact   R-R/Route  external
> user          --          o      o    o       o          o         o
>
>
> 2008/11/11 Gang Liu <gangban.lau at gmail.com>:
> > I think "#" must be encoded if we need put it into URI.
> >
> > As I know, RFC 2396 says '#'  is excluded US-ASCII character, '#' is
> > disallowed within the URI syntax.
> >
> > regards,
> > Gang
> >
> > 2008/11/10 Peter Cai <newptcai at gmail.com>
> >>
> >> :) Right, that's the problem.
> >>
> >> As "esacpe" in URI is optional in RFC3261, I have no strong reason to
> >> ask the other team to convert %23 to #.
> >>
> >> Actually I was laughed because I asserted that the escape is a "MUST"
> >> before I read the RFC carefully.
> >>
> >> On Mon, Nov 10, 2008 at 5:57 PM, Gang Liu <gangban.lau at gmail.com>
> wrote:
> >> > I guess remote party didn't convert %23 into #.
> >> >
> >> > regards,
> >> > Gang
> >> >
> >> > On Mon, Nov 10, 2008 at 3:41 PM, Hoi-Ho Chan <hoiho.chan at gmail.com>
> >> > wrote:
> >> >>
> >> >> # must be escaped to %23 per the SIP syntax. If the remote party
> >> >> requires
> >> >> # to appear in the user portion of the URI then it's not conforming
> to
> >> >> the
> >> >> standard.
> >> >>
> >> >> Thanks
> >> >> Donald
> >> >>
> >> >> On Sun, Nov 9, 2008 at 8:21 PM, Peter Cai <newptcai at gmail.com>
> wrote:
> >> >>>
> >> >>> Hi all,
> >> >>>
> >> >>> PJSIP automatically escape "#" to "%23".
> >> >>>
> >> >>> But in my case, I have to have "#" un-escaped in the message.
> >> >>>
> >> >>> I've skimmed the documents of PJSIP but didn't found any clues how
> to
> >> >>> change this behavior.
> >> >>>
> >> >>> Has anyone ever met the same problem?
> >> >>>
> >> >>> _______________________________________________
> >> >>> Visit our blog: http://blog.pjsip.org
> >> >>>
> >> >>> pjsip mailing list
> >> >>> pjsip at lists.pjsip.org
> >> >>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
> >> >>
> >> >>
> >> >> _______________________________________________
> >> >> Visit our blog: http://blog.pjsip.org
> >> >>
> >> >> pjsip mailing list
> >> >> pjsip at lists.pjsip.org
> >> >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
> >> >>
> >> >
> >> >
> >> > _______________________________________________
> >> > Visit our blog: http://blog.pjsip.org
> >> >
> >> > pjsip mailing list
> >> > pjsip at lists.pjsip.org
> >> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
> >> >
> >> >
> >>
> >>
> >>
> >> --
> >>
> >>
> ???????????DNA?????????????????????????????????????????????????????????????????????????????????????????
> >> _______________________________________________
> >> Visit our blog: http://blog.pjsip.org
> >>
> >> pjsip mailing list
> >> pjsip at lists.pjsip.org
> >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
> >
> >
> > _______________________________________________
> > Visit our blog: http://blog.pjsip.org
> >
> > pjsip mailing list
> > pjsip at lists.pjsip.org
> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
> >
> >
>
>
>
> --
>
> ???????????DNA?????????????????????????????????????????????????????????????????????????????????????????
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20081117/356217ea/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux