<div dir="ltr">Hello,<br><br>The voicemails are sent over to an independent server to save server resources (harddisk writing, harddisk space, etc.) and allocate more bandwidth to live RTP calls.  The servers are located in different locations, with each one having an independent public IP address.<br>
<br>Accordingly, I need to mount the voicemail directory on both servers. <br><br>Thanks,<br>Elliot <br><br><br><br><br><div class="gmail_quote">On Fri, May 22, 2009 at 3:32 PM, Jeff LaCoursiere <span dir="ltr">&lt;<a href="mailto:jeff@jeff.net">jeff@jeff.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Lets start from the beginning.  Why are using a network share for your<br>
voicemail in the first place?<br>
<font color="#888888"><br>
j<br>
</font><div><div></div><div class="h5"><br>
On Fri, 22 May 2009, Elliot Murdock wrote:<br>
<br>
&gt; Hello Matt,<br>
&gt;<br>
&gt; I do agree with you that NFS is that UNIX standard for network<br>
&gt; filesystems and that what should essentially be used.  However, I<br>
&gt; shied away from using it, because on the surface it looks too<br>
&gt; complicated to secure properly.  It uses many ports, dynamic ports,<br>
&gt; different background daemons, etc.  As I stated before, to mount one<br>
&gt; or two directories, it is just not worth the trouble to set up a NFS<br>
&gt; filesystem.  Accordingly, I figured I would go from bottom up,<br>
&gt; starting with sshfs, samba (which uses only 445 and 139,<br>
&gt; straightforward config file), and then if those don&#39;t work out go<br>
&gt; through the trouble of setting up a NFS filesystem.<br>
&gt;<br>
&gt; If you know of any documents that simplify the NFS (not just how to<br>
&gt; set up a simple mount, but a full tutorial that describes how it works<br>
&gt; and how to fully secure it), then I would be more than happy to<br>
&gt; implement it.<br>
&gt;<br>
&gt; Later,<br>
&gt; Elliot<br>
&gt;<br>
&gt; On 5/21/09, Matt Watson &lt;<a href="mailto:matt@mattgwatson.ca">matt@mattgwatson.ca</a>&gt; wrote:<br>
&gt;&gt; Not that I;m exactly a big fan of NFS but... why would you choose to<br>
&gt;&gt; implement a filesystem that was designed to emulate Windows shares for your<br>
&gt;&gt; UNIX-type environment?  You have to kind of expect odd problems like this<br>
&gt;&gt; when you choose to use things for other than their intended purpose.  Samba<br>
&gt;&gt; I would say is probably alot more focused on providing storage shares for<br>
&gt;&gt; Windows desktop clients, not for UNIX-type clients.  Sure there is some<br>
&gt;&gt; support to do what you want, but just keep in mind that similiar to using<br>
&gt;&gt; sshfs like you were trying before, Samba, was really not designed to be used<br>
&gt;&gt; by UNIX clients.  You&#39;ve already found the most obvious reason... case<br>
&gt;&gt; sensative filenames - which Windows does not support, and UNIX programs<br>
&gt;&gt; expect filesystems on your UNIX machine *will* support it.<br>
&gt;&gt;<br>
&gt;&gt; That seems kind of like me deciding to use ntfs on a local partition on<br>
&gt;&gt; linux box instead of ext3/4, jfs, reiserfs, etc.<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Matt<br>
&gt;&gt;<br>
&gt;&gt; On Thu, May 21, 2009 at 5:06 AM, Elliot Murdock &lt;<a href="mailto:murdocke@gmail.com">murdocke@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; Hello!<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thanks...I set up a Samba mount, which works ok, except that Asterisk<br>
&gt;&gt;&gt; confuses a wave file as a wav49 file.  I think it may have something do<br>
&gt;&gt;&gt; with<br>
&gt;&gt;&gt; the way Samba supports case sensitivity.  Since Windows is not very<br>
&gt;&gt;&gt; aggressive when it comes to being case sensitive, I am thinking that Samba<br>
&gt;&gt;&gt; is saving files with the last three characters, wav, as uppercase, WAV.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; What is the procedure to ensure all the files are saved as is in Samba?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thanks,<br>
&gt;&gt;&gt; Elliot<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Thu, May 14, 2009 at 5:12 PM, Tilghman Lesher &lt;<br>
&gt;&gt;&gt; <a href="mailto:tilghman@mail.jeffandtilghman.com">tilghman@mail.jeffandtilghman.com</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On Thursday 14 May 2009 08:14:17 Elliot Murdock wrote:<br>
&gt;&gt;&gt;&gt;&gt; The problem is a file locking problem that Asterisk needs to make<br>
&gt;&gt;&gt;&gt; changes<br>
&gt;&gt;&gt;&gt;&gt; to the directory.  I was initially shying away from NFS and Samba,<br>
&gt;&gt;&gt;&gt; because<br>
&gt;&gt;&gt;&gt;&gt; I prefer to avoid any sort of security issues with only remotely<br>
&gt;&gt;&gt;&gt; mounting<br>
&gt;&gt;&gt;&gt;&gt; one or two directories.  NFS and Samba are designed for larger<br>
&gt;&gt;&gt;&gt;&gt; applications, which makes those types of technology worthwhile.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; No, they&#39;re both designed as filesystems, which makes typical things like<br>
&gt;&gt;&gt;&gt; locking possible.  SSH is designed as a communications medium, and<br>
&gt;&gt;&gt;&gt; someone<br>
&gt;&gt;&gt;&gt; has hacked filesystem support on top of it (poorly, apparently).  SSHFS<br>
&gt;&gt;&gt;&gt; was<br>
&gt;&gt;&gt;&gt; never designed to be used in server production environments and should<br>
&gt;&gt;&gt;&gt; not<br>
&gt;&gt;&gt;&gt; be used there.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; I am wondering if there is any way to disable Asterisk&#39;s request to<br>
&gt;&gt;&gt;&gt;&gt; lock<br>
&gt;&gt;&gt;&gt;&gt; the directory.  I know this may cause some loss in data, but for the<br>
&gt;&gt;&gt;&gt; volume<br>
&gt;&gt;&gt;&gt;&gt; voicemail receives, it should be rare enough that would make this<br>
&gt;&gt;&gt;&gt; approach<br>
&gt;&gt;&gt;&gt;&gt; an option.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; There is not.  Use a real filesystem that supports file locking (or<br>
&gt;&gt;&gt;&gt; really,<br>
&gt;&gt;&gt;&gt; file linking, which is how the locking is implemented) procedures.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; --<br>
&gt;&gt;&gt;&gt; Tilghman<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt; -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; asterisk-users mailing list<br>
&gt;&gt;&gt;&gt; To UNSUBSCRIBE or update options visit:<br>
&gt;&gt;&gt;&gt;   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; asterisk-users mailing list<br>
&gt;&gt;&gt; To UNSUBSCRIBE or update options visit:<br>
&gt;&gt;&gt;   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
&gt;<br>
&gt; asterisk-users mailing list<br>
&gt; To UNSUBSCRIBE or update options visit:<br>
&gt;   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
&gt;<br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br></div>