Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 2327 by [email protected]: Mobicents proxyTo fails when proxying
to "urn:service:sos" Request-URI
http://code.google.com/p/mobicents/issues/detail?id=2327
We are implementing a emergency services routing proxy which will forward
requests to "urn:service:sos" (http://www.faqs.org/rfcs/rfc5031.html) based
on the location. The problem is that when we try to implement "loose
routing" behavior (with request URI being preserved), proxyTo fails.
What steps will reproduce the problem?
1. request.pushRoute(uri); // uri points to our next hop
2. proxy.proxyTo(request.getRequestURI()); // request.getRequestURI()
is "urn:service:sos" in our case.
What is the expected output? What do you see instead?
Request should be proxied to the next hop with "urn:service:sos" in
Request-URI. Instead, an exception is thrown:
java.lang.IllegalArgumentException: Scheme urn is not supported
at
org.mobicents.servlet.sip.proxy.ProxyImpl.proxyTo(ProxyImpl.java:362)
at
com.redskytech.esrp.servlets.ProxyServlet.proxy(ProxyServlet.java:111)
at
com.redskytech.esrp.servlets.ProxyServlet.processEmergency(ProxyServlet.java:95)
at
com.redskytech.esrp.servlets.ProxyServlet.doInvite(ProxyServlet.java:72)
What version of the product are you using? On what operating system?
mss-1.5.0.FINAL-jboss-jdk6-5.1.0.GA
Please provide any additional information below.
The problem is that JainSipUtils#ALLOWED_ADDRESS_SCHEMES does not
contain "urn" scheme. I don't know if adding 'urn' to this list is enough
for proper fix, but simply "fixing" it by adding 'urn' to it solves problem
for us.