Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reserved characters in SIP URIs are not escaped #171

Open
xhoaluu opened this issue Dec 20, 2017 · 0 comments
Open

Reserved characters in SIP URIs are not escaped #171

xhoaluu opened this issue Dec 20, 2017 · 0 comments

Comments

@xhoaluu
Copy link
Contributor

xhoaluu commented Dec 20, 2017

And JSR 289 (section 4.2.1) says:
"Likewise, string values passed to setters for various SIP/SIPS URI
components may contain reserved or excluded characters that need
escaping before being used. The container is responsible for escaping
those values as necessary."

But when we run the following code:

SipURI uri = (SipURI)sipFactory.createURI("sip:[email protected]");
uri.setHeader("email", "[email protected]");
mLogger.debug("4) uri="+uri);

it prints:

  1. uri=sip:[email protected]?email=[email protected]

The correct result would have been:
uri=sip:[email protected]?email=alice%40priv.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant