Artifex Maximus
2009-Jan-28 09:45 UTC
[asterisk-users] Record and then Read does not found file
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 [8298 at 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 [8298 at default:9] NoOp("DAHDI/27-1", "") in new stack -- Executing [8298 at default:10] Wait("DAHDI/27-1", "0.5") in new stack -- Executing [8298 at default:11] Set("DAHDI/27-1", "TIMEOUT(digit)=1") in new stack -- Digit timeout set to 1 -- Executing [8298 at default:12] Set("DAHDI/27-1", "TIMEOUT(response)=10") in new stack -- Response timeout set to 10 -- Executing [8298 at 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 [1 at default:1] NoOp("DAHDI/27-1", "") in new stack -- Executing [1 at default:2] Wait("DAHDI/27-1", "0.5") in new stack -- Executing [1 at default:3] System("DAHDI/27-1", "test -e /var/spool/asterisk/rogzites/hangrogzito/20090128-103110-1233135070.29.wav") in new stack -- Executing [1 at default:4] NoOp("DAHDI/27-1", "SUCCESS") in new stack -- Executing [1 at 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
Steven J. Douglas
2009-Jan-28 10:10 UTC
[asterisk-users] Record and then Read does not found file
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 [8298 at 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 [8298 at default:9] NoOp("DAHDI/27-1", "") in new stack > -- Executing [8298 at default:10] Wait("DAHDI/27-1", "0.5") in new stack > -- Executing [8298 at default:11] Set("DAHDI/27-1", > "TIMEOUT(digit)=1") in new stack > -- Digit timeout set to 1 > -- Executing [8298 at default:12] Set("DAHDI/27-1", > "TIMEOUT(response)=10") in new stack > -- Response timeout set to 10 > -- Executing [8298 at 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 [1 at default:1] NoOp("DAHDI/27-1", "") in new stack > -- Executing [1 at default:2] Wait("DAHDI/27-1", "0.5") in new stack > -- Executing [1 at default:3] System("DAHDI/27-1", "test -e > /var/spool/asterisk/rogzites/hangrogzito/20090128-103110-1233135070.29.wav") > in new stack > -- Executing [1 at default:4] NoOp("DAHDI/27-1", "SUCCESS") in new stack > -- Executing [1 at 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 >
Maybe Matching Threads
- Problema ao Logar no Dominio
- 11 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_playback_alsa.c libswfdec-gtk/swfdec_source.c libswfdec/swfdec_cached.c libswfdec/swfdec_font.c libswfdec/swfdec_morphshape.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_script.c
- FAX
- Looking for SIP loud ringer
- I would like to correct some minor errors and add NagViz