[asterisk-bugs] [Asterisk 0013453]: 0007068: Asterisk crashes when using record_file to record in h263 format

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Sep 10 08:35:18 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13453 
====================================================================== 
Reported By:                nendariani
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13453
Category:                   Resources/res_agi
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.21.1 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-09-10 04:54 CDT
Last Modified:              2008-09-10 08:35 CDT
====================================================================== 
Summary:                    0007068: Asterisk crashes when using record_file to
record in h263 format
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..



====================================================================== 

---------------------------------------------------------------------- 
 (0092297) blitzrage (administrator) - 2008-09-10 08:35
 http://bugs.digium.com/view.php?id=13453#c92297 
---------------------------------------------------------------------- 
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. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-09-10 08:35 blitzrage      Note Added: 0092297                          
======================================================================




More information about the asterisk-bugs mailing list