app_record: Fix bug where using the 'k' option and hanging up would trim 1/4 of a...
authorJoshua Colp <jcolp@digium.com>
Mon, 1 Dec 2014 13:41:43 +0000 (13:41 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 1 Dec 2014 13:41:43 +0000 (13:41 +0000)
commitef9ca8bc32c7cce781c35bca81d9ae544fd22dae
tree1681b3570da440e107fbb47e4c79f18d53ce02e5
parent7db3d1642b6c43aa69ae8d1676793f19c2aca8a3
app_record: Fix bug where using the 'k' option and hanging up would trim 1/4 of a second of the recording.

The Record dialplan function trims 1/4 of a second from the end of recordings in case
they are terminated because of DTMF. When hanging up, however, you don't want this to happen.
This change makes it so on hangup this does not occur.

ASTERISK-24530 #close
Reported by: Ben Smithurst
patches:
 app_record_v2.diff submitted by Ben Smithurst (license 6529)

Review: https://reviewboard.asterisk.org/r/4201/
........

Merged revisions 428653 from http://svn.asterisk.org/svn/asterisk/branches/11
........

Merged revisions 428654 from http://svn.asterisk.org/svn/asterisk/branches/12
........

Merged revisions 428655 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@428656 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_record.c