I can't seem read large SIP packet (> MTU) using SIP RI 1.0/1.0.1. When I call openContentInputStream(), I get
java.io.IOException: no input available: no input available
Even the Content-Length returns zero. This really baffles me because the packet sniffer shows that the packet has been delivered correctly to the receiver.
A snippet my code is attached below. Any pointer will be greatly appreciated.
SipServerConnection conn = notifier.acceptAndOpen();
sender = conn.getHeader("From");
receiver = conn.getHeader("To");
contentLength = conn.getHeader("Content-Length");
len = Integer.parseInt(contentLength);
contentType = conn.getHeader("Content-Type");
InputStream is = conn.openContentInputStream();