Summary:ASTERISK-08328: Asterisk crashes if it can not find file that it just recorded
Reporter:Romik_g (romik)Labels:
Date Opened:2006-12-11 09:46:17.000-0600Date Closed:2007-01-07 15:46:54.000-0600
Versions:Frequency of
Environment:Attachments:( 0) ast.strace.log
Description:Asterisk crashes if it can not find file that it just recorded.
(sorry for my english)

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

Dial to Dictate application, press 1, *, say something, remove file that server has just recorded, press 1 and * to try to listen for the recording - Asterisk server will crash.
Comments:By: Joshua C. Colp (jcolp) 2006-12-11 10:11:36.000-0600

If you could get a backtrace it would be useful, documentation for getting one is in the doc directory - backtrace.txt. Otherwise I will lab this up later today.

By: Romik_g (romik) 2006-12-11 10:36:33.000-0600

Can't get core :(
It seems to me that thre is something with limits.conf but I'm not sure.

Error is in block that starts from 267th stroke:
if (lastop != DFLAG_PLAY) {
 lastop = DFLAG_PLAY;
 fs = ast_openstream(chan, path, chan->language);
 ast_seekstream(fs, samples, SEEK_SET);
 chan->stream = NULL;
Error is in 'ast_openstream' function call, that calls another function 'ast_openstream_full' from "asterisk/file.h".

By: Tilghman Lesher (tilghman) 2007-01-07 15:46:54.000-0600

Fixed in 1.2 in rev 49833, merged to 1.4 in rev 49834, merged to trunk in rev 49835.