aboutsummaryrefslogtreecommitdiffstats
path: root/main/file.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-02 00:20:44 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-02 00:20:44 +0000
commit8d6756ed96867bf2da070e6178960054db232d7b (patch)
tree4c2be3b4fc5284a88ad69182f8ce1baae573c1b9 /main/file.c
parentd5cab4c713b3a877c53f618a8edc79b2ccc28090 (diff)
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: http://svn.digium.com/svn/asterisk/branches/1.4@57396 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/file.c')
-rw-r--r--main/file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/file.c b/main/file.c
index bb9f05964..c1346e5a1 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;
}