[quote=“mazzic”]you could always code the full path to a sound file to make sure it can get there and play it…
exten => 1003,1,Answer
exten => 1003,n,Playback(/var/lib/asterisk/sounds/en/you-seem-impatient)
exten => 1003,n,Hangup
[/quote]
Ok that helped. We are getting closer now. Here is what my extensions.conf looks like now…
[code][demo-menu]
exten => s,1,Answer(500)
same => n(loop),Background(/var/lib/asterisk/sounds/en/press-1&or&/var/lib/asterisk$
same => n,WaitExten()
exten => 1,1,Playback(/var/lib/asterisk/sounds/en/you-entered)
same => n,SayNumber(1)
same => n,Goto(s,loop)
exten => 2,1,Playback(/var/lib/asterisk/sounds/en/you-entered)
same => n,SayNumber(2)
same => n,Goto(s,loop)
[/code]
Here are the errors that I am seeing in CLI.
== Using SIP RTP CoS mark 5
-- Executing [3001@users:1] Goto("SIP/adam-00000007", "demo-menu,s,1") in new stack
-- Goto (demo-menu,s,1)
-- Executing [s@demo-menu:1] Answer("SIP/adam-00000007", "500") in new stack
-- Executing [s@demo-menu:2] BackGround("SIP/adam-00000007", "/var/lib/asterisk/sounds/en/press-1&or&/var/lib/asterisk/sounds/en/press-2") in new stack
-- <SIP/adam-00000007> Playing '/var/lib/asterisk/sounds/en/press-1.ulaw' (language 'en')
[Aug 5 09:19:47] WARNING[12040]: file.c:650 ast_openstream_full: File or does not exist in any format
[Aug 5 09:19:47] WARNING[12040]: file.c:953 ast_streamfile: Unable to open or (format 0x4 (ulaw)): No such file or directory
[Aug 5 09:19:47] WARNING[12040]: pbx.c:8860 pbx_builtin_background: ast_streamfile failed on SIP/adam-00000007 for /var/lib/asterisk/sounds/en/press-1&or&/var/lib/asterisk/sounds/en/press-2
-- Executing [s@demo-menu:3] WaitExten("SIP/adam-00000007", "") in new stack
== CDR updated on SIP/adam-00000007
-- Executing [1@demo-menu:1] Playback("SIP/adam-00000007", "you-entered") in new stack
[Aug 5 09:19:54] WARNING[12040]: file.c:650 ast_openstream_full: File you-entered does not exist in any format
[Aug 5 09:19:54] WARNING[12040]: file.c:953 ast_streamfile: Unable to open you-entered (format 0x4 (ulaw)): No such file or directory
[Aug 5 09:19:54] WARNING[12040]: app_playback.c:471 playback_exec: ast_streamfile failed on SIP/adam-00000007 for you-entered
-- Executing [1@demo-menu:2] SayNumber("SIP/adam-00000007", "1") in new stack
-- <SIP/adam-00000007> Playing 'digits/1.gsm' (language 'en')
-- Executing [1@demo-menu:3] Goto("SIP/adam-00000007", "s,loop") in new stack
-- Goto (demo-menu,s,2)
-- Executing [s@demo-menu:2] BackGround("SIP/adam-00000007", "/var/lib/asterisk/sounds/en/press-1&or&/var/lib/asterisk/sounds/en/press-2") in new stack
-- <SIP/adam-00000007> Playing '/var/lib/asterisk/sounds/en/press-1.ulaw' (language 'en')
[Aug 5 09:19:55] WARNING[12040]: file.c:650 ast_openstream_full: File or does not exist in any format
[Aug 5 09:19:55] WARNING[12040]: file.c:953 ast_streamfile: Unable to open or (format 0x4 (ulaw)): No such file or directory
[Aug 5 09:19:55] WARNING[12040]: pbx.c:8860 pbx_builtin_background: ast_streamfile failed on SIP/adam-00000007 for /var/lib/asterisk/sounds/en/press-1&or&/var/lib/asterisk/sounds/en/press-2
-- Executing [s@demo-menu:3] WaitExten("SIP/adam-00000007", "") in new stack
== Spawn extension (demo-menu, s, 3) exited non-zero on 'SIP/adam-00000007'
The press-1 sound is playing. I am not sure why the rest of them are not playing. I am going to back double-check the file names but if you see anything else in here, let me know.