Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
mflorell wrote:If you disable standard "http://" access to your system so that only "https://" will work, then the "Sounds Web Server" setting in "Admin -> System Settings" needs to be changed to include "https://" at the beginning of the field.
You can test that it works from the dialer by using the "ADMIN_audio_store_sync.pl" script.
vicibox10:~ # /usr/share/astguiclient/ADMIN_audio_store_sync.pl --debugX
----- DEBUG -----
----- SUPER DEBUG -----
https://PUBLIC.IP/vicidial/audio_store.php?action=LIST\&audio_server_ip=192.168.1.254
REMOTE AUDIO FILES:
AUDIO FILES ON SERVER: 0
NEW DOWNLOADED: 0
NEW UPLOADED: 0
DONE. Script execution time in seconds: 0
SUCCESS: AabharforGTPL.wav uploaded size:
INVALID WAV FILE FORMAT: (AabharforGTPL.wav)
Filesystem Size Used Avail Use% Mounted on
devtmpfs 4.2M 0 4.2M 0% /dev
tmpfs 4.2G 0 4.2G 0% /dev/shm
tmpfs 1.7G 18M 1.7G 2% /run
tmpfs 4.2M 0 4.2M 0% /sys/fs/cgroup
/dev/sda4 489G 17G 448G 4% /
tmpfs 6.5G 0 6.5G 0% /var/spool/asterisk/monitor
/dev/sda2 21M 1.3M 20M 6% /boot/efi
tmpfs 824M 0 824M 0% /run/user/0
total 32
drwxr-x--- 5 asterisk asterisk 4096 Mar 24 10:05 .
drwxr-xr-x 37 root root 4096 Feb 26 20:02 ..
drwxr-xr-x 2 root root 4096 Dec 20 21:02 agi-bin
-rw-r--r-- 1 root root 12288 Mar 24 10:05 astdb.sqlite3
drwxr-xr-x 2 root root 4096 Dec 20 21:02 default
lrwxrwxrwx 1 root root 28 Dec 20 21:02 firmware -> /usr/share/asterisk/firmware
lrwxrwxrwx 1 root root 26 Dec 20 21:02 images -> /usr/share/asterisk/images
lrwxrwxrwx 1 root root 23 Dec 20 21:02 moh -> /usr/share/asterisk/moh
lrwxrwxrwx 1 root root 24 Dec 20 21:02 mohmp3 -> /usr/share/asterisk/moh/
drwxr-x--- 2 asterisk asterisk 4096 Dec 20 20:53 phoneprov
lrwxrwxrwx 1 root root 29 Dec 20 21:02 quiet-mp3 -> /usr/share/asterisk/quiet-mp3
lrwxrwxrwx 1 root root 26 Mar 10 13:12 sounds -> /usr/share/asterisk/sounds
lrwxrwxrwx 1 root root 32 Dec 20 21:02 static-http -> /usr/share/asterisk/static-http/
vicibox10:/srv/www/htdocs # ls -la
total 140
drwxrwxrwx 8 root root 4096 Feb 27 00:43 .
drwxr-xr-x 6 root root 4096 Sep 1 2021 ..
drwxrwxrwx 7 root root 4096 Mar 21 13:25 agc
drwxrwxrwx 5 root root 4096 Dec 20 21:02 chat_customer
-rw-r--r-- 1 root root 318 Jun 28 2021 favicon.ico
-rw-r--r-- 1 root root 100 Dec 20 21:02 index.html
drwxr-xr-x 9 root root 4096 Sep 1 2021 phpMyAdmin
-rw-r--r-- 1 root root 26 Dec 20 21:02 robots.txt
drwxrwxrwx 8 root root 12288 Mar 24 10:34 vicidial
drwxr-xr-x 3 root root 4096 Feb 27 00:57 .well-known
drwxrwxr-x 2 root root 90112 Mar 10 13:10 yu1hOnAB71Q8JJ1GrVVD4ziCmJ6me5oH
dinstar wrote:Update:
But, I am unable to sync the audio files again. It just counts till 99 audio files and stops.
Then, I changed sounds web server IP to local one, and then I synced and it was successful.
don't know why it didn't sync in public ip, also, output of syncing script did show audio server ip as 192.168.1.254.
apachectl -S
dinstar wrote:But one thing is still bothering me. I cannot upload audio via audio store, as it says INVALID WAV FILE FORMAT: (IDFCNEW.wav)
Users browsing this forum: Majestic-12 [Bot] and 99 guests