From: Lonnie A. <li...@lo...> - 2017-08-27 13:54:19
|
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 <ald...@gm...> 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 |