[Asterisk-Dev] voicemail message number limits
rob at networkip.net
Sat Jul 24 19:34:00 MST 2004
Back on the original subject of message limits...
There does appear to be a limit of 255 messages per folder due to the way in
which the sip_send_mwi_to_peer() function in chan_sip.c does a comparison to
see if the mwi message needs to be sent. The value for peer->lastmsgssent
within that function is created by rolling the newmsgcount left 8 bits, and
or'ing in the oldmsgcount:
peer->lastmsgssent = ((newmsgs << 8) | (oldmsgs));
Then again, the peer->lastmsgssent is really just a hash to indicate if the
NOTIFY needs to be sent or not, it isn't really a bit packed integer
containing two values. Make of it what you will.
----- Original Message -----
From: "Tilghman Lesher" <tilghman at mail.jeffandtilghman.com>
To: <asterisk-dev at lists.digium.com>
Sent: Saturday, July 24, 2004 4:03 PM
Subject: Re: [Asterisk-Dev] voicemail message number limits
> 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.
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> To UNSUBSCRIBE or update options visit:
More information about the asterisk-dev