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 On Aug 27, 2017, at 10:34 PM, Cody Alderson <aldersona...@gmail.com> wrote: > Lonnie, > > It works. I did as you said, and then I put the files back in > /var/lib/asterisk/custom-sounds that did already exist as that is where I > kept putting them. The /mnt/kd/custom-sounds did not exist before I did the > mkdir. I checked. I made the directory, then I used the CLI to mount a flash > drive and put the ulaw files back in /var/lib/asterisk/sounds/custom-sounds. > They remained this time after a reboot. I don't understand persistent > directories yet. When I use winSCP to look at the tree structure, I see the > same directories repeated under /stat and /tmp for > /var/lib/asterisk/sounds/custom-sounds and other directories. I am not fully > understanding Linux directories yet. The book I'm reading is not great at > explaining Linux either. > > Thank you for the help! > > > -Cody > > On Sun, Aug 27, 2017 at 9:54 AM, Lonnie Abelbeck <li...@lonnie.abelbeck.com> > wrote: > Hi Cody, > > Yes, AstLinux uses "tmpfs" (RAM based) file storage for some paths. The > official persistent storage path is /mnt/kd/ and below is always saved across > reboots. > > For the special case of Asterisk sound files, we offer a useful symlink to a > /mnt/kd/custom-sounds directory if it exists. > > This is what I suggest you do from the CLI ... > -- > mkdir /mnt/kd/custom-sounds > > service asterisk stop > service asterisk init > -- > > With this the /var/lib/asterisk/sounds/custom-sounds path points to > /mnt/kd/custom-sounds, so if you had a sound file > /mnt/kd/custom-sounds/greeting.ulaw you could reference it via the Asterisk > dialplan as "custom-sounds/greeting.ulaw". > > You can also add additional directories in /mnt/kd/custom-sounds/ say > /mnt/kd/custom-sounds/tts/ as such you could reference sound files as > "custom-sounds/tts/greeting.ulaw". > > Clear ? > > Lonnie > > > > On Aug 27, 2017, at 8:28 AM, Cody Alderson <aldersona...@gmail.com> wrote: > > > Hi, > > > > I used TTS to make some custom prompts for an extension that plays humorous > > TTS files based on day and time. When I reboot the thin client Astlinux is > > running on, the directory remains but the files are deleted. I used the CLI > > to make the directory and move the files I made into it. Everything works > > fine until a reboot, and then those files in that directory are gone. Would > > someone please advise me as to what I am doing wrong? Keep in mind that I > > am an Asterisk and Linux novice. > > > > Thank you! > > > > -Cody Alderson ------------------------------------------------------------------------------ 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.