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 .