jain-sip
jain-sip copied to clipboard
If createListeningPoint fail to bind SipStack keeps listening point
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