jain-sip icon indicating copy to clipboard operation
jain-sip copied to clipboard

If createListeningPoint fail to bind SipStack keeps listening point

Open 9a4gl opened this issue 7 years ago • 0 comments

If you call SipStack.createListeningPoint with IP address not on your host, sip stack will keep listening point because

this.listeningPoints.put(key, lip);

is executed and then

messageProcessor.start();

throws IOException

Looks this happen only for TCP. Another issue is that after that listening point cannot be removed as it throws null pointer exception in SipStackImpl.deleteListeningPoint() -> removeMessageProcessor -> oldMessageProcessor.stop() -> TcpMessageProcessor.stop() -> sock.close() as sock is null.

BR, Tihomir

9a4gl avatar Mar 30 '17 12:03 9a4gl