mirror of
https://github.com/suitenumerique/meet.git
synced 2026-08-18 14:33:24 +00:00
🐛(backend) ensure SIP dispatch rule instead of creating it
The roomkit can now create a SIP dispatch rule before the LiveKit webhook that used to trigger this creation is fired. In practice, when the roomkit connects to the room, it also triggers the webhook, leading to a duplicated dispatch rule. Switch from "create dispatch rule" to "ensure dispatch rule exists" semantics, so subsequent calls are idempotent and no duplicate rule is created.
This commit is contained in:
@@ -247,7 +247,7 @@ class LiveKitEventsService:
|
||||
|
||||
if settings.ROOM_TELEPHONY_ENABLED or settings.ROOMKIT_ENABLED:
|
||||
try:
|
||||
self.sip_management.create_dispatch_rule(room)
|
||||
self.sip_management.ensure_dispatch_rule(room)
|
||||
except SIPException as e:
|
||||
raise ActionFailedError(
|
||||
f"Failed to create sip dispatch rule for room {room_id}"
|
||||
|
||||
Reference in New Issue
Block a user