This message was deleted.
# ask-ai
s
This message was deleted.
t
Thanks for reaching out, Aumesh. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Regarding setting max call duration — do you mean for a SIP trunk (inbound/outbound) in LiveKit? If so, you can set it either via the SIP API or the LiveKit Cloud dashboard. API (Create/Update SIP Inbound or Outbound Trunk) 1. Set the
max_call_duration
field to a protobuf Duration string (for example
"3600s"
for 1 hour or
"2h"
). 2. Include it in the JSON body when calling
CreateSIPInboundTrunk
,
UpdateSIPInboundTrunk
,
CreateSIPOutboundTrunk
, or
UpdateSIPOutboundTrunk
. Example inbound JSON:
Copy code
{
  "name": "My Inbound Trunk",
  "numbers": [
    "+15105550100"
  ],
  "max_call_duration": "3600s"
}
Example outbound JSON:
Copy code
{
  "name": "My Outbound Trunk",
  "address": "us.wavix.net",
  "destination_country": "US",
  "numbers": [
    "+15105550100"
  ],
  "max_call_duration": "7200s"
}
Dashboard 1. Go to Telephony → Configuration. 2. Create or edit a SIP trunk. 3. Under Optional settings, set Max call duration (seconds). 4. Save. If you want, tell me whether you’re configuring inbound or outbound trunks and whether you prefer API or dashboard steps—I can give the exact payload or walk through the dashboard UI. Sources: SIP APIs | LiveKit docs | Using Wavix to accept and make calls | LiveKit docs