Skip to Content
Odoo Menu
  • Zaloguj się
  • Wypróbuj za darmo
  • Aplikacje
    Finanse
    • Księgowość
    • Fakturowanie
    • Wydatki
    • Arkusz kalkulacyjny (BI)
    • Dokumenty
    • Podpisy
    Sprzedaż
    • CRM
    • Sprzedaż
    • PoS Sklep
    • PoS Restauracja
    • Subskrypcje
    • Wypożyczalnia
    Strony Internetowe
    • Kreator Stron Internetowych
    • eCommerce
    • Blog
    • Forum
    • Czat na Żywo
    • eLearning
    Łańcuch dostaw
    • Magazyn
    • Produkcja
    • PLM
    • Zakupy
    • Konserwacja
    • Jakość
    Zasoby Ludzkie
    • Pracownicy
    • Rekrutacja
    • Urlopy
    • Ocena pracy
    • Polecenia Pracownicze
    • Flota
    Marketing
    • Marketing Społecznościowy
    • E-mail Marketing
    • SMS Marketing
    • Wydarzenia
    • Automatyzacja Marketingu
    • Ankiety
    Usługi
    • Projekt
    • Ewidencja czasu pracy
    • Usługi Terenowe
    • Helpdesk
    • Planowanie
    • Spotkania
    Produktywność
    • Dyskusje
    • Zatwierdzenia
    • IoT
    • VoIP
    • Baza wiedzy
    • WhatsApp
    Aplikacje trzecich stron Studio Odoo Odoo Cloud Platform
  • Branże
    Sprzedaż detaliczna
    • Księgarnia
    • Sklep odzieżowy
    • Sklep meblowy
    • Sklep spożywczy
    • Sklep z narzędziami
    • Sklep z zabawkami
    Żywienie i hotelarstwo
    • Bar i Pub
    • Restauracja
    • Fast Food
    • Pensjonat
    • Dystrybutor napojów
    • Hotel
    Agencja nieruchomości
    • Agencja nieruchomości
    • Biuro architektoniczne
    • Budowa
    • Zarządzanie nieruchomościami
    • Ogrodnictwo
    • Stowarzyszenie właścicieli nieruchomości
    Doradztwo
    • Biuro księgowe
    • Partner Odoo
    • Agencja marketingowa
    • Kancelaria prawna
    • Agencja rekrutacyjna
    • Audyt i certyfikacja
    Produkcja
    • Tekstylia
    • Metal
    • Meble
    • Jedzenie
    • Browar
    • Prezenty firmowe
    Zdrowie & Fitness
    • Klub sportowy
    • Salon optyczny
    • Centrum fitness
    • Praktycy Wellness
    • Apteka
    • Salon fryzjerski
    Transakcje
    • Złota rączka
    • Wsparcie Sprzętu IT
    • Systemy energii słonecznej
    • Szewc
    • Firma sprzątająca
    • Usługi HVAC
    Inne
    • Organizacja non-profit
    • Agencja Środowiskowa
    • Wynajem billboardów
    • Fotografia
    • Leasing rowerów
    • Sprzedawca oprogramowania
    Przeglądaj wszystkie branże
  • Community
    Ucz się
    • Samouczki
    • Dokumentacja
    • Certyfikacje
    • Szkolenie
    • Blog
    • Podcast
    Pomóż w nauce innym
    • Program Edukacyjny
    • Scale Up! Gra biznesowa
    • Odwiedź Odoo
    Skorzystaj z oprogramowania
    • Pobierz
    • Porównaj edycje
    • Wydania
    Współpracuj
    • Github
    • Forum
    • Wydarzenia
    • Tłumaczenia
    • Zostań partnerem
    • Usługi dla partnerów
    • Zarejestruj swoją firmę rachunkową
    Skorzystaj z usług
    • Znajdź partnera
    • Znajdź księgowego
    • Spotkaj się z doradcą
    • Usługi wdrożenia
    • Opinie klientów
    • Wsparcie
    • Aktualizacje
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Zaplanuj demo
  • Cennik
  • Pomoc

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

  • CRM
  • e-Commerce
  • Księgowość
  • Zapasy
  • PoS
  • Projekt
  • MRP
All apps
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Pomoc

Connect Odoo to Asterisk (FreePBX)

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
voipasteriskcallVOIPWEBRTC
4 Odpowiedzi
12730 Widoki
Awatar
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
Awatar
Odrzuć
Awatar
Max
Najlepsza odpowiedź

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

0
Awatar
Odrzuć
Awatar
Landon Hillard
Najlepsza odpowiedź

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
Awatar
Odrzuć
Awatar
islam nazih
Najlepsza odpowiedź

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
Awatar
Odrzuć
Awatar
admin@soraxpress.com
Najlepsza odpowiedź

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
Awatar
Odrzuć
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!

Podoba Ci się ta dyskusja? Dołącz do niej!

Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!

Zarejestruj się
Powiązane posty Odpowiedzi Widoki Czynność
Odoo 3cx integration
voip call VOIP
Awatar
Awatar
1
cze 23
3139
VOIP Integration: has anyone integrated 3cx with OpenERP?
voip asterisk
Awatar
Awatar
Awatar
Awatar
Awatar
11
lip 25
19457
Voip and voxloud
voip VOIP
Awatar
0
sty 23
2279
Installing Asterisk on hosted Odoo Rozwiązane
asterisk VOIP odooonline
Awatar
Awatar
2
wrz 25
2554
py-asterisk compatibility issue Rozwiązane
voip asterisk odoov11
Awatar
Awatar
1
maj 21
4701
Społeczność
  • Samouczki
  • Dokumentacja
  • Forum
Open Source
  • Pobierz
  • Github
  • Runbot
  • Tłumaczenia
Usługi
  • Hosting Odoo.sh
  • Wsparcie
  • Aktualizacja
  • Indywidualne rozwiązania
  • Edukacja
  • Znajdź księgowego
  • Znajdź partnera
  • Zostań partnerem
O nas
  • Nasza firma
  • Zasoby marki
  • Skontaktuj się z nami
  • Oferty pracy
  • Wydarzenia
  • Podcast
  • Blog
  • Klienci
  • Informacje prawne • Prywatność
  • Bezpieczeństwo Odoo
الْعَرَبيّة 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 to pakiet aplikacji biznesowych typu open source, które zaspokoją wszystkie potrzeby Twojej firmy: CRM, eCommerce, księgowość, inwentaryzacja, punkt sprzedaży, zarządzanie projektami itp.

Unikalną wartością Odoo jest to, że jest jednocześnie bardzo łatwe w użyciu i w pełni zintegrowane.

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