Hi friends. I am using Asterisk like voicemail of a great system with many users, How do I can get statistics of each box in the voicemail system? something like space, number of messages, etc. A lot of thanks. -- Linux User Registered #232544 Jabber : pepo at jabberes.org Ekiga : pepo at ekiga.net ICQ : 337889406 GnuPG-key : www.keyserver.net ----------------------------------------------- dum loquimur, fugerit invida aetas: carpe diem, quam minimum credula postero.
Pepo wrote:> Hi friends. > > I am using Asterisk like voicemail of a great system with many users, How do > I can get statistics of each box in the voicemail system? something like > space, number of messages, etc. > > A lot of thanks. >I am not aware of anything directly in Asterisk, but a simple shell script would work well. Just walk the directory tree and get the results of a "du" command for each user. Then you could call it from cron each night or once a week for example. "man du" and "The Advanced Bash Scripting Guide" should do the trick! Alan -- The way out is open! http://www.theopensourcerer.com
James FitzGibbon
2007-Oct-16 13:22 UTC
[asterisk-users] Control space of each voicemail box
On 10/15/07, Pepo <pmancheno at gmail.com> wrote:> I am using Asterisk like voicemail of a great system with many users, How > do > I can get statistics of each box in the voicemail system? something like > space, number of messages, etc.The only CLI commands are 'voicemail show zones' and 'voicemail show users'; the latter shows the number of new messages for each box, but not the total. So as the previous poster described, shell tools are your friend. If you're storing voicemail using IMAP, then this becomes either easier or harder (depending on your experience with email). You can get more details about the contents of a mailbox using the IMAP protocol, but depending on the implementation you might get less info about the actual bytes taken up in backend storage. -- j. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20071016/d1114239/attachment.htm