Skip to content

Commit 3625168

Browse files
authored
[fix] trunk_ids Assignment Error in SIPDispatchRuleUpdate (#468)
1 parent 297d1d0 commit 3625168

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

livekit-api/livekit/api/sip_service.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,10 +330,12 @@ async def update_sip_dispatch_rule_fields(
330330
Only provided fields will be updated.
331331
"""
332332
update = SIPDispatchRuleUpdate(
333-
name=name, metadata=metadata, rule=rule, attributes=attributes
333+
name=name,
334+
metadata=metadata,
335+
rule=rule,
336+
attributes=attributes,
337+
trunk_ids=ListUpdate(set=trunk_ids) if trunk_ids else None,
334338
)
335-
if trunk_ids is not None:
336-
update.trunk_ids = ListUpdate(set=trunk_ids)
337339
return await self._client.request(
338340
SVC,
339341
"UpdateSIPDispatchRule",

0 commit comments

Comments
 (0)