aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-11 19:30:34 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-11 19:30:34 +0000
commit4086c0e3374cd5922ad15d4f5206cccc6e6edb1a (patch)
tree82cddb323838fd2274f1f02cb9853921ed0bbcaa
parentbd79260890d5a30c9ce8fa9fb394b4523274f739 (diff)
Merged revisions 98317 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r98317 | file | 2008-01-11 15:28:30 -0400 (Fri, 11 Jan 2008) | 6 lines 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: http://svn.digium.com/svn/asterisk/trunk@98318 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--res/res_agi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_agi.c b/res/res_agi.c
index 0c352c843..75692089b 100644
--- a/res/res_agi.c
+++ b/res/res_agi.c
@@ -1342,7 +1342,7 @@ static int handle_recordfile(struct ast_channel *chan, AGI *agi, int argc, char
}
f = ast_read(chan);
if (!f) {
- ast_agi_fdprintf(chan, agi->fd, "200 result=%d (hangup) endpos=%ld\n", 0, sample_offset);
+ ast_agi_fdprintf(chan, agi->fd, "200 result=%d (hangup) endpos=%ld\n", -1, sample_offset);
ast_closestream(fs);
if (sildet)
ast_dsp_free(sildet);