[Home]

Summary:ASTERISK-12706: 0007068: Asterisk crashes when using record_file to record in h263 format
Reporter:nendariani (nendariani)Labels:
Date Opened:2008-09-10 04:54:41Date Closed:2011-06-07 14:08:05
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Resources/res_agi
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:same h263 format, I so confused using AGI for record file..
I have an agi that uses the record_file AGI command to record in wav format:
$agi->record_file('hiks', 'wav', '#','BEEP','15');
as soon as that file cannot be read by AGI..
so,, recode and size NULL/empty, AGI doesn't save file..

when i check in asterisk -vvvvr
[Sep 10 15:28:37] WARNING[10468]: file.c:1075 ast_writefile: Unable to open file /usr/share/asterisk/sounds/hiks.wav: Permission denied --> I've try change asterisk to be root,, but I can't hear file which I use stream file on my phpagi..
[Sep 10 15:28:37] WARNING[10468]: file.c:602 ast_openstream_full: File /var/lib/asterisk/sounds/hoi.wav does not exist in any format --> Isn't asteriks supprot wav. I've changed with gsm, but the same..

please help me..


Comments:By: Leif Madsen (lmadsen) 2008-09-10 08:35:18

This really does sound like a configuration issue. The main reason for that is because of this line:

File /var/lib/asterisk/sounds/hoi.wav does not exist in any format

You should not be passing the extension of the file to the Playback() application because Asterisk will automatically determine the best format to use based on the codec setup of the channel.

In addition, the other error you have is a file permissions problem, which is an operating system issue / configuration issue.

Please follow up on the asterisk-users mailing list for help in resolving your issues, or find a bug marshall in #asterisk-bugs on the Freenode IRC server at irc.freenode.net.