Playback failed on FreePBX downloaded sound files

I am using Asterisk version 13.14 and FreePBX framework version 13.0.195.26 (which is up to date as of today), and the FreePBX “Languages” module version 13.0.6.3.

When using the FreePBX GUI, I have setup under the “Admin/Sound Languages/Settings”, the “Global Language” to “English” and “English UK” to try to examine the following observations:

telbox*CLI>  sudo -u asterisk asterisk -rvvv
[...]
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Executing [[email protected]:1] ResetCDR("SIP/210-00000003", "") in new stack
    -- Executing [[email protected]:2] NoCDR("SIP/210-00000003", "") in new stack
    -- Executing [[email protected]:3] Progress("SIP/210-00000003", "") in new stack
    -- Executing [[email protected]from-internal:4] Wait("SIP/210-00000003", "1") in new stack
    -- Executing [[email protected]:5] Playback("SIP/210-00000003", "silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer") in new stack
    -- <SIP/210-00000003> Playing 'silence/1.gsm' (language 'en_GB')
[2019-03-29 13:38:52] WARNING[9882][C-00000003]: file.c:774 ast_openstream_full: File cannot-complete-as-dialed does not exist in any format
[2019-03-29 13:38:52] WARNING[9882][C-00000003]: file.c:1247 ast_streamfile: Unable to open cannot-complete-as-dialed (format (alaw)): No such file or directory
[2019-03-29 13:38:52] WARNING[9882][C-00000003]: app_playback.c:494 playback_exec: Playback failed on SIP/210-00000003 for silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer
[2019-03-29 13:38:52] WARNING[9882][C-00000003]: file.c:774 ast_openstream_full: File check-number-dial-again does not exist in any format
[2019-03-29 13:38:52] WARNING[9882][C-00000003]: file.c:1247 ast_streamfile: Unable to open check-number-dial-again (format (alaw)): No such file or directory
[2019-03-29 13:38:52] WARNING[9882][C-00000003]: app_playback.c:494 playback_exec: Playback failed on SIP/210-00000003 for silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer
    -- Executing [[email protected]:6] Wait("SIP/210-00000003", "1") in new stack
    -- Executing [[email protected]:7] Congestion("SIP/210-00000003", "20") in new stack
