From: Joshua Colp Date: Fri, 11 Jan 2008 19:28:30 +0000 (+0000) Subject: If the channel is hungup during RECORD FILE send a result code of -1 to be uniform... X-Git-Tag: 1.4.18~12^2~63 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ebdf2940b82c0bd5b0bc0c0b38929dd2aee1bf30;p=thirdparty%2Fasterisk.git If the channel is hungup during RECORD FILE send a result code of -1 to be uniform with everything else. (closes issue #11743) Reported by: davevg Patches: res_agi.diff uploaded by davevg (license 209) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@98317 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_agi.c b/res/res_agi.c index 0a56f94e85..b0de6db367 100644 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -977,7 +977,7 @@ static int handle_recordfile(struct ast_channel *chan, AGI *agi, int argc, char } f = ast_read(chan); if (!f) { - fdprintf(agi->fd, "200 result=%d (hangup) endpos=%ld\n", 0, sample_offset); + fdprintf(agi->fd, "200 result=%d (hangup) endpos=%ld\n", -1, sample_offset); ast_closestream(fs); if (sildet) ast_dsp_free(sildet);