Java Rockx
2004-Nov-24 22:22 UTC
[Asterisk-Users] Changing Asterisk Voicemail Storage Location
Hi All. Can anyone tell me how difficult it would be to change the way asterisk stores/retrieves user messages as follows? Currently mailboxes are in /var/spool/asterisk/voicemail/{context} But I need to store messages in a hash to limit the number of directories per context. All mailbox extensions are the user's 10-digit phone number (aka, DID). The parts of a DID are as follows 407 555 1212 ^ ^ ^ NPA NXX LINE So my hashing would look like this /var/spool/asterisk/voicemail/{context}/{npa}/{nxx}/{line} And in the {line} directory we would have the usual Asterisk files/directories for inbox, etc. We're looking at a large number of mailboxes and this would give us a maximum of 10000 mailboxes per directory - which plays nice with the Linux file system. So how much of Asterisk does this affect? I'm only using Asterisk for voicemail and I'm using SIP eXpress Router for everything else. Regards, Paul __________________________________ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail
Adam Goryachev
2004-Nov-25 02:03 UTC
[Asterisk-Users] Changing Asterisk Voicemail Storage Location
On Thu, 2004-11-25 at 16:22, Java Rockx wrote:> Can anyone tell me how difficult it would be to change the way asterisk stores/retrieves user > messages as follows? > > Currently mailboxes are in > /var/spool/asterisk/voicemail/{context} > > But I need to store messages in a hash to limit the number of directories per context. All mailbox > extensions are the user's 10-digit phone number (aka, DID). The parts of a DID are as follows > So my hashing would look like this > > /var/spool/asterisk/voicemail/{context}/{npa}/{nxx}/{line} > > And in the {line} directory we would have the usual Asterisk files/directories for inbox, etc. > > We're looking at a large number of mailboxes and this would give us a maximum of 10000 mailboxes > per directory - which plays nice with the Linux file system.You might look at alternative filesystem formats. "Linux file system" is not any file system I've heard of. Most likely you are referring to the filesystem that you get by default when you do an install and just click next without understanding the option each step of the way. Specifically, look at reiserfs, it is very good at handling directories with large number of files, as frequantly seen in mail servers using maildir format etc... I'm not sure I understand all the details, but reiserfs should be equivalent in speed to a DB.... at least, I've frequantly seen it referred to in that way back when I used to subscribe to their mailing list. I suppose you might ask the question, is it faster to parse the mailbox name in userspace and then look up the correct file, or let the kernel parse the name, and find the file for you.... Hope this helps you... Regards, Adam
Paul Fielding
2004-Dec-04 14:25 UTC
[Asterisk-Users] Using Pocket PC over cell phone connection?
Anyone tried using a pocket pc with sjphone or x-ten over a cell phone connection? I'd like to be able to connect using my cell phone data connection, but so far I've come across bandwidth constraints - The closest to success I've found so far is to use the GSM codec, but even then the bandwidth seems to much for it. Anyone had any luck? Paul