FreePBX | Register | Issues | Wiki | Portal | Support

Ivr wont play recording

configuration
Tags: #<Tag:0x00007f749759cf78>

(Choot) #1

Hi,
I recently installed freepbx on Ubuntu 18. I’ve set incoming calls to an ivr but the issue is that the recording I’ve set to ivr wont play.
What i did is added a system recording > create new announcement and use that recording > create an ivr and select the announcement.
When the call gets connected ivr destinations work fine, the only issue is i wont hear the recording. Does someone know the reason ?


(Itzik) #2

Probably wrong format.

Can you post a call log?


(Choot) #3

[2018-09-01 20:31:55] WARNING[12492][C-00000006]: Ext. 7788201036:2 @ from-trunk: Friendly Scanner from 162.213.157.82
[2018-09-01 20:31:57] WARNING[12492][C-00000006]: file.c:774 ast_openstream_full: File custom/Welcome_to_Belly does not exist in any format
[2018-09-01 20:31:57] WARNING[12492][C-00000006]: file.c:1247 ast_streamfile: Unable to open custom/Welcome_to_Belly (format (ulaw)): No such file or directory
[2018-09-01 20:31:57] WARNING[12492][C-00000006]: pbx_builtins.c:1100 pbx_builtin_background: ast_streamfile failed on SIP/voipms-00000005 for custom/Welcome_to_Belly
[2018-09-01 20:32:09] WARNING[12492][C-00000006]: file.c:774 ast_openstream_full: File all-circuits-busy-now does not exist in any format
[2018-09-01 20:32:09] WARNING[12492][C-00000006]: file.c:1247 ast_streamfile: Unable to open all-circuits-busy-now (format (ulaw)): No such file or directory
[2018-09-01 20:32:09] WARNING[12492][C-00000006]: app_playback.c:494 playback_exec: Playback failed on SIP/voipms-00000005 for all-circuits-busy-now&please-try-call-later, noanswer
[2018-09-01 20:32:09] WARNING[12492][C-00000006]: file.c:774 ast_openstream_full: File please-try-call-later does not exist in any format
[2018-09-01 20:32:09] WARNING[12492][C-00000006]: file.c:1247 ast_streamfile: Unable to open please-try-call-later (format (ulaw)): No such file or directory


#4

Your sound file can’t be found, at least according to the log

[2018-09-01 20:31:57] WARNING[12492][C-00000006]: file.c:774 ast_openstream_full: File custom/Welcome_to_Belly does not exist in any format
[2018-09-01 20:31:57] WARNING[12492][C-00000006]: file.c:1247 ast_streamfile: Unable to open custom/Welcome_to_Belly (format (ulaw)): No such file or directory
[2018-09-01 20:31:57] WARNING[12492][C-00000006]: pbx_builtins.c:1100 pbx_builtin_background: ast_streamfile failed on SIP/voipms-00000005 for custom/Welcome_to_Belly


(Choot) #5

how do i solve this? I am not sure why it gives this message. Earlier i was using freepbx distro and same steps worked fine on that one.


#6

from bash

find /var/lib/asterisk/sounds -name Welcome_to_Belly*


(Choot) #7

root@asus-freepbx-server:~# find /var/lib/asterisk/sounds -name Welcome_to_Belly*
/var/lib/asterisk/sounds/en/custom/Welcome_to_Belly.g722
/var/lib/asterisk/sounds/en/custom/Welcome_to_Belly.ulaw
/var/lib/asterisk/sounds/en/custom/Welcome_to_Belly.sln48
/var/lib/asterisk/sounds/en/custom/Welcome_to_Belly.sln16
/var/lib/asterisk/sounds/en/custom/Welcome_to_Belly.sln
/var/lib/asterisk/sounds/en/custom/Welcome_to_Belly.alaw
/var/lib/asterisk/sounds/en/custom/Welcome_to_Belly.wav
/var/lib/asterisk/sounds/en/custom/Welcome_to_Belly.gsm
/var/lib/asterisk/sounds/custom/Welcome_to_Belly.g722
/var/lib/asterisk/sounds/custom/Welcome_to_Belly.ulaw
/var/lib/asterisk/sounds/custom/Welcome_to_Belly.sln48
/var/lib/asterisk/sounds/custom/Welcome_to_Belly.sln16
/var/lib/asterisk/sounds/custom/Welcome_to_Belly.sln
/var/lib/asterisk/sounds/custom/Welcome_to_Belly.alaw
/var/lib/asterisk/sounds/custom/Welcome_to_Belly.wav
/var/lib/asterisk/sounds/custom/Welcome_to_Belly.gsm
root@asus-freepbx-server:~#

