Jason Brown
2005-Apr-10 11:01 UTC
[Asterisk-Users] Multiple Servers and 1 Central Voicemail
Well I am doing this with success. Don't now that it's necessarily the "right way".what I did was create an NFS share on the machine that I wanted to store all of the voicemail on.then changed asterisk.conf spool directory to the appropriate /mnt drive.move all the folders that were in /var/asterisk to /mnt/asterisk and problem solved. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050410/5dc05f4a/attachment.htm
How about MWI? did you get it to work? I was about to offer the same solution, using NFS :) On Apr 10, 2005 2:01 PM, Jason Brown <jason@bpns.net> wrote:> > > > Well I am doing this with success. Don't now that it's necessarily the > "right way"?what I did was create an NFS share on the machine that I wanted > to store all of the voicemail on?then changed asterisk.conf spool directory > to the appropriate /mnt drive?move all the folders that were in > /var/asterisk to /mnt/asterisk and problem solved. > > > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-users > >
Jason Brown
2005-Apr-11 05:19 UTC
[Asterisk-Users] Multiple Servers and 1 Central Voicemail
MWI works just fine. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050411/e1108c4e/attachment.htm
Anton Krall
2005-Apr-12 06:44 UTC
[Asterisk-Users] Multiple Servers and 1 Central Voicemail
But voicemailboxes have to exists on all asterisk servers right? Also, what happens if for example, the user is accessing his VMB on server 1 and changes his password, then travel to where server 2 is and tries to access his VMB? the config on server2 would still have the old one.... so you need to sync voicemail.conf on all servers too ... _____ From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Jason Brown Sent: Lunes, 11 de Abril de 2005 07:19 a.m. To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] Multiple Servers and 1 Central Voicemail MWI works just fine. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050412/57aebaeb/attachment.htm
Noah Miller
2005-Apr-12 10:32 UTC
[Asterisk-Users] Re: Multiple Servers and 1 Central Voicemail
>>> Also, what happens if for example, the user is accessing his VMB >>> on server 1 and changes his password, then travel to where server >>> 2 is and tries to access his VMB? the config on server2 would >>> still have the old one.... so you need to sync voicemail.conf on >>> all servers too ... >> >> If you use the realtime config via a DB, it should be OK. But I still >> don't think that MWI will work properly if a message is left on server >> A and user is actually registered on server B, which is NOT on the >> same network and hence does NOT share the same voice mail spool. How >> will B know there is a message left on A for the same user? Does >> realtime share this info too? And if so, how does the message get >> retrieved if B does not have access to files on server A, where the >> actual message is? > > Why not just NFS mount the /var/spool/asterisk/voicemail directory > from a > central server? That way, all servers share the same spool and the MWI > will > get reflected on all servers.I'm sure that works well when the machines are together on one network. What happens, though, when the machines are in geographically disparate locations, your voicemail volume is quite large, and you don't have ultra-high bandwidth links between them? I haven't tried it, but I imagine the performance of the voicemail app wouldn't be so good on the remote servers. - Noah
Jason Brown
2005-Apr-12 10:55 UTC
[Asterisk-Users] Multiple Servers and 1 Central Voicemail
I think you guys are making this out to be tougher than it actually is. I created an NFS share on a machine called asterisk. Then I created a folder on my asterisk box called /mnt/asterisk. Then I mounted the NFS share on the asterisk box to the asterisk share. Then I moved the directories that were in the local asterisk machine /var/spool/asterisk (what are there - incoming, outgoing, voicemail, and another) to the /mnt/asterisk folder. The hack up /etc/asterisk/asterisk.conf and change the spool directory to /mnt/asterisk. Asterisk doesn't know any better, it passes MWI info based on what's in the /spool/voicemail/vm-context directory, it don't care where it is as long as you told it where the spool directory is located in asterisk.conf. As for people with more than 1 server, admittedly, I don't use asterisk realtime db. I use MySQL DB that writes configs to the flat files because the consensus was that realtime MySQL wasn't reliable. In my network, the config files are rewritten every 5 minutes from db by a cron job, with asterisk getting a reload command. Once it get to the multiple server issuue I am just going to expand my provisioning script so that I can pick which server to provision asterisk box X or ata Y to. Then each server will write configs to the flatfiles from MySQL based on server. Trust me though, I promise, 1 central VM store does work and work well in an asterisk environment. -------------- next part -------------- I think you guys are making this out to be tougher than it actually is. I created an NFS share on a machine called asterisk. Then I created a folder on my asterisk box called /mnt/asterisk. Then I mounted the NFS share on the asterisk box to the asterisk share. Then I moved the directories that were in the local asterisk machine /var/spool/asterisk (what are there - incoming, outgoing, voicemail, and another) to the /mnt/asterisk folder. The hack up /etc/asterisk/asterisk.conf and change the spool directory to /mnt/asterisk. Asterisk doesn't know any better, it passes MWI info based on what's in the /spool/voicemail/vm-context directory, it don't care where it is as long as you told it where the spool directory is located in asterisk.conf. As for people with more than 1 server, admittedly, I don't use asterisk realtime db. I use MySQL DB that writes configs to the flat files because the consensus was that realtime MySQL wasn't reliable. In my network, the config files are rewritten every 5 minutes from db by a cron job, with asterisk getting a reload command. Once it get to the multiple server issuue I am just going to expand my provisioning script so that I can pick which server to provision asterisk box X or ata Y to. Then each server will write configs to the flatfiles from MySQL based on server. Trust me though, I promise, 1 central VM store does work and work well in an asterisk environment.