Im running asterisk 16.3.0 which I built from source. My sound files are in /usr/share/asterisk/sounds/en including some custom sound files I created on a prior version of asterisk.
Asterisk cant find my custom sound files, even though they sit in the same directory as the standard ones and have the same or looser (which I added to no effect) security:
colic@pihole:/usr/share/asterisk/sounds/en$ ls tt-all* -l && ls custom-m* -l
-rw-r-xr-- 1 root asterisk 13497 Apr 25 13:14 tt-allbusy.gsm
-rw-rwxr-- 1 root asterisk 26499 Apr 25 13:14 custom-menu.gsm```
Running this code in extensions.conf:
exten => 12345,1,Answer ; answer the call
same => n,Playback(tt-allbusy)
same => n,Playback(custom-menu)
same => n,Hangup()
Gives this from asterisk
– Executing [12345@from-internal:1] Answer(“SIP/OBI-0000000c”, “”) in new stack
> 0xb4420aa0 – Strict RTP switching to RTP target address 192.168.4.163:16434 as source
– Executing [12345@from-internal:2] Playback(“SIP/OBI-0000000c”, “tt-allbusy”) in new stack
– <SIP/OBI-0000000c> Playing ‘tt-allbusy.gsm’ (language ‘en’)
> 0xb4420aa0 – Strict RTP learning complete - Locking on source address 192.168.4.163:16434
– Executing [12345@from-internal:3] Playback(“SIP/OBI-0000000c”, “custom-menu”) in new stack
[Apr 25 16:18:28] WARNING[9702][C-00000010]: file.c:779 ast_openstream_full: File custom-menu does not exist in any format
[Apr 25 16:18:28] WARNING[9702][C-00000010]: file.c:1252 ast_streamfile: Unable to open custom-menu (format (ulaw)): No such file or directory
[Apr 25 16:18:28] WARNING[9702][C-00000010]: app_playback.c:492 playback_exec: Playback failed on SIP/OBI-0000000c for custom-menu
You can see that tt-allbusy is read out just fine, my custom message, which was read out fine on the earlier version, is not.
I just cant see why or how asterisk is differentiating between thses, and not finding the custom ones.