diff options
author | BJ Weschke <bweschke@btwtech.com> | 2006-06-06 17:15:16 +0000 |
---|---|---|
committer | BJ Weschke <bweschke@btwtech.com> | 2006-06-06 17:15:16 +0000 |
commit | 63a271eb55c9b10b7b2d53352e61fc49db1fe310 (patch) | |
tree | 487acc840fb3d01d67bf6276f478faa42f7000cd | |
parent | 95871f201d51a55fef15ab8fd78e722c7700e2ca (diff) |
If the recorded file is found, don't actually start to play it.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@32633 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | apps/app_followme.c | 2 |
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; |