Merged revisions 223804 via svnmerge from
[asterisk/asterisk.git] / apps / app_dial.c
index 19e1148..f901639 100644 (file)
@@ -1068,7 +1068,9 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in,
                                        if (single && CAN_EARLY_BRIDGE(peerflags, in, c))
                                                ast_channel_early_bridge(in, c);
                                        if (!ast_test_flag64(outgoing, OPT_RINGBACK))
-                                               ast_indicate(in, AST_CONTROL_PROGRESS);
+                                               if (single || (!single && !pa->sentringing)) {
+                                                       ast_indicate(in, AST_CONTROL_PROGRESS);
+                                               }
                                                if(!ast_strlen_zero(dtmf_progress)) {
                                                        ast_verb(3, "Sending DTMF '%s' to the called party as result of receiving a PROGRESS message.\n", dtmf_progress);
                                                        ast_dtmf_stream(c, in, dtmf_progress, 250, 0);