diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2005-09-07 19:13:00 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2005-09-07 19:13:00 +0000 |
commit | e0f02b46f1b18d2cdd5f218db49f9dcb1fe6d3a6 (patch) | |
tree | 09d54e0b28af50c87bac02b87c93c36feb721cf9 /apps/app_groupcount.c | |
parent | 1bd1a35a9affaea7bd47d81bc022194c8559b8f0 (diff) |
convert a bunch of apps to use ast_goto_if_exists() (issue #5138)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6533 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_groupcount.c')
-rwxr-xr-x | apps/app_groupcount.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/app_groupcount.c b/apps/app_groupcount.c index 57c00c820..736572fdd 100755 --- a/apps/app_groupcount.c +++ b/apps/app_groupcount.c @@ -146,9 +146,7 @@ static int group_check_exec(struct ast_channel *chan, void *data) if ((sscanf(limit, "%d", &max) == 1) && (max > -1)) { count = ast_app_group_get_count(pbx_builtin_getvar_helper(chan, category), category); if (count > max) { - if (ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->cid.cid_num)) - chan->priority += 100; - else + if (!ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 101)) res = -1; } } else |