RE: [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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason BrownSent: Lunes, 11 de Abril de 2005 07:19 a.m.To: asterisk-users@lists.digium.comSubject: [Asterisk-Users] Multiple Servers and 1 Central Voicemail MWI works just fine. ___ 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
Re: [Asterisk-Users] 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? --Luki ___ 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
Re: [Asterisk-Users] Multiple Servers and 1 Central Voicemail
On Tuesday 12 April 2005 11:49 am, Luki wrote: 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. -josiah -- Josiah Bryan IT Coordinator Productive Concepts, Inc. [EMAIL PROTECTED] (765) 964-6009, ext. 224 ___ 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
Re: [Asterisk-Users] Multiple Servers and 1 Central Voicemail
Hi all, what about 1) link the /etc/asterisk/voicemail.conf to /mnt/nfs/asterisk/etc/asterisk/voicemail.conf 2) link /var/spool/asterisk/voicemail to /mnt/nfs/asterisk/var/spool/asterisk/voicemail It works fine for me. BTW: if you chroot asterisk daemon remember to set the user UID to the right one on each asterisk server. Josiah Bryan wrote: On Tuesday 12 April 2005 11:49 am, Luki wrote: 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. -josiah ___ 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
Re: [Asterisk-Users] Multiple Servers and 1 Central Voicemail
Josiah Bryan wrote: 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. Does * use any form of locking to maintain the integrity of the sequence number for voicemails in a given mailbox? What happens if two different servers want to record a voicemail in the same mailbox at the same time, would they both grab the same next highest number to use? -Johnathan ___ 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
[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. ___ 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
RE: [Asterisk-Users] Multiple Servers and 1 Central Voicemail
What about MWI config on sip.conf or iax.conf? [EMAIL PROTECTED] All you users have the same contexts for checking MWI? By context, does it mean the dialing context or just the [] context used on the voicemail.conf file? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Brown Sent: Martes, 12 de Abril de 2005 12:56 p.m. To: asterisk-users@lists.digium.com Subject: [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. ___ 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
Re: [Asterisk-Users] Multiple Servers and 1 Central Voicemail
Jason Brown wrote: Trust me though, I promise, 1 central VM store does work and work well in an asterisk environment. But I haven't seen addressed the issue of two or more servers sharing this central VM store, when running the Voicemail application. Sure, MWI should have no problems in the scenario you described, but what about two or more Voicemail applications running on different servers, sharing the /mnt/asterisk/vm tree, and simultaneously adding and removing voicemails from a users mailbox? What if a user is checking/deleting voicemail on one * server while another person is dialed in a different server, leaving him a voicemail? Does * handle this safely? There's all sorts of issues of contention I can think of, and all of them have well-known solutions based on file locking. But does * use them? I'm not trying to over-complicate things. Someone proposed sharing a voicemail filesystem hierarchy between multiple * servers and I'm wondering if * has been programmed to safely handle the concurrency problems that would occur. Guess I'll go digging through the source code. -Johnathan ___ 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
[Asterisk-Users] Multiple Servers and 1 Central Voicemail
MWI works just fine. ___ 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
[Asterisk-Users] Multiple Servers and 1 Central Voicemail
Well I am doing this with success. Dont now that its necessarily the right waywhat I did was create an NFS share on the machine that I wanted to store all of the voicemail onthen changed asterisk.conf spool directory to the appropriate /mnt drivemove 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
Re: [Asterisk-Users] Multiple Servers and 1 Central Voicemail
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 [EMAIL PROTECTED] wrote: Well I am doing this with success. Don't now that it's necessarily the right waywhat I did was create an NFS share on the machine that I wanted to store all of the voicemail onthen changed asterisk.conf spool directory to the appropriate /mnt drivemove 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 ___ 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