From: Dmitry M. <ar...@od...> - 2004-06-22 14:17:48
|
On Tuesday 22 June 2004 17:01, Steve Kann wrote: > Thanks Dmitry. > > It was also wrong in the IAX1 case, although I don't even know if the > IAX1 stuff even compiles anymore. > As I know its not really supported in Asterisk. So is there a sense to keep it in iaxclient lib? > Just out of curiosity, what are you doing that actually causes this case > to happen? It would only happen, if you were using frames > 20ms long. > I have the following setup: asterisk1 -- iax2 ilbc (1)-- asterisk2 -- iax2 gsm (2)-- iaxclient On the leg #2 packets goes from asterisk to iaxclient with 20,40,20,40ms... timestamps. Packets sizes are 33,66,33,66...etc. Dmitry. > I'm actually thinking of making an option for iaxclient to use larger > frames, because it uses much less bandwidth, but the tradeoff is > slightly longer latency, and also more perceptible glitches when there's > a frame dropped, etc. > > > -SteveK > > Dmitry Mishchenko wrote: > >Hello, > > > >In iaxclient_lib.c in handle_audio_event sub there is a code: > > > >#ifdef IAXC_IAX2 > > while(total_consumed < e->datalen) { > > cur = decode_audio(call, fr, > > e->data,e->datalen-total_consumed, > > iEncodeType); > >#else > > > >It should be replaced with: > > > >#ifdef IAXC_IAX2 > > while(total_consumed < e->datalen) { > > cur = decode_audio(call, fr, > > e->data+total_consumed,e->datalen-total_consumed, > > iEncodeType); > >#else > > > >It gives more clear audio when "while" construction actually working. > > > >Dmitry > > > > > > > >------------------------------------------------------- > >This SF.Net email sponsored by Black Hat Briefings & Training. > >Attend Black Hat Briefings & Training, Las Vegas July 24-29 - > >digital self defense, top technical experts, no vendor pitches, > >unmatched networking opportunities. Visit www.blackhat.com > >_______________________________________________ > >Iaxclient-devel mailing list > >Iax...@li... > >https://lists.sourceforge.net/lists/listinfo/iaxclient-devel > > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & Training. > Attend Black Hat Briefings & Training, Las Vegas July 24-29 - > digital self defense, top technical experts, no vendor pitches, > unmatched networking opportunities. Visit www.blackhat.com > _______________________________________________ > Iaxclient-devel mailing list > Iax...@li... > https://lists.sourceforge.net/lists/listinfo/iaxclient-devel |