SIP电话录音配置和用户指南

简介

概述

电话支持在通话中进行录音。提供两种录音方式:

  1. 将 RTP 流保存为格式化的文件到本地存储(USB)

  2. 将 RTP 流发送到录音服务器进行存储与管理。

适用型号

本文件适用于 BX3S、BX4、BX5S、BX6、BX7、BX7C、GP210、GP210i 及 BXU 系列 IP 电话。

目标读者

本文件适用于需要了解电话通话录音功能实现与改进的内部研发与测试工程师。

录音架构介绍

通话录音架构

创建一个本地仅接收流,并与通话流混合。电话绑定到一个本地端口以接收混合后的 RTP 数据,然后将其写入本地文件或发送到远程服务器。

通话录音架构图

通话录音功能模块

本地录音

本地录音需要 USB 闪存盘。电话会检查 USB 存储容量,创建名为 Record_[SystemTime] 的文件,并保存 RTP 数据。

若达到文件大小限制且仍有空间,则会自动创建新文件。录音过程中支持暂停/恢复。

本地录音文件格式 (.wav)

char codec[64]int32_t rtpLenint32_t incrementuint32_t dataSizertp datartp data...
  • codec:录音音频编解码器

  • rtpLen:RTP 数据长度

  • increment:时间戳增量

  • dataSize:RTP 数据总长度

服务器录音

服务器录音需要配置 serverAddrserverPort。通信包括控制命令 (TCP) 和 RTP 媒体 (UDP)。

控制命令 (TCP)

电话发起录音会话。服务器分配一个专用 UDP 端口用于 RTP 流。

录音开始命令格式
请求:cmd=RecordStartRequest&id=xxx&device=xxx&remote_number=xxx&remote_name=xxx&local_number=xxx&local_name=xxx&dir=in|out&codec=xxx
响应:cmd=RecordStartResponse&id=xxx&result=success|failed&reason=xxx&server=xxx&port=xxx

  1. id:唯一会话 ID(随机,录音期间固定)

  2. device:电话 MAC 地址

  3. dir:通话方向(进/出)

  4. codec:RTP 编解码器 (PCMA|PCMU)

  5. server/port:用于 RTP 流的 UDP 地址

注意:若服务器响应“failed”,电话将显示录音失败提示。

录音停止命令格式
请求:cmd=RecordStopRequest&id=xxx&remote_number=xxx&remote_name=xxx&local_number=xxx&local_name=xxx&reason=xxx
响应:cmd=RecordStopResponse&id=xxx&result=success

发生 socket 错误时,双方终止会话并清除状态。

RTP 数据 (UDP)

电话通过 UDP 向服务器发送 RTP 数据包,直到收到停止命令或连接断开。

服务停止与播放

电话解析文件头(编解码器、时间戳、长度)以计算播放时长并控制播放。

通话录音操作指南

本地录音 (USB)

本地录音需要 USB 驱动器。BX5S/BX6 支持;BX3S/BX4 不支持

  1. 通过应用 > 录音管理启用录音,将模式设为本地

启用本地录音模式

  1. DSS 键/功能键设置为录音

  2. 插入 USB 驱动器,拨打电话,按下录音键开始录音。

录音进行中界面

  1. 再次按下可停止录音。

  2. 通过应用 > USB 查看/播放录音。

查看录音文件

服务器录音

本地录音服务器

安装 RecordServer 软件(支持 PCMA/PCMU/G722)。

服务器路径:\\172.16.1.8\firmware\Applications\RecordServer
运行 RecordServer.exe 启动服务。

  1. 在电话网页界面中,启用录音,将类型设为网络,输入服务器 IP/端口,选择编解码器。

网页 UI 启用网络录音

  1. 拨打电话,按下录音 DSS 键。

录音进行中

  1. 停止录音并从服务器下载文件。

下载录音文件

SIP INFO 录音

将电话注册到支持 SIP INFO 的服务器(例如 3CX)。

  1. 在网页 UI 上,启用录音并将类型设为 SIP INFO

启用 SIP INFO 录音界面

  1. 设置录音 DSS 键,在通话中开始/停止录音。

  2. 在 SIP 服务器 (3CX) 管理门户查看录音。

