Skip to Content
Odoo मेन्यू
  • Sign in
  • मुफ़्त में आज़माएं
  • ऐप्लिकेशन
    फ़ाइनेंस
    • अकाउंटिंग
    • इनवॉइसिंग
    • एक्सपेंस
    • स्प्रेडशीट (बीआई)
    • डॉक्यूमेंट्स
    • साइन
    सेल्स
    • सीआरएम
    • सेल्स
    • पीओएस शॉप
    • पीओएस रेस्टोरेंट
    • सब्सक्रिप्शन
    • रेंटल
    वेबसाइट
    • वेबसाइट बिल्डर
    • ई-कॉमर्स
    • ब्लॉग
    • फ़ोरम
    • लाइव चैट
    • ई-लर्निंग
    सप्लाई चेन
    • इन्वेंट्री
    • मैन्युफ़ैक्चरिंग
    • पीएलएम
    • परचेज़
    • मेंटेनेंस
    • क्वालिटी
    मानव संसाधन
    • कर्मचारी
    • रिक्रूटमेंट
    • टाइम ऑफ़
    • अप्रेज़ल
    • रेफ़रल
    • फ़्लीट
    मार्केटिंग
    • सोशल मार्केटिंग
    • ईमेल मार्केटिंग
    • एसएमएस मार्केटिंग
    • इवेंट
    • मार्केटिंग ऑटोमेशन
    • सर्वे
    सेवाएं
    • प्रोजेक्ट
    • टाइमशीट
    • फ़ील्ड सर्विस
    • हेल्पडेस्क
    • प्लानिंग
    • अपॉइंटमेंट
    प्रॉडक्टिविटी
    • डिस्कस
    • अप्रूवल
    • आईओटी
    • वीओआईपी
    • नॉलेज
    • WhatsApp
    तीसरे पक्ष के ऐप्लिकेशन Odoo स्टूडियो Odoo क्लाउड प्लेटफ़ॉर्म
  • इंडस्ट्री
    रीटेल
    • बुक स्टोर
    • क्लोदिंग स्टोर
    • फ़र्नीचर स्टोर
    • ग्रॉसरी स्टोर
    • हार्डवेयर स्टोर
    • टॉय स्टोर
    Food & Hospitality
    • बार और पब
    • रेस्टोरेंट
    • फ़ास्ट फ़ूड
    • Guest House
    • बेवरिज डिस्ट्रीब्यूटर
    • होटल
    रियल एस्टेट
    • Real Estate Agency
    • आर्किटेक्चर फ़र्म
    • कंसट्रक्शन
    • एस्टेट मैनेजमेंट
    • गार्ड्निंग
    • प्रॉपर्टी ओनर असोसिएशन
    कंसल्टिंग
    • अकाउंटिंग फ़र्म
    • Odoo पार्टनर
    • मार्केटिंग एजेंसी
    • लॉ फ़र्म
    • टैलेंट ऐक्विज़िशन
    • ऑडिट & सर्टिफ़िकेशन
    मैन्युफ़ैक्चरिंग
    • टेक्सटाइल
    • Metal
    • फ़र्नीचर
    • फ़ूड
    • Brewery
    • कॉर्पोरेट गिफ़्ट
    हेल्थ & फिटनेस
    • स्पोर्ट्स क्लब
    • आईवियर स्टोर
    • फिटनेस सेंटर
    • वेलनेस प्रैक्टिशनर
    • फॉर्मेसी
    • हेयर सैलून
    Trades
    • Handyman
    • आईटी हॉर्डवेयर और सपोर्ट
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    अन्य
    • Nonprofit Organization
    • एन्वायरमेंटल एजेंसी
    • बिलबोर्ड रेंटल
    • फ़ोटोग्राफी
    • बाइक लीजिंग
    • सॉफ़्टवेयर रीसेलर
    Browse all Industries
  • कम्यूनिटी
    सीखें
    • ट्यूटोरियल्स
    • दस्तावेज़
    • सर्टिफ़िकेशन
    • ट्रेनिंग
    • ब्लॉग
    • पॉडकास्ट
    शिक्षा को बढ़ावा दें
    • एजुकेशन प्रोग्राम
    • स्केल अप! बिजनेस गेम
    • Odoo के ऑफ़िस में आएं
    सॉफ़्टवेयर पाएं
    • डाउनलोड
    • वर्शन की तुलना करें
    • रिलीज़
    साथ मिलकर काम करें
    • Github
    • फ़ोरम
    • इवेंट
    • अनुवाद
    • पार्टनर बनें
    • Services for Partners
    • अपना अकाउंटिंग फ़र्म रजिस्टर करें
    सेवाएं पाएं
    • पार्टनर ढूंढें
    • अकाउंटेंट खोजें
    • सलाहकार की मदद लें
    • इम्प्लिमेंटेशन सेवाएं
    • कस्टमर रेफ़रेंस
    • सहायता
    • अपग्रेड
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    डेमो देखें
  • कीमत
  • सहायता

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

  • सीआरएम
  • e-Commerce
  • लेखांकन
  • इन्वेंटरी
  • PoS
  • प्रोजेक्ट
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
टैग (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
टैग (View all)
odoo accounting v14 pos v15
About this forum
Help

Connect Odoo to Asterisk (FreePBX)

Subscribe

Get notified when there's activity on this post

This question has been flagged
voipasteriskcallVOIPWEBRTC
4 Replies
12611 Views
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
Discard
Avatar
Max
Best Answer

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

0
Avatar
Discard
Avatar
Landon Hillard
Best Answer

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
Discard
Avatar
islam nazih
Best Answer

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
Discard
Avatar
admin@soraxpress.com
Best Answer

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
Discard
Reinhard Mengelberg
Author

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!

Sign up
Related Posts Replies Views Activity
Odoo 3cx integration
voip call VOIP
Avatar
Avatar
1
जून 23
3121
VOIP Integration: has anyone integrated 3cx with OpenERP?
voip asterisk
Avatar
Avatar
Avatar
Avatar
Avatar
11
जुल॰ 25
19439
Voip and voxloud
voip VOIP
Avatar
0
जन॰ 23
2271
Installing Asterisk on hosted Odoo Solved
asterisk VOIP odooonline
Avatar
Avatar
2
सित॰ 25
2542
py-asterisk compatibility issue Solved
voip asterisk odoov11
Avatar
Avatar
1
मई 21
4684
कम्यूनिटी
  • ट्यूटोरियल्स
  • दस्तावेज़
  • फ़ोरम
ओपन सोर्स
  • डाउनलोड
  • Github
  • रनबॉट
  • अनुवाद
सेवाएं
  • Odoo.sh Hosting
  • सहायता
  • अपग्रेड
  • कस्टम डेवलपमेंट्स
  • शिक्षा
  • अकाउंटेंट खोजें
  • पार्टनर ढूंढें
  • पार्टनर बनें
हमारे बारे में
  • हमारी कंपनी
  • ब्रांड ऐसेट
  • संपर्क करें
  • नौकरियां
  • इवेंट
  • पॉडकास्ट
  • ब्लॉग
  • ग्राहक
  • लीगल • गोपनीयता
  • सुरक्षा
الْعَرَبيّة 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, बिज़नेस से जुड़े ऐप्लिकेशन का एक कलेक्शन है जो ओपन सोर्स पर आधारित है. इसमें आपकी कंपनी की हर ज़रूरत के लिए ऐप्लिकेशन हैं. जैसे, सीआरएम, ई-कॉमर्स, अकाउंटिंग, इन्वेंट्री, पॉइंट ऑफ़ सेल, प्रोजेक्ट मैनेजमेंट वगैरह.

Odoo की सबसे बड़ी खासियत है कि यह इस्तेमाल करने में बहुत आसान है और यह पूरी तरह से इंटिग्रेट किया हुआ है.

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