EngAbod commited on
Commit
811bd25
·
1 Parent(s): fc924ae

Update turn.py

Browse files
Files changed (1) hide show
  1. turn.py +3 -3
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["AC8620b566f7273df3b27724e1f1468afc"]
22
- auth_token = os.environ["631803725a8a5d737d1abf543d18e27c"]
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)