<I am currently
working on VoIP.
<Actually I want
to capture the audio data over the network.
<I have used
Ethereal Software for the same.
<
<I have captured
the audio data in the form of UDP packets & have decoded those to
RTP.
<
<Now I would like
to know how to convert those packets in an audio .wav file or other file
in
< a format
suitable that can be given as an input to the rtpplay.exe
Ethereal can save
payload in au-file ("sun audio format") for G.711 A-law and G.711 U-law RTP
streams.
You do this from
Statistics/RTP/Stream analysis.../Save payload...
Ethereal can save
RTP streams in rtpdump format for any codec.
You do thi from
Statistic/RTP/Show all streams../Save As
You can then use
rtpplay to replay the audio/video stream towards JMF JMstudio, QuickTime Player
or similar,
Another thing could
be to make a separate program that converts the payload data to wav-file or
similar.
JMF JMstudio
supports e.g. the following codecs (if I remember correct): G.711 U-law, H.263,
H.261, GSM, G.723, ...
QuickTime Player
supports e.g. the following codecs (if I remember correct): G.711 A-law, G.711
U-law, H.261, H.263-2000, AMR, MPEG-4, ...
You can use an
sdp-file to make QuickTime listening on a certain port and specify the mapping
between payload type and codec.
You can find some
more information if you search on "rtpplay" on the Ethereal site or
"rtpplay ethereal" in Google.