目录
客服 电话
We use cookie to improve your online experience. By continuing to browse this website, you agree to our use of cookie.

Cookies

This Cookie Policy explains how we use cookies and similar technologies when you access or use our website and related services. Please read this Policy together with our Terms and Conditions and Privacy Policy so that you understand how we collect, use, and protect information.

By continuing to access or use our Services, you acknowledge that cookies and similar technologies may be used as described in this Policy, subject to applicable law and your available choices.

Updates to This Cookie Policy

We may revise this Cookie Policy from time to time to reflect changes in legal requirements, technology, or our business practices. When we make updates, the revised version will be posted on this page and will become effective from the date of publication unless otherwise required by law.

Where required, we will provide additional notice or request your consent before applying material changes that affect your rights or choices.

What Are Cookies?

Cookies are small text files placed on your device when you visit a website or interact with certain online content. They help websites recognize your browser or device, remember your preferences, support essential functionality, and improve the overall user experience.

In this Cookie Policy, the term “cookies” also includes similar technologies such as pixels, tags, web beacons, and other tracking tools that perform comparable functions.

Why We Use Cookies

We use cookies to help our website function properly, remember user preferences, enhance website performance, understand how visitors interact with our pages, and support security, analytics, and marketing activities where permitted by law.

We use cookies to keep our website functional, secure, efficient, and more relevant to your browsing experience.

Categories of Cookies We Use

Strictly Necessary Cookies

These cookies are essential for the operation of the website and cannot be disabled in our systems where they are required to provide the service you request. They are typically set in response to actions such as setting privacy preferences, signing in, or submitting forms.

Without these cookies, certain parts of the website may not function correctly.

Functional Cookies

Functional cookies enable enhanced features and personalization, such as remembering your preferences, language settings, or previously selected options. These cookies may be set by us or by third-party providers whose services are integrated into our website.

If you disable these cookies, some services or features may not work as intended.

Performance and Analytics Cookies

These cookies help us understand how visitors use our website by collecting information such as traffic sources, page visits, navigation behavior, and general interaction patterns. In many cases, this information is aggregated and does not directly identify individual users.

We use this information to improve website performance, usability, and content relevance.

Targeting and Advertising Cookies

These cookies may be placed by our advertising or marketing partners to help deliver more relevant ads and measure the effectiveness of campaigns. They may use information about your browsing activity across different websites and services to build a profile of your interests.

These cookies generally do not store directly identifying personal information, but they may identify your browser or device.

First-Party and Third-Party Cookies

Some cookies are set directly by our website and are referred to as first-party cookies. Other cookies are set by third-party services, such as analytics providers, embedded content providers, or advertising partners, and are referred to as third-party cookies.

Third-party providers may use their own cookies in accordance with their own privacy and cookie policies.

Information Collected Through Cookies

Depending on the type of cookie used, the information collected may include browser type, device type, IP address, referring website, pages viewed, time spent on pages, clickstream behavior, and general usage patterns.

This information helps us maintain the website, improve performance, enhance security, and provide a better user experience.

Your Cookie Choices

You can control or disable cookies through your browser settings and, where available, through our cookie consent or preference management tools. Depending on your location, you may also have the right to accept or reject certain categories of cookies, especially those used for analytics, personalization, or advertising purposes.

Please note that blocking or deleting certain cookies may affect the availability, functionality, or performance of some parts of the website.

Restricting cookies may limit certain features and reduce the quality of your experience on the website.

Cookies in Mobile Applications

Where our mobile applications use cookie-like technologies, they are generally limited to those required for core functionality, security, and service delivery. Disabling these essential technologies may affect the normal operation of the application.

We do not use essential mobile application cookies to store unnecessary personal information.

How to Manage Cookies

Most web browsers allow you to manage cookies through browser settings. You can usually choose to block, delete, or receive alerts before cookies are stored. Because browser controls vary, please refer to your browser provider’s support documentation for details on how to manage cookie settings.

Contact Us

If you have any questions about this Cookie Policy or our use of cookies and similar technologies, please contact us at support@becke.cc .