JNec / sipservlets

Automatically exported from code.google.com/p/sipservlets
0 stars 0 forks source link

NullPointerException when calling SipServletRequestImpl.send() with bad sip URI #236

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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.

Original issue reported on code.google.com by edward.m...@telsis.com on 6 Sep 2013 at 2:34

GoogleCodeExporter commented 8 years ago

Original comment by jean.deruelle on 6 Nov 2013 at 12:11

GoogleCodeExporter commented 8 years ago
Fixed in 
https://code.google.com/p/jain-sip/source/detail?r=61fccc5b33197ce34dc60b88718bb
b5eb7e993e0&repo=ext

Original comment by jean.deruelle on 6 Nov 2013 at 12:15

GoogleCodeExporter commented 8 years ago
Fixed in 
https://code.google.com/p/jain-sip/source/detail?r=61fccc5b33197ce34dc60b88718bb
b5eb7e993e0&repo=ext

Original comment by jean.deruelle on 6 Nov 2013 at 12:15

GoogleCodeExporter commented 8 years ago

Original comment by jean.der...@telestax.com on 25 Aug 2014 at 10:52