Thanks! Perfect! Such an easy solution shame on me. Bye, Zsolt
On Wed, Jan 28, 2009 at 11:10 AM, Steven J. Douglas <[email protected]> wrote: > In your Read command, leave out the .wav extension in the file name. > > Regards, > Steve > > Artifex Maximus wrote: >> Hi all! >> >> I would like to make a service with recording sounds and playing back >> to caller. I had wrote the script but it failed at Read statement with >> file not found error. I have put some file test into script and this >> is what happen on verbose level 9. >> >> -- Executing [8...@default:8] Record("DAHDI/27-1", >> "/var/spool/asterisk/rogzites/hangrogzito/20090128-103110-1233135070.29.wav,5") >> in new stack >> -- <DAHDI/27-1> Playing 'beep.alaw' (language 'hu') >> -- Executing [8...@default:9] NoOp("DAHDI/27-1", "") in new stack >> -- Executing [8...@default:10] Wait("DAHDI/27-1", "0.5") in new stack >> -- Executing [8...@default:11] Set("DAHDI/27-1", >> "TIMEOUT(digit)=1") in new stack >> -- Digit timeout set to 1 >> -- Executing [8...@default:12] Set("DAHDI/27-1", >> "TIMEOUT(response)=10") in new stack >> -- Response timeout set to 10 >> -- Executing [8...@default:13] BackGround("DAHDI/27-1", >> "hangrogzites/24359") in new stack >> -- <DAHDI/27-1> Playing 'hangrogzites/24359.slin' (language 'hu') >> == CDR updated on DAHDI/27-1 >> -- Executing [...@default:1] NoOp("DAHDI/27-1", "") in new stack >> -- Executing [...@default:2] Wait("DAHDI/27-1", "0.5") in new stack >> -- Executing [...@default:3] System("DAHDI/27-1", "test -e >> /var/spool/asterisk/rogzites/hangrogzito/20090128-103110-1233135070.29.wav") >> in new stack >> -- Executing [...@default:4] NoOp("DAHDI/27-1", "SUCCESS") in new stack >> -- Executing [...@default:5] Read("DAHDI/27-1", >> "dummy,/var/spool/asterisk/rogzites/hangrogzito/20090128-103110-1233135070.29.wav,1") >> in new stack >> -- Accepting a maximum of 1 digits. >> [Jan 28 10:31:23] WARNING[29417]: file.c:589 ast_openstream_full: File >> /var/spool/asterisk/rogzites/hangrogzito/20090128-103110-1233135070.29.wav >> does not exist in any format >> [Jan 28 10:31:23] WARNING[29417]: file.c:898 ast_streamfile: Unable to >> open >> /var/spool/asterisk/rogzites/hangrogzito/20090128-103110-1233135070.29.wav >> (format 0x48 (alaw|slin)): No such file or directory >> -- User disconnected >> >> Looks like file is exists to Asterisk as well because "test -e" gives >> SUCCESS. Why Read cannot find this file later? Might is it locked? >> Then how could I unlock it? >> >> I am using latest Asterisk (1.6.0.5) on Ubuntu 8.10. >> >> Bye, >> Zsolt _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
