Summary:ASTERISK-12641: Playback does not play videofiles
Reporter:Christer (epicac)Labels:
Date Opened:2008-08-25 07:59:18Date Closed:2008-08-29 11:15:30
Versions:Frequency of
Environment:Attachments:( 0) 13372.patch
Description:Trying to get the Playback-application to play videofiles. The call gets connected, but Asterisk seems to be unable to open the videofile. I get this warning in CLI: "WARNING[3566]: file.c:623 ast_openvstream: File reklam has video but couldn't be opened"

****** STEPS TO REPRODUCE ******

I've put two files in /var/lib/asterisk/sounds/en/ reklam.h263 and reklam.ulaw. extensions.conf have one line looking like this:
exten => reklam,1,Playback(reklam)
sip.conf is configured to send incoming calls to reklam.


I made a change to the function ast_filehelper in main/file.c and Asterisk started to play my videofile. Maybe that can help solving this issue. I changed line 382 from: !(f->format & AST_FORMAT_AUDIO_MASK && fmt)) {
to: !(f->format & AST_FORMAT_VIDEO_MASK && fmt)) {
Comments:By: Mark Michelson (mmichelson) 2008-08-26 15:17:06

I've uploaded a patch which does something similar to what you stated in the description. In this patch, we continue attempting to open the file if its format matches either AST_FORMAT_AUDIO_MASK or AST_FORMAT_VIDEO_MASK.

Please test this to be sure that it operates properly.

By: Christer (epicac) 2008-08-29 11:00:04

I've tried the patch and it seems to be working. Will it be added to trunk anytime soon?

Thank you!

By: Mark Michelson (mmichelson) 2008-08-29 11:14:14

If it's working, I'll put it in right now. :)

Thanks for testing it out.

By: Digium Subversion (svnbot) 2008-08-29 11:15:29

Repository: asterisk
Revision: 140433

U   trunk/main/file.c

r140433 | mmichelson | 2008-08-29 11:15:28 -0500 (Fri, 29 Aug 2008) | 10 lines

Allow for video files to be opened as well as
audio files.

(closes issue ASTERISK-12641)
Reported by: epicac
     13372.patch uploaded by putnopvut (license 60)
Tested by: epicac