[Home]

Summary:ASTERISK-15433: Record() doesn't produce recorded file on hangup with 'x' option
Reporter:Benjamin Goldsbury (dominii)Labels:
Date Opened:2010-01-14 20:17:10.000-0600Date Closed:2011-06-07 14:00:24
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Applications/app_record
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:According to 'core show application Record':
x: Ignore all terminator keys (DTMF) and keep recording until hangup.

However, the using the following AEL dialplan code:
6000 => {
  Answer;
  Record(/tmp/foo.wav,5,15,x);
}

you will be able to place a call to extension 6000.  After hanging up, ${RECORD_STATUS} is set to 'HANGUP', but ${RECORDED_FILE} is empty and '/tmp/foo.wav' is not created.
Comments:By: Leif Madsen (lmadsen) 2010-01-15 13:18:36.000-0600

I don't think that is a bug. I think you also need the 'k' option in order to keep the recording once the channel hangs up. Otherwise Asterisk will just discard the recording.