summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2015-07-22 13:19:02 -0500
committerGerrit Code Review <gerrit2@gerrit.digium.api>2015-07-22 13:19:02 -0500
commitff83c115c753adbb3208d739c13a2854ced093ed (patch)
tree2ce925f4680ea40bf7c2d75e0cb49c138fbb4f82
parentf1493f900e76304ecf28eed30d37fba8e54d926b (diff)
parent54b25c80c8387aea9eb20f9f4f077486cbdf3e5d (diff)
Merge "Local channels: Do not block control -1 payloads." into 13
-rw-r--r--main/core_unreal.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/main/core_unreal.c b/main/core_unreal.c
index 23d80328c..cbeb1d3ed 100644
--- a/main/core_unreal.c
+++ b/main/core_unreal.c
@@ -409,12 +409,7 @@ static int unreal_queue_indicate(struct ast_unreal_pvt *p, struct ast_channel *a
int isoutbound;
ao2_lock(p);
- /*
- * Block -1 stop tones events if we are to be optimized out. We
- * don't need a flurry of these events on an unreal channel chain
- * when initially connected to slow the optimization process.
- */
- if (0 <= condition || ast_test_flag(p, AST_UNREAL_NO_OPTIMIZATION)) {
+ if (ast_test_flag(p, AST_UNREAL_NO_OPTIMIZATION)) {
struct ast_frame f = {
.frametype = AST_FRAME_CONTROL,
.subclass.integer = condition,