Hi Cody, (comments inline) On Aug 28, 2017, at 10:44 AM, Cody Alderson <aldersona...@gmail.com> wrote:
> Lonnie, > > Symlink is symbolic link in Linux? Yes. > Can you recommend a book for a Windows guy that goes back to the days of DOS > to understand Linux better? Googling I found this page: (a part of a college class) http://www.cis.rit.edu/class/simg211/unixintro/Filesystem.html Though if you want to learn Linux by doing it would be best for you to install VirtualBox [ https://www.virtualbox.org/wiki/Downloads ] on Windows and then install AstLinux [ https://doc.astlinux-project.org/userdoc:guest_vm_virtualbox ] as a guest of your Windows VirtualBox host. Playing with AstLinux as a guest of the VirtualBox VM so you can't do any damage to your production AstLinux system. If you mess-up you can easily reinstall from the ISO and try again. > Also, I had previously had to put in the entire path to the ulaw files in my > dialplan. For example, /var/lib/asterisk/sounds/custom-sounds-filename. Now > that I have made the custom-sounds persistent, can I just use > /custom-sounds/filename such as in Playback(/custom-sounds/filename) ? You can use Playback(custom-sounds/filename) *without* a leading / (slash) as you showed. Hopefully the class URL above will help you understand the UNIX (Linux) file structure. Also remember that Asterisk's Playback() does not want the sound file suffix (ie. no trailing .ulaw or .wav) as Asterisk will look for the best matching sound file format for the current channel's CODEC. In general you should never have to create or delete any files or directories outside of the /mnt/kd/ tree path in AstLinux. Lonnie > > Thank you so much for your help. I enjoy learning this stuff! > > -Cody > > On Mon, Aug 28, 2017 at 9:25 AM, Lonnie Abelbeck <li...@lonnie.abelbeck.com> > wrote: > Hi Cody, > > Great to hear you got it working. > > > I don't understand persistent directories yet. > > As typical with embedded appliances, AstLinux's /var/ mount type is "tmpfs" > (RAM based, non-persistent). The flash storage (persistent) is mounted type > ext2. > > AstLinux uses a "symbolic link" (ln -s ...) in places to create references on > the non-persistent /var/ tree that points to persistent storage found in the > /mnt/kd/ tree as well as to the read-only AstLinux ext2 flash image. > > These "symlinks" can be confusing to follow at first, for example following > your "custom-sounds" case ... > -- > pbx ~ # ls -l /var/lib/asterisk/sounds/custom-sounds > lrwxrwxrwx 1 root root 38 Aug 27 16:40 > /var/lib/asterisk/sounds/custom-sounds -> > /var/tmp/asterisk/sounds/custom-sounds > > pbx ~ # ls -l /var/tmp/asterisk/sounds/custom-sounds > lrwxrwxrwx 1 root root 21 Aug 27 16:41 > /var/tmp/asterisk/sounds/custom-sounds -> /mnt/kd/custom-sounds > -- > Note the " -> " indicates a symlink reference. > > Remember you should only be adding/editing files in the /mnt/kd/ tree path, > though if you know a symlink points to the /mnt/kd/ tree path you can use the > symlink name as a convenience if you wish. > > Lonnie ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Astlinux-users mailing list Astlinux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/astlinux-users Donations to support AstLinux are graciously accepted via PayPal to pay...@krisk.org.