Custom voice files not found

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 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
– 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.

Did you explicitly configure Asterisk or build it with that as the path? Have you looked to see if perhaps the files are actually elsewhere?

Thankyou, yes that was the issue. I couldnt see the wood for the trees hahha.

That location was where my last asterisk install had the files, but for the build I let everything default.

I would expect to see the location of the files in “core show settings”, but I dont. Where is the right place to see where Asterisk is looking?

The sound file directory is contained within the Data directory, so it would use the path specified by the “Data directory” field in “core show settings”.

Thanks very much for your help.

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