amitpahune / jain-sip

Automatically exported from code.google.com/p/jain-sip
0 stars 0 forks source link

SIPS Uris with parameter transport=TCP looking for TCP channels #154

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
We have an environment where the IMS is returning SIPS uris with transport=TCP 
instead of SIP uris with transport TLS. It's better to see it, the IMS is 
returning <sips:+34XXXXXX@mobicents.org;transport=tcp> instead of 
<sip:34XXXXXX@mobicents.org;transport=tls>.

It happened with INVITE dialogs. We send the INVITE, receive a 200 OK including 
a Record-Route and a Contact with this SIPS uris. We try to create the ACK and 
then send it.

It failed in the class gov.nist.javax.sip.stack.SipDialog and we saw this error 
in the log: 
"Cannot create ACK - no ListeningPoint for transport towards next hop found: 
TCP"

javax.sip.SipException: Cannot create ACK - no ListeningPoint for transport 
towards next hop found:TCP
    at gov.nist.javax.sip.stack.SIPDialog.createAck(SIPDialog.java:3119)
    at test.unit.gov.nist.javax.sip.stack.tls.Shootist.processResponse(Shootist.java:153)
    at gov.nist.javax.sip.EventScanner.deliverEvent(EventScanner.java:296)
    at gov.nist.javax.sip.EventScanner.run(EventScanner.java:519)
    at java.lang.Thread.run(Thread.java:745)
java.lang.RuntimeException: Unexpected internal error  Cannot create ACK - no 
ListeningPoint for transport towards next hop found:TCP
    at gov.nist.core.InternalErrorHandler.handleException(InternalErrorHandler.java:45)
    at gov.nist.javax.sip.stack.SIPDialog.createAck(SIPDialog.java:3192)
    at test.unit.gov.nist.javax.sip.stack.tls.Shootist.processResponse(Shootist.java:153)
    at gov.nist.javax.sip.EventScanner.deliverEvent(EventScanner.java:296)
    at gov.nist.javax.sip.EventScanner.run(EventScanner.java:519)
    at java.lang.Thread.run(Thread.java:745)
Caused by: javax.sip.SipException: Cannot create ACK - no ListeningPoint for 
transport towards next hop found:TCP
    at gov.nist.javax.sip.stack.SIPDialog.createAck(SIPDialog.java:3119)
    ... 4 more
Exception in thread "EventScannerThread" junit.framework.AssertionFailedError: 
unexpected exception
    at junit.framework.Assert.fail(Assert.java:47)
    at test.unit.gov.nist.javax.sip.stack.tls.Shootist.processResponse(Shootist.java:174)
    at gov.nist.javax.sip.EventScanner.deliverEvent(EventScanner.java:296)
    at gov.nist.javax.sip.EventScanner.run(EventScanner.java:519)
    at java.lang.Thread.run(Thread.java:745)

Original issue reported on code.google.com by jean.deruelle on 24 Feb 2015 at 1:24

GoogleCodeExporter commented 8 years ago
https://java.net/jira/browse/JSIP-492

Original comment by jean.deruelle on 24 Feb 2015 at 1:27

GoogleCodeExporter commented 8 years ago
This issue was updated by revision 1bbdd1bf49a0.

JSIP-492 #Resolve-Issue Fixed #comment fix + non regression test

(cherry picked from commit ffe881c053ec2baad1c8fbb98ce44729e1e8b52c)

Original comment by jean.der...@telestax.com on 24 Feb 2015 at 1:39

GoogleCodeExporter commented 8 years ago

Original comment by jean.deruelle on 24 Feb 2015 at 1:39

GoogleCodeExporter commented 8 years ago

Original comment by jean.deruelle on 24 Feb 2015 at 2:08

GoogleCodeExporter commented 8 years ago
This issue was updated by revision 654ad9afcf5c.

commiting fix for jain sip ext

(cherry picked from commit 8e7ca282361a270266d7a37d9e2f202ad6892ec9)

Original comment by jean.der...@telestax.com on 24 Feb 2015 at 2:17

GoogleCodeExporter commented 8 years ago
Tied to https://telestax.atlassian.net/browse/JSIPEXT-2 as well

Original comment by jean.deruelle on 24 Feb 2015 at 2:19