Package org.jnetpcap.protocol.voip

Examples of org.jnetpcap.protocol.voip.Rtp


   *
   * @throws IOException
   *           Signals that an I/O exception has occurred.
   */
  public void SKIP_testRtpAudioExtract() throws IOException {
    Rtp rtp = new Rtp();

    try {
      for (PcapPacket packet : super.getIterable(SIP_G711)) {
        assertNotNull(packet);
        if (packet.hasHeader(rtp)) {

          if (rtp.hasPostfix() || rtp.paddingLength() != 0) {
            System.out.println(rtp);
          }

          FileOutputStream out = getOutput(rtp.ssrc());

          out.write(rtp.getPayload());
        }
      }
    } catch (Exception e) {
      e.printStackTrace();
    }
View Full Code Here

TOP

Related Classes of org.jnetpcap.protocol.voip.Rtp

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.