dazzling-greece-44016
08/21/2025, 8:50 AMtall-airline-16756
08/21/2025, 8:50 AMtall-airline-16756
08/21/2025, 8:51 AMdazzling-greece-44016
08/21/2025, 8:54 AMtall-airline-16756
08/21/2025, 8:55 AMlk sip inbound create --name "my-inbound-trunk" --numbers "+1234567890" --auth-user "username" --auth-pass "password" --media-enc "SRTP"
◦ Create a Dispatch Rule:
lk sip dispatch create --name "direct-to-room" --trunks "trunk-id" --direct "my-room-name"
◦ Make an Outbound Call:
lk sip participant create --room "my-room" --trunk "outbound-trunk-id" --call "+0987654321" --wait
• Using Node.js SDK:
import { SipClient } from 'livekit-server-sdk';
const sipClient = new SipClient('wss://your-project.livekit.cloud', 'your-api-key', 'your-api-secret');
// Create an inbound trunk
const trunk = await sipClient.createSipInboundTrunk('inbound-trunk', ['+1234567890'], {
auth_username: 'sip-username',
auth_password: 'sip-password',
});
// Create a dispatch rule
const dispatchRule = await sipClient.createSipDispatchRule({
type: 'individual',
roomPrefix: 'call',
}, {
name: 'inbound-dispatch-rule',
trunkIds: [trunk.sipTrunkId],
});
If you have any questions or want me to walk you through more examples, just let me know—I’m here to help!
Sources: cmd/lk/cloud.go | src/setup-livekit.ts | packages/sip--um-actually/src/setup-livekit.ts | test/cloud/integration_test.godazzling-greece-44016
08/21/2025, 9:00 AMtall-airline-16756
08/21/2025, 9:01 AMconst participant = await roomService.updateParticipant('room-name', 'participant-identity', {
metadata: 'updated metadata',
name: 'New Name'
});
• Double-Check Authentication Claims: When you’re creating access tokens, make sure the identity field is set:
const token = new AccessToken(apiKey, apiSecret, {
identity: 'user-123',
name: 'User Name'
});
• Review Your API Request Structure: Confirm that both roomName and identity are included in your request.
• Using the CLI? Don’t forget to specify both room and identity:
lk room update-participant --room "my-room" --identity "user-123" --metadata "new metadata"
If you need a hand with anything else or want me to explain something further, just give me a shout!
Sources: config-sample.yaml | protobufs/livekit_room.proto | agent-console/app/_components/participant-action-panel.tsx | cmd/lk/room.go | src/room/Room.tsdazzling-greece-44016
08/21/2025, 9:05 AMtall-airline-16756
08/21/2025, 9:07 AMlk room participants update --room "my-room" --identity "participant-123" --metadata '{"role": "speaker"}'
Just a heads-up: LiveKit doesn’t support using the TCP protocol for participant updates. TCP is only for media streaming stuff like publishing video or audio streams. So, all participant management tasks, including updates, need to be done using HTTP/Twirp commands or SDK methods.
If you have a particular scenario in mind or want a hand with anything else, feel free to ask—I’m here to help!
Sources: autocomplete/fish_autocomplete | rpc/participant.psrpc.godazzling-greece-44016
08/21/2025, 9:13 AMtall-airline-16756
08/21/2025, 9:14 AM