summaryrefslogtreecommitdiff
path: root/apps/app_groupcount.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_groupcount.c')
-rwxr-xr-xapps/app_groupcount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_groupcount.c b/apps/app_groupcount.c
index 7835d580e..18838be23 100755
--- a/apps/app_groupcount.c
+++ b/apps/app_groupcount.c
@@ -174,7 +174,7 @@ static int group_check_exec(struct ast_channel *chan, void *data)
count = group_get_count(pbx_builtin_getvar_helper(chan, ret), ret);
if (count > max) {
- if (ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->callerid))
+ if (ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->cid.cid_num))
chan->priority += 100;
else
res = -1;