From c608e970055b86871f25dd7c43bf9fb0a0910c58 Mon Sep 17 00:00:00 2001
From: Mark Spencer <markster@digium.com>
Date: Thu, 7 Oct 2004 18:28:49 +0000
Subject: [PATCH] Do not send progress when "ringing" only flag is set (bug
 #2553)

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

diff --git a/apps/app_dial.c b/apps/app_dial.c
index c09d054dd5..fddddebe9e 100755
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
@@ -343,7 +343,8 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct localu
 						case AST_CONTROL_PROGRESS:
 							if (option_verbose > 2)
 								ast_verbose ( VERBOSE_PREFIX_3 "%s is making progress passing it to %s\n", o->chan->name,in->name);
-							ast_indicate(in, AST_CONTROL_PROGRESS);
+							if (!outgoing->ringbackonly)
+								ast_indicate(in, AST_CONTROL_PROGRESS);
 							break;
 						case AST_CONTROL_OFFHOOK:
 							/* Ignore going off hook */
-- 
GitLab