[Asterisk-Dev] voicemail message number limits

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Sat Jul 24 14:03:17 MST 2004


On Saturday 24 July 2004 15:32, dking at pimpsoft.com wrote:
> On 23 Jul 2004 at 10:16, Tilghman Lesher wrote:
> > On Friday 23 July 2004 06:45, mattf wrote:
> > > All you have to do is edit the /asterisk/apps/app_voicemail.c
> > > file and change this line:
> > > #define MAXMSG 100
> > >
> > > change it to whatever you want, we usually change it to 999,
> > > then just recompile and install and you're good.
> >
> > If you reexamine the code, you'll find that a MAXMSG of 999
> > actually limits you one less than necessary -- owing to the fact
> > that the first message is message 0, not message 1.  Just go with
> > a MAXMSG of 1000.
> 
> Or just #include the limits.h for the os in question and use the
> max value possible for the chosen data type. That sounds like a
> idea to me.

It's a rather stupid idea.  The maximum value for that data type would
consume 4 GB of memory on a 32-bit architecture and far more on a
64-bit architecture.  Please go read the code and understand what
you're talking about, before you go make another stupid suggestion.

-- 
Tilghman



More information about the asterisk-dev mailing list