aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_groupcount.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-07 19:13:00 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-07 19:13:00 +0000
commita21860310e9d59b024eaa4cd22e6d85dd8845941 (patch)
tree09d54e0b28af50c87bac02b87c93c36feb721cf9 /apps/app_groupcount.c
parentceace6fb1143f67f0b266c66e63f391840e0e89d (diff)
convert a bunch of apps to use ast_goto_if_exists() (issue #5138)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6533 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_groupcount.c')
-rwxr-xr-xapps/app_groupcount.c4
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