Author Topic: how to restore the audio data without udp header  (Read 1078 times)

mingg

  • Newbie
  • *
  • Posts: 8
    • View Profile
how to restore the audio data without udp header
« on: March 28, 2014, 12:08:50 AM »
The packets of audio data transported between 2 yate clients should be in this form: [mac header][ip header][udp header][rtpRawPacket]
I'm making an experiment, I want to transport the audio data in this form: [mac header][MPLS header][rtpRawPacket]

I find out that: the yate-client5(http://voip.null.ro/tarballs/yate5/yate-5.2.0-1.tar.gz) send out the rtp packets using udp(using the function Socket::sendTo). In order to send out a raw rtp packet encapsulated in an ether frame, I overload the sendTo function in the class Socket. I send out the frame successfully.(in clientA)

and in clientB, I overload the recvFrom function in the class Socket, and I get the Frame, de-encapsulate the raw Rtp packet, but I don't know which funtion or object should get this raw rtp packet to restore the audio data. Since my clientB cannot restore the audio data, now it works sliently.

Does anyone know how to solve this problem?