Looks like files are there but dont know why asterisk says no such file or directory.


(Choot) #8

[2018-09-03 00:31:24] WARNING[24140][C-00000010]: file.c:774 ast_openstream_full: File custom/Welcome_to_Belly does not exist in any format
[2018-09-03 00:31:24] WARNING[24140][C-00000010]: file.c:1247 ast_streamfile: Unable to open custom/Welcome_to_Belly (format (ulaw)): Permission denied
[2018-09-03 00:31:24] WARNING[24140][C-00000010]: pbx_builtins.c:1100 pbx_builtin_background: ast_streamfile failed on SIP/SIPUS_GW1-00000008 for custom/Welcome_to_Belly

now the message for has changes from no such file or directory to permission denied for ulaw


#9

Permission denied means that asterisk can’t access the file due to incorrect permissions. Make sure that the user asterisk is running from has at least read permission granted for those files.


(Choot) #10

can you help me how do i set the right permissions ?


#11

Issue these following commands on the freepbx terminal

cd /var/lib/asterisk/sounds/custom
ls -al

Copy the output so we can checj if indeed the permissions are incorrect


(Choot) #12

root@asus-freepbx-server:~# cd /var/lib/asterisk/sounds/custom
root@asus-freepbx-server:/var/lib/asterisk/sounds/custom# ls -al
total 1632
drwxrwxrwx 2 asterisk asterisk 4096 Sep 3 20:00 .
drwxrwxrwx 6 asterisk asterisk 4096 Sep 1 20:40 …
-rwxrwxrwx 1 asterisk asterisk 34900 Sep 1 20:41 Welcome.alaw
-rwxrwxrwx 1 asterisk asterisk 34900 Sep 1 20:41 Welcome.g722
-rwxrwxrwx 1 asterisk asterisk 7194 Sep 1 20:41 Welcome.gsm
-rwxrwxrwx 1 asterisk asterisk 69800 Sep 1 20:41 Welcome.sln
-rwxrwxrwx 1 asterisk asterisk 139598 Sep 1 20:41 Welcome.sln16
-rwxrwxrwx 1 asterisk asterisk 418790 Sep 1 20:41 Welcome.sln48
-rwxrwxrwx 1 asterisk asterisk 34900 Sep 1 20:41 Welcome_to_Belly.alaw
-rwxrwxrwx 1 asterisk asterisk 34900 Sep 1 20:41 Welcome_to_Belly.g722
-rwxrwxrwx 1 asterisk asterisk 7194 Sep 1 20:41 Welcome_to_Belly.gsm
-rwxrwxrwx 1 asterisk asterisk 69800 Sep 1 20:41 Welcome_to_Belly.sln
-rwxrwxrwx 1 asterisk asterisk 139598 Sep 1 20:41 Welcome_to_Belly.sln16
-rwxrwxrwx 1 asterisk asterisk 418790 Sep 1 20:41 Welcome_to_Belly.sln48
-rwxrwxrwx 1 asterisk asterisk 34900 Sep 1 20:41 Welcome_to_Belly.ulaw
-rwxrwxrwx 1 asterisk asterisk 69844 Sep 1 20:41 Welcome_to_Belly.wav
-rwxrwxrwx 1 asterisk asterisk 34900 Sep 1 20:41 Welcome.ulaw
-rwxrwxrwx 1 asterisk asterisk 69844 Sep 1 20:41 Welcome.wav
root@asus-freepbx-server:/var/lib/asterisk/sounds/custom#


#13

Permissions seem to be correct. This is very strange.
What did you change between first error “file not found” and second error “permission denied”?


(Choot) #14

i am not sure about that what caused the error message to change.


(Itzik) #15

Perhaps try deleting the file, and upload it again thru the GUI.


(Choot) #16

I tried deleting and uploading the file again but still the same issue. Its been a week now still stuck on same issue


(Itzik) #17

Next I would try to recreate the IVR.

Another thought. could be your installation went wrong?