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 [01234567890@from-internal:1] ResetCDR("SIP/210-00000003", "") in new stack
-- Executing [01234567890@from-internal:2] NoCDR("SIP/210-00000003", "") in new stack
-- Executing [01234567890@from-internal:3] Progress("SIP/210-00000003", "") in new stack
-- Executing [01234567890@from-internal:4] Wait("SIP/210-00000003", "1") in new stack
-- Executing [01234567890@from-internal: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 [01234567890@from-internal:6] Wait("SIP/210-00000003", "1") in new stack
-- Executing [01234567890@from-internal: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 [h@from-internal:1] Macro("SIP/210-00000003", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/210-00000003", "1?theend") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] ExecIf("SIP/210-00000003", "0?Set(CDR(recordingfile)=)") in new stack
-- Executing [s@macro-hangupcall: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:
asterisk@telbox$ 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:
asterisk@telbox$ 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
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?