Delete unused voice mail files
Hello, I'm trying to find a good solution for distributed voice mail storage. Multi-master database seems to work well for the metadata, but I have yet to find an NFS based storage system that can do replication between sites, with both systems in use. I'm thinking of having a script fire after a message is left that will replicated new messages to all other systems. Since the filenames are unique, there is no danger in replacing other files, but messages would never be deleted. Is there a way to have FreeSWITCH compare the list of messages in the database with the voice mail directory and delete any files that are not referenced, or is that better done externally by looking through the database? Likewise, if someone knows of some kind of NFS server that will automatically copy or delete files to a mirrored system, that would be a better solution. The catch seems to be that I want to be able to read or write to EITHER system in the pair. Thanks! -Tim
Are you using master-master or master-standby... If the later, why not just use rsync On 10/28/13 4:23 PM, "Tim St. Pierre" <fs-list@communicatefreely.net> wrote:
Hello,
I'm trying to find a good solution for distributed voice mail storage.
Multi-master database seems to work well for the metadata, but I have yet to find an NFS based storage system that can do replication between sites, with both systems in use.
I'm thinking of having a script fire after a message is left that will replicated new messages to all other systems. Since the filenames are unique, there is no danger in replacing other files, but messages would never be deleted.
Is there a way to have FreeSWITCH compare the list of messages in the database with the voice mail directory and delete any files that are not referenced, or is that better done externally by looking through the database?
Likewise, if someone knows of some kind of NFS server that will automatically copy or delete files to a mirrored system, that would be a better solution. The catch seems to be that I want to be able to read or write to EITHER system in the pair.
Thanks!
-Tim
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Ken http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org G+ ClueCon : http://fs0.us/cluecon-gplus FB ClueCon : http://fs0.us/cluecon-fb G+ FreeSwitch : http://fs0.us/freeswitch-gplus FB FreeSWITCH : http://fs0.us/freeswitch-fb Twitter : @FreeSWITCH_WIRE irc.freenode.net #freeswitch
participants (2)
-
Ken Rice
-
Tim St. Pierre