Přejít na obsah
Odoo Menu
  • Přihlásit se
  • Vyzkoušejte zdarma
  • Aplikace
    Finance
    • Účetnictví
    • Fakturace
    • Výdaje
    • Spreadsheet (BI)
    • Dokumenty
    • Podpisy
    Prodej
    • CRM
    • Prodej
    • POS Obchod
    • POS Restaurace
    • Předplatné
    • Pronájem
    Webové stránky
    • Webové stránky
    • E-shop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Dodavatelský řetězec
    • Sklad
    • Výroba
    • PLM
    • Nákup
    • Údržba
    • Kvalita
    Lidské zdroje
    • Zaměstnanci
    • Nábor
    • Volno
    • Hodnocení zaměstnanců
    • Doporučení
    • Vozový park
    Marketing
    • Marketing sociálních sítí
    • Emailový marketing
    • SMS Marketing
    • Události
    • Marketingová automatizace
    • Dotazníky
    Služby
    • Projekt
    • Časové výkazy
    • Práce v terénu
    • Helpdesk
    • Plánování
    • Schůzky
    Produktivita
    • Diskuze
    • Schvalování
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Aplikace třetích stran Odoo Studio Odoo cloudová platforma
  • Branže
    Maloobchod
    • Knihkupectví
    • Obchod s oblečením
    • Obchod s nábytkem
    • Potraviny
    • Obchod s hardwarem
    • Hračkářství
    Jídlo a pohostinství
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Penzion
    • Distributor nápojů
    • Hotel
    Nemovitost
    • Realitní kancelář
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Poradenství
    • Účetní firma
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textil
    • Kov
    • Nábytek
    • Jídlo
    • Pivovar
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Transakce
    • Údržbář
    • Podpora IT & hardware
    • Systémy solární energie
    • Výrobce obuvi
    • Úklidové služby
    • Služby HVAC
    Ostatní
    • Nezisková organizace
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Procházet všechna odvětví
  • Komunita
    Edukační program
    • Tutoriály
    • Dokumentace
    • Certifikace
    • Vzdělávání
    • Blog
    • Podcast
    Podpora vzdělávání
    • Vzdělávací program
    • Scale Up! Hra na firmu
    • Navštivte Odoo
    Získat software
    • Stáhnout
    • Porovnejte edice
    • Verze
    Spolupráce
    • Github
    • Fórum
    • Události
    • Překlady
    • Stát se partnerem
    • Služby pro partnery
    • Registrujte svou účetní firmu
    Získat služby
    • Najít partnera
    • Najít účetní
    • Setkejte se s poradcem
    • Implementační služby
    • Zákaznické reference
    • Podpora
    • Upgrady
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dohodnout demo
  • Ceník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účetnictví
  • Sklad
  • PoS
  • Projekty
  • MRP
All apps
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
Pomoc

Connect Odoo to Asterisk (FreePBX)

Odebírat

Get notified when there's activity on this post

This question has been flagged
voipasteriskcallVOIPWEBRTC
4 Odpovědi
12593 Zobrazení
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
Zrušit
Avatar
Max
Nejlepší odpověď

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

0
Avatar
Zrušit
Avatar
Landon Hillard
Nejlepší odpověď

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
Zrušit
Avatar
islam nazih
Nejlepší odpověď

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
Zrušit
Avatar
admin@soraxpress.com
Nejlepší odpověď

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
Zrušit
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!

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Přihlásit se
Related Posts Odpovědi Zobrazení Aktivita
Odoo 3cx integration
voip call VOIP
Avatar
Avatar
1
čvn 23
3118
VOIP Integration: has anyone integrated 3cx with OpenERP?
voip asterisk
Avatar
Avatar
Avatar
Avatar
Avatar
11
čvc 25
19435
Voip and voxloud
voip VOIP
Avatar
0
led 23
2268
Installing Asterisk on hosted Odoo Vyřešeno
asterisk VOIP odooonline
Avatar
Avatar
2
zář 25
2538
py-asterisk compatibility issue Vyřešeno
voip asterisk odoov11
Avatar
Avatar
1
kvě 21
4677
Komunita
  • Tutoriály
  • Dokumentace
  • Fórum
Open Source
  • Stáhnout
  • Github
  • Runbot
  • Překlady
Služby
  • Odoo.sh hostování
  • Podpora
  • Upgrade
  • Nestandardní vývoj
  • Edukační program
  • Najít účetní
  • Najít partnera
  • Stát se partnerem
O nás
  • Naše společnost
  • Podklady značky
  • Kontakujte nás
  • Práce
  • Události
  • Podcast
  • Blog
  • Zákazníci
  • Právní dokumenty • Soukromí
  • Zabezpečení
الْعَرَبيّة 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 je balíček open-source aplikací, které pokrývají všechny potřeby vaší společnosti: CRM, e-shop, účetnictví, sklady, kasy, projektové řízení a další.

Unikátní nabídka od Odoo poskytuje velmi jednoduché uživatelské rozhraní a vše je integrované na jednom místě.

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