Skip to content

Commit d3e79b3

Browse files
authored
Adding display name to CreateSipParticipant (#544)
1 parent 75f56bb commit d3e79b3

File tree

5 files changed

+19
-15
lines changed

5 files changed

+19
-15
lines changed

.changeset/brown-teams-kiss.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'livekit-server-sdk': minor
3+
---
4+
5+
Added displayName field to CreateSipParticipantOptions

examples/agent-dispatch/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
},
1414
"dependencies": {
1515
"dotenv": "^16.4.5",
16-
"livekit-server-sdk": "workspace:*",
17-
"@livekit/protocol": "^1.39.0"
16+
"livekit-server-sdk": "workspace:*"
1817
},
1918
"devDependencies": {
2019
"@types/node": "^20.10.4",

packages/livekit-server-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
},
4444
"dependencies": {
4545
"@bufbuild/protobuf": "^1.10.1",
46-
"@livekit/protocol": "^1.39.0",
46+
"@livekit/protocol": "^1.42.0",
4747
"camelcase-keys": "^9.0.0",
4848
"jose": "^5.1.2"
4949
},

packages/livekit-server-sdk/src/SipClient.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ export interface CreateSipParticipantOptions {
123123
participantIdentity?: string;
124124
/** Optional name of the participant */
125125
participantName?: string;
126+
/** Optional display name for the SIP participant */
127+
displayName?: string;
126128
/** Optional metadata to attach to the participant */
127129
participantMetadata?: string;
128130
/** Optional attributes to attach to the participant */
@@ -719,6 +721,7 @@ export class SipClient extends ServiceBase {
719721
roomName: roomName,
720722
participantIdentity: opts.participantIdentity || 'sip-participant',
721723
participantName: opts.participantName,
724+
displayName: opts.displayName,
722725
participantMetadata: opts.participantMetadata,
723726
participantAttributes: opts.participantAttributes,
724727
dtmf: opts.dtmf,

pnpm-lock.yaml

Lines changed: 9 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)