diff --git a/funcs/func_dialgroup.c b/funcs/func_dialgroup.c
index 4a789d627dff330b0251d23ceaae326f21da9068..c3322e3f9b451ccf5967accdc1856fbbd711b492 100644
--- a/funcs/func_dialgroup.c
+++ b/funcs/func_dialgroup.c
@@ -144,7 +144,7 @@ static int dialgroup_read(struct ast_channel *chan, const char *cmd, char *data,
 
 	buf[0] = '\0';
 
-	i = ao2_iterator_init(grhead->entries, OBJ_POINTER);
+	i = ao2_iterator_init(grhead->entries, 0);
 	while ((entry = ao2_iterator_next(&i))) {
 		int tmp = strlen(entry->name);
 		/* Ensure that we copy only complete names, not partials */