aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_followme.c
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-04 20:59:04 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-04 20:59:04 +0000
commitba1bb983539b4d5f9748cec216383fe6c8e0b0f1 (patch)
tree46601a767515451c60e5d94dee5a942ecc512c9c /apps/app_followme.c
parentaae35e37969d101b05352cb48acfe7827d3723df (diff)
Merged revisions 81455 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 (closes issue #10634) ........ r81455 | qwell | 2007-09-04 15:54:51 -0500 (Tue, 04 Sep 2007) | 4 lines Rather than attempt to play a file, we can just check whether it exists. Issue 10634, patch by me, testing by pabelanger, sanity checked by bweschke ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@81456 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_followme.c')
-rw-r--r--apps/app_followme.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/app_followme.c b/apps/app_followme.c
index 1a697e526..751bef458 100644
--- a/apps/app_followme.c
+++ b/apps/app_followme.c
@@ -963,12 +963,8 @@ static int app_exec(struct ast_channel *chan, void *data)
if (ast_play_and_record(chan, "vm-rec-name", namerecloc, 5, "sln", &duration, 128, 0, NULL) < 0)
goto outrun;
- /* The following call looks like we're going to playback the file, but we're actually */
- /* just checking to see if we *can* play it. */
- if (ast_streamfile(chan, namerecloc, chan->language))
+ if (!ast_fileexists(namerecloc, NULL, chan->language))
ast_copy_string(namerecloc, "", sizeof(namerecloc));
- else
- ast_stopstream(chan);
if (ast_streamfile(chan, targs.plsholdprompt, chan->language))
goto outrun;