<div dir="ltr"><div><div><div>Jonathan, i just wanted to give my feedback in regaurds to this, i recommend going a different route, such as GlusterFS or writing your own voicemail in lua (really its not that hard!).<br><br></div>The issues that i ran into while trying to use http was that freeswitch wasn&#39;t able to check that the file existed and it would break certain functions such as the email voicemail and with things such as greetings, it would end up either creating empty directories or not returning success when saving.<br><br></div>I actually opened an issue about this a while back: <a href="https://freeswitch.org/jira/browse/FS-7280">https://freeswitch.org/jira/browse/FS-7280</a>  there was some discussion on how it could be handled, however i think the easier route is to either use a shared filesystem setup like GlusterFS or to write your own voicemail module.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 14, 2016 at 10:06 AM, Nathan Neulinger <span dir="ltr">&lt;<a href="mailto:nneul@mst.edu" target="_blank">nneul@mst.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I use a gluster filesystem as backend for storage on my FS cluster for media files, logs, etc.<br>
<br>
-- Nathan<br>
<span class=""><br>
On 04/14/2016 10:01 AM, Jonathan Hunter wrote:<br>
&gt; Hi Michael,<br>
&gt;<br>
&gt; I appreciate the response, where in the code would I need to be looking?<br>
&gt;<br>
&gt; Also how are other people doing this? I presume they do some file sync do they to ensure all media servers have the same<br>
&gt; files?<br>
&gt;<br>
&gt; Many thanks<br>
&gt;<br>
&gt; Jon<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ---------- Forwarded message ----------<br>
</span><span class="">&gt; From: *Michael Jerris* &lt;<a href="mailto:mike@jerris.com">mike@jerris.com</a> &lt;mailto:<a href="mailto:mike@jerris.com">mike@jerris.com</a>&gt;&gt;<br>
&gt; Date: Thu, Apr 14, 2016 at 3:32 PM<br>
&gt; Subject: Re: [Freeswitch-users] Voicemail message File Retrieval on Remote Server<br>
</span><span class="">&gt; To: FreeSWITCH Users Help &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a> &lt;mailto:<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt; This is pretty clever but I think there are too many things in the code that assume it&#39;s a local directory for this to<br>
&gt; work without modifications to code<br>
&gt;<br>
</span><span class="">&gt; On Thursday, April 14, 2016, Jonathan Hunter &lt;<a href="mailto:hunterj91@hotmail.com">hunterj91@hotmail.com</a> &lt;mailto:<a href="mailto:hunterj91@hotmail.com">hunterj91@hotmail.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;     Hi Guys,<br>
&gt;<br>
&gt;     Quick question, I am centralising Voicemail storage as I am using multiple FreeSWITCH servers, and I have this<br>
&gt;     working for recorded Voicemail greetings.<br>
&gt;<br>
&gt;     I am now doing this for stored voicemail messages.<br>
&gt;<br>
&gt;     So in voicemail.conf I am changing the storage-dir to the IP of my web server;<br>
&gt;<br>
&gt;<br>
&gt;     &lt;param name=&quot;storage-dir&quot; value=&quot;<a href="http://1.2.3.4:88" rel="noreferrer" target="_blank">http://1.2.3.4:88</a>&quot;/&gt;<br>
&gt;<br>
&gt;     Now this pushes the recorded wav file to the server using Put and works well, I just have 2 questions.<br>
&gt;<br>
&gt;     Locally I see FreeSWITCH creates the domain and extension folders in the original storage directory, can it be<br>
&gt;     configured to build them on remove servers or should this be done manually? (which isnt a problem).<br>
&gt;<br>
&gt;     And the main question, in terms of when retrieving the voicemail, how is this achieved, as currently I use;<br>
&gt;<br>
&gt;     &lt;action application=&quot;voicemail&quot; data=&quot;check default ]]..call_context..[[ ]]..sip_from_user..[[&quot;/&gt;<br>
&gt;<br>
&gt;     In my Lua scripts, which still checks locally, where do I let the voicemail module know about retrieving, and will<br>
&gt;     it just perform a GET ?<br>
&gt;<br>
&gt;     Many thanks<br>
&gt;<br>
&gt;     Jon<br>
&gt;<br>
&gt;<br>
&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
</span>&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a> &lt;mailto:<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>&gt;<br>
<span class="">&gt; <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
</span>&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a> &lt;mailto:<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>&gt;<br>
<span class="">&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Jonathan Hunter<br>
&gt; Technical Director /Telephony Developer<br>
&gt; M:<a href="tel:%28%2B44%29%207917%20190%20438" value="+447917190438">(+44) 7917 190 438</a><br>
</span>&gt; <a href="mailto:Email%3Ajhunter@voxboxcoms.co.uk">Email:jhunter@voxboxcoms.co.uk</a> &lt;mailto:<a href="mailto:Email%253Ajhunter@voxboxcoms.co.uk">Email%3Ajhunter@voxboxcoms.co.uk</a>&gt;<br>
<span class="">&gt;<br>
&gt;<br>
&gt;<br>
&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
<br>
--<br>
</span>------------------------------------------------------------<br>
Nathan Neulinger                       <a href="mailto:nneul@mst.edu">nneul@mst.edu</a><br>
Missouri S&amp;T Information Technology    <a href="tel:%28573%29%20612-1412" value="+15736121412">(573) 612-1412</a><br>
System Administrator - Architect<br>
<div class="HOEnZb"><div class="h5"><br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br></div>