[Home]

Summary:ASTERISK-13109: Asterisk crashes when Playback/Backround with non existing file.
Reporter:Chris Maciejewski (chris-mac)Labels:
Date Opened:2008-11-23 11:10:08.000-0600Date Closed:2008-11-24 15:27:22.000-0600
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Core/FileFormatInterface
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) gdb.txt
Description:As in the summary.

How to reproduce:

exten => 1,1,Playback(non-exisiting-file)
exten => 1,n,Hangup()

Regards,
Chris
Comments:By: Leif Madsen (lmadsen) 2008-11-24 12:19:20.000-0600

I confirmed this issue on the revision in question. I'm going to test on the latest checkout from 1.6.1 to see if it still happens.

By: Leif Madsen (lmadsen) 2008-11-24 12:28:53.000-0600

Issue confirmed on latest 1.6.1 branch (158810)

By: Digium Subversion (svnbot) 2008-11-24 15:27:22.000-0600

Repository: asterisk
Revision: 158851

U   trunk/main/file.c

------------------------------------------------------------------------
r158851 | mnicholson | 2008-11-24 15:27:21 -0600 (Mon, 24 Nov 2008) | 6 lines

Make ast_streamfile() check the result of ast_openstream() before doing
anything with it.

(closes issue ASTERISK-13109)
Reported by: chris-mac

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=158851