diff --git a/.changeset/hungry-parents-work.md b/.changeset/hungry-parents-work.md new file mode 100644 index 0000000..5de1c3a --- /dev/null +++ b/.changeset/hungry-parents-work.md @@ -0,0 +1,5 @@ +--- +"server-sdk-kotlin": patch +--- + +Add support for destination_country in outbound trunks diff --git a/protocol b/protocol index 3ee2664..7b3cb6d 160000 --- a/protocol +++ b/protocol @@ -1 +1 @@ -Subproject commit 3ee2664416147b7ca8086fd1aa818164d2673b0b +Subproject commit 7b3cb6db8d69394d2e157147257b462b6669ab22 diff --git a/src/main/kotlin/io/livekit/server/SipServiceClient.kt b/src/main/kotlin/io/livekit/server/SipServiceClient.kt index 20d8bd6..dafb5d4 100644 --- a/src/main/kotlin/io/livekit/server/SipServiceClient.kt +++ b/src/main/kotlin/io/livekit/server/SipServiceClient.kt @@ -100,6 +100,7 @@ class SipServiceClient( opt.metadata?.let { this.metadata = it } opt.authUsername?.let { this.authUsername = it } opt.authPassword?.let { this.authPassword = it } + opt.destinationCountry?.let { this.destinationCountry = it } } build() } @@ -160,6 +161,7 @@ class SipServiceClient( opt.authUsername?.let { this.authUsername = it } opt.authPassword?.let { this.authPassword = it } opt.numbers?.let { this.numbers = buildListUpdate(it) } + opt.destinationCountry?.let { this.destinationCountry = it } } build() } @@ -449,6 +451,7 @@ data class CreateSipOutboundTrunkOptions( var transport: LivekitSip.SIPTransport = LivekitSip.SIPTransport.SIP_TRANSPORT_AUTO, var authUsername: String? = null, var authPassword: String? = null, + var destinationCountry: String? = null, ) data class UpdateSipInboundTrunkOptions( @@ -469,6 +472,7 @@ data class UpdateSipOutboundTrunkOptions( var transport: LivekitSip.SIPTransport? = null, var authUsername: String? = null, var authPassword: String? = null, + var destinationCountry: String? = null, ) /**