aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorbweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-06 17:15:16 +0000
committerbweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-06 17:15:16 +0000
commitf2c016711330baa3aa1cd05e11a38d5d549d2790 (patch)
tree487acc840fb3d01d67bf6276f478faa42f7000cd /apps
parent591c1b6c739087d43a5837f816f7f268fdd5ba81 (diff)
If the recorded file is found, don't actually start to play it.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32633 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_followme.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/app_followme.c b/apps/app_followme.c
index ee7e07341..41598530a 100644
--- a/apps/app_followme.c
+++ b/apps/app_followme.c
@@ -1018,6 +1018,8 @@ static int app_exec(struct ast_channel *chan, void *data)
/* just checking to see if we *can* play it. */
if (ast_streamfile(chan, namerecloc, chan->language))
ast_copy_string(namerecloc, "", sizeof(namerecloc));
+ else
+ ast_stopstream(chan);
if (ast_streamfile(chan, targs.plsholdprompt, chan->language))
goto outrun;