Voicemail on GlusterFS
Hi All, Has anyone tried using voicemail on GlusterFS? GlusteFS looks very promising for building distributed file systems. Pandora Radio recently started using glusterfs http://www.gluster.com/2011/01/05/gluster-to-help-manage-rapid-data-growth-f... I managed to get the recording right for voicemails but retrieving the WAV files fails. FreeSWITCH gives the following error: 2011-03-22 08:54:06.325001 [ERR] mod_sndfile.c:194 Error Opening File [/home/moe/freeswitch/storage/voicemail/default/ 192.168.1.10/1001/msg_02a108cc-549c-11e0-a9f6-9f1a6f4da0f7.wav] [File contains data in an unknown format.] Any thoughts? Thanks Moe
This really sounds more like a Gluster question than anything directly related to FreeSWITCH. I'd try doing basic copies to the file system, and comparing the hashes (md5?), to make sure it properly reads/writes... -Avi p.s. a relevant question for the group, if you want to ask it would still be only indirectly related to FS: "what file systems do you use in production to help you manage scaling storage and/or failover and/or hardware fault tolerance?" On Tue, Mar 22, 2011 at 5:55 PM, Moe Navid <manavid@gmail.com> wrote:
Hi All,
Has anyone tried using voicemail on GlusterFS?
GlusteFS looks very promising for building distributed file systems. Pandora Radio recently started using glusterfs http://www.gluster.com/2011/01/05/gluster-to-help-manage-rapid-data-growth-f...
I managed to get the recording right for voicemails but retrieving the WAV files fails. FreeSWITCH gives the following error:
2011-03-22 08:54:06.325001 [ERR] mod_sndfile.c:194 Error Opening File [/home/moe/freeswitch/storage/voicemail/default/ 192.168.1.10/1001/msg_02a108cc-549c-11e0-a9f6-9f1a6f4da0f7.wav] [File contains data in an unknown format.]
Any thoughts?
Thanks
Moe
_______________________________________________ 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
On Tue, Mar 22, 2011 at 3:55 PM, Moe Navid <manavid@gmail.com> wrote:
Hi All, Has anyone tried using voicemail on GlusterFS? GlusteFS looks very promising for building distributed file systems. Pandora Radio recently started using glusterfs http://www.gluster.com/2011/01/05/gluster-to-help-manage-rapid-data-growth-f... I managed to get the recording right for voicemails but retrieving the WAV files fails. FreeSWITCH gives the following error: 2011-03-22 08:54:06.325001 [ERR] mod_sndfile.c:194 Error Opening File [/home/moe/freeswitch/storage/voicemail/default/192.168.1.10/1001/msg_02a108cc-549c-11e0-a9f6-9f1a6f4da0f7.wav] [File contains data in an unknown format.] Any thoughts? Thanks Moe
We've been using GlusterFS for storing voicemail in a production environment for over a year now but we built a custom voicemail solution rather than using the built-in one. We didn't experience the issue you're referring to so I'm afraid I can't offer any assistance.
Can I ask how your voicemail solution works? Have you looked at the Jester framework at all? http://wiki.freeswitch.org/wiki/Jester On Tue, Mar 22, 2011 at 1:42 PM, Dan Lane <null@invalid.name> wrote:
We've been using GlusterFS for storing voicemail in a production environment for over a year now but we built a custom voicemail solution rather than using the built-in one.
We didn't experience the issue you're referring to so I'm afraid I can't offer any assistance.
-- Kristian Kielhofner
Hi Dan, Thanks for the reply. I'm also working on a custom voicemail. Is your vm implemented in C/C++ and uses GlusterFS' native library or you are just mounting with fuse? On Tue, Mar 22, 2011 at 10:47 AM, Kristian Kielhofner <kris@kriskinc.com>wrote:
Can I ask how your voicemail solution works?
Have you looked at the Jester framework at all?
http://wiki.freeswitch.org/wiki/Jester
On Tue, Mar 22, 2011 at 1:42 PM, Dan Lane <null@invalid.name> wrote:
We've been using GlusterFS for storing voicemail in a production environment for over a year now but we built a custom voicemail solution rather than using the built-in one.
We didn't experience the issue you're referring to so I'm afraid I can't offer any assistance.
-- Kristian Kielhofner
_______________________________________________ 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
On Tue, Mar 22, 2011 at 6:21 PM, Moe Navid <manavid@gmail.com> wrote:
Hi Dan, Thanks for the reply. I'm also working on a custom voicemail. Is your vm implemented in C/C++ and uses GlusterFS' native library or you are just mounting with fuse?
It's written in LUA and we're using FUSE to mount the GlusterFS
Also check out MooseFS. I was very impressed by how quickly I was able to set it up and use it. IIRC, it was < 2 hours to set up six nodes with shared voicemail and sounds files from start to finish. On Wed, Mar 23, 2011 at 2:59 PM, Dan Lane <null@invalid.name> wrote:
On Tue, Mar 22, 2011 at 6:21 PM, Moe Navid <manavid@gmail.com> wrote:
Hi Dan, Thanks for the reply. I'm also working on a custom voicemail. Is your vm implemented in C/C++ and uses GlusterFS' native library or you are just mounting with fuse?
It's written in LUA and we're using FUSE to mount the GlusterFS
_______________________________________________ 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
-- Eliot Gable "We do not inherit the Earth from our ancestors: we borrow it from our children." ~David Brower "I decided the words were too conservative for me. We're not borrowing from our children, we're stealing from them--and it's not even considered to be a crime." ~David Brower "Esse oportet ut vivas, non vivere ut edas." (Thou shouldst eat to live; not live to eat.) ~Marcus Tullius Cicero
Thanks Eliot, I'll give it a try. Moe On Fri, Mar 25, 2011 at 10:39 AM, Eliot Gable <egable+freeswitch@gmail.com>wrote:
Also check out MooseFS. I was very impressed by how quickly I was able to set it up and use it. IIRC, it was < 2 hours to set up six nodes with shared voicemail and sounds files from start to finish.
On Wed, Mar 23, 2011 at 2:59 PM, Dan Lane <null@invalid.name> wrote:
On Tue, Mar 22, 2011 at 6:21 PM, Moe Navid <manavid@gmail.com> wrote:
Hi Dan, Thanks for the reply. I'm also working on a custom voicemail. Is your vm implemented in C/C++ and uses GlusterFS' native library or you are just mounting with fuse?
It's written in LUA and we're using FUSE to mount the GlusterFS
_______________________________________________ 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
-- Eliot Gable
"We do not inherit the Earth from our ancestors: we borrow it from our children." ~David Brower
"I decided the words were too conservative for me. We're not borrowing from our children, we're stealing from them--and it's not even considered to be a crime." ~David Brower
"Esse oportet ut vivas, non vivere ut edas." (Thou shouldst eat to live; not live to eat.) ~Marcus Tullius Cicero
_______________________________________________ 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
Justed installed MooseFS, it's working like a charm :) Thanks On Fri, Mar 25, 2011 at 10:39 AM, Eliot Gable <egable+freeswitch@gmail.com>wrote:
Also check out MooseFS. I was very impressed by how quickly I was able to set it up and use it. IIRC, it was < 2 hours to set up six nodes with shared voicemail and sounds files from start to finish.
On Wed, Mar 23, 2011 at 2:59 PM, Dan Lane <null@invalid.name> wrote:
On Tue, Mar 22, 2011 at 6:21 PM, Moe Navid <manavid@gmail.com> wrote:
Hi Dan, Thanks for the reply. I'm also working on a custom voicemail. Is your vm implemented in C/C++ and uses GlusterFS' native library or you are just mounting with fuse?
It's written in LUA and we're using FUSE to mount the GlusterFS
_______________________________________________ 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
-- Eliot Gable
"We do not inherit the Earth from our ancestors: we borrow it from our children." ~David Brower
"I decided the words were too conservative for me. We're not borrowing from our children, we're stealing from them--and it's not even considered to be a crime." ~David Brower
"Esse oportet ut vivas, non vivere ut edas." (Thou shouldst eat to live; not live to eat.) ~Marcus Tullius Cicero
_______________________________________________ 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
I have noticed that FS has a bug in playback and record APIs where it will fail if there are only 2 slashes in front of the server. This is what I have to do to get it to work- add a third slash. Something to try...hope it helps string filename = VoiceMessage.ConferenceRecordingFilename(ForumExt, ConferenceUUID); if (filename.StartsWith("\\\\"))//server path filename = "\\" + filename;//fs expects 3 slashes for some reason..while dealing with them only 1 is left string msg=fsApi.Execute("conference", ConferenceName + " record " + filename); Kris ----- Original Message ----- From: "Dan Lane" <null@invalid.name> To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Sent: Tuesday, March 22, 2011 10:42 AM Subject: Re: [Freeswitch-users] Voicemail on GlusterFS On Tue, Mar 22, 2011 at 3:55 PM, Moe Navid <manavid@gmail.com> wrote:
Hi All, Has anyone tried using voicemail on GlusterFS? GlusteFS looks very promising for building distributed file systems. Pandora Radio recently started using glusterfs http://www.gluster.com/2011/01/05/gluster-to-help-manage-rapid-data-growth-f... I managed to get the recording right for voicemails but retrieving the WAV files fails. FreeSWITCH gives the following error: 2011-03-22 08:54:06.325001 [ERR] mod_sndfile.c:194 Error Opening File [/home/moe/freeswitch/storage/voicemail/default/192.168.1.10/1001/msg_02a108cc-549c-11e0-a9f6-9f1a6f4da0f7.wav] [File contains data in an unknown format.] Any thoughts? Thanks Moe
We've been using GlusterFS for storing voicemail in a production environment for over a year now but we built a custom voicemail solution rather than using the built-in one. We didn't experience the issue you're referring to so I'm afraid I can't offer any assistance.
not a bug \ is an escape character and you need 2 to imply 1 \\ will reduce to \ by the parser. On Wed, Mar 23, 2011 at 2:26 AM, Kris <kris@livecall.com> wrote:
I have noticed that FS has a bug in playback and record APIs where it will fail if there are only 2 slashes in front of the server. This is what I have to do to get it to work- add a third slash. Something to try...hope it helps
string filename = VoiceMessage.ConferenceRecordingFilename(ForumExt, ConferenceUUID);
if (filename.StartsWith("\\\\"))//server path
filename = "\\" + filename;//fs expects 3 slashes for some reason..while dealing with them only 1 is left
string msg=fsApi.Execute("conference", ConferenceName + " record " + filename);
Kris
----- Original Message ----- From: "Dan Lane" <null@invalid.name> To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Sent: Tuesday, March 22, 2011 10:42 AM Subject: Re: [Freeswitch-users] Voicemail on GlusterFS
On Tue, Mar 22, 2011 at 3:55 PM, Moe Navid <manavid@gmail.com> wrote:
Hi All, Has anyone tried using voicemail on GlusterFS? GlusteFS looks very promising for building distributed file systems. Pandora Radio recently started using glusterfs http://www.gluster.com/2011/01/05/gluster-to-help-manage-rapid-data-growth-f... I managed to get the recording right for voicemails but retrieving the WAV files fails. FreeSWITCH gives the following error: 2011-03-22 08:54:06.325001 [ERR] mod_sndfile.c:194 Error Opening File [/home/moe/freeswitch/storage/voicemail/default/192.168.1.10/1001/msg_02a108cc-549c-11e0-a9f6-9f1a6f4da0f7.wav] [File contains data in an unknown format.] Any thoughts? Thanks Moe
We've been using GlusterFS for storing voicemail in a production environment for over a year now but we built a custom voicemail solution rather than using the built-in one.
We didn't experience the issue you're referring to so I'm afraid I can't offer any assistance.
_______________________________________________ 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
participants (7)
-
Anthony Minessale
-
Avi Marcus
-
Dan Lane
-
Eliot Gable
-
Kris
-
Kristian Kielhofner
-
Moe Navid