diff --git a/src/org/jitsi/impl/neomedia/transform/dtls/DtlsPacketTransformer.java b/src/org/jitsi/impl/neomedia/transform/dtls/DtlsPacketTransformer.java index c4fecd447659ebe03fe43e68e9ef7492d55781df..10f3f48e80631a8d436097357c18b12e9734df25 100644 --- a/src/org/jitsi/impl/neomedia/transform/dtls/DtlsPacketTransformer.java +++ b/src/org/jitsi/impl/neomedia/transform/dtls/DtlsPacketTransformer.java @@ -597,7 +597,9 @@ else if (delta < 0) * In DTLS-SRTP no application data is transmitted * over the DTLS channel. */ - pkt = null; + // FIXME: returns data packets so that they can be + // used by SCTP data channels. + //pkt = null; } } catch (IOException ioe) @@ -951,6 +953,20 @@ private synchronized void stop() } } + /** + * FIXME: no interface used + * Sends application packet over DTLS layer. + * @param packet the buffer that contains packet with application data. + * @param offset offset in the buffer pointing to the beginning of the data. + * @param length length of the data to be sent. + * @throws IOException in case of DTLS transport layer failure. + */ + public void sendOverDtls(byte[] packet, int offset, int length) + throws IOException + { + dtlsTransport.send(packet, offset, length); + } + /** * {@inheritDoc} */