You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The branch parameter (and others) in the Via header are tokens according to RFC 3261 but we unescape them anyway. Percent encoded hex pairs are decoded into their binary representations and subsequently printed incorrectly. For example, the log below is a request/response from Asterisk 16 (bundled with pjproject 2.10).
Steps to reproduce
Parse a request that contains the % character followed by 2 hex digits which should be stored literally and see that they are decoded instead.
Describe the bug
The
branch
parameter (and others) in theVia
header aretoken
s according to RFC 3261 but we unescape them anyway. Percent encoded hex pairs are decoded into their binary representations and subsequently printed incorrectly. For example, the log below is a request/response from Asterisk 16 (bundled with pjproject 2.10).Steps to reproduce
Parse a request that contains the
%
character followed by 2 hex digits which should be stored literally and see that they are decoded instead.PJSIP version
2.10 (Asterisk bundled)
Context
Asterisk 16 from Git on Linux.
Log, call stack, etc
Request:
Response:
The text was updated successfully, but these errors were encountered: