From c09ad4e192b09a2a7bfdaed78af54b8ff4e4b1ef Mon Sep 17 00:00:00 2001
From: Josh Roberson <josh@asteriasgi.com>
Date: Mon, 13 Feb 2006 17:50:53 +0000
Subject: [PATCH] Don't set the formats before we stop indications.  (issue
 #6380)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9759 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 apps/app_meetme.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/apps/app_meetme.c b/apps/app_meetme.c
index ce233e3ca3..d6dd2990f6 100644
--- a/apps/app_meetme.c
+++ b/apps/app_meetme.c
@@ -985,6 +985,8 @@ static int conf_run(struct ast_channel *chan, struct ast_conference *conf, int c
 		}
 	}
 
+	ast_indicate(chan, -1);
+
 	if (ast_set_write_format(chan, AST_FORMAT_SLINEAR) < 0) {
 		ast_log(LOG_WARNING, "Unable to set '%s' to write linear mode\n", chan->name);
 		goto outrun;
@@ -995,7 +997,6 @@ static int conf_run(struct ast_channel *chan, struct ast_conference *conf, int c
 		goto outrun;
 	}
 
-	ast_indicate(chan, -1);
 	retryzap = strcasecmp(chan->tech->type, "Zap");
 	user->zapchannel = !retryzap;
 
-- 
GitLab