diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-04-24 16:16:41 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-04-24 16:16:41 +0000 |
commit | a11120ccdb7e7f7e237ddfcfa6668e92069a924b (patch) | |
tree | e3c66298d467dde335393325d7f63f9c12488fc6 /main | |
parent | 843f85a73dd0e3cae1c22c04b0fc32b10f33816d (diff) |
Add a few more state changes in handle_frame_ownerless() so that the SLA code
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: http://svn.digium.com/svn/asterisk/branches/1.4@61774 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/dial.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/dial.c b/main/dial.c index 9536629e9..d1432cff1 100644 --- a/main/dial.c +++ b/main/dial.c @@ -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) |