[reSIProcate] Character Escaping

Justin Matthews jmatthewsr at yahoo.com
Thu Dec 8 09:49:29 CST 2005


Sorry, this is explained in RFC3261 pretty clearly (19.1.2).  # must be
escaped, so resip is handling this correctly.

 

Thanks,

 

-Justin

 

  _____  

From: resiprocate-devel-bounces at list.sipfoundry.org
[mailto:resiprocate-devel-bounces at list.sipfoundry.org] On Behalf Of Justin
Matthews
Sent: Thursday, December 08, 2005 10:30 AM
To: 'derek'; resiprocate-devel at list.sipfoundry.org
Subject: RE: [reSIProcate] Character Escaping

 

Could someone please explain the intended way of handling special characters
in resip?  

 

For example, I am trying to send an INVITE with a '#' character in the To:
field, ie "#15551234567 at 192.168.1.1".

 

In uri.cxx, the function shoudEscapeUserChar(), determines that the '#'
should be escaped.  Is this correct?  The result of this is a result of
"%2315551234567 at 192.168.1.1".

 

Thanks,

 

-Justin

 

  _____  

From: resiprocate-devel-bounces at list.sipfoundry.org
[mailto:resiprocate-devel-bounces at list.sipfoundry.org] On Behalf Of derek
Sent: Thursday, February 24, 2005 8:30 PM
To: resiprocate-devel at list.sipfoundry.org
Subject: [reSIProcate] Character Escaping

 

I merged the character escaping logic from my branch. It is controlled by
HANDLE_CHARACTER_ESCAPING which is currently defined(on by default) in
Uri.cxx.  We can do more work to make this even faster, but is necessary for
proxies and should always be on.

 

There is a new method in Data for escaping to a stream:

 

template<class Predicate> std::ostream& 

Data::escapeToStream(std::ostream& str, Predicate shouldEscape) const

 

There is also logic to handle embedded quotes in a NameAddr; this is off by
default. Define HANDLE_EMBEDDED_QUOTES_DNAME in NameAddr.cxx

 

-Derek

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20051208/78d0c3ac/attachment.htm>


More information about the resiprocate-devel mailing list