Set Daily expiration to 2-hrs, add Telnyx API key support

This commit is contained in:
Mark Backman
2025-07-29 23:36:23 -04:00
parent 5b6e25a7e0
commit 46c520bb36
2 changed files with 3 additions and 2 deletions

View File

@@ -103,9 +103,9 @@ async def configure_with_args(
aiohttp_session=aiohttp_session,
)
# Create a meeting token for the given room with an expiration 1 hour in
# Create a meeting token for the given room with an expiration 2 hours in
# the future.
expiry_time: float = 60 * 60
expiry_time: float = 2 * 60 * 60
token = await daily_rest_helper.get_token(url, expiry_time)

View File

@@ -363,6 +363,7 @@ async def _create_telephony_transport(
call_control_id=call_data["call_control_id"],
outbound_encoding=call_data["outbound_encoding"],
inbound_encoding="PCMU", # Standard default
api_key=os.getenv("TELNYX_API_KEY", ""),
)
elif transport_type == "plivo":
from pipecat.serializers.plivo import PlivoFrameSerializer