Ir al contenido
Odoo Menú
  • Identificarse
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • TPV para tiendas
    • TPV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en directo
    • eLearning
    Cadena de suministro
    • Inventario
    • Fabricación
    • PLM
    • Compra
    • Mantenimiento
    • Calidad
    Recursos Humanos
    • Empleados
    • Reclutamiento
    • Ausencias
    • Evaluación
    • Referencias
    • Flota
    Marketing
    • Marketing social
    • Marketing por correo electrónico
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyecto
    • Partes de horas
    • Servicio de campo
    • Servicio de asistencia
    • Planificación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Información
    • WhatsApp
    Aplicaciones de terceros Studio de Odoo Plataforma de Odoo Cloud
  • Industrias
    Comercio al por menor
    • Librería
    • Tienda de ropa
    • Tienda de muebles
    • Tienda de ultramarinos
    • Ferretería
    • Juguetería
    Food & Hospitality
    • Bar y taberna
    • Restaurante
    • Comida rápida
    • Guest House
    • Distribuidor de bebidas
    • Hotel
    Real Estate
    • Real Estate Agency
    • Estudio de arquitectura
    • Construcción
    • Gestión inmobiliaria
    • Jardinería
    • Asociación de propietarios
    Consulting
    • Accounting Firm
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Fabricación
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Regalos de empresas
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Terapeutas
    • Farmacia
    • Peluquería
    Trades
    • Handyman
    • Hardware y asistencia informática
    • Solar Energy Systems
    • Zapatero
    • Servicios de limpieza
    • HVAC Services
    Others
    • Nonprofit Organization
    • Agencia de protección del medio ambiente
    • Alquiler de paneles publicitarios
    • Estudio fotográfico
    • Alquiler de bicicletas
    • Distribuidor de software
    Browse all Industries
  • Comunidad
    Aprender
    • Tutoriales
    • Documentación
    • Certificaciones
    • Formación
    • Blog
    • Podcast
    Potenciar la educación
    • Programa de formación
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtener el software
    • Descargar
    • Comparar ediciones
    • Versiones
    Colaborar
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Convertirse en partner
    • Services for Partners
    • Registrar tu empresa contable
    Obtener servicios
    • Encontrar un partner
    • Encontrar un asesor fiscal
    • Contacta con un experto
    • Servicios de implementación
    • Referencias de clientes
    • Ayuda
    • Actualizaciones
    GitHub YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicitar una demostración
  • Precios
  • Ayuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyecto
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

Connect Odoo to Asterisk (FreePBX)

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
voipasteriskcallVOIPWEBRTC
4 Respuestas
12298 Vistas
Avatar
Reinhard Mengelberg

Tutorial: Connecting Odoo to FreePBX

What it does: The Odoo VoIP softphone seamlessly integrates with Odoo CRM, allowing users to make and receive calls directly from the Odoo interface. Odoo recommends configuring your VoIP with AxiVox.

If you prefer not to use AxiVox due to high costs or poor configurability, you can link Odoo with Asterisk. FreePBX is a relatively easy-to-learn GUI for Asterisk, allowing you to build and manage your own phone systems. For setting up FreePBX, I recommend these tutorials:


Youtube - CrossTalk Solutions - FreePBX 101 - Complete Setup Series (Not enough karma to place a link haha)


Configuring Advanced Settings

Step 1: Log in to the FreePBX Web Interface

  1. Open your web browser and go to the IP address of your FreePBX server.
  2. Log in with your username and password.

Step 2: Adjust Advanced Settings

  1. Navigate to Settings > Advanced Settings.
  2. SIP Channel Driver:
    • Scroll down and find SIP Channel Driver.
    • Change it from 'both' to 'chan_pjsip'. (this is important, Odoo want to make a connection using chan_sip, which is deprecated, if this is not set correctly)
  3. SIP DTMF Signalling:
    • Scroll down and find SIP DTMF Signalling.
    • Change it to 'rfc 2833'.

