2018-04-04 18:01:23 +07:00
|
|
|
====================================
|
2020-11-07 00:04:09 +07:00
|
|
|
Use VoIP services in Odoo with OnSIP
|
2018-04-04 18:01:23 +07:00
|
|
|
====================================
|
2017-11-06 16:08:48 +07:00
|
|
|
|
2024-04-08 22:57:25 +07:00
|
|
|
.. important::
|
|
|
|
OnSIP :abbr:`VoIP (voice over internet protocol)` services are only available in the **United
|
|
|
|
States** (US). OnSIP :abbr:`VoIP (voice over internet protocol)` services are widely available in
|
|
|
|
the lower-48, contiguous United States. In Alaska or Hawaii, charges for service can be higher.
|
|
|
|
|
|
|
|
Additionally, a :abbr:`US (United States)` billing address, and :abbr:`US (United States)` credit
|
|
|
|
card are required to use the service.
|
|
|
|
|
|
|
|
Before setting up an account with OnSIP, the business will need to make sure the business
|
|
|
|
telephone numbers are portable to OnSIP.
|
|
|
|
|
|
|
|
OnSIP makes every attempt to work with all telephone service providers. However, certain local or
|
|
|
|
regional guidelines may preclude the company's current provider from releasing the number.
|
|
|
|
|
2017-11-06 16:08:48 +07:00
|
|
|
Introduction
|
|
|
|
============
|
|
|
|
|
2024-03-14 21:19:55 +07:00
|
|
|
Odoo *VoIP* can be set up to work together with `OnSIP (Odoo Landing Page)
|
|
|
|
<https://info.onsip.com/odoo/>`_. OnSIP is a VoIP provider. An account is needed with OnSIP in order
|
|
|
|
to use this service.
|
2017-11-06 16:08:48 +07:00
|
|
|
|
2023-08-03 03:49:05 +07:00
|
|
|
Before setting up an account with OnSIP, make sure the company's home area, and the areas that will
|
|
|
|
be called, are covered by OnSIP services.
|
|
|
|
|
|
|
|
After opening an OnSIP account, follow the configuration procedure below to configure it on an Odoo
|
|
|
|
database.
|
2017-11-06 16:08:48 +07:00
|
|
|
|
|
|
|
Configuration
|
|
|
|
=============
|
|
|
|
|
2023-08-03 03:49:05 +07:00
|
|
|
To configure the Odoo database to connect to OnSIP services, first navigate to the
|
|
|
|
:menuselection:`Apps application` from the main Odoo dashboard. Then, remove the default `Apps`
|
|
|
|
filter from the :guilabel:`Search...` bar, and search for `VoIP OnSIP`.
|
|
|
|
|
|
|
|
Next, install the :guilabel:`VOIP OnSIP` module.
|
2017-11-06 16:08:48 +07:00
|
|
|
|
2023-08-03 03:49:05 +07:00
|
|
|
.. image:: onsip/install-onsip.png
|
2023-08-26 05:48:12 +07:00
|
|
|
:align: center
|
2023-08-03 03:49:05 +07:00
|
|
|
:alt: View of OnSIP app in the app search results.
|
2017-11-06 16:08:48 +07:00
|
|
|
|
2023-08-03 03:49:05 +07:00
|
|
|
Odoo VoIP setting
|
|
|
|
-----------------
|
2017-11-06 16:08:48 +07:00
|
|
|
|
2023-08-03 03:49:05 +07:00
|
|
|
After installing the *VOIP OnSIP* module, go to the :menuselection:`Settings app`, scroll down to
|
|
|
|
the :guilabel:`Integrations` section, and locate the :guilabel:`Asterisk (VoIP)` fields. Then,
|
|
|
|
proceed to fill in those three fields with the following information:
|
2017-11-06 16:08:48 +07:00
|
|
|
|
2023-08-03 03:49:05 +07:00
|
|
|
- :guilabel:`OnSIP Domain`: the domain that was assigned when creating an account on `OnSIP
|
|
|
|
<https://www.onsip.com/>`_.
|
|
|
|
- :guilabel:`WebSocket`: `wss://edge.sip.onsip.com`
|
|
|
|
- :guilabel:`VoIP Environment`: :guilabel:`Production`
|
|
|
|
|
|
|
|
.. image:: onsip/asterisk-setting.png
|
2023-08-26 05:48:12 +07:00
|
|
|
:align: center
|
2023-08-03 03:49:05 +07:00
|
|
|
:alt: VoIP configuration settings in Odoo Settings app.
|
|
|
|
|
|
|
|
.. tip::
|
|
|
|
To access the OnSIP domain, navigate to `OnSIP <https://www.onsip.com/>`_ and log in. Then, click
|
|
|
|
the :guilabel:`Administrators` link in the top-right of the page.
|
|
|
|
|
|
|
|
Next, in the left menu, click :guilabel:`Users`, and then select any user. By default, the
|
|
|
|
selected user opens on the :guilabel:`User Info` tab.
|
|
|
|
|
|
|
|
Click on the :guilabel:`Phone Settings` tab to reveal OnSIP configuration credentials (first
|
|
|
|
column).
|
|
|
|
|
|
|
|
.. image:: onsip/domain-setting.png
|
|
|
|
:align: center
|
|
|
|
:alt: Domain setting revealed (highlighted) on administrative panel of OnSIP management
|
|
|
|
console.
|
|
|
|
|
|
|
|
Odoo user setting
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
Next, the user needs to be set up in Odoo. Every user associated with an OnSIP user **must** also be
|
|
|
|
configured in the Odoo user's settings/preferences.
|
|
|
|
|
|
|
|
To do that, navigate to :menuselection:`Settings app --> Manage Users --> Select the User`.
|
2017-11-06 16:08:48 +07:00
|
|
|
|
2023-08-03 03:49:05 +07:00
|
|
|
On the user form, click :guilabel:`Edit` to configure the user's OnSIP account. Then, click the
|
2024-02-28 00:53:42 +07:00
|
|
|
:guilabel:`Preferences` tab, and scroll to the :guilabel:`VoIP` section.
|
2017-11-06 16:08:48 +07:00
|
|
|
|
2023-08-03 03:49:05 +07:00
|
|
|
In this section, fill in the fields with OnSIP credentials.
|
2017-11-06 16:08:48 +07:00
|
|
|
|
2023-08-03 03:49:05 +07:00
|
|
|
Fill in the following fields with the associated credentials listed below:
|
2017-11-06 16:08:48 +07:00
|
|
|
|
2024-02-28 00:53:42 +07:00
|
|
|
- :guilabel:`VoIP Username` / :guilabel:`Extension Number` = OnSIP :guilabel:`Username`
|
|
|
|
- :guilabel:`OnSIP Auth Username` = OnSIP :guilabel:`Auth Username`
|
|
|
|
- :guilabel:`VoIP secret` = OnSIP :guilabel:`SIP Password`
|
|
|
|
- :guilabel:`External device number` = OnSIP :guilabel:`Ext.` (extension without the `x`)
|
2023-08-03 03:49:05 +07:00
|
|
|
|
|
|
|
.. image:: onsip/onsip-creds.png
|
2023-08-26 05:48:12 +07:00
|
|
|
:align: center
|
2023-08-03 03:49:05 +07:00
|
|
|
:alt: OnSIP user credentials with username, auth username, SIP password, and extension
|
|
|
|
highlighted.
|
2017-11-06 16:08:48 +07:00
|
|
|
|
2023-08-03 03:49:05 +07:00
|
|
|
.. tip::
|
|
|
|
The OnSIP extension can be found in the *User* banner line above the tabs.
|
2017-11-06 16:08:48 +07:00
|
|
|
|
2024-02-28 00:53:42 +07:00
|
|
|
When these steps are complete, navigate away from the user form in Odoo to save the configurations.
|
2017-11-06 16:08:48 +07:00
|
|
|
|
2024-02-28 00:53:42 +07:00
|
|
|
Once saved, Odoo users can make phone calls by clicking the :guilabel:`☎️ (phone)` icon in the
|
2023-08-03 03:49:05 +07:00
|
|
|
top-right corner of Odoo.
|
2017-11-06 16:08:48 +07:00
|
|
|
|
2023-08-03 03:49:05 +07:00
|
|
|
.. seealso::
|
|
|
|
Additional setup and troubleshooting steps can be found on `OnSIP's knowledge base
|
|
|
|
<https://support.onsip.com/hc/en-us>`_.
|
2017-11-06 16:08:48 +07:00
|
|
|
|
2023-08-03 03:49:05 +07:00
|
|
|
Incoming calls
|
|
|
|
--------------
|
2017-11-06 16:08:48 +07:00
|
|
|
|
2023-08-03 03:49:05 +07:00
|
|
|
The Odoo database also receives incoming calls that produce pop-up windows in Odoo. When those call
|
|
|
|
pop-up windows appear, click the green :guilabel:`📞 (phone)` icon to answer the call.
|
2017-11-06 16:08:48 +07:00
|
|
|
|
2023-08-03 03:49:05 +07:00
|
|
|
To ignore the call, click the red :guilabel:`📞 (phone)` icon.
|
|
|
|
|
|
|
|
|
|
|
|
.. image:: onsip/incoming-call.png
|
2023-08-26 05:48:12 +07:00
|
|
|
:align: center
|
2023-08-03 03:49:05 +07:00
|
|
|
:alt: Incoming call shown in the Odoo VoIP widget.
|
|
|
|
|
|
|
|
.. seealso::
|
|
|
|
:doc:`voip_widget`
|
|
|
|
|
|
|
|
Troubleshooting
|
|
|
|
---------------
|
2017-11-06 16:08:48 +07:00
|
|
|
|
2023-08-03 03:49:05 +07:00
|
|
|
Missing parameters
|
|
|
|
~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
If a *Missing Parameters* message appears in the Odoo widget, make sure to refresh the Odoo browser
|
|
|
|
window (or tab), and try again.
|
|
|
|
|
|
|
|
.. image:: onsip/onsip04.png
|
|
|
|
:align: center
|
|
|
|
:alt: Missing parameter message in the Odoo VoIP widget.
|
|
|
|
|
|
|
|
Incorrect number
|
|
|
|
~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
If an *Incorrect Number* message appears in the Odoo widget, make sure to use the international
|
2024-03-14 21:19:55 +07:00
|
|
|
format for the number. This means leading with the international country code.
|
2023-08-03 03:49:05 +07:00
|
|
|
|
|
|
|
A country code is a locator code that allows access to the desired country's phone system. The
|
|
|
|
country code is dialed first, prior to the target number. Each country in the world has its own
|
|
|
|
specific country code.
|
|
|
|
|
2024-03-14 21:19:55 +07:00
|
|
|
For example, `16505555555` (where `1` is the international prefix for the United States).
|
2023-08-03 03:49:05 +07:00
|
|
|
|
|
|
|
.. image:: onsip/onsip05.png
|
|
|
|
:align: center
|
|
|
|
:alt: Incorrect number message populated in the Odoo VoIP widget.
|
2017-11-06 16:08:48 +07:00
|
|
|
|
2023-08-03 03:49:05 +07:00
|
|
|
.. seealso::
|
|
|
|
For a list of comprehensive country codes, visit: `https://countrycode.org
|
|
|
|
<https://countrycode.org>`_.
|
2017-11-06 16:08:48 +07:00
|
|
|
|
2023-08-03 03:49:05 +07:00
|
|
|
OnSIP on mobile phone
|
|
|
|
=====================
|
2017-11-06 16:08:48 +07:00
|
|
|
|
2023-08-03 03:49:05 +07:00
|
|
|
In order to make and receive phone calls when the user is not in front of Odoo on their computer, a
|
|
|
|
softphone app on a mobile phone can be used in parallel with Odoo *VoIP*.
|
2018-03-15 19:03:29 +07:00
|
|
|
|
2023-08-03 03:49:05 +07:00
|
|
|
This is useful for convenient, on-the-go calls, and to make sure incoming calls are heard. Any SIP
|
|
|
|
softphone will work.
|
2017-11-06 16:08:48 +07:00
|
|
|
|
2023-08-03 03:49:05 +07:00
|
|
|
.. seealso::
|
|
|
|
- :doc:`devices_integrations`
|
|
|
|
- `OnSIP App Download <https://www.onsip.com/app/download>`_
|