# Copyright 2021-2024 The Wazo Authors  (see the AUTHORS file)
# SPDX-License-Identifier: GPL-3.0-or-later

from __future__ import annotations

from psycopg2.extras import DictCursor

from wazo_agid import agid
from wazo_agid.handlers import group


def group_answered_call(agi: agid.FastAGI, cursor: DictCursor, args: list[str]) -> None:
    handler = group.AnswerHandler(agi, cursor, args)
    handler.execute()


agid.register(group_answered_call)
