From 5a9cd3d23535f1258aca4b28097cf14177573fd0 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Fri, 2 Mar 2007 00:20:44 +0000 Subject: [PATCH] Return the correct digit that interrupted the stream. This fixes exiting the Background application when using the m option. (issue #9176, mjagdis) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@57396 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main/file.c b/main/file.c index bb9f05964e..c1346e5a18 100644 --- a/main/file.c +++ b/main/file.c @@ -1033,6 +1033,7 @@ static int waitstream_core(struct ast_channel *c, const char *breakon, if (context) { const char exten[2] = { fr->subclass, '\0' }; if (ast_exists_extension(c, context, exten, 1, c->cid.cid_num)) { + res = fr->subclass; ast_frfree(fr); return res; }