]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Add a few more state changes in handle_frame_ownerless() so that the SLA code
authorRussell Bryant <russell@russellbryant.com>
Tue, 24 Apr 2007 16:16:41 +0000 (16:16 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 24 Apr 2007 16:16:41 +0000 (16:16 +0000)
will get notified of these changes even when an owner channel is not provided.
This isn't from a specific bug report, it's just something I noticed while
poking around.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@61774 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/dial.c

index 9536629e93b11a8978bf13c59f5e738c3961d70b..d1432cff138d0de20e104eb57c439210e5096c98 100644 (file)
@@ -325,11 +325,13 @@ static void handle_frame(struct ast_dial *dial, struct ast_dial_channel *channel
                        if (option_verbose > 2)
                                ast_verbose(VERBOSE_PREFIX_3 "%s is ringing\n", channel->owner->name);
                        ast_indicate(chan, AST_CONTROL_RINGING);
+                       set_state(dial, AST_DIAL_RESULT_RINGING);
                        break;
                case AST_CONTROL_PROGRESS:
                        if (option_verbose > 2)
                                ast_verbose (VERBOSE_PREFIX_3 "%s is making progress, passing it to %s\n", channel->owner->name, chan->name);
                        ast_indicate(chan, AST_CONTROL_PROGRESS);
+                       set_state(dial, AST_DIAL_RESULT_PROGRESS);
                        break;
                case AST_CONTROL_VIDUPDATE:
                        if (option_verbose > 2)
@@ -340,6 +342,7 @@ static void handle_frame(struct ast_dial *dial, struct ast_dial_channel *channel
                        if (option_verbose > 2)
                                ast_verbose (VERBOSE_PREFIX_3 "%s is proceeding, passing it to %s\n", channel->owner->name, chan->name);
                        ast_indicate(chan, AST_CONTROL_PROCEEDING);
+                       set_state(dial, AST_DIAL_RESULT_PROCEEDING);
                        break;
                case AST_CONTROL_HOLD:
                        if (option_verbose > 2)