Squad calls not respecting `max_duration_seconds`
# support
q
I'm currently creating calls with a permanent squad with structured outputs attached to the permanent assistants in the squad via the vapi python server sdk (version 1.7.2). When I create calls with the code
Copy code
async_vapi_client.calls.create(
        squad_id=`fc5b686e-4435-4628-9e6b-5ab71929b640`,
        phone_number_id="a08625a8-acf6-4832-b27c-8107ab28ebfd",
        customer=CreateCustomerDto(number=phone_number),
        assistant_overrides=AssistantOverrides(
            variable_values={"agent_name": agent_name, "candidate_name": candidate_name},
            max_duration_seconds=1800,
        ),
    )
the call still shuts down immediately at 600seconds, which is the default value of
max_duration_seconds
, even after I added the override of
max_duration_seconds=1800
in the
assistant_overrides
. I've tried to address this by setting
max_duration_seconds
on each assistant in the squad via the
assistant_overrides
field in each
SquadMemberDto
in the
await async_vapi_client.squads.create(...)
function call, to no avail. Is there another place that I should be setting this value, or an internal block preventing me from having longer calls? ID of an example of a call with this issue:
78098f9c-8ea7-4d87-ba1f-47d5b36b0e27
, which was created at
2025-09-25 16:46:02.746000+00:00
Note that the
ended_reason
is
exceeded-max-duration
even with the
max_duration_seconds
set to
1800
in the assistant overrides.
v
Thank you for the detailed context. To help pinpoint the issue: Are you using any organization-level or account-level settings in the Vapi dashboard that might enforce a maximum call duration (e.g., a global or telephony provider limit), regardless of the
max_duration_seconds
set in your code?
This will help determine if the override is being superseded by a higher-level configuration. Sources: - [Vapi API Reference: Sessions/Create](https://docs.vapi.ai/api-reference/sessions/create?explorer=true) - [Vapi Documentation: Transient vs Permanent Configurations](https://docs.vapi.ai/assistants/concepts/transient-vs-permanent-configurations)
q
Where would I find account level settings enforcing a maximum call duration?
c
You can find the account level settings for enforcing a maximum call duration in the account management section of your dashboard. Look for the settings related to call preferences or call limits, where you can set the maximum duration for calls.
6 Views