Spaces:
Runtime error
Runtime error
Update turn.py
Browse files
turn.py
CHANGED
|
@@ -18,13 +18,13 @@ def get_ice_servers():
|
|
| 18 |
|
| 19 |
# Access Twilio credentials from environment variables
|
| 20 |
try:
|
| 21 |
-
account_sid = os.environ["
|
| 22 |
-
auth_token = os.environ["
|
| 23 |
except KeyError:
|
| 24 |
logger.warning(
|
| 25 |
"Twilio credentials are not set. Fallback to a free STUN server from Google." # noqa: E501
|
| 26 |
)
|
| 27 |
-
return [{"urls": ["stun:stun.l.google.com:19302"]}
|
| 28 |
|
| 29 |
# Create a Twilio client using the obtained credentials
|
| 30 |
client = Client(account_sid, auth_token)
|
|
|
|
| 18 |
|
| 19 |
# Access Twilio credentials from environment variables
|
| 20 |
try:
|
| 21 |
+
account_sid = os.environ["TWILIO_ACCOUNT_SID"]
|
| 22 |
+
auth_token = os.environ["TWILIO_AUTH_TOKEN"]
|
| 23 |
except KeyError:
|
| 24 |
logger.warning(
|
| 25 |
"Twilio credentials are not set. Fallback to a free STUN server from Google." # noqa: E501
|
| 26 |
)
|
| 27 |
+
return [{"urls": ["stun:stun.l.google.com:19302"]}
|
| 28 |
|
| 29 |
# Create a Twilio client using the obtained credentials
|
| 30 |
client = Client(account_sid, auth_token)
|