G723_RTP decoding from rtp stream problem

HI,

I've managed to establish rtp connection and send the audio stream in G732 format. The stream is ok, but I can't decode the response from the asterisk server. I use the same way to set the audio format for both sending and receiving:

TrackControl[] tcs = processor.getTrackControls();

if(tcs.length == 0){

return;//should not enter this case

}

TrackControl tc = tcs[0];//we expect one channel only

String codecType = SoftPhoneSettings.audio_codec;

tc.setFormat(new AudioFormat(AudioFormat.G723_RTP, 8000.0, 16, 1, -1, -1, 192, -1.0,null));

tc.setEnabled(true);

If I use the gsm_rtp or ulaw_rtp codec it works just fine on both sides (also decoded right by me), but with G723_RTP I here no voice. And also I got EXCEPTION_ACCESS_VIOLATION on processor.close();

, which is also only if using this codec.

The asterisk server is working fine, but I can't figure out what exactly is the problem here, and why I send it correctly but I can't decode the response. I've also tried with setCodecChain

, but the situation is the same. Can anybody help me with this, because I can't find the source of the problem and more important I still can't solve it. 10x in advance.

[1540 byte] By [luciusa] at [2007-11-26 17:39:20]
# 1
Is there any standard way for retrieving the G723_RTP stream, like using a player or?
luciusa at 2007-7-9 0:07:29 > top of Java-index,Security,Cryptography...