Step 3: Save and Apply

  1. Click Submit to save the settings.
  2. Click the red Apply Config button at the top of the page to apply the changes.
Configuring Asterisk SIP Settings

Step 1: Log in to the FreePBX Web Interface

  1. Open your web browser and go to the IP address of your FreePBX server.
  2. Log in with your username and password.

Step 2: Adjust General Asterisk SIP Settings

  1. Navigate to Settings > Asterisk SIP Settings.
  2. Go to General SIP settings.
  3. NAT Settings:
    • Add all your local networks under Local Networks.
  4. Audio Codecs:
    • Add the following audio codecs:
      • g722
      • alaw
      • ulaw
      • opus
    • Note: The codecs may vary depending on your trunk provider. These are all required for Odoo to function correctly with FreePBX.

Step 3: Save and Apply

  1. Click Submit to save the settings.
  2. Click the red Apply Config button at the top of the page to apply the changes.
Adjusting Asterisk SIP Settings [chan_pjsip]

Step 1: Log in to the FreePBX Web Interface

  1. Open your web browser and go to the IP address of your FreePBX server.
  2. Log in with your username and password.

Step 2: Adjust [chan_pjsip] Asterisk SIP Settings

  1. Navigate to Settings > Asterisk SIP Settings.
  2. Go to SIP Settings [chan_pjsip].
  3. Enable wss transporter:
    • Go to transporter.
    • Set wss - 0.0.0.0 - All to Yes (important for WebRTC).

Step 3: Save and Apply

  1. Click Submit to save the settings.
  2. Click the red Apply Config button at the top of the page to apply the changes.
Configuring Extensions in FreePBX for Odoo WebRTC

Step 1: Log in to the FreePBX Web Interface

  1. Open your web browser and go to the IP address of your FreePBX server.
  2. Log in with your username and password.

Step 2: Create a New Extension

  1. Navigate to Applications > Extensions.
  2. Click Add Extension and select Add New Extension, then choose Chan_PJSIP as the technology.

Step 3: Configure Extension Settings

  • General Settings:
    • User Extension: Enter the extension number, e.g., 1001.
    • Display Name: Enter the user's name, e.g., the customer's company name.
    • Outbound CID: Leave this field blank unless specific requirements exist.
    • Link to a Default User: Choose Create New User.
    • Groups: Select the groups this user should belong to.
  • Secret (Password):
    • Use a strong password. The default password may be sufficient, but it is better to use a unique and strong password for security.
  • Voicemail:
    • Enable Voicemail: Enable this if you want voicemail for this extension.
    • Voicemail Password: Set a password for accessing voicemail. Use a strong password.
  • Advanced (for Odoo extensions, not for regular extensions):
    • DTMF mode: Set this to RFC4733.
    • Transport: Choose 0.0.0.0-wss (WebSocket Secure).
    • Enable AVPF: Set this to Yes (important for WebRTC).
    • Enable ICE Support: Set this to Yes (important for WebRTC).
    • Enable rtcp MUX: Set this to Yes (important for WebRTC).
    • Disallowed Codecs: all
    • Allowed Codecs: opus&g722&ulaw&alaw
    • Max Contacts: Change from 1 to 5 to allow multiple simultaneous registrations.
    • Enable RTP Symmetric: Set this to Yes.
    • Rewrite Contact: Set this to Yes.
    • Force rport: Set this to Yes.
    • Media Encryption: DTLS-SRTP

Save:

  1. Click Submit to save the changes.
  2. Click Apply Config to apply the configuration.
Explanation of Some Settings
  • Enable AVPF: Required for WebRTC to support AVPF (Audio-Visual Profile with Feedback).
  • Enable ICE Support: ICE (Interactive Connectivity Establishment) helps bypass NAT/firewall restrictions.
  • Enable RTP Symmetric, Rewrite Contact, Force rport: These settings help correctly route RTP and SIP traffic through NAT.
  • Transport: 0.0.0.0-wss is needed for WebRTC to establish the connection via a secure WebSocket.
