diff options
author | Mark Spencer <markster@digium.com> | 2003-07-30 16:10:51 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2003-07-30 16:10:51 +0000 |
commit | 21b6696e8b4435b9b81e8e504af82a0893b71bef (patch) | |
tree | 6a3f552fff0fe4a471b94d822ffc21f06bf63099 /apps/app_dial.c | |
parent | c8edb6ab5d9d7a4d969a3f94601a3b81cc79a5d5 (diff) |
Add alternate queueing strategies. Implment ringall, roundrobin, and random
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1238 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_dial.c')
-rwxr-xr-x | apps/app_dial.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c index d2db6932f..6cbd9c32f 100755 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -178,7 +178,7 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct localu winner = ast_waitfor_n(watchers, pos, to); o = outgoing; while(o) { - if (o->stillgoing && (o->chan->_state == AST_STATE_UP)) { + if (o->stillgoing && o->chan && (o->chan->_state == AST_STATE_UP)) { if (!peer) { if (option_verbose > 2) ast_verbose( VERBOSE_PREFIX_3 "%s answered %s\n", o->chan->name, in->name); @@ -206,7 +206,7 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct localu o->stillgoing = 0; ast_hangup(o->chan); o->chan = NULL; - numbusies++; + numbusies++; } continue; } |