From 63a271eb55c9b10b7b2d53352e61fc49db1fe310 Mon Sep 17 00:00:00 2001
From: BJ Weschke <bweschke@btwtech.com>
Date: Tue, 6 Jun 2006 17:15:16 +0000
Subject: [PATCH]  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
---
 apps/app_followme.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/apps/app_followme.c b/apps/app_followme.c
index ee7e07341a..41598530a2 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;
-- 
GitLab