Skip to content

Commit 0d2b10e

Browse files
authored
feat: add outbound trunk config for create_sip_participant. (#771)
* feat: add outbound trunk config for create_sip_participant. * fix. * Update sip.rs
1 parent 7b03bf7 commit 0d2b10e

File tree

1 file changed

+2
-0
lines changed
  • livekit-api/src/services

1 file changed

+2
-0
lines changed

livekit-api/src/services/sip.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,13 +417,15 @@ impl SIPClient {
417417
call_to: String,
418418
room_name: String,
419419
options: CreateSIPParticipantOptions,
420+
outbound_trunk_config: Option<proto::SipOutboundConfig>,
420421
) -> ServiceResult<proto::SipParticipantInfo> {
421422
self.client
422423
.request(
423424
SVC,
424425
"CreateSIPParticipant",
425426
proto::CreateSipParticipantRequest {
426427
sip_trunk_id: sip_trunk_id.to_owned(),
428+
trunk: outbound_trunk_config,
427429
sip_call_to: call_to.to_owned(),
428430
sip_number: options.sip_number.to_owned().unwrap_or_default(),
429431
room_name: room_name.to_owned(),

0 commit comments

Comments
 (0)