]> git.ipfire.org Git - thirdparty/asterisk.git/commit
fastagi: record file closed after sending result 19/1719/1
authorKevin Harwell <kharwell@digium.com>
Wed, 25 Nov 2015 21:26:35 +0000 (15:26 -0600)
committerKevin Harwell <kharwell@digium.com>
Wed, 25 Nov 2015 21:26:35 +0000 (15:26 -0600)
commit9014f1f4a52dce9acbc2d1d1e7fdbb00f2a52154
treee4ee2829568e40fa7dfc1d6bea600c5602bd1392
parente4ba64691754c7873fba52e36c74cfc71e0a053c
fastagi: record file closed after sending result

The fastagi record-file testsuite test sometimes fails reporting an empty
recorded file. This was happening because Asterisk was sending the agi result
notification prior to actually closing the file and the data, being buffered,
had not been written to the file yet when the test attempts to check the file
size.

This patch makes it so the record file stream is closed prior to sending the
agi result notification.

ASTERISK-25593 #close

Change-Id: I6b2b3be3ae37f7c7b18e672c419a89b3b8513cde
res/res_agi.c