diff options
-rw-r--r-- | res/res_agi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_agi.c b/res/res_agi.c index 0a56f94e8..b0de6db36 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); |