[asterisk-commits] qwell: branch 1.4 r81455 - /branches/1.4/apps/app_followme.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Sep 4 15:54:51 CDT 2007
Author: qwell
Date: Tue Sep 4 15:54:51 2007
New Revision: 81455
URL: http://svn.digium.com/view/asterisk?view=rev&rev=81455
Log:
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
Modified:
branches/1.4/apps/app_followme.c
Modified: branches/1.4/apps/app_followme.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_followme.c?view=diff&rev=81455&r1=81454&r2=81455
==============================================================================
--- branches/1.4/apps/app_followme.c (original)
+++ branches/1.4/apps/app_followme.c Tue Sep 4 15:54:51 2007
@@ -991,12 +991,8 @@
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;
More information about the asterisk-commits
mailing list