[Devel] escaped characters

Juha Heinanen jh at tutpro.com
Fri Dec 15 12:34:31 CET 2006


Daniel-Constantin Mierla writes:

 > Introducing escape/unescape functions should be easy. Then come the 
 > harder part, where to call them.

decode immediately when request comes in and encode when request is sent
out.  so while request is being processed, there would be no need to
worry about escaped chars.  for example, a test

uri =~ "^sip:#"

would work no matter if # was escaped or un-escaped when the request came
in.  in requests that openser sends out # would always be escaped.

-- juha



More information about the Devel mailing list