Skip to content

Commit

Permalink
export sip stuff (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
theomonnom authored Apr 16, 2024
1 parent 0dae2b1 commit e526d72
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions livekit-api/livekit/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from livekit.protocol.models import *
from livekit.protocol.room import *
from livekit.protocol.webhook import *
from livekit.protocol.sip import *

from .twirp_client import TwirpError, TwirpErrorCode
from .livekit_api import LiveKitAPI
Expand Down
6 changes: 6 additions & 0 deletions livekit-api/livekit/api/livekit_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from .room_service import RoomService
from .egress_service import EgressService
from .ingress_service import IngressService
from .sip_service import SipService
from typing import Optional


Expand All @@ -29,6 +30,7 @@ def __init__(
self._room = RoomService(self._session, url, api_key, api_secret)
self._ingress = IngressService(self._session, url, api_key, api_secret)
self._egress = EgressService(self._session, url, api_key, api_secret)
self._sip = SipService(self._session, url, api_key, api_secret)

@property
def room(self):
Expand All @@ -42,5 +44,9 @@ def ingress(self):
def egress(self):
return self._egress

@property
def sip(self):
return self._sip

async def aclose(self):
await self._session.close()
3 changes: 2 additions & 1 deletion livekit-protocol/livekit/protocol/__init__.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion livekit-rtc/livekit/rtc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
KeyProviderOptions,
)
from .participant import LocalParticipant, Participant, RemoteParticipant
from .room import ConnectError, DataPacket, Room, RoomOptions, RtcConfiguration
from .room import ConnectError, DataPacket, Room, RoomOptions, RtcConfiguration, SipDTMF
from .track import (
AudioTrack,
LocalAudioTrack,
Expand Down Expand Up @@ -90,6 +90,7 @@
"Room",
"RoomOptions",
"RtcConfiguration",
"SipDTMF",
"DataPacket",
"LocalAudioTrack",
"LocalVideoTrack",
Expand Down

0 comments on commit e526d72

Please sign in to comment.