Qile
09/26/2025, 1:28 AMasync_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.Vapi Support Bot
09/26/2025, 1:29 AMmax_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)Qile
09/26/2025, 1:30 AMChiranjeet Mishra
09/30/2025, 4:18 PM