2.
Jul 5, 2008 4:40 AM

in response to:
joegen
Re: handling of escaped hex characters in SIP message
Hello Joegen,
I have send you the traces offline. Beside that, I did some more investigations and (hopefully) found the root cause for the problem. The safeChars list in opensipstack/src/ParserTools.cxx does not contain the "%". Therefore, an "%" is escaped everytime the message goes through this function. After adding the "%" to the list of safe chars, the problem disappears and an invite send in the form :
%2343%23@domain.tld is not changed anymore.
I would appreciate if you could check the impact of this change to the remaining code - if there is no impact, it would be great if you would incorporate it.
const char * safeChars = "abcdefghijklmnopqrstuvwxyz"
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"0123456789$-_.!*'(),+#";
changed to
const char * safeChars = "abcdefghijklmnopqrstuvwxyz"
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"0123456789$-_.!*'(),+#%";
Regards,
Andre