Merged revisions 103786 via svnmerge from
authorMark Michelson <mmichelson@digium.com>
Mon, 18 Feb 2008 20:53:25 +0000 (20:53 +0000)
committerMark Michelson <mmichelson@digium.com>
Mon, 18 Feb 2008 20:53:25 +0000 (20:53 +0000)
commit80e2db47c25e7fb87d0fbc9d2bbde989f49cecba
tree8958476d3b5f7896418a066c81a2796ecb4ab0c6
parentf7370d48315431127228288a1bc15a42c2dfbb38
Merged revisions 103786 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r103786 | mmichelson | 2008-02-18 14:52:09 -0600 (Mon, 18 Feb 2008) | 10 lines

There was an invalid assumption when calculating the duration of a file that the filestream in question
was created properly. Unfortunately this led to a segfault in the situation where an unknown format was
specified in voicemail.conf and a voicemail was recorded. Now, we first check to be sure that the stream
was written correctly or else assume a zero duration.

(closes issue #12021)
Reported by: jakep
Tested by: putnopvut

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@103787 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/app.c