server icon indicating copy to clipboard operation
server copied to clipboard

Fix TwilioNTS to return ice servers in same format as CoturnHMAC

Open Askaholic opened this issue 4 years ago • 0 comments

The response for ice_servers doesn't fit the format that the client is expecting because of the implementation of CoturnHMAC.

  • First server returned has no credentials
  • urls field is not a list
  • all servers are missing credentialType

See the example response here: https://www.twilio.com/docs/stun-turn?code-sample=code-generate-nts-token&code-language=Python&code-sdk-version=6.x

The TwilioNTS client should take the response from the twilio API and massage it into the same format as the CoturnHMAC.

Askaholic avatar Aug 20 '21 00:08 Askaholic