aboutsummaryrefslogtreecommitdiffstats
path: root/main/say.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-05 20:53:41 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-05 20:53:41 +0000
commit348b34d836c65a46bdd097e3a3cf84d315cd74dd (patch)
tree21079dca25ed1c23c36170ebb92db4b70f3eba9b /main/say.c
parent32be69e04efba6789deebe6204853932deef69db (diff)
Fix an issue that can occur when you do an attended transfer to parking. If
you complete the transfer before the announcement of the parking spot finishes, then the channel being parked will hear the remainder of the announcement. These changes make it so that will not happen anymore. Basically, res_features sets a flag on the channel is playing the announcement to so that the file streaming core knows that it needs to watch out for a channel masquerade, and if it occurs, to abort the announcement. (closes BE-182) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@81599 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/say.c')
-rw-r--r--main/say.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/say.c b/main/say.c
index 7ab1931ed..e0282f84f 100644
--- a/main/say.c
+++ b/main/say.c
@@ -258,9 +258,9 @@ static int say_digit_str_full(struct ast_channel *chan, const char *str, const c
res = ast_streamfile(chan, fn, lang);
if (!res) {
if ((audiofd > -1) && (ctrlfd > -1))
- res = ast_waitstream_full(chan, ints, audiofd, ctrlfd);
- else
- res = ast_waitstream(chan, ints);
+ res = ast_waitstream_full(chan, ints, audiofd, ctrlfd);
+ else
+ res = ast_waitstream(chan, ints);
}
ast_stopstream(chan);
}