transports(daily): daily-python 0.14.0 (SIP transfer/refer, DTMF)

This commit is contained in:
Aleix Conchillo Flaqué
2024-12-19 15:27:40 -08:00
parent 15047f5f0a
commit 8b496f8c6f
3 changed files with 34 additions and 1 deletions

View File

@@ -491,6 +491,21 @@ class DailyTransportClient(EventHandler):
self._client.stop_dialout(participant_id, completion=completion_callback(future))
await future
async def send_dtmf(self, settings):
future = self._loop.create_future()
self._client.send_dtmf(settings, completion=completion_callback(future))
await future
async def sip_call_transfer(self, settings):
future = self._loop.create_future()
self._client.sip_call_transfer(settings, completion=completion_callback(future))
await future
async def sip_refer(self, settings):
future = self._loop.create_future()
self._client.sip_refer(settings, completion=completion_callback(future))
await future
async def start_recording(self, streaming_settings, stream_id, force_new):
future = self._loop.create_future()
self._client.start_recording(
@@ -955,6 +970,15 @@ class DailyTransport(BaseTransport):
async def stop_dialout(self, participant_id):
await self._client.stop_dialout(participant_id)
async def send_dtmf(self, settings):
await self._client.send_dtmf(settings)
async def sip_call_transfer(self, settings):
await self._client.sip_call_transfer(settings)
async def sip_refer(self, settings):
await self._client.sip_refer(settings)
async def start_recording(self, streaming_settings=None, stream_id=None, force_new=None):
await self._client.start_recording(streaming_settings, stream_id, force_new)