Skip to content
Open
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
15 changes: 12 additions & 3 deletions app/agents/voice/automatic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,18 @@ async def run_normal_mode(args):
if proxy_url:
logger.info(f"Configuring Daily WebRTC proxy: {proxy_url}")
try:
# Set proxy URL on the Daily CallClient
transport._client._client.set_proxy_url(proxy_url)
logger.info("Daily WebRTC proxy configured successfully")
# Set proxy environment variables - most reliable method
os.environ.update(
{
"HTTP_PROXY": proxy_url,
"HTTPS_PROXY": proxy_url,
"http_proxy": proxy_url,
"https_proxy": proxy_url,
}
)
logger.info(
"Daily WebRTC proxy configured successfully via environment variables"
)
Comment on lines +376 to +386
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is nothing but setting up environment variables. If this is required then you can just add these in env and then check

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In which file shall I add this, as this is cloud environment specific

except Exception as e:
logger.error(f"Failed to configure Daily WebRTC proxy: {e}")
# Don't fail initialization - continue without proxy
Expand Down