Page 1 of 1
Audio Store Not Working
Posted:
Tue Sep 24, 2013 5:08 pm
by hiadviser
I can't seem to access my Audio Store. I can upload a file no problem, but when I click on audio chooser in any menu, I just get a white, blank, popup. It doesn't tell me access denied, so I know the user I am using has access to use it.
Not sure what the issue is. Any help is greatly appreciated. Thank you.
Re: Audio Store Not Working
Posted:
Wed Sep 25, 2013 6:49 pm
by GaD
What does
- Code: Select all
ls /var/lib/asterisk/sounds
display? Do you see your audio files there?
What does
- Code: Select all
ls -l /var/lib/asterisk
display? Does it show something like
- Code: Select all
drwxrwxrwx 13 root root 65536 2013-09-25 14:27 sounds
Re: Audio Store Not Working
Posted:
Wed Sep 25, 2013 7:38 pm
by hiadviser
Ok the first one shows all of the sound files. I don't see the one I uploaded though.
The second one shows me this:
- Code: Select all
total 56
drwxr-xr-x 2 root root 4096 Aug 24 08:39 agi-bin
-rw-r--r-- 1 root root 8192 Sep 25 17:36 astdb
drwxr-xr-x 2 root root 4096 Sep 16 06:45 default
drwxr-xr-x 2 root root 4096 Aug 24 08:39 images
drwxr-xr-x 2 root root 4096 Aug 24 08:39 keys
drwxr-xr-x 2 root root 4096 Aug 24 08:39 moh
drwxr-xr-x 2 root root 4096 Aug 24 08:39 mohmp3
drwxrwxrwx 10 root root 20480 Aug 24 08:39 sounds
drwxr-xr-x 2 root root 4096 Aug 24 08:39 static-http
Re: Audio Store Not Working
Posted:
Wed Sep 25, 2013 8:17 pm
by GaD
In system settings check out the 'Sounds Web Directory' settings, you will see a random string 'name'. Go (on the CLI) to /srv/www/htdocs/<weird-name> and see if the audios are there.
In the system settings menu there is an option: "Central Sound Control Active" Try turning that 'on' and then go into your server settings Admin > Servers > <server-name-here> and select 'Y' on Sounds Update. Hit Submit. Give it a couple of minutes and check both directories.
Re: Audio Store Not Working
Posted:
Wed Sep 25, 2013 9:12 pm
by hiadviser
Ok so I tried to go to that directory and it doesn't even exist. Should I create it?
And the Central Sound Control was already set to Active, but I ran the Sounds Update in the Server settings and still the same issue. Just a blank white screen when the audio store pops up.
Re: Audio Store Not Working
Posted:
Wed Sep 25, 2013 11:22 pm
by GaD
Yeah, go ahead and create it. Make sure you either www-own it or chmod-777 it. Try uploading the file again and let me know....
Re: Audio Store Not Working
Posted:
Thu Sep 26, 2013 12:06 am
by hiadviser
Ok I created it and still same blank box....
Re: Audio Store Not Working
Posted:
Thu Sep 26, 2013 3:13 pm
by GaD
Have you uploaded an audio file? Go ahead and upload one, then, on the CLI enter
- Code: Select all
updatedb
and then
- Code: Select all
locate <enter-name-of-file-you-uploaded>
It wil show you the location where the file is (if it uploaded). If it returns no results go ahead and check on /var/log/apache/error.log see if there were any errors while uploading....
Let me know how it goes...
Re: Audio Store Not Working
Posted:
Mon Sep 30, 2013 9:30 am
by hiadviser
Still no dice. Nothing in the error log what so ever. If I click on the log link of the audio store, I can see the file was uploaded. At least that's what it says. But I can't find it anywhere on my server and the white box still comes up.
Re: Audio Store Not Working
Posted:
Tue Oct 01, 2013 6:32 pm
by gers55
This normally works for me along with a reboot also be sure that Sounds Web Server: is set on the correct IP for your server. After you reboot upload a sound file via the audio store uploader via admin.php and then the directory will appear.
mkdir /var/www/html/5wf55gk458y8nh0j55zpsr7yjd3wy1
chmod 0777 /var/www/html/5wf55gk458y8nh0j55zpsr7yjd3wy1
/usr/share/astguiclient/ADMIN_audio_store_sync.pl --upload
Re: Audio Store Not Working
Posted:
Tue Oct 01, 2013 7:23 pm
by GaD
Also do the
- Code: Select all
updatedb
locate <name-of-file>
Re: Audio Store Not Working
Posted:
Tue Oct 01, 2013 11:57 pm
by hiadviser
Yes! Worked like a charm gers55. Thank you very much. And thanks to you too GaD!
Re: Audio Store Not Working
Posted:
Wed Sep 03, 2014 12:34 am
by divan009
@gers55 this worked for me too!
Re: Audio Store Not Working
Posted:
Sun Nov 30, 2014 1:43 am
by sidd
nice Tutorial guys, it worked for me too.
Re: Audio Store Not Working
Posted:
Tue May 03, 2016 8:25 am
by udy786
Worked for me too.