Sound file do not exist

Hi all, i am using lua for my extension.lua. i getting the following error when i try the sound file

-- Executing [7777@complex:1] Playback("SIP/6001-00000024", "hello-world") -- <SIP/6001-00000024> Playing 'hello-world.gsm' (language 'en') -- Executing [7777@complex:1] Playback("SIP/6001-00000024", "hello") [Jan 5 22:38:35] WARNING[25581]: file.c:644 ast_openstream_full: File hello does not exist in any format [Jan 5 22:38:35] WARNING[25581]: file.c:950 ast_streamfile: Unable to open hello (format 0x80004 (ulaw|h263)): No such file or directory [Jan 5 22:38:35] WARNING[25581]: app_playback.c:471 playback_exec: ast_streamfile failed on SIP/6001-00000024 for hello -- Executing [7777@complex:1] Playback("SIP/6001-00000024", "0") [Jan 5 22:38:35] WARNING[25581]: file.c:644 ast_openstream_full: File 0 does not exist in any format [Jan 5 22:38:35] WARNING[25581]: file.c:950 ast_streamfile: Unable to open 0 (format 0x80004 (ulaw|h263)): No such file or directory [Jan 5 22:38:35] WARNING[25581]: app_playback.c:471 playback_exec: ast_streamfile failed on SIP/6001-00000024 for 0

this is the context i used

app.Playback("hello-world") app.Playback("hello") app.Playback("0")

among the played sound file, only “hello-word” is played. May i know what is the problem ? Thank you

Asterisk doesn’t have a “hello” sound file.

However i found hello.gsm file in my /var/lib/asterisk/sounds/en. Among all sound in this folder, only the “hello-world” is playable. May i know the problem ?

Maybe it was added in a later version. It certainly didn’t exist in earlier versions, and I don’t want to download a large archive on my home system, just to check. (voip-info.org doesn’t seem to list a “hello”.)

If only one file is playable, I would check:

  1. permissions, if running non-root;
  2. whether you do have that directory configured.

Note that the digit zero sound is in en/digits/, not directly in en/, so should be referenced as digits/0.