]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Do not send progress when "ringing" only flag is set (bug #2553)
authorRussell Bryant <russell@russellbryant.com>
Fri, 8 Oct 2004 02:50:22 +0000 (02:50 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 8 Oct 2004 02:50:22 +0000 (02:50 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@3944 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_dial.c

index 7f3c3d7682970308733f38b6e9855841fb1ae931..d1e03c2227686faceec1b67aea86726095924ea0 100755 (executable)
@@ -336,7 +336,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 */