Configure ICE servers with Twilio

Estimated reading: 2 minutes 10 views

Introduction

Odoo Discuss makes it easy to collaborate with your team through voice and video calls. These calls rely on WebRTC peer-to-peer connections. However, if one participant is behind a symmetric NAT (a common network restriction), the call may fail unless an ICE server is configured.

 

The good news? You can use Twilio ICE servers to make sure your calls always connect smoothly. This guide walks you step by step through setting up Twilio with Odoo.

Step-by-Step Instructions

 

  1. Create a Twilio Account
  • Go to Twilio’s website and click Sign up.
  • Enter your name, email, and password, then accept the terms of service.
  • Click Start your free trial and verify your email.
  • Add your phone number, then enter the verification code Twilio sends via SMS.

On the Twilio welcome page, answer the setup questions:

  • Which Twilio product are you here to use?Video
  • What do you plan to build with Twilio?Other
  • How do you want to build with Twilio?With no code at all
  • What is your goal today?3rd party integrations

Finally, check your billing country and click Get Started with Twilio.

  1. Find Your Account SID and Auth Token
  • Go to your Twilio dashboard.
  • In the sidebar, click Develop.
  • Under Account Info, you’ll see your Account SID and Auth Token.
  • Keep these safe – you’ll need them in Odoo.
  1. Connect Twilio to Odoo
  • Log in to your Odoo database.
  • Navigate to Settings → General Settings → Discuss.
  • Tick the box Use Twilio ICE servers.
  • Enter your Twilio Account SID and Auth Token.
  • Click Save to apply the changes.
  1. (Optional) Define Custom ICE Servers

If Twilio isn’t available, Odoo can fall back on custom ICE servers.

To set them up:

  • Go to Settings → General Settings → Discuss.
  • Under Custom ICE server list, click ICE Servers.
  • Add your own ICE servers to the list.

Tips

  • For on-premise Odoo installations, make sure the package python3-gevent is installed. This is required for Discuss voice/video calls on Ubuntu servers.
  • Keep your Twilio credentials secure. Do not share them publicly.
  • If calls aren’t connecting, test both Twilio ICE servers and your custom servers.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Learn how we helped 100 top brands gain success