[Asterisk-Dev] MeetMe assumes 20ms...

Greg Boehnlein damin at nacs.net
Fri Nov 25 08:02:01 MST 2005


On Thu, 24 Nov 2005, Dan Austin wrote:

> The change from careful_write to write between version 1.2.0-beta1 and
> 1.2.0 did not
> take into consideration that a caller might be using a packetization of
> more than 20ms.
> 
> I've been working on making app_meetme handle different size audio
> frames, and have
> had some success.  The last obsticle is setting up the read buffer.  My
> 'C' is quite rusty,
> and I cannot figure out a way to determine the size of the read buffer.
> 
>         char __buf[CONF_SIZE + AST_FRIENDLY_OFFSET];
>         char *buf = __buf + AST_FRIENDLY_OFFSET;
> 
> What I hoped to do is determine the size of buf, and if needed use
> realloc to grow/shrink
> the read buffer to the proper size.
> 
> Any hints would be appreciated, even a 'take another class in C'

This is also being discussed on the Bugtracker at:
http://bugs.digium.com/view.php?id=5697

-- 
    Vice President of N2Net, a New Age Consulting Service, Inc. Company
         http://www.n2net.net Where everything clicks into place!
                             KP-216-121-ST






More information about the asterisk-dev mailing list