Extra Checks

Verify Network Configuration:

  • Ensure the external IP address and local network ranges are correctly set under Settings > Asterisk SIP Settings.

SIP Debugging:

  • Run pjsip set logger on in the Asterisk CLI to monitor SIP traffic and diagnose any negotiation issues.
Connect Odoo with your server:
  1. Navigate to the Odoo Apps Menu:
    • Go to the main menu of your Odoo database and navigate to Apps.
    • Search for the VoIP module and install it.
  2. Configure VoIP Server Settings:
    • Go to Settings > VoIP.
    • Add your FreePBX server settings:
      • PBX Server IP: 0.0.0.0 (Replace with the IP of your FreePBX server)
      • WebSocket: wss://pbx.yourfqdn.com:8089/ws (Replace pbx.yourfqdn.com with the FQDN of your FreePBX server)
      • VoIP Environment: Production
  3. Configure VoIP User Settings:
    • Go to Settings > Users & Companies > Users and select the appropriate user.
    • Go to Preferences > VoIP.
    • Add your FreePBX user settings:
      • VoIP Username: The extension number found in the extension you want to link in FreePBX.
      • VoIP Secret: The secret found in the extension you want to link in FreePBX.
  4. Use the Odoo Softphone:
    • Go to the CRM module and open a contact or lead.
    • Click on the phone icon next to the phone number to make a call via the integrated softphone.



4
Avatar
Descartar
Avatar
Max
Mejor respuesta

Hello!
Check MikoPBX instead of FreePBX and Asterisk Plus module that integrates it with Odoo.
All the best!

0
Avatar
Descartar
Avatar
Landon Hillard
Mejor respuesta

Reinhard,

Thank you for the Tutorial. Have you had trouble after connecting all the peices, passing voices through. I can make the call from odoo and it will ring the phone, but when someone answers they hear nothing and I can't hear them talk on the other end. 

0
Avatar
Descartar
Avatar
islam nazih
Mejor respuesta

hello Reinhard thank you for this tutorial it is very helpful but i have a problem 
i get this message in softphone odoo 

Your browser does not support some of the features required for VoIP to work. Please try updating your browser or using a different one.

how can fix it i use ws in port 8088 
because I don't have certificate 

0
Avatar
Descartar
Avatar
admin@soraxpress.com
Mejor respuesta

Hello Reinhard.

 i followed your tutorial but it still doesn't work in odoo. my freepbx 16 is already working with standard voip phone (without websocket). there is a few detail i want to confirm it's right


- the port is 5060,5061or 5062

- the websocket have trailing /ws

- the setting should be chan_pjsip not 'chan_sip'

0
Avatar
Descartar
Reinhard Mengelberg
Autor

Make sure to connect WebRTC to port 8089! the regular UDP or TLS ports wont work, even with encryption.
Both of your other settings are correct.
Also make sure you have an FQDN. Check codecs as well.
If you have any other questions feel free to ask!

Happy Calling!

¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Inscribirse
Publicaciones relacionadas Respuestas Vistas Actividad
Odoo 3cx integration
voip call VOIP
Avatar
Avatar
1
jun 23
3029
VOIP Integration: has anyone integrated 3cx with OpenERP?
voip asterisk
Avatar
Avatar
Avatar
Avatar
Avatar
11
jul 25
19356
Voip and voxloud
voip VOIP
Avatar
0
ene 23
2217
Installing Asterisk on hosted Odoo Resuelto
asterisk VOIP odooonline
Avatar
Avatar
2
sept 25
2478
py-asterisk compatibility issue Resuelto
voip asterisk odoov11
Avatar
Avatar
1
may 21
4612
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento Odoo.sh
  • Ayuda
  • Actualizar
  • Desarrollos personalizados
  • Educación
  • Encontrar un asesor fiscal
  • Encontrar un partner
  • Convertirse en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contacta con nosotros
  • Puestos de trabajo
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Información legal • Privacidad
  • Seguridad
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y totalmente integrado.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now