Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

export sip stuff #191

Merged
merged 3 commits into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading