diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-07-30 16:10:51 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-07-30 16:10:51 +0000 |
commit | fab8b0d20a1cba7362aab1f1ea15eaec7956915b (patch) | |
tree | 6a3f552fff0fe4a471b94d822ffc21f06bf63099 /apps/app_dial.c | |
parent | 0c8f2a559e91262a6ccdac0e0e3d4b174dc384dc (diff) |
Add alternate queueing strategies. Implment ringall, roundrobin, and random
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1238 f38db490-d61c-443f-a65b-d21fe96a405b
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; } |