[2019-03-29 13:38:53] WARNING[9882][C-00000003]: channel.c:4982 ast_prod: Prodding channel 'SIP/210-00000003' failed
  == Spawn extension (from-internal, 01234567890, 7) exited non-zero on 'SIP/210-00000003'
    -- Executing [[email protected]:1] Macro("SIP/210-00000003", "hangupcall") in new stack
    -- Executing [[email protected]:1] GotoIf("SIP/210-00000003", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [[email protected]:3] ExecIf("SIP/210-00000003", "0?Set(CDR(recordingfile)=)") in new stack
    -- Executing [[email protected]:4] Hangup("SIP/210-00000003", "") in new stack
  == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'SIP/210-00000003' in macro 'hangupcall'
  == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/210-00000003'

Above confirms that the sound files are not being played, and this confirms what I’m hearing on my SIP phone: no messages are being played back.

Here the settings I have on my Asterisk platform:

telbox*CLI> core show settings

PBX Core settings
-----------------
  Version:                     13.14.1~dfsg-2+deb9u4
  Build Options:               LOADABLE_MODULES, OPTIONAL_API
[...]
  Default language:            en
  Language prefix:             Enabled
  User name and group:         /
  Executable includes:         Enabled
  Transcode via SLIN:          Enabled
  Transmit silence during rec: Enabled
  Generic PLC:                 Disabled

[...]

* Directories
  -------------
  Configuration file:
  Configuration directory:     /etc/asterisk
  Module directory:            /usr/lib/asterisk/modules
  Spool directory:             /var/spool/asterisk
  Log directory:               /var/log/asterisk
  Run/Sockets directory:       /var/run/asterisk
  PID file:                    /var/run/asterisk/asterisk.pid
  VarLib directory:            /var/lib/asterisk
  Data directory:              /usr/share/asterisk
  ASTDB:                       /var/lib/asterisk/astdb
  IAX2 Keys directory:         /usr/share/asterisk/keys
  AGI Scripts directory:       /var/lib/asterisk/agi-bin

And also:

[email protected]$ cat /etc/asterisk/asterisk.conf
[directories]
astetcdir=/etc/asterisk
astmoddir=/usr/lib/asterisk/modules
astvarlibdir=/var/lib/asterisk
astagidir=/var/lib/asterisk/agi-bin
astspooldir=/var/spool/asterisk
astrundir=/var/run/asterisk
astlogdir=/var/log/asterisk
[options]
transmit_silence_during_record=yes
languageprefix=yes
execincludes=yes
[files]
astctlpermissions=775

And checking the ownership of the directory where the sound files are located, I find the following:

[email protected]$ ls -l /var/lib/asterisk/sounds/
total 1484
drwxr-xr-x  2 asterisk asterisk   4096 Sep 30 23:24 custom
drwxr-xr-x 10 asterisk asterisk 262144 Dec  6 14:47 de_DE
drwxr-xr-x 11 asterisk asterisk 196608 Mar 29 09:41 en
drwxr-xr-x 10 asterisk asterisk 262144 Dec  6 14:35 en_GB
drwxr-xr-x 10 asterisk asterisk 258048 Dec  6 14:59 es_ES
drwxr-xr-x 10 asterisk asterisk 258048 Dec  6 15:11 fr_FR
drwxr-xr-x 10 asterisk asterisk 258048 Dec  6 15:23 it_IT
drwxr-xr-x  2 asterisk asterisk   4096 Mar 29 09:41 tmp

The directories are created when downloading the language sound files under the FreePBX GUI.

The sound files under these directories, have the same ownership as the directory itself (however do not want to list them).

Now, during initial fresh installation of the Asterisk and FreePBX platform, the sound files did play. Now, after several years of operations and updates, today I’m confronted that sound files are no longer played :frowning:

Based on problems reported in other posts, I ought to be fine in terms of platform setup, configuration and ownership of sound files, however still the same symptoms: no sound files are being played.

Thus, what might be going on here?

You are not using the latest version of Asterisk tho, not sure if it makes a difference.

The log files says that these files do not exist, do you see these files?

From bash, post the issue of:-

find /var/lib/asterisk/sounds -name 1.*
.
.
.

if you don’t have

/var/lib/asterisk/sounds/en_GB/silence/1.gsm

then it should play

/var/lib/asterisk/sounds/en/silence/1.gsm

if that fails, then as a last resort

/var/lib/asterisk/sounds/silence/1.gsm

If you have one of those file in a flavor othre than gsm , then hmm . . .

can you run “show file formats” and paste what you get returned?

Unless I’m mistaken, FreePBX 13.x has not yet been declared under an end-of-life support.

Anyway, coming back to your valuable questions, yes, I do see all the files and owned by the UID and GID “asterisk”.

Firing the command find “/var/lib/asterisk/sounds -name 1.*” yields to the following output:

[email protected]:/etc/asterisk $ find /var/lib/asterisk/sounds -name 1.*
/var/lib/asterisk/sounds/it_IT/silence/1.sln16
/var/lib/asterisk/sounds/it_IT/silence/1.ulaw
/var/lib/asterisk/sounds/it_IT/silence/1.gsm
/var/lib/asterisk/sounds/it_IT/silence/1.alaw
/var/lib/asterisk/sounds/it_IT/digits/1.sln16
/var/lib/asterisk/sounds/it_IT/digits/1.ulaw
/var/lib/asterisk/sounds/it_IT/digits/1.gsm
/var/lib/asterisk/sounds/it_IT/digits/1.alaw
/var/lib/asterisk/sounds/en_GB/silence/1.sln16
/var/lib/asterisk/sounds/en_GB/silence/1.ulaw
/var/lib/asterisk/sounds/en_GB/silence/1.gsm
/var/lib/asterisk/sounds/en_GB/silence/1.alaw
/var/lib/asterisk/sounds/en_GB/digits/1.sln16
/var/lib/asterisk/sounds/en_GB/digits/1.ulaw
/var/lib/asterisk/sounds/en_GB/digits/1.gsm
/var/lib/asterisk/sounds/en_GB/digits/1.alaw
/var/lib/asterisk/sounds/fr_FR/silence/1.sln16
/var/lib/asterisk/sounds/fr_FR/silence/1.ulaw
/var/lib/asterisk/sounds/fr_FR/silence/1.gsm
/var/lib/asterisk/sounds/fr_FR/silence/1.alaw
/var/lib/asterisk/sounds/fr_FR/digits/1.sln16
/var/lib/asterisk/sounds/fr_FR/digits/1.ulaw
/var/lib/asterisk/sounds/fr_FR/digits/1.gsm
/var/lib/asterisk/sounds/fr_FR/digits/1.alaw
/var/lib/asterisk/sounds/es_ES/silence/1.sln16
/var/lib/asterisk/sounds/es_ES/silence/1.ulaw
/var/lib/asterisk/sounds/es_ES/silence/1.gsm
/var/lib/asterisk/sounds/es_ES/silence/1.alaw
/var/lib/asterisk/sounds/es_ES/digits/1.sln16
/var/lib/asterisk/sounds/es_ES/digits/1.ulaw
/var/lib/asterisk/sounds/es_ES/digits/1.gsm
/var/lib/asterisk/sounds/es_ES/digits/1.alaw
/var/lib/asterisk/sounds/en/silence/1.g722
/var/lib/asterisk/sounds/en/silence/1.ulaw
/var/lib/asterisk/sounds/en/silence/1.alaw
/var/lib/asterisk/sounds/en/digits/1.g722
/var/lib/asterisk/sounds/en/digits/1.ulaw
/var/lib/asterisk/sounds/en/digits/1.alaw
/var/lib/asterisk/sounds/de_DE/silence/1.sln16
/var/lib/asterisk/sounds/de_DE/silence/1.ulaw
/var/lib/asterisk/sounds/de_DE/silence/1.gsm
/var/lib/asterisk/sounds/de_DE/silence/1.alaw
/var/lib/asterisk/sounds/de_DE/digits/1.sln16
/var/lib/asterisk/sounds/de_DE/digits/1.ulaw
/var/lib/asterisk/sounds/de_DE/digits/1.gsm
/var/lib/asterisk/sounds/de_DE/digits/1.alaw

The file formats that are registered with my current Asterisk are the following:

telbox*CLI> core show file formats
Format     Name       Extensions
------     ----       ----------
slin       ogg_vorbis ogg
siren7     siren7     siren7
ilbc       iLBC       ilbc
slin16     wav16      wav16
slin       wav        wav
h263       h263       h263
g729       g729       g729
g722       g722       g722
ulaw       au         au
alaw       alaw       alaw|al|alw
ulaw       pcm        pcm|ulaw|ul|mu|ulw
g719       g719       g719
siren14    siren14    siren14
gsm        wav49      WAV|wav49
g723       g723sf     g723|g723sf
slin192    sln192     sln192
slin96     sln96      sln96
slin48     sln48      sln48
slin44     sln44      sln44
slin32     sln32      sln32
slin24     sln24      sln24
slin16     sln16      sln16
slin12     sln12      sln12
slin       sln        sln|raw
adpcm      vox        vox
g726       g726-16    g726-16
g726       g726-24    g726-24
g726       g726-32    g726-32
g726       g726-40    g726-40
h264       h264       h264
gsm        gsm        gsm
31 file formats registered.

Let me debug my setup further…

Don’t look for the silence/1 file. It seems to be playing, look for the other files.

Done. Here the output:

[email protected]:/var/lib/asterisk/sounds/en_GB $ find . -name 'cannot-complete-as-dialed.*' -print
./cannot-complete-as-dialed.sln16
./cannot-complete-as-dialed.alaw
./cannot-complete-as-dialed.ulaw
./cannot-complete-as-dialed.gsm
[email protected]:/var/lib/asterisk/sounds/en_GB $ find . -name 'check-number-dial-again.*' -print
./check-number-dial-again.alaw
./check-number-dial-again.sln16
./check-number-dial-again.gsm
./check-number-dial-again.ulaw

Double-checking these files again in terms of UNIX ownership, I’m getting the following:

[email protected]:/var/lib/asterisk/sounds/en_GB $ ls -al ./check-number-dial-again.*
-rw-r--r-- 1 asterisk asterisk 17555 Jun 12  2014 ./check-number-dial-again.alaw
-rw-r--r-- 1 asterisk asterisk  3630 Jun 12  2014 ./check-number-dial-again.gsm
-rw-r--r-- 1 asterisk asterisk 70218 Jun 12  2014 ./check-number-dial-again.sln16
-rw-r--r-- 1 asterisk asterisk 17555 Jun 12  2014 ./check-number-dial-again.ulaw
[email protected]:/var/lib/asterisk/sounds/en_GB $ ls -al ./cannot-complete-as-dialed.*
-rw-r--r-- 1 asterisk asterisk 20480 Jun 12  2014 ./cannot-complete-as-dialed.alaw
-rw-r--r-- 1 asterisk asterisk  4224 Jun 12  2014 ./cannot-complete-as-dialed.gsm
-rw-r--r-- 1 asterisk asterisk 81920 Jun 12  2014 ./cannot-complete-as-dialed.sln16
-rw-r--r-- 1 asterisk asterisk 20480 Jun 12  2014 ./cannot-complete-as-dialed.ulaw

Thus, not sure what’s going on here, and am digging further…

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.