Status: New
Owner: ----
Labels: Type-Defect Priority-Medium Component-Sip-Servlets MSS-3.0.0.FINAL
Roadmap-Fix
New issue 236 by [email protected]: NullPointerException when calling
SipServletRequestImpl.send() with bad sip URI
http://code.google.com/p/sipservlets/issues/detail?id=236
What steps will reproduce the problem?
Call send() on a SipServletRequestImpl destined for a bad sip URI of the
form "sip:1.2.3.4;user=phone" i.e. the URI has a user=phone parameter but
no user part containing a phone number.
What is the expected output? What do you see instead?
I would expect either the send to fail indicating a bad URI or possibly the
send to be successful (ignoring the user=phone paraemter in the absence of
an actual phone number say).
Instead, the following exception occurs:
java.lang.NullPointerException
at
org.mobicents.ext.javax.sip.dns.DefaultDNSServerLocator.convertPhoneNumberToDomainName(DefaultDNSServerLocator.java:184)
at
org.mobicents.ext.javax.sip.dns.DefaultDNSServerLocator.lookupSipUri(DefaultDNSServerLocator.java:121)
at
org.mobicents.ext.javax.sip.dns.DefaultDNSServerLocator.getSipURI(DefaultDNSServerLocator.java:106)
at
org.mobicents.ext.javax.sip.dns.DefaultDNSServerLocator.locateHops(DefaultDNSServerLocator.java:90)
at
org.mobicents.servlet.sip.message.SipServletRequestImpl.send(SipServletRequestImpl.java:986)
...
What version of the product are you using? On what operating system?
MSS 2.0.0 on CentOS 5.9
Please provide any additional information below.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
---
You received this message because you are subscribed to the Google Groups "mobicents-all-issues-changes" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.