Yes, user part could be normal format if we put user into URI. But URI spec don't allow '#' within URI syntax. So I think if it is bad if we put '#' into user part without escaping because it isn't a corrent URI. regards, Gang 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/20081112/7bdc411d/attachment-0001.html>