通过 OnSIP 在 Odoo 中使用 VoIP 服务

重要

OnSIP VoIP services are only available in the United States (US). OnSIP VoIP services are widely available in the lower-48, contiguous United States. In Alaska or Hawaii, charges for service can be higher.

Additionally, a US billing address, and US 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.

介绍

Odoo VoIP can be set up to work together with OnSIP (Odoo Landing Page). OnSIP is a VoIP provider. An account is needed with OnSIP in order to use this service.

在开设 OnSIP 账户之前,请确保公司所在地区以及将被呼叫的地区都在 OnSIP 服务的覆盖范围之内。

开设 OnSIP 账户后,请按照以下配置步骤在 Odoo 数据库中进行配置。

配置

To configure the Odoo database to connect to OnSIP services, first navigate to the Apps application from the main Odoo dashboard. Then, remove the default Apps filter from the Search… bar, and search for VoIP OnSIP.

Next, install the VOIP OnSIP module.

在应用程序搜索结果中查看 OnSIP 应用程序。

Odoo VoIP 设置

安装 VOIP OnSIP 模块后,进入 设置应用程序,向下滚动到 整合 部分,找到 Asterisk(VoIP) 字段。然后,在这三个字段中填写以下信息:

  • OnSIP Domain:在 OnSIP 上创建帐户时分配的域。

  • WebSocket: wss://edge.sip.onsip.com

  • VoIP 环境: 正式运行

在 Odoo 设置应用程序中进行 VoIP 配置设置。

小技巧

要访问 OnSIP 域名,请访问 OnSIP 并登录。然后,点击页面右上角的 管理员 链接。

接下来,在左侧菜单中单击 用户,然后选择任何用户。默认情况下,所选用户将打开 用户资料 选项卡。

点击 电话设置 选项卡,显示 OnSIP 配置凭证(第一列)。

在 OnSIP 管理控制台的管理面板上,显示(高亮显示)域设置。

Odoo 用户设置

接下来,需要在 Odoo 中设置用户。与 OnSIP 用户关联的每个用户**也必须**在 Odoo 用户的设置/偏好中配置。

要执行此操作,请导航至 设置应用程序 ‣ 管理用户 ‣ 选择用户

On the user form, click Edit to configure the user’s OnSIP account. Then, click the Preferences tab, and scroll to the VoIP section.

在这一部分,请在字段中填写 OnSIP 凭据。

请在以下字段中填写相关证书:

  • VoIP Username / Extension Number = OnSIP Username

  • OnSIP 身份验证用户名 = OnSIP 身份验证用户名

  • VoIP secret = OnSIP SIP Password

  • External device number = OnSIP Ext. (extension without the x)

OnSIP user credentials with username, auth username, SIP password, and extension highlighted.

小技巧

OnSIP 扩展名可在选项卡上方的*用户*横幅行中找到。

完成这些步骤后,请从 Odoo 中的用户表单导航离开,以保存配置。

保存后,Odoo 用户可点击 Odoo 右上角的 :guilabel:`☎️(电话)`图标拨打电话。

参见

更多设置和故障排除步骤,请访问 OnSIP知识库

来电

Odoo 数据库也会接收来电,并在 Odoo 中弹出窗口。当这些来电弹出窗口出现时,点击绿色的 📞(电话) 图标即可接听来电。

To ignore the call, click the red 📞 (phone) icon.

Incoming call shown in the Odoo VoIP widget.

参见

VoIP widget

故障排除

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.

Missing parameter message in the Odoo VoIP widget.

号码错误

If an Incorrect Number message appears in the Odoo widget, make sure to use the international format for the number. This means leading with the international country code.

国家/地区代码是一个定位代码,可用于访问所需国家/地区的电话系统。先拨国家/地区代码,再拨目标号码。世界上每个国家/地区都有自己特定的国家/地区代码。

For example, 16505555555 (where 1 is the international prefix for the United States).

Odoo VoIP 小工具中输入的号码信息不正确。

参见

国家/地区代码列表,请访问: https://countrycode.org

移动电话 OnSIP

为了在用户不在电脑前使用 Odoo 时拨打和接听电话,可同时使用手机上的软电话应用程序和 Odoo VoIP

This is useful for convenient, on-the-go calls, and to make sure incoming calls are heard. Any SIP softphone will work.