made sip and sipuri optional and None
This commit is contained in:
@@ -31,12 +31,15 @@ class DailyRoomProperties(BaseModel):
|
|||||||
enable_emoji_reactions: bool = False
|
enable_emoji_reactions: bool = False
|
||||||
eject_at_room_exp: bool = True
|
eject_at_room_exp: bool = True
|
||||||
enable_dialout: Optional[bool] = None
|
enable_dialout: Optional[bool] = None
|
||||||
sip: DailyRoomSipParams = DailyRoomSipParams()
|
sip: Optional[DailyRoomSipParams] = None
|
||||||
sip_uri: dict = {}
|
sip_uri: Optional[dict] = None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def sip_endpoint(self) -> str:
|
def sip_endpoint(self) -> str:
|
||||||
return "sip:%s" % self.sip_uri['endpoint']
|
if not self.sip_uri:
|
||||||
|
return ""
|
||||||
|
else:
|
||||||
|
return "sip:%s" % self.sip_uri['endpoint']
|
||||||
|
|
||||||
|
|
||||||
class DailyRoomParams(BaseModel):
|
class DailyRoomParams(BaseModel):
|
||||||
|
|||||||
Reference in New Issue
Block a user