Skip to content
Snippets Groups Projects
Commit 90f152b2 authored by Russell Bryant's avatar Russell Bryant
Browse files

Merged revisions 61774 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r61774 | russell | 2007-04-24 11:16:41 -0500 (Tue, 24 Apr 2007) | 5 lines

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: https://origsvn.digium.com/svn/asterisk/trunk@61775 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 721f85d0
Branches
Tags
No related merge requests found
...@@ -343,11 +343,13 @@ static void handle_frame(struct ast_dial *dial, struct ast_dial_channel *channel ...@@ -343,11 +343,13 @@ static void handle_frame(struct ast_dial *dial, struct ast_dial_channel *channel
ast_verbose(VERBOSE_PREFIX_3 "%s is ringing\n", channel->owner->name); ast_verbose(VERBOSE_PREFIX_3 "%s is ringing\n", channel->owner->name);
if (!dial->options[AST_DIAL_OPTION_MUSIC]) if (!dial->options[AST_DIAL_OPTION_MUSIC])
ast_indicate(chan, AST_CONTROL_RINGING); ast_indicate(chan, AST_CONTROL_RINGING);
set_state(dial, AST_DIAL_RESULT_RINGING);
break; break;
case AST_CONTROL_PROGRESS: case AST_CONTROL_PROGRESS:
if (option_verbose > 2) if (option_verbose > 2)
ast_verbose (VERBOSE_PREFIX_3 "%s is making progress, passing it to %s\n", channel->owner->name, chan->name); 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); ast_indicate(chan, AST_CONTROL_PROGRESS);
set_state(dial, AST_DIAL_RESULT_PROGRESS);
break; break;
case AST_CONTROL_VIDUPDATE: case AST_CONTROL_VIDUPDATE:
if (option_verbose > 2) if (option_verbose > 2)
...@@ -358,6 +360,7 @@ static void handle_frame(struct ast_dial *dial, struct ast_dial_channel *channel ...@@ -358,6 +360,7 @@ static void handle_frame(struct ast_dial *dial, struct ast_dial_channel *channel
if (option_verbose > 2) if (option_verbose > 2)
ast_verbose (VERBOSE_PREFIX_3 "%s is proceeding, passing it to %s\n", channel->owner->name, chan->name); ast_verbose (VERBOSE_PREFIX_3 "%s is proceeding, passing it to %s\n", channel->owner->name, chan->name);
ast_indicate(chan, AST_CONTROL_PROCEEDING); ast_indicate(chan, AST_CONTROL_PROCEEDING);
set_state(dial, AST_DIAL_RESULT_PROCEEDING);
break; break;
case AST_CONTROL_HOLD: case AST_CONTROL_HOLD:
if (option_verbose > 2) if (option_verbose > 2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment