diff options
author | Mark Spencer <markster@digium.com> | 2003-07-08 13:14:14 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2003-07-08 13:14:14 +0000 |
commit | 6d3f4243c19dc1131d02abf89f7262f44a0a3c37 (patch) | |
tree | be4736c73ee6d81d8c849d5b5d80b452722ed53f | |
parent | 4ec902aab560ab2a33f8c363e92b058e20713143 (diff) |
Simplify stack in call attempt
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1164 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rwxr-xr-x | apps/app_queue.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index 5ba34ee6f..8a7e1726f 100755 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -452,6 +452,7 @@ static int try_calling(struct queue_ent *qe, char *options, char *announceoverri char *newnum; struct ast_channel *peer; int res = 0, bridge = 0; + int zapx = 2; char *announce = NULL; /* Hold the lock while we setup the outgoing calls */ ast_pthread_mutex_lock(&qe->parent->lock); @@ -619,14 +620,12 @@ static int try_calling(struct queue_ent *qe, char *options, char *announceoverri return -1; } if (!strcmp(qe->chan->type,"Zap")) { - int x = 2; - if (tmp->dataquality) x = 0; - ast_channel_setoption(qe->chan,AST_OPTION_TONE_VERIFY,&x,sizeof(char),0); + if (tmp->dataquality) zapx = 0; + ast_channel_setoption(qe->chan,AST_OPTION_TONE_VERIFY,&zapx,sizeof(char),0); } if (!strcmp(peer->type,"Zap")) { - int x = 2; - if (tmp->dataquality) x = 0; - ast_channel_setoption(peer,AST_OPTION_TONE_VERIFY,&x,sizeof(char),0); + if (tmp->dataquality) zapx = 0; + ast_channel_setoption(peer,AST_OPTION_TONE_VERIFY,&zapx,sizeof(char),0); } /* Drop out of the queue at this point, to prepare for next caller */ leave_queue(qe); |