Set Daily expiration to 2-hrs, add Telnyx API key support
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user