From: Steve K. <st...@st...> - 2004-10-18 18:09:42
|
Dan wrote: > Hi Steve, > >> ----- Original Message ----- From: Steve Kann >> Michael Van Donselaar wrote: >> On Mon, 18 Oct 2004 12:10:50 -0400, Steve Kann <st...@st...> >> wrote: > > >> Dan: Try using something other than app_echo: perhaps app_echo is >> sending frames to you in the wrong format or something? Do you get that >> message repeatedly, or not? > > > Tryied with echo, voice prompts, ATA186 (SIP), Cisco 7960 (SIP), all > with the same > result on ulaw. > >> Also, just to make it easy, I'd copy the ilbc directory from asterisk >> CVS HEAD, instead of decoding it yourself, just to make sure that you're >> extracting it properly. > > > iLBC works for me now very well. > > > Anything else to try with ulaw? Use ethereal to see what the timestamps and frame counts look like for uLaw, I guess. I'd like to know why it works for me, but not for you, and to see if it works for others. asterisk uLaw should give you 50 20ms frames per second.. You could also add a debug statement to decode_audio in audio_encode.c, printing a message each time you get a frame to decode, something like: fprintf(stderr, "Decoding frame, len=%d, samples=%d, format=%d\n", insize, outsize, format); It should print 50 of these per second, with len=160, samples=160, format=(whatever uLaw is). -SteveK |