salmon-lighter-12882
12/08/2025, 12:59 PMtall-airline-16756
12/08/2025, 12:59 PMtall-airline-16756
12/08/2025, 12:59 PMTransferSIPParticipant API call? If so, does the access token include the SIP call permission?
• Any provider error logs or SIP traces (the INVITE/REFER/response) you can share?
If you prefer, share the provider name and I’ll list the exact settings to check for that provider.
Sources: SIP troubleshooting guide | LiveKit docs | Call forwarding | LiveKit docs | How Vicidial Handles Bridging, Transfers, and SIP Calls | SIP APIs | LiveKit docssalmon-lighter-12882
12/08/2025, 1:01 PMtall-airline-16756
12/08/2025, 1:01 PMTransferSIPParticipant include the SIP call permission?
While you reply, please check these on your side:
• Provider settings: Ensure SIP REFER / Call Transfer and PSTN transfer are enabled for that trunk (or confirm the provider supports REFER). If the provider doesn’t support REFER, use a bridging/warm-transfer workflow instead.
• SIP traces/logs: Capture the REFER request and the provider’s 405 response (or full SIP dialog). The exact response header/body often shows why the method was disallowed.
• LiveKit local config: Confirm your LiveKit SIP gateway is routing the REFER to your provider and not modifying the method.
• Token permissions: Verify the token used to invoke TransferSIPParticipant includes the SIP call grant.
If you can share the provider name and either the SIP trace (INVITE/REFER + response) or the provider settings screenshots, I’ll give the exact settings and next steps.salmon-lighter-12882
12/08/2025, 1:02 PMtall-airline-16756
12/08/2025, 1:02 PMcall permission in the access token used for TransferSIPParticipant. Pick the language you use.
Node.js (TypeScript)
import { AccessToken, SIPGrant, VideoGrant } from "livekit-server-sdk";
const at = new AccessToken("API_KEY", "API_SECRET", { identity: "transfer-agent" });
const sipGrant: SIPGrant = { call: true }; // <— required
const videoGrant: VideoGrant = { roomJoin: true, room: "my-room" };
at.addGrant(sipGrant);
at.addGrant(videoGrant);
const token = await at.toJwt();
console.log(token);
Go
import (
"time"
"github.com/livekit/protocol/auth"
)
at := auth.NewAccessToken("API_KEY", "API_SECRET")
sipGrant := &auth.SIPGrant{ Call: true } // <— required
videoGrant := &auth.VideoGrant{ RoomJoin: true, Room: "my-room" }
at.SetSIPGrant(sipGrant).
SetVideoGrant(videoGrant).
SetIdentity("transfer-identity").
SetValidFor(time.Hour)
jwt, _ := at.ToJWT()
fmt.Println(jwt)
Python
from livekit import api
import os
token = api.AccessToken(os.getenv("LIVEKIT_API_KEY"), os.getenv("LIVEKIT_API_SECRET")) \
.with_identity("transfer-identity") \
.with_grants(api.VideoGrants(room_join=True, room="my-room")) \
.with_sip_grants(api.SIPGrants(call=True)) \ # <— required
.to_jwt()
print(token)
What to check after creating the token:
• Use this token when calling TransferSIPParticipant.
• Confirm the token’s JWT contains a sip claim with "call": true.
• If you still get 405, tell me the SIP trunk provider name and a SIP trace of the REFER/response and I’ll help further. Sources: Authentication | LiveKit docs | sip | livekit/livekit_composite | DeepWiki