Read() application does not play file


#1

I have just installed Asterisk 1.8.7 today, got it up and running. Please bear with me for being a newbie here. I can’t get the Read() application to play any sound files at all. The same file can be played by PlayBack and Background.

extensions.conf
[default]
exten => 2014,1,Answer(1000)
exten => 2014,2,Read(conf_id, Welcome)
exten => 2014,n,Playback(Welcome)

and I get…

-- Executing [2014@default:1] Answer("SIP/mydomain.com-0000000c", "1000") in new stack
-- Executing [2014@default:2] Read("SIP/mydomain.com-0000000c", "conf_id, Welcome") in new stack

[Oct 20 17:51:13] WARNING[9896]: file.c:653 ast_openstream_full: File Welcome does not exist in any format
[Oct 20 17:51:13] WARNING[9896]: file.c:959 ast_streamfile: Unable to open Welcome (format 0x4 (ulaw)): No such file or directory
– User disconnected
– Executing [2014@default:3] Playback(“SIP/mydomain.com-0000000c”, “Welcome”) in new stack
– <SIP/mydomain.com-0000000c> Playing ‘Welcome.ulaw’ (language ‘en’)
== Spawn extension (default, 2014, 3) exited non-zero on ‘SIP/mydomain.com-0000000c’

Please help! TIA.


#2

Ugh, my attempt to make it look pretty and neat backfired.
The space between the “,” and filename was the cause.

Removing the space fixed it.