diff options
author | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-09-04 20:54:51 +0000 |
---|---|---|
committer | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-09-04 20:54:51 +0000 |
commit | b12595690c1ad9440ba2955c5e6bb40ce7f7b24b (patch) | |
tree | b24e8636972eab4002a0865a9441965929192492 /apps | |
parent | afc58ce32b61df86475456b91d91b6ad6c3083b9 (diff) |
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/branches/1.4@81455 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_followme.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/app_followme.c b/apps/app_followme.c index e068054ac..075bc9f1a 100644 --- a/apps/app_followme.c +++ b/apps/app_followme.c @@ -991,12 +991,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; |