[go: up one dir, main page]

CN104980406A - Call recording method, recording server, user-level switch and recording system - Google Patents

Call recording method, recording server, user-level switch and recording system Download PDF

Info

Publication number
CN104980406A
CN104980406A CN201410145226.0A CN201410145226A CN104980406A CN 104980406 A CN104980406 A CN 104980406A CN 201410145226 A CN201410145226 A CN 201410145226A CN 104980406 A CN104980406 A CN 104980406A
Authority
CN
China
Prior art keywords
recording
media stream
media
signaling
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410145226.0A
Other languages
Chinese (zh)
Other versions
CN104980406B (en
Inventor
诸宏亮
斯元海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410145226.0A priority Critical patent/CN104980406B/en
Priority to PCT/CN2014/094525 priority patent/WO2015154520A1/en
Publication of CN104980406A publication Critical patent/CN104980406A/en
Application granted granted Critical
Publication of CN104980406B publication Critical patent/CN104980406B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本发明实施例提供一种通话录音方法、录音服务器、用户级交换机及录音系统。本发明提供的通话录音方法,包括:从镜像交换机获取信令;接收用户级交换机PBX发送的录音指令,所述录音指令中包括通话终端的号码;对所述信令进行解析,并根据所述录音指令中的号码和对所述信令进行解析的结果确定录音方式,所述确定的录音方式具体为镜像录音或会场录音;根据所述确定的录音方式对所述通话终端的媒体流进行录音。本发明实施例解决了现有技术中的录音方式,在录音过程中需要利用PBX的资源做会场,增加了该PBX的资源消耗的问题。

Embodiments of the present invention provide a call recording method, a recording server, a user-level switch, and a recording system. The call recording method provided by the present invention includes: obtaining signaling from the mirror exchange; receiving the recording instruction sent by the user-level exchange PBX, wherein the recording instruction includes the number of the call terminal; analyzing the signaling, and according to the The number in the recording instruction and the result of analyzing the signaling determine the recording mode, the determined recording mode is specifically mirror recording or venue recording; record the media stream of the call terminal according to the determined recording mode . The embodiment of the present invention solves the problem that in the recording mode in the prior art, the resource of the PBX needs to be used as the conference site during the recording process, which increases the resource consumption of the PBX.

Description

通话录音方法、录音服务器、用户级交换机及录音系统Call recording method, recording server, user-level switch and recording system

技术领域technical field

本发明实施例涉及通信技术,尤其涉及一种通话录音方法、录音服务器、用户级交换机及录音系统。Embodiments of the present invention relate to communication technologies, and in particular to a call recording method, a recording server, a user-level switch, and a recording system.

背景技术Background technique

目前,在统一通信(Unified Communications,简称为:UC)或呼叫中心(Call Center,简称为:CC)应用场景中,对通话终端的内部通话和外部通话进行录音时,通常需要通过用户级交换机(Private Branch Exchange,简称为:PBX)创建会场,将通话终端和录音服务器加入会场,并将会场中通话终端的媒体流发送给录音服务器以实现会场录音。At present, in the application scenarios of Unified Communications (UC for short) or Call Center (CC for short), when recording internal calls and external calls of call terminals, it is usually necessary to pass through a user-level switch ( Private Branch Exchange (referred to as: PBX) creates a site, adds call terminals and recording servers to the site, and sends the media stream of the call terminals in the site to the recording server to achieve site recording.

现有技术中的录音方式,在录音过程中需要利用PBX的资源做会场,增加了该PBX的资源消耗。In the recording mode in the prior art, the resource of the PBX needs to be used as the conference site during the recording process, which increases the resource consumption of the PBX.

发明内容Contents of the invention

本发明实施例提供一种通话录音方法、录音服务器、用户级交换机及录音系统,以解决现有技术中的录音方式,在录音过程中需要利用PBX的资源做会场,增加了该PBX的资源消耗的问题。The embodiment of the present invention provides a call recording method, a recording server, a user-level switch and a recording system to solve the recording method in the prior art. During the recording process, the resources of the PBX need to be used as the venue, which increases the resource consumption of the PBX. The problem.

第一方面,本发明实施例提供一种通话录音方法,包括:In a first aspect, an embodiment of the present invention provides a call recording method, including:

从镜像交换机获取信令;Obtain signaling from the mirror switch;

接收用户级交换机PBX发送的录音指令,所述录音指令中包括通话终端的号码;Receive the recording instruction sent by the user-level exchange PBX, the recording instruction includes the number of the call terminal;

对所述信令进行解析,并根据所述录音指令中的号码和对所述信令进行解析的结果确定录音方式,所述确定的录音方式具体为镜像录音或会场录音;Analyzing the signaling, and determining the recording mode according to the number in the recording instruction and the result of analyzing the signaling, the determined recording mode is specifically mirror recording or venue recording;

根据所述确定的录音方式对所述通话终端的媒体流进行录音。Recording the media stream of the calling terminal according to the determined recording manner.

在第一方面的第一种可能的实现方式中,所述对所述信令进行解析,并根据所述录音指令中的号码和对所述信令进行解析的结果确定录音方式,包括:In a first possible implementation manner of the first aspect, the parsing the signaling, and determining the recording mode according to the number in the recording instruction and the result of parsing the signaling includes:

对所述信令进行解析获取所述信令中的号码,以及所述号码对应的网协IP地址和媒体端口,并将解析的结果存储在录音服务器中;Analyzing the signaling to obtain the number in the signaling, and the network association IP address and media port corresponding to the number, and storing the result of the analysis in the recording server;

将所述录音指令中的号码与所述录音服务器中存储的所述解析结果进行匹配,在所述解析结果中匹配到所述录音指令中的号码时,根据通过所述号码对应的IP地址和媒体端口传输的媒体流确定录音方式。Matching the number in the recording instruction with the parsing result stored in the recording server, when the parsing result matches the number in the recording instruction, according to the IP address corresponding to the number and The media stream transmitted by the media port determines the recording method.

根据第一方面的第一种可能的实现方式,在第二种可能的实现方式中,所述根据通过所述号码对应的IP地址和媒体端口传输的媒体流确定录音方式,包括:According to the first possible implementation of the first aspect, in the second possible implementation, the determining the recording mode according to the media stream transmitted through the IP address corresponding to the number and the media port includes:

在所述匹配结果中获取所述录音指令中的号码对应的IP地址和媒体端口;Obtain the IP address and media port corresponding to the number in the recording instruction from the matching result;

从获取自所述镜像交换机的媒体流中识别出通过所述IP地址和媒体端口传输的媒体流;Identifying the media stream transmitted through the IP address and media port from the media stream obtained from the mirror switch;

对识别出的媒体流进行分析以判断所述媒体流是否加密,并在判断出所述媒体流未加密时确定所述录音方式为镜像录音;Analyzing the identified media stream to determine whether the media stream is encrypted, and determining that the recording method is mirror image recording when it is determined that the media stream is not encrypted;

所述根据所述确定的录音方式对所述通话终端的媒体流进行录音,包括:The recording the media stream of the call terminal according to the determined recording method includes:

对获取自所述镜像交换机的媒体流中通过所述IP地址和媒体端口传输的媒体流进行录音。recording the media stream transmitted through the IP address and media port among the media streams obtained from the mirroring switch.

根据第一方面的第一种可能的实现方式,在第三种可能的实现方式中,所述根据通过所述号码对应的IP地址和媒体端口传输的媒体流确定录音方式,包括:According to the first possible implementation of the first aspect, in the third possible implementation, the determining the recording mode according to the media stream transmitted through the IP address corresponding to the number and the media port includes:

在所述匹配结果中获取所述录音指令中的号码对应的IP地址和媒体端口;Obtain the IP address and media port corresponding to the number in the recording instruction from the matching result;

如果从获取自所述镜像交换机的媒体流中未识别出通过所述IP地址和媒体端口传输的媒体流,或者,从获取自所述镜像交换机的媒体流中识别出通过所述IP地址和媒体端口传输的媒体流,且判断出所述识别出的媒体流已加密,确定所述录音方式为会场录音。If the media stream transmitted through the IP address and media port is not identified from the media stream obtained from the mirror switch, or, the media stream transmitted through the IP address and media port is identified from the media stream obtained from the mirror switch The media stream transmitted by the port, and it is determined that the identified media stream has been encrypted, and the recording mode is determined as conference recording.

根据第一方面的第一种可能的实现方式,在第四种可能的实现方式中,所述方法还包括:According to the first possible implementation manner of the first aspect, in a fourth possible implementation manner, the method further includes:

对所述信令进行解析获取所述信令中的指示信息;Analyzing the signaling to obtain indication information in the signaling;

当所述指示信息指示通过所述IP地址和媒体端口的媒体流未加密时,确定所述录音方式为镜像录音;或者,When the indication information indicates that the media stream passing through the IP address and media port is not encrypted, it is determined that the recording mode is mirror recording; or,

当所述指示信息指示通过所述IP地址和媒体端口的媒体流已加密时,确定所述录音方式为会场录音。When the indication information indicates that the media stream passing through the IP address and media port has been encrypted, it is determined that the recording mode is conference recording.

在第一方面的第五种可能的实现方式中,所述对所述信令进行解析,并根据所述录音指令中的号码和对所述信令进行解析的结果确定录音方式,包括:In a fifth possible implementation manner of the first aspect, the parsing the signaling, and determining the recording mode according to the number in the recording instruction and the result of parsing the signaling includes:

对所述信令进行解析获取所述信令中的号码,以及所述号码对应的IP地址和媒体端口,并将解析的结果存储在录音服务器中;Analyzing the signaling to obtain the number in the signaling, and the IP address and media port corresponding to the number, and storing the result of the analysis in the recording server;

将所述录音指令中的号码与所述录音服务器中存储的所述解析结果进行匹配,在所述解析结果中未匹配到所述录音指令中的号码时,将所述录音方式确定为会场录音。Matching the number in the recording instruction with the parsing result stored in the recording server, and determining the recording method as venue recording when the parsing result does not match the number in the recording instruction .

根据第一方面的第三种到第五种可能的实现方式中任意一种,在第六种可能的实现方式中,所述根据所述确定的录音方式对所述通话终端的媒体流进行录音,包括:According to any one of the third to fifth possible implementations of the first aspect, in a sixth possible implementation, recording the media stream of the call terminal according to the determined recording method ,include:

向所述PBX发送会场录音指令,以使所述PBX创建会场并将所述通话终端和所述录音服务器加入所述会场;Sending a site recording instruction to the PBX, so that the PBX creates a site and adds the call terminal and the recording server to the site;

对所述会场中的所述通话终端的媒体流进行录音。recording the media stream of the calling terminal in the conference site.

第二方面,本发明实施例提供一种通话录音方法,包括:In a second aspect, an embodiment of the present invention provides a call recording method, including:

生成录音指令,所述录音指令包括通话终端的号码;Generate a recording instruction, the recording instruction includes the number of the call terminal;

向录音服务器发送录音指令,以使所述录音服务器根据所述号码和对从镜像交换机获取的信令进行解析的结果确定录音方式,所述确定的录音方式具体为镜像录音或会场录音。Sending a recording instruction to the recording server, so that the recording server determines a recording mode according to the number and the result of analyzing the signaling obtained from the mirror switch, and the determined recording mode is specifically mirror recording or venue recording.

在第二方面的第一种可能的实现方式中,所述通话终端包括主叫通话终端和被叫通话终端,所述向录音服务器发送录音指令之后,还包括:In a first possible implementation manner of the second aspect, the calling terminal includes a calling terminal and a called calling terminal, and after sending the recording instruction to the recording server, further includes:

接收所述录音服务器发送的会场录音指令;receiving the venue recording instruction sent by the recording server;

根据所述会场录音指令创建会场,并将所述主叫通话终端、所述被叫通话终端和所述录音服务器加入所述会场;Create a conference site according to the recording instruction of the conference site, and add the calling terminal, the called terminal and the recording server to the conference site;

对接收自所述主叫通话终端和所述被叫通话终端的媒体流进行混音后发送给所述录音服务器。The media streams received from the calling terminal and the called terminal are mixed and then sent to the recording server.

根据第二方面或第二方面的第一种可能的实现方式,在第二种可能的实现方式中,所述对接收自所述主叫通话终端和所述被叫通话终端的媒体流进行混音后发送给所述录音服务器,包括:According to the second aspect or the first possible implementation manner of the second aspect, in the second possible implementation manner, the mixing of the media streams received from the calling terminal and the called terminal After the sound is sent to the recording server, including:

在确定接收自所述主叫通话终端和所述被叫通话终端的媒体流已加密时,对接收自所述主叫通话终端的媒体流和接收自被叫通话终端的媒体流分别进行解密,并对所述解密后的媒体流进行混音后发送给所述录音服务器。When it is determined that the media streams received from the calling terminal and the called terminal have been encrypted, respectively decrypting the media stream received from the calling terminal and the media stream received from the called terminal, And after mixing the decrypted media stream, send it to the recording server.

第三方面,本发明实施例提供一种录音服务器,包括:In a third aspect, an embodiment of the present invention provides a recording server, including:

获取模块,用于从镜像交换机获取信令;An acquisition module, configured to acquire signaling from the mirrored switch;

接收模块,用于接收用户级交换机PBX发送的录音指令,所述录音指令中包括通话终端的号码;The receiving module is used to receive the recording instruction sent by the user-level exchange PBX, and the recording instruction includes the number of the call terminal;

解析模块,用于对所述获取模块获取的信令进行解析,并根据所述接收模块接收的录音指令中的号码和对所述信令进行解析的结果确定录音方式,所述确定的录音方式具体为镜像录音或会场录音;An analysis module, configured to analyze the signaling acquired by the acquisition module, and determine the recording mode according to the number in the recording instruction received by the receiving module and the result of analyzing the signaling, and the determined recording mode Specifically, mirror recording or venue recording;

录音模块,用于根据所述解析模块确定的录音方式对所述通话终端的媒体流进行录音。The recording module is configured to record the media stream of the call terminal according to the recording mode determined by the parsing module.

在第三方面的第一种可能的实现方式中,所述解析模块,包括:In a first possible implementation of the third aspect, the parsing module includes:

第一解析单元,用于对所述获取模块获取的信令进行解析获取所述信令中的号码,以及所述号码对应的网协IP地址和媒体端口,并将解析的结果存储在录音服务器中;The first analysis unit is used to analyze the signaling obtained by the acquisition module to obtain the number in the signaling, and the network association IP address and media port corresponding to the number, and store the analysis result in the recording server middle;

第一匹配单元,用于将所述接收模块接收的录音指令中的号码与所述录音服务器中存储的所述解析结果进行匹配,在所述解析结果中匹配到所述录音指令中的号码时,根据通过所述号码对应的IP地址和媒体端口传输的媒体流确定录音方式。A first matching unit, configured to match the number in the recording instruction received by the receiving module with the parsing result stored in the recording server, when the parsing result matches the number in the recording instruction , determine the recording mode according to the media stream transmitted through the IP address corresponding to the number and the media port.

根据第三方面的第一种可能的实现方式,在第二种可能的实现方式中,所述第一匹配单元用于根据通过所述号码对应的IP地址和媒体端口传输的媒体流确定录音方式,具体包括:在所述匹配结果中获取所述录音指令中的号码对应的IP地址和媒体端口;从获取自所述镜像交换机的媒体流中识别出通过所述IP地址和媒体端口传输的媒体流;对识别出的媒体流进行分析以判断所述媒体流是否加密,并在判断出所述媒体流未加密时确定所述录音方式为镜像录音;According to the first possible implementation of the third aspect, in the second possible implementation, the first matching unit is configured to determine the recording mode according to the media stream transmitted through the IP address and media port corresponding to the number , specifically comprising: obtaining the IP address and media port corresponding to the number in the recording instruction from the matching result; identifying the media transmitted through the IP address and media port from the media stream obtained from the mirror switch stream; the identified media stream is analyzed to determine whether the media stream is encrypted, and when it is determined that the media stream is not encrypted, it is determined that the recording method is a mirror image recording;

则所述录音模块,具体用于对获取自所述镜像交换机的媒体流中通过所述IP地址和媒体端口传输的媒体流进行录音。The recording module is specifically configured to record the media stream transmitted through the IP address and media port among the media streams obtained from the mirroring switch.

根据第三方面的第一种可能的实现方式,在第三种可能的实现方式中,所述第一匹配单元用于根据通过所述号码对应的IP地址和媒体端口传输的媒体流确定录音方式,具体包括:在所述匹配结果中获取所述录音指令中的号码对应的IP地址和媒体端口;如果从获取自所述镜像交换机的媒体流中未识别出通过所述IP地址和媒体端口传输的媒体流,或者,从获取自所述镜像交换机的媒体流中识别出通过所述IP地址和媒体端口传输的媒体流,且判断出所述识别出的媒体流已加密,确定所述录音方式为会场录音。According to the first possible implementation of the third aspect, in the third possible implementation, the first matching unit is configured to determine the recording mode according to the IP address corresponding to the number and the media stream transmitted through the media port , specifically comprising: obtaining the IP address and media port corresponding to the number in the recording instruction from the matching result; or identify the media stream transmitted through the IP address and media port from the media stream obtained from the mirror switch, and determine that the identified media stream has been encrypted, and determine the recording method Record the venue.

根据第三方面的第一种可能的实现方式,在第四种可能的实现方式中,所述第一解析单元,还用于对所述获取模块获取的信令进行解析获取所述信令中的指示信息;According to the first possible implementation manner of the third aspect, in a fourth possible implementation manner, the first parsing unit is further configured to parse the signaling obtained by the obtaining module to obtain the instruction information;

所述解析模块还包括:确定单元,用于当所述第一解析单元获取的指示信息指示通过所述IP地址和媒体端口的媒体流未加密时,确定所述录音方式为镜像录音;或者,当所述第一解析单元获取的指示信息指示通过所述IP地址和媒体端口的媒体流已加密时,确定所述录音方式为会场录音。The parsing module further includes: a determining unit, configured to determine that the recording mode is mirror recording when the indication information obtained by the first parsing unit indicates that the media stream passing through the IP address and media port is not encrypted; or, When the indication information obtained by the first parsing unit indicates that the media stream passing through the IP address and media port has been encrypted, it is determined that the recording mode is conference recording.

在第三方面的第五种可能的实现方式中,所述解析模块,包括:In a fifth possible implementation of the third aspect, the parsing module includes:

第二解析单元,用于对所述获取模块获取的信令进行解析获取所述信令中的号码,以及所述号码对应的IP地址和媒体端口,并将解析的结果存储在录音服务器中;The second analysis unit is used to analyze the signaling obtained by the acquisition module to obtain the number in the signaling, and the IP address and media port corresponding to the number, and store the analysis result in the recording server;

第二匹配单元,用于将所述接收模块接收的录音指令中的号码与所述录音服务器中存储的所述解析结果进行匹配,在所述解析结果中未匹配到所述录音指令中的号码时,将所述录音方式确定为会场录音。The second matching unit is configured to match the number in the recording instruction received by the receiving module with the parsing result stored in the recording server, and the parsing result does not match the number in the recording instruction , the recording mode is determined as conference recording.

根据第三方面的第三种到第五种可能的实现方式中任意一种,在第六种可能的实现方式中,所述录音模块,包括:According to any one of the third to fifth possible implementations of the third aspect, in a sixth possible implementation, the recording module includes:

发送单元,用于向所述PBX发送会场录音指令,以使所述PBX创建会场并将所述通话终端和所述录音服务器加入所述会场;a sending unit, configured to send a site recording instruction to the PBX, so that the PBX creates a site and adds the call terminal and the recording server to the site;

录音单元,用于对所述会场中的所述通话终端的媒体流进行录音。The recording unit is configured to record the media stream of the call terminal in the conference site.

第四方面,本发明实施例提供一种用户级交换机,包括:In a fourth aspect, an embodiment of the present invention provides a user-level switch, including:

录音指示模块,用于生成录音指令,所述录音指令包括通话终端的号码;The recording instruction module is used to generate a recording instruction, and the recording instruction includes the number of the calling terminal;

发送模块,用于向录音服务器发送录音指令,以使所述录音服务器根据所述号码和对从镜像交换机获取的信令进行解析的结果确定录音方式,并根据所述确定的录音方式对所述通话终端的媒体流进行录音,所述确定的录音方式具体为镜像录音或会场录音。The sending module is configured to send a recording instruction to the recording server, so that the recording server determines the recording mode according to the number and the result of analyzing the signaling obtained from the mirror switch, and records the recording mode according to the determined recording mode. The media stream of the calling terminal is recorded, and the determined recording method is specifically mirror recording or conference recording.

在第四方面的第一种可能的实现方式中,所述通话终端包括主叫通话终端和被叫通话终端,所述用户级交换机PBX还包括:接收模块,用于在所述发送模块向录音服务器发送录音指令之后,接收所述录音服务器发送的会场录音指令;In a first possible implementation manner of the fourth aspect, the call terminal includes a calling call terminal and a called call terminal, and the user-level exchange PBX further includes: a receiving module, configured to record After the server sends the recording instruction, it receives the venue recording instruction sent by the recording server;

创建模块,用于根据所述接收模块接收的会场录音指令创建会场,并将所述主叫通话终端、所述被叫通话终端和所述录音服务器加入所述会场;A creating module, configured to create a site according to the site recording instruction received by the receiving module, and add the calling terminal, the called terminal, and the recording server to the site;

媒体处理模块,用于对接收自所述主叫通话终端和所述被叫通话终端的媒体流进行混音;a media processing module, configured to mix media streams received from the calling terminal and the called terminal;

所述发送模块,还用于将所述混音后的媒体流发送给所述录音服务器。The sending module is further configured to send the mixed media stream to the recording server.

根据第四方面或第四方面的第一种可能的实现方式,在第二种可能的实现方式中,所述媒体处理模块,具体用于在确定接收自所述主叫通话终端和所述被叫通话终端的媒体流已加密时,对接收自所述主叫通话终端的媒体流和接收自所述被叫通话终端的媒体流分别进行解密,并对所述解密后的媒体流进行混音。According to the fourth aspect or the first possible implementation manner of the fourth aspect, in the second possible implementation manner, the media processing module is specifically configured to, when determining When the media stream of the calling terminal has been encrypted, respectively decrypt the media stream received from the calling terminal and the media stream received from the called terminal, and perform audio mixing on the decrypted media stream .

第五方面,本发明实施例提供一种录音系统,包括:录音服务器和用户级交换机PBX;In a fifth aspect, an embodiment of the present invention provides a recording system, including: a recording server and a user-level exchange PBX;

其中,录音服务器,用于从镜像交换机获取信令;Wherein, the recording server is used to obtain signaling from the mirror switch;

所述PBX,用于生成录音指令,所述录音指令包括通话终端的号码,并向录音服务器发送所述录音指令;The PBX is used to generate a recording instruction, the recording instruction includes the number of the call terminal, and sends the recording instruction to the recording server;

所述录音服务器,还用于接收用户级交换机PBX发送的录音指令,对所述信令进行解析,并根据所述录音指令中的号码和对所述信令进行解析的结果确定录音方式,所述确定的录音方式具体为镜像录音或会场录音;进而根据所述确定的录音方式对所述通话终端的媒体流进行录音。The recording server is also used to receive the recording instruction sent by the user-level exchange PBX, analyze the signaling, and determine the recording mode according to the number in the recording instruction and the result of analyzing the signaling, so The determined recording mode is specifically mirror recording or venue recording; and then the media stream of the call terminal is recorded according to the determined recording mode.

在第五方面的第一种可能的实现方式中,所述录音服务器还用于对所述信令进行解析,并根据所述录音指令中的号码和对所述信令进行解析的结果确定录音方式,具体包括:In a first possible implementation manner of the fifth aspect, the recording server is further configured to analyze the signaling, and determine the recording according to the number in the recording instruction and the result of analyzing the signaling ways, including:

所述录音服务器,用于对所述信令进行解析获取所述信令中的号码,以及所述号码对应的网协IP地址和媒体端口,并将解析的结果存储在录音服务器中;进而将所述录音指令中的号码与所述录音服务器中存储的所述解析结果进行匹配,在所述解析结果中匹配到所述录音指令中的号码时,根据通过所述号码对应的IP地址和媒体端口传输的媒体流确定录音方式。The recording server is used to analyze the signaling to obtain the number in the signaling, and the IP address and media port corresponding to the number, and store the resolved result in the recording server; The number in the recording instruction is matched with the analysis result stored in the recording server, and when the number in the recording instruction is matched in the analysis result, according to the IP address and media corresponding to the number, The media stream transmitted by the port determines the recording mode.

根据第五方面的第一种可能的实现方式,在第二种可能的实现方式中,所述录音服务器用于根据通过所述号码对应的IP地址和媒体端口传输的媒体流确定录音方式,具体包括:在所述匹配结果中获取所述录音指令中的号码对应的IP地址和媒体端口;从获取自所述镜像交换机的媒体流中识别出通过所述IP地址和媒体端口传输的媒体流;对识别出的媒体流进行分析以判断所述媒体流是否加密,并在判断出所述媒体流未加密时确定所述录音方式为镜像录音;According to the first possible implementation of the fifth aspect, in the second possible implementation, the recording server is configured to determine the recording mode according to the media stream transmitted through the IP address corresponding to the number and the media port, specifically Including: obtaining the IP address and media port corresponding to the number in the recording instruction from the matching result; identifying the media stream transmitted through the IP address and media port from the media stream obtained from the mirror switch; Analyzing the identified media stream to determine whether the media stream is encrypted, and determining that the recording method is mirror image recording when it is determined that the media stream is not encrypted;

所述录音服务器还用于根据所述确定的录音方式对所述通话终端的媒体流进行录音,具体包括:所述录音服务器,用于对获取自所述镜像交换机的媒体流中通过所述IP地址和媒体端口传输的媒体流进行录音。The recording server is further configured to record the media stream of the calling terminal according to the determined recording method, specifically including: the recording server configured to record the media stream obtained from the mirror switch through the IP Address and media port transmitted media stream for recording.

根据第五方面的第一种可能的实现方式,在第三种可能的实现方式中,所述录音服务器用于根据通过所述号码对应的IP地址和媒体端口传输的媒体流确定录音方式,具体包括:在所述匹配结果中获取所述录音指令中的号码对应的IP地址和媒体端口;如果从获取自所述镜像交换机的媒体流中未识别出通过所述IP地址和媒体端口传输的媒体流,或者,从获取自所述镜像交换机的媒体流中识别出通过所述IP地址和媒体端口传输的媒体流,且判断出所述识别出的媒体流已加密,确定所述录音方式为会场录音。According to the first possible implementation of the fifth aspect, in the third possible implementation, the recording server is configured to determine the recording mode according to the media stream transmitted through the IP address corresponding to the number and the media port, specifically Including: obtaining the IP address and media port corresponding to the number in the recording instruction in the matching result; if the media transmitted through the IP address and media port is not identified from the media stream obtained from the mirror switch stream, or identify the media stream transmitted through the IP address and media port from the media stream obtained from the mirror switch, and determine that the identified media stream has been encrypted, and determine that the recording method is the venue recording.

根据第五方面的第一种可能的实现方式,在第四种可能的实现方式中,所述录音服务器,还用于对所述信令进行解析获取所述信令中的指示信息;当所述指示信息指示通过所述IP地址和媒体端口的媒体流未加密时,确定所述录音方式为镜像录音;或者,当所述指示信息指示通过所述IP地址和媒体端口的媒体流已加密时,确定所述录音方式为会场录音。According to the first possible implementation manner of the fifth aspect, in a fourth possible implementation manner, the recording server is further configured to analyze the signaling to obtain indication information in the signaling; when the When the indication information indicates that the media stream passing through the IP address and media port is not encrypted, it is determined that the recording mode is mirror recording; or, when the indication information indicates that the media stream passing through the IP address and media port is encrypted , to determine that the recording mode is site recording.

在第五方面的第五种可能的实现方式中,所述录音服务器还用于对所述信令进行解析,并根据所述录音指令中的号码和对所述信令进行解析的结果确定录音方式,具体包括:In a fifth possible implementation manner of the fifth aspect, the recording server is further configured to analyze the signaling, and determine the recording according to the number in the recording instruction and the result of analyzing the signaling ways, including:

所述录音服务器,用于对所述信令进行解析获取所述信令中的号码,以及所述号码对应的网协IP地址和媒体端口,并将解析的结果存储在录音服务器中;进而将所述录音指令中的号码与所述录音服务器中存储的所述解析结果进行匹配,在所述解析结果中未匹配到所述录音指令中的号码时,将所述录音方式确定为会场录音。The recording server is used to analyze the signaling to obtain the number in the signaling, and the IP address and media port corresponding to the number, and store the resolved result in the recording server; The number in the recording instruction is matched with the analysis result stored in the recording server, and if the analysis result does not match the number in the recording instruction, the recording mode is determined as conference recording.

根据第五方面的第三种到第五种可能的实现方式中任意一种,在第六种可能的实现方式中,所述录音服务器还用于根据所述确定的录音方式对所述通话终端的媒体流进行录音,具体包括:所述录音服务器,用于向所述PBX发送会场录音指令;在所述PBX创建会场后对所述会场中的所述通话终端的媒体流进行录音;According to any one of the third to fifth possible implementation manners of the fifth aspect, in a sixth possible implementation manner, the recording server is further configured to record the call terminal according to the determined recording mode recording the media stream, specifically comprising: the recording server, configured to send a site recording instruction to the PBX; record the media stream of the call terminal in the conference site after the PBX creates the site;

所述通话终端包括主叫通话终端和被叫通话终端;所述PBX,还用于接收所述录音服务器发送的会场录音指令;根据所述会场录音指令创建所述会场,并将所述主叫通话终端、所述被叫通话终端和所述录音服务器加入所述会场;进而对接收自所述主叫通话终端和所述被叫通话终端的媒体流进行混音后发送给所述录音服务器。The call terminal includes a calling call terminal and a called call terminal; the PBX is also configured to receive a site recording instruction sent by the recording server; create the site according to the site recording instruction, and send the caller The calling terminal, the called calling terminal and the recording server join the conference site; and then mix the media streams received from the calling calling terminal and the called calling terminal and send them to the recording server.

根据第五方面的第六种可能的实现方式,在第七种可能的实现方式中,所述PBX还用于对接收自所述主叫通话终端和所述被叫通话终端的媒体流进行混音后发送给所述录音服务器,具体包括:According to the sixth possible implementation manner of the fifth aspect, in the seventh possible implementation manner, the PBX is further configured to mix the media streams received from the calling terminal and the called terminal After the sound is sent to the recording server, it specifically includes:

所述PBX,用于在确定接收自所述主叫通话终端和所述被叫通话终端的媒体流已加密时,对接收自所述主叫通话终端的媒体流和接收自所述被叫通话终端的媒体流分别进行解密,并对所述解密后的媒体流进行混音后发送给所述录音服务器。The PBX is configured to, when it is determined that the media streams received from the calling terminal and the called terminal have been encrypted, compare the media stream received from the calling terminal and the media stream received from the called terminal The media streams of the terminal are respectively decrypted, and the decrypted media streams are mixed and then sent to the recording server.

本发明实施例所提供的通话录音方法、录音服务器、用户级交换机及录音系统,通过录音服务器对从镜像交换机获取的信令进行解析,并根据从PBX接收的录音指令中的号码和对信令解析的结果将录音方式确定为镜像录音或会场录音,实现了录音服务器根据确定的录音方式对通话终端的媒体流进行录音,而不是统一通过会场录音的方式进行录音,从而在一定程度上降低了PBX的资源消耗。The call recording method, recording server, user-level switch and recording system provided by the embodiments of the present invention analyze the signaling obtained from the mirrored switch through the recording server, and according to the number in the recording instruction received from the PBX and the signaling As a result of the analysis, the recording method is determined as mirror recording or venue recording, which enables the recording server to record the media stream of the call terminal according to the determined recording method, instead of uniformly recording through the venue recording method, thereby reducing to a certain extent PBX resource consumption.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings without any creative effort.

图1为本发明实施例一所提供的一种通话录音方法的流程图;FIG. 1 is a flow chart of a call recording method provided by Embodiment 1 of the present invention;

图2为本发明实施例中所提供的一种通话录音场景的示意图;FIG. 2 is a schematic diagram of a call recording scene provided in an embodiment of the present invention;

图3为本发明实施例中所提供的另一种通话录音场景的示意图;FIG. 3 is a schematic diagram of another call recording scenario provided in an embodiment of the present invention;

图4为本发明实施例中所提供的又一种通话录音场景的示意图;FIG. 4 is a schematic diagram of another call recording scenario provided in an embodiment of the present invention;

图5为本发明实施例二所提供的一种通话录音方法的流程图;FIG. 5 is a flowchart of a call recording method provided in Embodiment 2 of the present invention;

图6为本发明实施例三所提供的一种通话录音方法的信令流程图;FIG. 6 is a signaling flow chart of a call recording method provided by Embodiment 3 of the present invention;

图7为本发明实施例四所提供的一种录音服务器的结构示意图;FIG. 7 is a schematic structural diagram of a recording server provided by Embodiment 4 of the present invention;

图8为本发明实施例所提供的另一种录音服务器的结构示意图;FIG. 8 is a schematic structural diagram of another recording server provided by an embodiment of the present invention;

图9为本发明实施例五所提供的一种PBX的结构示意图;FIG. 9 is a schematic structural diagram of a PBX provided by Embodiment 5 of the present invention;

图10为本发明实施例所提供的另一种PBX的结构示意图;FIG. 10 is a schematic structural diagram of another PBX provided by an embodiment of the present invention;

图11为本发明实施例六所提供的一种录音服务器的结构示意图;FIG. 11 is a schematic structural diagram of a recording server provided in Embodiment 6 of the present invention;

图12为本发明实施例七所提供的一种PBX的结构示意图;FIG. 12 is a schematic structural diagram of a PBX provided by Embodiment 7 of the present invention;

图13为本发明实施例所提供的一种录音系统的结构示意图。Fig. 13 is a schematic structural diagram of a recording system provided by an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

实施例一Embodiment one

图1为本发明实施例一所提供的一种通话录音方法的流程图。本实施例提供的方法适用于对电话网络中的通话终端进行录音的情况,该方法可以由录音服务器执行,该录音服务器通常以硬件和/或软件的方法来实现,如图1所示,本实施例的方法可以包括:FIG. 1 is a flowchart of a call recording method provided by Embodiment 1 of the present invention. The method provided in this embodiment is applicable to the case of recording a call terminal in a telephone network. The method can be executed by a recording server, and the recording server is usually implemented by hardware and/or software, as shown in FIG. 1 , the present invention The method of an embodiment may include:

S110,从镜像交换机获取信令。S110. Acquire signaling from the mirrored switch.

目前的PBX是公司内部使用的电话网络系统,在通过PBX建立的系统中,一个PBX通常有多个端口,可以连接相应数量的用户电话;以目前通常使用的基于网协IP(Internet Protocol)的PBX(IP Private Branch exchange,简称为:IP-PBX)为例,对本发明实施例提供的通话录音方法进行说明,IP-PBX分别与镜像交换机(Switch)和录音服务器通过物理连接,录音服务器与Switch的镜像端口连接,具体地,录音服务器从Switch的镜像端口获取通话终端的信令,需要说明的是,在本实施例中,在电话网络系统的通话过程中,录音服务器从Switch的镜像端口实时获取的信令可能为加密信令或未加密信令。The current PBX is the telephone network system used within the company. In the system established through the PBX, a PBX usually has multiple ports, which can connect a corresponding number of user phones; Taking PBX (IP Private Branch exchange, referred to as: IP-PBX) as an example, the call recording method provided by the embodiment of the present invention is described. The IP-PBX is physically connected to the mirror switch (Switch) and the recording server respectively. Specifically, the recording server obtains the signaling of the calling terminal from the mirroring port of the Switch. It should be noted that, in this embodiment, during a call in the telephone network system, the recording server obtains the signaling from the mirroring port of the Switch in real time. The acquired signaling may be encrypted signaling or unencrypted signaling.

S120,接收PBX发送的录音指令,该录音指令中包括该通话终端的号码。S120. Receive a recording instruction sent by the PBX, where the recording instruction includes the number of the call terminal.

在本实施例中,录音服务器在电话网络系统的通话过程中,还可以接收IP-PBX发送的录音指令,录音服务器接收到的录音指令中包括通过所述PBX进行通信的通话终端的号码。PBX发送的该录音指令,用于指示该录音服务器录制该通话终端的媒体流。需要说明的是,PBX可以将通话双方的号码都通过该录音指令发送给录音服务器,指示录音服务器录制通话双方之间的媒体流;也可以仅将通话双方中的一方的号码发送给录音服务器,指示录音服务器录制该号码对应的通话终端接收和发送的媒体流。In this embodiment, the recording server may also receive a recording instruction sent by the IP-PBX during a call in the telephone network system, and the recording instruction received by the recording server includes the number of the call terminal communicating through the PBX. The recording instruction sent by the PBX is used to instruct the recording server to record the media stream of the calling terminal. It should be noted that the PBX can send the numbers of both parties in the call to the recording server through the recording command, instructing the recording server to record the media stream between the two parties in the call; it can also send only the number of one of the two parties in the call to the recording server. Instruct the recording server to record the media stream received and sent by the call terminal corresponding to the number.

需要说明的是,本实施例中IP-PBX可以通过对通话终端的选择实现录音功能的启动,从而发送的录音指令,通常可以对通话终端上的特定功能按键进行选择启动录音功能,也可以由电话网络系统根据对通话终端的录音权限进行判定,对具有录音权限的用户在进行通话时自动启动录音功能。It should be noted that in this embodiment, the IP-PBX can start the recording function by selecting the call terminal, and the recording command sent can usually be selected to start the recording function by selecting a specific function button on the call terminal, or by The telephone network system judges the recording authority of the call terminal, and automatically activates the recording function when the user with the recording authority makes a call.

S130,对该信令进行解析,并根据该录音指令中的号码和对该信令进行解析的结果确定录音方式,该确定的录音方式具体为镜像录音或会场录音。S130. Analyze the signaling, and determine a recording mode according to the number in the recording instruction and a result of analyzing the signaling. The determined recording mode is specifically mirror recording or conference recording.

在本实施例中,录音服务器对获取自Switch的信令进行解析可以得到解析结果,如上所述,该信令可以为加密信令或未加密信令;具体地,若该信令未加密,则录音服务器对该信令进行解析可以获取该信令中的号码,以及该号码对应的IP地址和媒体端口,该号码为信令中的主叫号码和/或被叫号码;若该信令为加密信令,则录音服务器不能对该信令进行解析,即不能获取到信令中的号码,以及该号码对应的IP地址和媒体端口;如上所述对不同类型的信令解析后获取的结果不同,进一步地,对不同类型的信令进行解析后获取的结果通常用于与录音指令中的号码进行匹配,录音服务器根据匹配的结果确定执行录音的方式,该录音方式具体为镜像录音或会场录音。In this embodiment, the recording server can obtain the analysis result by analyzing the signaling obtained from the Switch. As mentioned above, the signaling can be encrypted signaling or unencrypted signaling; specifically, if the signaling is not encrypted, Then the recording server can obtain the number in the signaling by analyzing the signaling, and the IP address and media port corresponding to the number, and the number is the calling number and/or called number in the signaling; if the signaling For encrypted signaling, the recording server cannot analyze the signaling, that is, it cannot obtain the number in the signaling, as well as the IP address and media port corresponding to the number; The results are different. Further, the results obtained after analyzing different types of signaling are usually used to match the number in the recording command. The recording server determines the recording method according to the matching result. The recording method is specifically mirror recording or Recording at the venue.

本实施例在具体实现中,录音服务器确定录音方式后还可以向IP-PBX发送通知消息,用于向IP-PBX通知已确定的录音方式,IP-PBX接收到通知消息后还可以向录音服务器返回相应的确认消息,在实际使用中,IP-PBX与录音服务器的指令和消息交互是通过直连端口收发的,录音服务器获取信令和媒体流的则是通过Switch镜像端口传输的。In the specific implementation of this embodiment, after the recording server determines the recording mode, it can also send a notification message to the IP-PBX, which is used to notify the IP-PBX of the determined recording mode. After receiving the notification message, the IP-PBX can also send a notification message to the recording server. Return the corresponding confirmation message. In actual use, the command and message interaction between IP-PBX and recording server is sent and received through the direct connection port, and the recording server obtains signaling and media streams through the mirror port of Switch.

可选地,本实施例的S130可以包括:对信令进行解析获取信令中的号码,以及该号码对应的IP地址和媒体端口,并将解析的结果存储在录音服务器中;将录音指令中的号码与录音服务器中存储的解析结果进行匹配,在解析结果中匹配到录音指令中的号码时,根据通过该号码对应的IP地址和媒体端口传输的媒体流确定录音方式。Optionally, S130 of this embodiment may include: analyzing the signaling to obtain the number in the signaling, and the IP address and media port corresponding to the number, and storing the result of the analysis in the recording server; The number is matched with the analysis result stored in the recording server. When the analysis result matches the number in the recording instruction, the recording method is determined according to the IP address corresponding to the number and the media stream transmitted through the media port.

在本实施例中,对信令进行解析,在该解析结果中可以匹配到录音指令中的号码时,录音服务器则判断出从Switch获取的信令未加密,因此,可以从Switch镜像端口获取通过与该号码对应的IP地址和媒体端口传输的媒体流,但是对通过该号码对应的IP地址和媒体端口传输的媒体流的录音方式的确定,还需要进一步根据媒体流的具体情况进行确定,通常地可以根据通过该号码对应的IP地址和媒体端口传输的媒体流的传输方式是通过Switch传输,还是在通话终端之间点对点的传输,以及通过Switch传输的媒体流是否加密来确定录音方式。In this embodiment, the signaling is analyzed, and when the number in the recording command can be matched in the result of the analysis, the recording server judges that the signaling obtained from the Switch is not encrypted, so it can be obtained from the mirror port of the Switch through The IP address corresponding to the number and the media stream transmitted by the media port, but the determination of the recording method of the media stream transmitted through the IP address and media port corresponding to the number needs to be further determined according to the specific conditions of the media stream, usually The recording method can be determined according to whether the transmission mode of the media stream transmitted through the IP address and media port corresponding to the number is transmitted through the Switch, or point-to-point transmission between call terminals, and whether the media stream transmitted through the Switch is encrypted.

本实施例在具体实现中,由于可以在信令的解析结果中匹配到录音指令中的号码,因此,该录音服务器具体可以在匹配结果中获取到录音指令中号码对应的IP地址和媒体端口,从而可以根据通过该号码对应的IP地址和媒体端口传输的媒体流确定录音方式;举例来说,图2为本发明实施例中所提供的一种通话录音场景的示意图,在该场景中,录音服务器可以从获取自Switch的媒体流中识别出通过该IP地址和媒体端口传输的媒体流,并对识别出的媒体流进行分析以判断该媒体流是否加密,图2所示场景中具体判断出该媒体流未加密,则录音服务器将录音方式确定为镜像录音,在图2所示的录音场景中,信令和媒体流信息均可以经过IP-PBX,即本实施例的通话录音场景为局内局外通话,并且通话中的信令例如可以为会话发起协议(SessionInitiation Protocol,简称为:SIP)信令,媒体流例如可以为实时传输协议(Real-time Transport Protocol,简称为:RTP)媒体流,因此,录音服务器对通话终端的媒体流进行录音的方式,具体为对获取自Switch的媒体流中通过该IP地址和媒体端口传输的媒体流进行录音。需要说明的是,本实施例中对通过该IP地址和媒体端口传输的媒体流是否加密的判断,还可以通过对SIP信令进行解析获取该信令中的指示信息,当该指示信息指示通过该IP地址和媒体端口的媒体流未加密时,录音服务器则将录音方式确定为镜像录音。In the specific implementation of this embodiment, since the number in the recording instruction can be matched in the analysis result of the signaling, the recording server can specifically obtain the IP address and media port corresponding to the number in the recording instruction from the matching result, Thus, the recording mode can be determined according to the IP address corresponding to the number and the media stream transmitted through the media port; for example, FIG. 2 is a schematic diagram of a call recording scenario provided in an embodiment of the present invention. The server can identify the media stream transmitted through the IP address and media port from the media stream obtained from the Switch, and analyze the identified media stream to determine whether the media stream is encrypted. In the scenario shown in Figure 2, it can be specifically determined that If the media stream is not encrypted, the recording server will determine the recording method as mirror recording. In the recording scenario shown in Figure 2, both signaling and media stream information can pass through the IP-PBX, that is, the call recording scenario of this embodiment is intra-office An external call, and the signaling in the call may be, for example, Session Initiation Protocol (SIP) signaling, and the media stream may be, for example, Real-time Transport Protocol (RTP) media stream , therefore, the manner in which the recording server records the media stream of the call terminal is specifically to record the media stream transmitted through the IP address and media port among the media streams obtained from the Switch. It should be noted that in this embodiment, the judgment of whether the media stream transmitted through the IP address and media port is encrypted can also be obtained by analyzing the SIP signaling to obtain the indication information in the signaling. When the media stream of the IP address and media port is not encrypted, the recording server determines the recording mode as mirror recording.

再举例来说,图3为本发明实施例中所提供的另一种通话录音场景的示意图,图3所示的场景,分别对应从获取自Switch的媒体流中未识别出通过该IP地址和媒体端口传输的媒体流,以及从获取自Switch的媒体流中识别出通过该IP地址和媒体端口传输的媒体流,且判断出该识别出的媒体流已加密时的录音场景,在这两种场景下,录音服务器均将录音方式确定为会场录音。For another example, FIG. 3 is a schematic diagram of another call recording scenario provided in the embodiment of the present invention. The scenario shown in FIG. 3 corresponds to the unrecognized IP address and The media stream transmitted by the media port, and the recording scene when the media stream transmitted through the IP address and media port is identified from the media stream obtained from the Switch, and the identified media stream is determined to be encrypted. In all scenarios, the recording server determines the recording mode as venue recording.

需要说明的是,在图3所示场景中,一方面,录音服务器获知通过该IP地址和媒体端口传输的媒体流已加密,可以是对SIP信令进行解析获取该信令中的指示信息,该指示信息指示通过该IP地址和媒体端口的媒体流为加密模式,也可以是录音服务器根据从Switch中获取到噪声信号判断出该媒体流为加密模式,在该通话场景中,媒体流例如可以为安全实时传输协议(SecureReal-time Transport Protocol,简称为:SRTP)媒体流,录音服务器虽然可以从Switch的镜像端口获取通过该IP地址和媒体端口传输的该SRTP媒体流,但是无法对获取的该SRTP媒体流进行解密,因此将录音方式确定为会场录音;另一方面,对于录音指令中号码对应的IP地址和媒体端口,录音服务器从获取自Switch的媒体流中未能识别出通过该IP地址和媒体端口的媒体流,说明通话终端的媒体流不经过Switch,也就是说通话终端之间点对点的互通不经过IP-PBX,即该通话场景为内部通话,在该通话场景中,信令同样可以为SIP信令,但不限制媒体流是否加密,媒体流例如可以为RTP媒体流或SRTP媒体流,为了实现对内部通话的录音,录音服务器同样可以将录音方式确定为会场录音。It should be noted that, in the scenario shown in Figure 3, on the one hand, the recording server learns that the media stream transmitted through the IP address and media port has been encrypted, and may analyze the SIP signaling to obtain the indication information in the signaling, The indication information indicates that the media stream passing through the IP address and the media port is in encryption mode, and the recording server may also determine that the media stream is in encryption mode according to the noise signal obtained from the Switch. In this call scenario, the media stream can be, for example, For secure real-time transport protocol (Secure Real-time Transport Protocol, referred to as: SRTP) media stream, although the recording server can obtain the SRTP media stream transmitted through the IP address and media port from the mirror port of the Switch, but cannot The SRTP media stream is decrypted, so the recording method is determined as venue recording; on the other hand, for the IP address and media port corresponding to the number in the recording command, the recording server fails to identify the IP address through the media stream obtained from the Switch. and the media stream of the media port, indicating that the media stream of the call terminal does not pass through the Switch, that is to say, the point-to-point intercommunication between the call terminals does not pass through the IP-PBX, that is, the call scenario is an internal call. In this call scenario, the signaling is the same It can be SIP signaling, but it does not limit whether the media stream is encrypted. For example, the media stream can be RTP media stream or SRTP media stream. In order to realize the recording of internal calls, the recording server can also determine the recording mode as conference recording.

S140,根据确定的录音方式对通话终端的媒体流进行录音。S140. Record the media stream of the calling terminal according to the determined recording manner.

在本实施例中,录音服务器在对获取的信令进行解析,并将接收的录音指令中的号码与对信令的解析结果进行匹配,判断出该信令类型后,确定出适合通话场景的录音方式,具体根据已确定的录音方式,即镜像录音或会场录音对通话终端的媒体流进行录音。In this embodiment, the recording server analyzes the acquired signaling, matches the number in the received recording instruction with the analysis result of the signaling, and determines the signaling type suitable for the call scene after determining the signaling type. Recording method, specifically according to the determined recording method, that is, mirror recording or venue recording to record the media stream of the call terminal.

在本实施例中,同样以上述录音服务器在对信令的解析结果中可以匹配到录音指令中的号码为例予以说明,在该匹配结果下,录音服务器判断出信令未加密,在具体实现中,录音服务器对未加密的媒体流进行镜像录音,在上述其它通话场景中录音服务器无法采用镜像录音时,才将录音方式确认为会场录音,即本实施例提供的通话录音方法,在录音服务器判断出条件适合的场景中保证尽可能的采用镜像录音,当镜像录音不能适用于当前通话场景时选择会场录音,因此,本实施例的方法,尽可能减少使用会场录音的次数,在一定程度上降低了IP-PBX的资源消耗,相应地减少了对录音系统的资源浪费。In this embodiment, the above-mentioned recording server can match the number in the recording instruction in the analysis result of the signaling as an example for illustration. Under the matching result, the recording server judges that the signaling is not encrypted. In the specific implementation , the recording server performs mirror recording on the unencrypted media stream. When the recording server cannot use mirror recording in other call scenarios mentioned above, the recording method is confirmed as venue recording, that is, the call recording method provided in this embodiment. In the recording server It is determined that mirror recording is used as much as possible in the scene where the conditions are suitable. When mirror recording cannot be applied to the current call scene, site recording is selected. Therefore, the method of this embodiment reduces the number of times of using site recording as much as possible, to a certain extent The resource consumption of the IP-PBX is reduced, and the resource waste of the recording system is correspondingly reduced.

本实施例所提供的通话录音方法,通过录音服务器对从Switch获取的信令进行解析,并根据从PBX接收的录音指令中的号码和对信令解析的结果将录音方式确定为镜像录音或会场录音,实现了录音服务器根据已确定的录音方式对通话终端的媒体流进行录音,本实施例具体根据对信令类型的判断,以及根据媒体流的具体情况选择适用于当前通话场景的录音方式,保证了在录音方式的选择过程中,尽可能的采用镜像录音,即尽可能的减少会场录音的使用次数,解决了现有技术中录音方式,在录音过程中需要利用PBX的资源做会场的问题;在一定程度上降低了PBX的资源消耗,相应地降低了录音系统中的资源消耗。In the call recording method provided in this embodiment, the recording server analyzes the signaling obtained from the Switch, and determines the recording mode as mirror recording or venue according to the number in the recording instruction received from the PBX and the result of signaling analysis Recording, which enables the recording server to record the media stream of the call terminal according to the determined recording method. This embodiment specifically selects a recording method suitable for the current call scene based on the judgment of the signaling type and the specific conditions of the media stream. It ensures that in the process of selecting the recording method, mirror recording is adopted as much as possible, that is, the number of recordings in the venue is reduced as much as possible, and the recording method in the prior art needs to use PBX resources as the venue during the recording process. ; To a certain extent, the resource consumption of the PBX is reduced, and the resource consumption of the recording system is correspondingly reduced.

进一步地,在本实施例的另一种可能实现方式中,S130可以包括:对信令进行解析获取该信令中的号码,以及该号码对应的IP地址和媒体端口,并将解析的结果存储在录音服务器中;将录音指令中的号码与录音服务器中存储的解析结果进行匹配,在解析结果中未匹配到录音指令中的号码时,将录音方式确定为会场录音。Further, in another possible implementation of this embodiment, S130 may include: analyzing the signaling to obtain the number in the signaling, and the IP address and media port corresponding to the number, and storing the result of the analysis In the recording server; the number in the recording instruction is matched with the analysis result stored in the recording server, and if the number in the recording instruction is not matched in the analysis result, the recording mode is determined as conference recording.

图4为本发明实施例中所提供的又一种通话录音场景的示意图,在本实施例的通话场景中,对信令进行解析,在该解析结果中不能匹配到录音指令中的号码时,录音服务器则判断出从Switch获取的信令为加密信令,例如可以为加密的SIP信令,即,录音服务器在接收到IP-PBX发送的录音指令后,无法根据该录音指令中的号码从录音服务器存储的解析结果中匹配到该号码对应的IP地址和媒体端口,因此,录音服务器只能通过会场录音获取通话终端的媒体流。Fig. 4 is a schematic diagram of another call recording scenario provided in the embodiment of the present invention. In the call scene of this embodiment, the signaling is analyzed, and when the analysis result cannot match the number in the recording instruction, The recording server judges that the signaling obtained from the Switch is an encrypted signaling, for example, it can be an encrypted SIP signaling, that is, after the recording server receives the recording instruction sent by the IP-PBX, it cannot use the number in the recording instruction from The parsing result stored by the recording server matches the IP address and media port corresponding to the number. Therefore, the recording server can only obtain the media stream of the call terminal through the recording at the venue.

在具体实现时,图3和图4所示通话录音场景中,均采用会场录音对通话终端的媒体流进行录音,在图1所示实施例的基础上,S140可以包括:向IP-PBX发送会场录音指令,以使该IP-PBX创建会场并将通话终端和该录音服务器加入该会场;进而对该会场中的通话终端的媒体流进行录音。需要说明的是,本实施例可以是局外局内的通话,也可以是电话网络的内部通话,并且不限制从Switch获取的媒体流是否被加密;通常地,通话终端可以包括主叫通话终端和被叫通话终端,在IP-PBX创建通话会场后,还可以分别对接收自该主叫通话终端和被叫通话终端的加密媒体流信息进行解密,并在混音后发给录音服务器,从而该录音服务器从该会场中获取解密媒体流信息,如图3和图4所示,建立会场后的录音服务器不需要通过Switch的镜像端口获取通过该IP地址和媒体端口传输的媒体流,而是在该会场中直接从IP-PBX的媒体端口获取媒体流。In specific implementation, in the call recording scenarios shown in Figure 3 and Figure 4, venue recording is used to record the media stream of the call terminal. On the basis of the embodiment shown in Figure 1, S140 may include: sending to the IP-PBX A site recording instruction, so that the IP-PBX creates a site and adds the call terminal and the recording server to the site; and then records the media stream of the call terminal in the site. It should be noted that this embodiment can be a call in an external office or an internal call on a telephone network, and there is no restriction on whether the media stream obtained from the Switch is encrypted; generally, the calling terminal can include the calling terminal and the The called terminal, after the IP-PBX creates a call site, can also decrypt the encrypted media stream information received from the calling terminal and the called terminal respectively, and send it to the recording server after mixing, so that the The recording server obtains the decrypted media stream information from the conference site, as shown in Figure 3 and Figure 4, after the conference site is established, the recording server does not need to obtain the media stream transmitted through the IP address and media port through the mirror port of the Switch, but in The site directly obtains the media stream from the media port of the IP-PBX.

实施例二Embodiment two

图5为本发明实施例二所提供的一种通话录音方法的流程图。本实施例提供的方法适用于对电话网络中的通话终端进行录音的情况,该方法可以由PBX执行,该PBX通常以硬件和/或软件的方法来实现,如图5所示,本实施例的方法可以包括:FIG. 5 is a flow chart of a call recording method provided by Embodiment 2 of the present invention. The method provided in this embodiment is applicable to the situation of recording a call terminal in a telephone network, and the method can be executed by a PBX, and the PBX is usually implemented by hardware and/or software, as shown in FIG. 5 , the present embodiment Methods can include:

S210,生成录音指令,该录音指令包括通话终端的号码;S210, generating a recording instruction, where the recording instruction includes the number of the calling terminal;

S220,向录音服务器发送录音指令,以使录音服务器根据该号码和对从镜像交换机获取的信令进行解析的结果确定录音方式,并根据确定的录音方式对通话终端的媒体流进行录音,该确定的录音方式具体为镜像录音或会场录音。S220. Send a recording instruction to the recording server, so that the recording server determines the recording mode according to the number and the result of analyzing the signaling obtained from the mirror switch, and records the media stream of the call terminal according to the determined recording mode. The specific recording methods are mirror recording or venue recording.

在本实施例中,同样以目前通常使用的IP-PBX为例,对本发明实施例提供的通话录音方法予以说明,IP-PBX分别与Switch和录音服务器通过物理连接,录音服务器与Switch的镜像端口连接,具体地,IP-PBX与录音服务器的指令和消息交互是通过连接端口收发的,录音服务器获取信令和媒体流则是通过Switch镜像端口传输的。录音服务器可以从Switch中实时获取信令并对该信令进行解析,需要说明的是,在本实施例提供的电话网络系统的通话过程中,录音服务器从Switch的镜像端口实时获取的信令可能为加密信令或未加密信令。在IP-PBX向该录音服务器发送包括通话终端号码的录音指令后,可以使得录音服务器根据对该信令的解析结果和该录音指令中的号码进行匹配,并根据匹配的结果确定录音方式,进而采用确定的录音方式,具体可以为镜像录音或会场录音,实现对网络的监听、即对通话终端的录音。PBX发送的该录音指令,用于指示该录音服务器录制该通话终端的媒体流。需要说明的是,PBX可以将通话双方的号码都通过该录音指令发送给录音服务器,指示录音服务器录制通话双方之间的媒体流;也可以仅将通话双方中的一方的号码发送给录音服务器,指示录音服务器录制该号码对应的通话终端接收和发送的媒体流。In this embodiment, also taking the currently commonly used IP-PBX as an example, the call recording method provided by the embodiment of the present invention is described. The IP-PBX is physically connected to the Switch and the recording server respectively, and the mirror port of the recording server and the Switch Connection, specifically, the command and message interaction between IP-PBX and recording server is sent and received through the connection port, and the recording server obtains signaling and media streams through the mirror port of Switch. The recording server can obtain the signaling from the Switch in real time and analyze the signaling. It should be noted that during the call process of the telephone network system provided in this embodiment, the signaling obtained by the recording server in real time from the mirror port of the Switch may It is encrypted signaling or unencrypted signaling. After the IP-PBX sends the recording command including the call terminal number to the recording server, it can make the recording server match the number in the recording command according to the analysis result of the signaling, and determine the recording mode according to the matching result, and then A certain recording method is adopted, specifically mirror recording or venue recording, to monitor the network, that is, to record the call terminal. The recording instruction sent by the PBX is used to instruct the recording server to record the media stream of the call terminal. It should be noted that the PBX can send the numbers of both parties in the call to the recording server through the recording command, instructing the recording server to record the media stream between the two parties in the call; it can also send only the number of one of the two parties in the call to the recording server. Instruct the recording server to record the media stream received and sent by the call terminal corresponding to the number.

需要说明的是,本实施例中IP-PBX可以通过对通话终端的选择实现录音功能的启动,从而发送的录音指令,通常可以对通话终端上的特定功能按键进行选择启动录音功能,也可以由电话网络系统根据对通话终端的录音权限进行判定,对具有录音权限的用户在进行通话时自动启动录音功能。It should be noted that in this embodiment, the IP-PBX can start the recording function by selecting the call terminal, and the recording command sent can usually be selected to start the recording function by selecting a specific function button on the call terminal, or by The telephone network system judges the recording authority of the call terminal, and automatically activates the recording function when the user with the recording authority makes a call.

在本实施例中,录音服务器对获取自Switch的信令进行解析可以得到解析结果,如上所述,该信令可以为加密信令或未加密信令;具体地,若该信令未加密,则录音服务器对该信令进行解析可以获取该信令中的号码,以及该号码对应的IP地址和媒体端口,该号码为信令中的主叫号码和/或被叫号码;若该信令为加密信令,则录音服务器不能对该信令进行解析,即不能获取到信令中的号码,以及该号码对应的IP地址和媒体端口;如上所述对不同类型的信令解析后获取的结果不同,进一步地,对不同类型的信令进行解析后获取的结果通常用于与录音指令中的号码进行匹配,录音服务器根据匹配的结果确定执行录音的方式,该录音方式具体为镜像录音或会场录音。In this embodiment, the recording server can obtain the analysis result by analyzing the signaling obtained from the Switch. As mentioned above, the signaling can be encrypted signaling or unencrypted signaling; specifically, if the signaling is not encrypted, Then the recording server can obtain the number in the signaling by analyzing the signaling, and the IP address and media port corresponding to the number, and the number is the calling number and/or called number in the signaling; if the signaling For encrypted signaling, the recording server cannot analyze the signaling, that is, it cannot obtain the number in the signaling, as well as the IP address and media port corresponding to the number; The results are different. Further, the results obtained after analyzing different types of signaling are usually used to match the number in the recording command. The recording server determines the recording method according to the matching result. The recording method is specifically mirror recording or Conference recording.

本实施例在具体实现中,录音服务器确定录音方式后还可以向IP-PBX发送通知消息,用于向IP-PBX通知已确定的录音方式,IP-PBX接收到通知消息后还可以向录音服务器返回相应的确认消息,在实际使用中,IP-PBX与录音服务器的指令和消息交互是通过直连端口收发的,录音服务器获取信令和媒体流的则是通过Switch镜像端口传输的。In the specific implementation of this embodiment, after the recording server determines the recording mode, it can also send a notification message to the IP-PBX, which is used to notify the IP-PBX of the determined recording mode. After receiving the notification message, the IP-PBX can also send a notification message to the recording server. Return the corresponding confirmation message. In actual use, the command and message interaction between IP-PBX and recording server is sent and received through the direct connection port, and the recording server obtains signaling and media streams through the mirror port of Switch.

可选地,当录音服务器获取自Switch的信令未加密时,与上述实施例类似地,录音服务器还可以进一步根据通过该号码对应的IP地址和媒体端口传输的媒体流的具体情况确定录音方式,具体实现方式与上述图2和图3所示实施例相同,当录音服务器获取自Switch的信令为加密信令时,具体实现方式与上述图4所示实施例相同,故在此不再赘述。需要说明的是,图2所示实施例录音服务器将录音方式确定为镜像录音,图3和图4所示实施例录音服务器将录音方式确定为会场录音,本发明实施例提供的方法,录音服务器根据从IP-PBX接收到的录音指令和对信令的解析结果的匹配,以及根据通过该IP地址和媒体端口传输的媒体流的具体情况,在录音服务器判断出条件适合的场景中保证尽可能的采用镜像录音,当镜像录音不能适用于当前通话场景时选择会场录音,因此,本实施例的方法,尽可能减少使用会场录音的次数,在一定程度上降低了IP-PBX的资源消耗,相应地减少了对录音系统的资源浪费。Optionally, when the signaling obtained by the recording server from the Switch is unencrypted, similar to the above-mentioned embodiment, the recording server can further determine the recording mode according to the specific conditions of the media stream transmitted through the IP address and media port corresponding to the number , the specific implementation is the same as the above-mentioned embodiment shown in Figure 2 and Figure 3, when the signaling obtained by the recording server from the Switch is an encrypted signaling, the specific implementation is the same as the above-mentioned embodiment shown in Figure 4, so it will not be repeated here repeat. It should be noted that the recording server in the embodiment shown in Figure 2 determines the recording mode as mirror recording, and the recording server in the embodiments shown in Figure 3 and Figure 4 determines the recording mode as venue recording, the method provided by the embodiment of the present invention, the recording server According to the matching of the recording command received from the IP-PBX and the analysis result of the signaling, and according to the specific conditions of the media stream transmitted through the IP address and media port, in the scene where the recording server judges that the conditions are suitable, ensure as much as possible The use of mirror recording, when the mirror recording is not applicable to the current call scene, the site recording is selected. Therefore, the method of this embodiment reduces the number of times of using the site recording as much as possible, and reduces the resource consumption of the IP-PBX to a certain extent. Corresponding It greatly reduces the resource waste of the recording system.

本实施例所提供的通话录音方法,通过PBX向录音服务器发送包括通话终端号码的录音指令,使得录音服务器根据该号码和对从Switch获取的信令的解析结果将录音方式确定为镜像录音或会场录音,实现了录音服务器根据已确定的录音方式对通话终端的媒体流进行录音,本实施例具体根据对信令类型的判断,以及根据媒体流的具体情况选择适用于当前通话场景的录音方式,保证了在录音方式的选择过程中,尽可能的采用镜像录音,即尽可能的减少会场录音的使用次数,解决了现有技术中录音方式,在录音过程中需要利用PBX的资源做会场的问题;在一定程度上降低了PBX的资源消耗,相应地降低了录音系统中的资源消耗。In the call recording method provided in this embodiment, the PBX sends a recording command including the call terminal number to the recording server, so that the recording server determines the recording mode as mirror recording or venue according to the number and the analysis result of the signaling obtained from the Switch Recording, which enables the recording server to record the media stream of the call terminal according to the determined recording method. This embodiment specifically selects a recording method suitable for the current call scene based on the judgment of the signaling type and the specific conditions of the media stream. It ensures that in the process of selecting the recording method, mirror recording is adopted as much as possible, that is, the number of recordings in the venue is reduced as much as possible, and the recording method in the prior art needs to use PBX resources as the venue during the recording process. ; To a certain extent, the resource consumption of the PBX is reduced, and the resource consumption of the recording system is correspondingly reduced.

进一步地,在上述图3和图4所示实施例中,录音服务器均将录音方式确定为会场录音,通话终端通常包括主叫通话终端和被叫通话终端,相应地,本实施例的方法在S220之后还可以包括:S230,接收录音服务器发送的会场录音指令;S240,根据该会场录音指令创建会场,并将主叫通话终端、被叫通话终端和录音服务器加入该会场;S250,对接收自该主叫通话终端和被叫通话终端的媒体流进行混音后发送给该录音服务器。Further, in the embodiments shown in FIG. 3 and FIG. 4 above, the recording server determines the recording mode as venue recording, and the call terminals usually include the calling call terminal and the called call terminal. Correspondingly, the method in this embodiment is After S220, it may also include: S230, receiving the recording instruction of the conference site sent by the recording server; S240, creating a conference site according to the recording command of the conference site, and adding the calling terminal, called terminal and recording server to the conference site; The media streams of the calling terminal and the called terminal are mixed and then sent to the recording server.

需要说明的是,本实施例可以是局外局内的通话,也可以是电话网络的内部通话,并且不限制从Switch获取的媒体流是否被加密;在具体实现中,当会场中的媒体流为加密媒体流时,S250可以替换为:IP-PBX在确定接收自该主叫通话终端和被叫通话终端的媒体流已加密时,对接收自该主叫通话终端的媒体流和接收自该被叫通话终端的媒体流分别进行解密,并对解密后的媒体流进行混音后发送给所述录音服务器,使得录音服务器从该会场中获取解密媒体流信息。如图3和图4所示,建立会场后的录音服务器不需要通过Switch的镜像端口获取媒体流,而是在该会场中直接从IP-PBX的媒体端口获取媒体流。It should be noted that this embodiment can be a call in an external office or an internal call on a telephone network, and does not limit whether the media stream obtained from the Switch is encrypted; in specific implementation, when the media stream in the venue is When encrypting the media stream, S250 may be replaced by: when the IP-PBX determines that the media streams received from the calling terminal and the called terminal have been encrypted, the media stream received from the calling terminal and the media stream received from the called terminal The media streams of the calling terminals are respectively decrypted, and the decrypted media streams are mixed and then sent to the recording server, so that the recording server obtains the decrypted media stream information from the conference site. As shown in Figure 3 and Figure 4, after the conference site is established, the recording server does not need to obtain the media stream through the mirror port of the Switch, but directly obtains the media stream from the media port of the IP-PBX in the conference site.

实施例三Embodiment three

图6为本发明实施例三所提供的一种通话录音方法的信令流程图,如图6所示,本实施例提供的通话录音方法包括:FIG. 6 is a signaling flow chart of a call recording method provided in Embodiment 3 of the present invention. As shown in FIG. 6 , the call recording method provided in this embodiment includes:

S301,录音服务器从Switch获取信令。S301. The recording server obtains signaling from the Switch.

S302,PBX生成录音指令,并向录音服务器发送该录音指令,该录音指令中包括通话终端的号码。S302. The PBX generates a recording instruction, and sends the recording instruction to the recording server, where the recording instruction includes the number of the calling terminal.

在本实施例中,同样以目前通常常用的IP-PBX为例,对本发明实施例提供的通话录音方法进行说明,IP-PBX发送的该录音指令,用于指示该录音服务器录制该通话终端的媒体流,该通话终端的号码为通话终端的主叫号码和/或被叫号码。In this embodiment, also taking the commonly used IP-PBX as an example, the call recording method provided by the embodiment of the present invention is described. The recording instruction sent by the IP-PBX is used to instruct the recording server to record the call terminal Media stream, the number of the calling terminal is the calling number and/or called number of the calling terminal.

需要说明的是,本实施例中S301和S302没有明确的先后顺序,本实施例以S301在S302之前执行为例予以示出。It should be noted that there is no clear order of S301 and S302 in this embodiment, and this embodiment is illustrated by taking S301 to be executed before S302 as an example.

S303,录音服务器对该信令进行解析获取该信令中的号码,以及该号码对应的IP地址和媒体端口,并将解析结果存储在录音服务器中。S303, the recording server analyzes the signaling to obtain the number in the signaling, and the IP address and media port corresponding to the number, and stores the analysis result in the recording server.

S304,录音服务器将录音指令中的号码与录音服务器中存储的解析结果进行匹配,若在该解析结果中匹配到录音指令中的号码,则执行S305;若在该解析结果中未匹配到录音指令中的号码,则执行S308。S304. The recording server matches the number in the recording instruction with the analysis result stored in the recording server. If the analysis result matches the number in the recording instruction, execute S305; if the analysis result does not match the recording instruction. In the number, execute S308.

本实施例的S303中:具体将录音指令中号码与对信令进行解析的结果进行匹配,根据匹配的结果确定录音方式,该确定的录音方式具体为镜像录音或会场录音;若在该信令的解析结果中可以匹配到录音指令中的号码,则说明该信令未加密;若在该信令的解析结果中不能匹配到录音指令中的号码,说明该信令为加密信令。In S303 of this embodiment: specifically match the number in the recording instruction with the result of analyzing the signaling, determine the recording mode according to the matching result, and the determined recording mode is specifically mirror recording or venue recording; If the number in the recording instruction can be matched in the analysis result of the signaling, it means that the signaling is not encrypted; if the number in the recording instruction cannot be matched in the analysis result of the signaling, it means that the signaling is an encrypted signaling.

在具体实现中,在录音服务器判断出信令未加密时,还需要根据通过该号码对应的IP地址和媒体端口传输的媒体流确定录音方式。相应地,本实施例的方法还包括:In a specific implementation, when the recording server determines that the signaling is not encrypted, it is also necessary to determine the recording mode according to the IP address corresponding to the number and the media stream transmitted through the media port. Correspondingly, the method of this embodiment also includes:

S305,录音服务器在匹配结果中获取录音指令中的号码对应的IP地址和媒体端口。S305. The recording server acquires the IP address and media port corresponding to the number in the recording instruction from the matching result.

S306,录音服务器从获取自Switch的媒体流中识别出通过该IP地址和媒体端口传输的媒体流,若判断出该媒体流未加密,则执行S307;若判断出该媒体流已加密,或者若从获取自Switch的媒体流中未识别出通过该IP地址和媒体端口传输的媒体流,则执行S308。S306, the recording server identifies the media stream transmitted through the IP address and media port from the media stream obtained from the Switch, if it is determined that the media stream is not encrypted, then execute S307; if it is determined that the media stream is encrypted, or if If no media stream transmitted through the IP address and media port is identified from the media streams obtained from the Switch, S308 is executed.

需要说明的是,本实施例中对获取自Switch的媒体流中识别出通过该IP地址和媒体端口传输的媒体流是否加密的判断,还可以通过对信令的解析获取该信令中的指示消息,当该指示信息指示通过该IP地址和媒体端口的媒体流未加密时,执行S307;当该指示信息指示通过该IP地址和媒体端口的媒体流已加密时,执行S308。另外,录音服务器还可以根据从Switch中获取到噪声信号判断出该媒体流已加密。It should be noted that, in this embodiment, the determination of whether the media stream transmitted through the IP address and media port identified in the media stream obtained from the Switch is encrypted or not can also be obtained by analyzing the signaling to obtain the indication in the signaling message, when the indication information indicates that the media stream passing through the IP address and media port is not encrypted, execute S307; when the indication information indicates that the media stream passing through the IP address and media port is encrypted, execute S308. In addition, the recording server can also judge that the media stream has been encrypted according to the noise signal obtained from the Switch.

S307,录音服务器将录音方式确定为镜像录音;S307, the recording server determines the recording mode as mirror recording;

在本实施例中,录音服务器确定录音方式为镜像录音后,对通话终端的媒体流进行录音的方式,具体为对获取自Switch的媒体流中通过该IP地址和媒体端口传输的媒体流进行录音,如图2所示,也为本实施例提供的通话录音场景示意图。In this embodiment, after the recording server determines that the recording method is mirror recording, the method of recording the media stream of the call terminal is specifically to record the media stream transmitted through the IP address and media port in the media stream obtained from the Switch , as shown in FIG. 2 , which is also a schematic diagram of a call recording scenario provided in this embodiment.

S308,录音服务器将录音方式确定为会场录音。S308. The recording server determines the recording mode as conference recording.

在本实施例中,当录音服务器判断出信令为加密信令,或者判断出该信令未加密,但是媒体流加密,或者从获取自Switch的媒体流中未识别出通过该IP地址和媒体端口传输的媒体流时,录音服务器将录音方式确定为会场录音;如图3和图4所示,也为本实施例提供的通话录音场景示意图。In this embodiment, when the recording server judges that the signaling is encrypted signaling, or judges that the signaling is unencrypted, but the media stream is encrypted, or does not recognize the IP address and media stream from the media stream obtained from the Switch When the media stream is transmitted through the port, the recording server determines the recording mode as venue recording; as shown in FIG. 3 and FIG. 4 , it is also a schematic diagram of a call recording scene provided by this embodiment.

进一步地,本实施例在S308之后还包括:Further, after S308, this embodiment also includes:

S309,录音服务器向PBX发送会场录音指令;S309, the recording server sends a conference site recording instruction to the PBX;

S310,PBX根据该会场录音指令创建会场;S310, the PBX creates a conference site according to the conference site recording instruction;

S311,通话终端和录音服务器加入该会场;本实施例中的通话终端通常包括主叫通话终端和被叫通话终端。S311, the call terminal and the recording server join the conference site; the call terminal in this embodiment usually includes a calling call terminal and a called call terminal.

S312,PBX对接收自通话终端的媒体流进行混音后发送给录音服务器。S312. The PBX mixes the media stream received from the call terminal and sends it to the recording server.

在本实施例中,在PBX确定接收自该主叫通话终端和被叫通话终端的媒体流已加密时,还可以对接收自主叫通话终端的媒体流和接收自该被叫通话终端的媒体流分别进行解密,并对解密后的媒体流进行混音后发送给录音服务器。In this embodiment, when the PBX determines that the media streams received from the calling terminal and the called terminal have been encrypted, the media stream received from the calling terminal and the media stream received from the called terminal can also be encrypted. Decryption is performed respectively, and the decrypted media stream is mixed and then sent to the recording server.

可选地,本实施例提供的方法还包括:S313,PBX接收该通话终端发送的录音启动指令;相应地,S302可以替换为:PBX根据该录音启动指令向该录音服务器发送录音指令。Optionally, the method provided in this embodiment further includes: S313, the PBX receiving the recording start instruction sent by the call terminal; correspondingly, S302 may be replaced by: the PBX sends the recording instruction to the recording server according to the recording start instruction.

进一步地,本实施例提供的方法,在S309之后还可以包括:S314,PBX根据该主动录音指令向该录音服务器返回确认消息;Further, the method provided in this embodiment may further include after S309: S314, the PBX returns a confirmation message to the recording server according to the active recording instruction;

需要说明的是,本实施例中S314和S310没有明确的先后顺序,本实施例以S314在S310之前执行为例予以示出。It should be noted that there is no clear order of S314 and S310 in this embodiment, and this embodiment is illustrated by taking S314 to be executed before S310 as an example.

本实施例所提供的通话录音方法,通过录音服务器对从Switch获取的信令进行解析,并根据从PBX接收的录音指令中的号码和对信令解析的结果将录音方式确定为镜像录音或会场录音,实现了录音服务器根据已确定的录音方式对通话终端的媒体流进行录音,本实施例具体根据对信令类型的判断,以及根据媒体流的具体情况选择适用于当前通话场景的录音方式,保证了在录音方式的选择过程中,尽可能的采用镜像录音,即尽可能的减少会场录音的使用次数,解决了现有技术中录音方式,在录音过程中需要利用PBX的资源做会场的问题;在一定程度上降低了PBX的资源消耗,相应地降低了录音系统中的资源消耗。In the call recording method provided in this embodiment, the recording server analyzes the signaling obtained from the Switch, and determines the recording mode as mirror recording or venue according to the number in the recording instruction received from the PBX and the result of signaling analysis Recording, which enables the recording server to record the media stream of the call terminal according to the determined recording method. This embodiment specifically selects a recording method suitable for the current call scene based on the judgment of the signaling type and the specific conditions of the media stream. It ensures that in the process of selecting the recording method, mirror recording is adopted as much as possible, that is, the number of recordings in the venue is reduced as much as possible, and the recording method in the prior art needs to use PBX resources as the venue during the recording process. ; To a certain extent, the resource consumption of the PBX is reduced, and the resource consumption of the recording system is correspondingly reduced.

实施例四Embodiment four

图7为本发明实施例四所提供的一种录音服务器的结构示意图。如图7所示,本实施例提供的录音服务器,具体包括:获取模块11、接收模块12、解析模块13和录音模块14。FIG. 7 is a schematic structural diagram of a recording server provided by Embodiment 4 of the present invention. As shown in FIG. 7 , the recording server provided in this embodiment specifically includes: an acquiring module 11 , a receiving module 12 , an analyzing module 13 and a recording module 14 .

其中,获取模块11,用于从镜像交换机获取信令。Wherein, the acquiring module 11 is configured to acquire signaling from the mirrored switch.

接收模块12,用于接收PBX发送的录音指令,该录音指令中包括通话终端的号码。The receiving module 12 is configured to receive the recording instruction sent by the PBX, and the recording instruction includes the number of the calling terminal.

解析模块13,用于对获取模块11获取的信令进行解析,并根据接收模块12接收的录音指令中的号码和对该信令进行解析的结果确定录音方式,该确定的录音方式具体为镜像录音或会场录音。The analysis module 13 is used to analyze the signaling obtained by the acquisition module 11, and determine the recording mode according to the number in the recording instruction received by the receiving module 12 and the result of analyzing the signaling. The determined recording mode is specifically a mirror image Recording or venue recording.

录音模块14,用于根据解析模块13确定的录音方式对通话终端的媒体流进行录音。The recording module 14 is configured to record the media stream of the calling terminal according to the recording mode determined by the analysis module 13 .

图8为本发明实施例所提供的另一种录音服务器的结构示意图。如图8所示,本实施例提供的录音服务器在上述图7的基础上,解析模块13,包括:第一解析单元15,用于对获取模块11获取的信令进行解析获取该信令中的号码,以及该号码对应的网协IP地址和媒体端口,并将解析的结果存储在录音服务器中;第一匹配单元16,用于将接收模块12接收的录音指令中的号码与录音服务器中存储的解析结果进行匹配,在该解析结果中匹配到该录音指令中的号码时,根据通过该号码对应的IP地址和媒体端口传输的媒体流确定录音方式。FIG. 8 is a schematic structural diagram of another recording server provided by an embodiment of the present invention. As shown in FIG. 8 , the recording server provided by this embodiment is based on the above-mentioned FIG. 7 , and the parsing module 13 includes: a first parsing unit 15 for parsing the signaling obtained by the obtaining module 11 to obtain the signaling number, and the IP address and media port corresponding to the number, and store the resolved result in the recording server; the first matching unit 16 is used to match the number in the recording instruction received by the receiving module 12 with the recording server The stored parsing result is matched, and when the parsing result matches the number in the recording instruction, the recording mode is determined according to the IP address corresponding to the number and the media stream transmitted through the media port.

在本实施例中,可选地,第一匹配单元16用于根据通过该号码对应的IP地址和媒体端口传输的媒体流确定录音方式,具体包括:在匹配结果中获取录音指令中的号码对应的IP地址和媒体端口;从获取自镜像交换机的媒体流中识别出通过该IP地址和媒体端口传输的媒体流;对识别出的媒体流进行分析以判断该媒体流是否加密,并在判断出该媒体流未加密时确定该录音方式为镜像录音;相应地,录音模块14,具体用于对获取自该镜像交换机的媒体流中通过该IP地址和媒体端口传输的媒体流进行录音。In this embodiment, optionally, the first matching unit 16 is configured to determine the recording mode according to the IP address corresponding to the number and the media stream transmitted through the media port, specifically including: obtaining the corresponding number in the recording instruction from the matching result; IP address and media port; identify the media stream transmitted through the IP address and media port from the media stream obtained from the mirror switch; analyze the identified media stream to determine whether the media stream is encrypted, and determine whether the media stream is encrypted. When the media stream is not encrypted, it is determined that the recording mode is mirror recording; correspondingly, the recording module 14 is specifically configured to record the media stream transmitted through the IP address and media port in the media stream obtained from the mirror switch.

类似地,第一匹配单元16用于根据通过该号码对应的IP地址和媒体端口传输的媒体流确定录音方式,具体还包括:在匹配结果中获取录音指令中的号码对应的IP地址和媒体端口;如果从获取自镜像交换机的媒体流中未识别出通过该IP地址和媒体端口传输的媒体流,或者,从获取自该镜像交换机的媒体流中识别出通过该IP地址和媒体端口传输的媒体流,且判断出该识别出的媒体流已加密,确定该录音方式为会场录音。Similarly, the first matching unit 16 is used to determine the recording method according to the media stream transmitted through the IP address and media port corresponding to the number, and specifically includes: obtaining the IP address and media port corresponding to the number in the recording instruction from the matching result ; If the media stream transmitted through the IP address and media port is not identified from the media stream obtained from the mirror switch, or, the media transmitted through the IP address and media port is identified from the media stream obtained from the mirror switch stream, and it is determined that the identified media stream has been encrypted, and the recording method is determined as venue recording.

进一步地,本发明实施例提供的第一解析单元15,还用于对获取模块11获取的信令进行解析获取该信令中的指示信息;相应地,解析模块13还可以包括:确定单元17,用于当第一解析单元15获取的指示信息指示通过该IP地址和媒体端口的媒体流未加密时,确定录音方式为镜像录音;或者,当该第一解析单元15获取的指示信息指示通过该IP地址和媒体端口的媒体流已加密时,确定录音方式为会场录音。Further, the first analysis unit 15 provided by the embodiment of the present invention is also used to analyze the signaling acquired by the acquisition module 11 to obtain the indication information in the signaling; correspondingly, the analysis module 13 may also include: a determination unit 17 , used to determine that the recording mode is mirror recording when the indication information obtained by the first analysis unit 15 indicates that the media stream passing through the IP address and media port is not encrypted; When the media stream of the IP address and media port is encrypted, determine the recording mode as venue recording.

本发明实施例提供的录音服务器用于执行图1所示步骤以及图1所示实施例的各种可能实现方法,具备相应的功能模块,其实现原理和技术效果类似,此处不再赘述。The recording server provided by the embodiment of the present invention is used to execute the steps shown in FIG. 1 and various possible implementation methods of the embodiment shown in FIG. 1 , and has corresponding functional modules. The implementation principles and technical effects are similar, and will not be repeated here.

在本实施例的另一种实现方式中,解析模块13包括:第二解析单元,用于对获取模块11获取的信令进行解析获取该信令中的号码,以及该号码对应的IP地址和媒体端口,并将解析的结果存储在录音服务器中;第二匹配单元,用于将接收模块12接收的录音指令中的号码与录音服务器中存储的解析结果进行匹配,在该解析结果中未匹配到该录音指令中的号码时,将录音方式确定为会场录音。In another implementation of this embodiment, the parsing module 13 includes: a second parsing unit, configured to parse the signaling obtained by the obtaining module 11 to obtain the number in the signaling, and the corresponding IP address and Media port, and the result of analysis is stored in the recording server; The second matching unit is used to match the number in the recording instruction received by the receiving module 12 with the analysis result stored in the recording server, and there is no match in the analysis result When the number in the recording instruction is reached, the recording mode is determined as venue recording.

更进一步地,本实施例在具体实现中,当录音方式确定为会场录音时,录音模块14可以包括:发送单元,用于向PBX发送会场录音指令,以使该PBX创建会场并将通话终端和该录音服务器加入该会场;录音单元,用于对该会场中的通话终端的媒体流进行录音。Furthermore, in the specific implementation of this embodiment, when the recording mode is determined to be conference site recording, the recording module 14 may include: a sending unit, configured to send a conference site recording instruction to the PBX, so that the PBX creates a conference site and connects the call terminal and The recording server joins the conference site; the recording unit is configured to record the media stream of the call terminal in the conference site.

实施例五Embodiment five

图9为本发明实施例五所提供的一种PBX的结构示意图。如图9所示,本实施例提供的PBX,具体包括:录音指示模块21和发送模块22。FIG. 9 is a schematic structural diagram of a PBX provided by Embodiment 5 of the present invention. As shown in FIG. 9 , the PBX provided in this embodiment specifically includes: a recording instruction module 21 and a sending module 22 .

其中,录音指示模块21,用于生成录音指令,该录音指令包括通话终端的号码。Wherein, the recording instruction module 21 is configured to generate a recording instruction, and the recording instruction includes the number of the calling terminal.

发送模块22,用于向录音服务器发送录音指令,以使录音服务器根据该号码和对从镜像交换机获取的信令进行解析的结果确定录音方式,并根据该确定的录音方式对通话终端的媒体流进行录音,该确定的录音方式具体为镜像录音或会场录音。The sending module 22 is used to send a recording instruction to the recording server, so that the recording server determines the recording mode according to the number and the result of analyzing the signaling obtained from the mirror switch, and records the media stream of the call terminal according to the determined recording mode. Recording is performed, and the determined recording method is specifically mirror recording or venue recording.

在本实施例中,同样以目前通常使用的IP-PBX为例,对本发明实施例提供的PBX予以说明。图10为本发明实施例所提供的另一种PBX的结构示意图。如图10所示,本实施例提供的PBX在上述图9的基础上,具体地,该通话终端通常包括主叫通话终端和被叫通话终端;本实施例提供的PBX还包括:接收模块23,用于在发送模块22向录音服务器发送录音指令之后,接收录音服务器发送的会场录音指令;创建模块24,用于根据接收模块23接收的会场录音指令创建会场,并将该主叫通话终端、该被叫通话终端和该录音服务器加入该会场;媒体处理模块25,用于对接收自该主叫通话终端和被叫通话终端的媒体流进行混音;相应地,该发送模块22,还用于将该混音后的媒体流发送给该录音服务器。In this embodiment, the PBX provided by the embodiment of the present invention is also described by taking the currently commonly used IP-PBX as an example. Fig. 10 is a schematic structural diagram of another PBX provided by an embodiment of the present invention. As shown in Figure 10, the PBX provided by this embodiment is based on the above-mentioned Figure 9. Specifically, the call terminal usually includes a calling call terminal and a called call terminal; the PBX provided by this embodiment also includes: a receiving module 23 After the sending module 22 sends the recording instruction to the recording server, it is used to receive the site recording instruction sent by the recording server; the creation module 24 is used to create a site according to the site recording instruction received by the receiving module 23, and the calling terminal, The called terminal and the recording server join the conference site; the media processing module 25 is used to mix the media streams received from the calling terminal and the called terminal; correspondingly, the sending module 22 also uses to send the mixed media stream to the recording server.

需要说明的是,在本实施例中,当会场中的媒体流为加密媒体流时,媒体处理模块25,具体在确定接收自该主叫通话终端和该被叫通话终端的媒体流已加密时,对接收自该主叫通话终端的媒体流和接收自该被叫通话终端的媒体流分别进行解密,并对该解密后的媒体流进行混音。It should be noted that, in this embodiment, when the media stream in the conference site is an encrypted media stream, the media processing module 25 specifically determines that the media streams received from the calling terminal and the called terminal have been encrypted. , respectively decrypting the media stream received from the calling terminal and the media stream received from the called terminal, and mixing the decrypted media streams.

本发明实施例提供的PBX用于执行图5所示步骤以及图5所示实施例的各种可能实现方法,具备相应的功能模块,其实现原理和技术效果类似,此处不再赘述。The PBX provided by the embodiment of the present invention is used to execute the steps shown in FIG. 5 and various possible implementation methods of the embodiment shown in FIG. 5 , and has corresponding functional modules. The implementation principles and technical effects are similar and will not be repeated here.

实施例六Embodiment six

图11为本发明实施例六所提供的一种录音服务器的结构示意图。如图11所示,本实施例提供的录音服务器,具体包括:处理器31、接收器32和录音器33。FIG. 11 is a schematic structural diagram of a recording server provided by Embodiment 6 of the present invention. As shown in FIG. 11 , the recording server provided in this embodiment specifically includes: a processor 31 , a receiver 32 and a recorder 33 .

其中,处理器31,用于从镜像交换机获取信令。Wherein, the processor 31 is configured to acquire signaling from the mirrored switch.

接收器32,用于接收PBX发送的录音指令,该录音指令中包括通话终端的号码。The receiver 32 is configured to receive the recording instruction sent by the PBX, and the recording instruction includes the number of the calling terminal.

处理器31,还用于对该信令进行解析,并根据接收器32接收的录音指令中的号码和对该信令进行解析的结果确定录音方式,该确定的录音方式具体为镜像录音或会场录音。The processor 31 is also used to analyze the signaling, and determine the recording mode according to the number in the recording instruction received by the receiver 32 and the result of analyzing the signaling. The determined recording mode is specifically mirror recording or venue recording.

录音器33,用于根据处理器31确定的录音方式对通话终端的媒体流进行录音。The recorder 33 is configured to record the media stream of the call terminal according to the recording mode determined by the processor 31 .

本实施例在具体实现中,处理器31还用于对该信令进行解析,并根据接收器32接收的录音指令中的号码和对该信令进行解析的结果确定录音方式,具体包括:处理器31,用于对信令进行解析获取该信令中的号码,以及该号码对应的网协IP地址和媒体端口,并将解析的结果存储在录音服务器中;进而将接收器32接收的录音指令中的号码与录音服务器中存储的解析结果进行匹配,在该解析结果中匹配到该录音指令中的号码时,根据通过该号码对应的IP地址和媒体端口传输的媒体流确定录音方式。In the specific implementation of this embodiment, the processor 31 is also used to analyze the signaling, and determine the recording mode according to the number in the recording instruction received by the receiver 32 and the result of analyzing the signaling, specifically including: processing Device 31 is used to analyze the signaling to obtain the number in the signaling, and the IP address and media port corresponding to the number, and store the resolved result in the recording server; and then record the recording received by the receiver 32 The number in the instruction is matched with the analysis result stored in the recording server. When the analysis result matches the number in the recording instruction, the recording method is determined according to the IP address corresponding to the number and the media stream transmitted through the media port.

在本实施例中,可选地,处理器31用于根据通过该号码对应的IP地址和媒体端口传输的媒体流确定录音方式,具体包括:在匹配结果中获取录音指令中的号码对应的IP地址和媒体端口;从获取自镜像交换机的媒体流中识别出通过该IP地址和媒体端口传输的媒体流;对识别出的媒体流进行分析以判断该媒体流是否加密,并在判断出该媒体流未加密时确定该录音方式为镜像录音;相应地,录音器33,具体用于对获取自该镜像交换机的媒体流中通过该IP地址和媒体端口传输的媒体流进行录音。In this embodiment, optionally, the processor 31 is configured to determine the recording method according to the IP address corresponding to the number and the media stream transmitted through the media port, specifically including: obtaining the IP address corresponding to the number in the recording instruction from the matching result; address and media port; identify the media stream transmitted through the IP address and media port from the media stream obtained from the mirror switch; analyze the identified media stream to determine whether the media stream is encrypted, and determine the media stream When the stream is not encrypted, it is determined that the recording mode is mirror recording; correspondingly, the recorder 33 is specifically configured to record the media stream transmitted through the IP address and media port among the media streams obtained from the mirror switch.

类似地,处理器31用于根据通过该号码对应的IP地址和媒体端口传输的媒体流确定录音方式,具体还包括:在匹配结果中获取录音指令中的号码对应的IP地址和媒体端口;如果从获取自镜像交换机的媒体流中未识别出通过该IP地址和媒体端口传输的媒体流,或者,从获取自该镜像交换机的媒体流中识别出通过该IP地址和媒体端口传输的媒体流,且判断出该识别出的媒体流已加密,确定该录音方式为会场录音。Similarly, the processor 31 is configured to determine the recording mode according to the media stream transmitted through the IP address corresponding to the number and the media port, and specifically includes: obtaining the IP address and the media port corresponding to the number in the recording instruction from the matching result; if The media stream transmitted through the IP address and media port is not identified from the media stream obtained from the mirror switch, or the media stream transmitted through the IP address and media port is identified from the media stream obtained from the mirror switch, And it is determined that the identified media stream has been encrypted, and it is determined that the recording mode is venue recording.

进一步地,本发明实施例的处理器31,还用于对信令进行解析获取该信令中的指示信息;相应地,该处理器31,还用于当该指示信息指示通过该IP地址和媒体端口的媒体流未加密时,确定录音方式为镜像录音;或者,当该指示信息指示通过该IP地址和媒体端口的媒体流已加密时,确定录音方式为会场录音。Further, the processor 31 in the embodiment of the present invention is also configured to parse the signaling to obtain the indication information in the signaling; correspondingly, the processor 31 is also configured to use the IP address and When the media stream of the media port is not encrypted, the recording mode is determined as mirror recording; or, when the indication information indicates that the media stream passing through the IP address and media port is encrypted, the recording mode is determined as venue recording.

在本实施例的另一种实现方式中,处理器31还用于对该信令进行解析,并根据接收器32接收的录音指令中的号码和对该信令进行解析的结果确定录音方式,具体包括:处理器31,用于对信令进行解析获取该信令中的号码,以及该号码对应的IP地址和媒体端口,并将解析的结果存储在录音服务器中;进而将接收器32接收的录音指令中的号码与录音服务器中存储的解析结果进行匹配,在该解析结果中未匹配到该录音指令中的号码时,将录音方式确定为会场录音。In another implementation of this embodiment, the processor 31 is also configured to analyze the signaling, and determine the recording mode according to the number in the recording instruction received by the receiver 32 and the result of analyzing the signaling, Concretely comprise: processor 31, be used for analyzing signaling and obtain the number in this signaling, and the corresponding IP address and media port of this number, and the result of analysis is stored in recording server; And then receiver 32 receives The number in the recording instruction is matched with the analysis result stored in the recording server, and if the analysis result does not match the number in the recording instruction, the recording mode is determined as conference recording.

更进一步地,本实施例在具体实现中,当录音方式确定为会场录音时,录音器33,还用于向PBX发送会场录音指令,以使该PBX创建会场并将通话终端和该录音服务器加入该会场;并对该会场中的通话终端的媒体流进行录音。Furthermore, in the specific implementation of this embodiment, when the recording mode is determined to be conference recording, the recorder 33 is also used to send a conference recording command to the PBX, so that the PBX creates a conference and adds the call terminal and the recording server the conference site; and record the media stream of the call terminal in the conference site.

本发明实施例提供的录音服务器用于执行图1所示步骤以及图1所示实施例的各种可能实现方法,具备相应的实体装置,其实现原理和技术效果类似,此处不再赘述。The recording server provided by the embodiment of the present invention is used to execute the steps shown in FIG. 1 and various possible implementation methods of the embodiment shown in FIG. 1 , and has corresponding physical devices. The implementation principles and technical effects are similar and will not be repeated here.

实施例七Embodiment seven

图12为本发明实施例七所提供的一种PBX的结构示意图。如图12所示,本实施例提供的PBX,具体包括:处理器41、发送器42和接收器43。FIG. 12 is a schematic structural diagram of a PBX provided by Embodiment 7 of the present invention. As shown in FIG. 12 , the PBX provided in this embodiment specifically includes: a processor 41 , a transmitter 42 and a receiver 43 .

其中,处理器41,用于生成录音指令,该录音指令包括通话终端的号码。Wherein, the processor 41 is configured to generate a recording instruction, and the recording instruction includes the number of the calling terminal.

发送器42,用于向录音服务器发送录音指令,以使录音服务器根据该号码和对从镜像交换机获取的信令进行解析的结果确定录音方式,并根据该确定的录音方式对通话终端的媒体流进行录音,该确定的录音方式具体为镜像录音或会场录音。The transmitter 42 is used to send a recording instruction to the recording server, so that the recording server determines the recording mode according to the number and the result of analyzing the signaling obtained from the mirror switch, and records the media stream of the call terminal according to the determined recording mode. Recording is performed, and the determined recording method is specifically mirror recording or venue recording.

在本实施例中,同样以目前通常使用的IP-PBX为例,对本发明实施例提供的PBX予以说明。具体地,该通话终端通常包括主叫通话终端和被叫通话终端;相应地,接收器43,用于在发送器42向录音服务器发送录音指令之后,接收录音服务器发送的会场录音指令;处理器41,还用于根据接接收器43接收的会场录音指令创建会场,并将该主叫通话终端、该被叫通话终端和该录音服务器加入该会场;进一步地,处理器41,还用于对接收自该主叫通话终端和被叫通话终端的媒体流进行混音;相应地,该发送器42,还用于将混音后的媒体流发送给该录音服务器。In this embodiment, the PBX provided by the embodiment of the present invention is also described by taking the currently commonly used IP-PBX as an example. Specifically, the call terminal usually includes a calling call terminal and a called call terminal; correspondingly, the receiver 43 is configured to receive the site recording instruction sent by the recording server after the transmitter 42 sends the recording instruction to the recording server; the processor 41, is also used to create a conference site according to the conference site recording instruction received by the receiver 43, and add the calling terminal, the called terminal and the recording server to the conference site; further, the processor 41 is also used to The media streams received from the calling terminal and the called terminal are mixed; correspondingly, the transmitter 42 is also used to send the mixed media streams to the recording server.

需要说明的是,本实施例在具体实现中,当会场中的媒体流为加密媒体流时,处理器41还用于对接收自该主叫通话终端和该被叫通话终端的媒体流进行混音,具体包括:处理器41,用于在确定接收自该主叫通话终端和该被叫通话终端的媒体流已加密时,对接收自该主叫通话终端的媒体流和接收自该被叫通话终端的媒体流分别进行解密,并对该解密后的媒体流进行混音。It should be noted that, in the specific implementation of this embodiment, when the media stream in the conference site is an encrypted media stream, the processor 41 is also used to mix the media streams received from the calling terminal and the called terminal. sound, specifically comprising: a processor 41, configured to perform an encryption on the media stream received from the calling terminal and the media stream received from the called terminal when it is determined that the media stream received from the calling terminal and the called terminal are encrypted. The media streams of the call terminals are respectively decrypted, and the decrypted media streams are mixed.

本发明实施例提供的PBX用于执行本图5所示步骤以及图5所示实施例的各种可能实现方法,具备相应的实体装置,其实现原理和技术效果类似,此处不再赘述。The PBX provided by the embodiment of the present invention is used to execute the steps shown in FIG. 5 and various possible implementation methods of the embodiment shown in FIG. 5, and has corresponding physical devices. The implementation principles and technical effects are similar, and will not be repeated here.

图13为本发明实施例所提供的一种录音系统的结构示意图。如图13所示,本实施例所提供的录音系统,具体包括:录音服务器51和PBX52。Fig. 13 is a schematic structural diagram of a recording system provided by an embodiment of the present invention. As shown in FIG. 13 , the recording system provided by this embodiment specifically includes: a recording server 51 and a PBX 52 .

其中,录音服务器51,用于从镜像交换机获取信令。Wherein, the recording server 51 is used to obtain signaling from the mirror switch.

PBX52,用于生成录音指令,并向录音服务器发送该录音指令,该录音指令包括通话终端的号码。The PBX52 is configured to generate a recording instruction and send the recording instruction to the recording server, where the recording instruction includes the number of the calling terminal.

该录音服务器51,还用于接收用户级交换机PBX发送的录音指令,对信令进行解析,并根据该录音指令中的号码和对该信令进行解析的结果确定录音方式,该确定的录音方式具体为镜像录音或会场录音;进而根据确定的录音方式对通话终端的媒体流进行录音。The recording server 51 is also used to receive the recording instruction sent by the user-level exchange PBX, analyze the signaling, and determine the recording mode according to the number in the recording instruction and the result of analyzing the signaling, the determined recording mode Specifically, it is mirror recording or conference recording; and then the media stream of the call terminal is recorded according to the determined recording method.

本实施例在具体实现中,录音服务器51还用于对信令进行解析,并根据该录音指令中的号码和对该信令进行解析的结果确定录音方式,具体包括:录音服务器51,用于对信令进行解析获取该信令中的号码,以及该号码对应的网协IP地址和媒体端口,并将解析的结果存储在录音服务器中;进而将录音指令中的号码与录音服务器51中存储的解析结果进行匹配,在该解析结果中匹配到该录音指令中的号码时,根据通过该号码对应的IP地址和媒体端口传输的媒体流确定录音方式。In the specific implementation of this embodiment, the recording server 51 is also used to analyze the signaling, and determine the recording mode according to the number in the recording instruction and the result of analyzing the signaling, specifically including: the recording server 51, for The signaling is analyzed to obtain the number in the signaling, and the IP address and media port corresponding to the number, and the result of the analysis is stored in the recording server; and then the number in the recording instruction is stored in the recording server 51 The parsing result is matched, and when the parsing result matches the number in the recording instruction, the recording mode is determined according to the IP address corresponding to the number and the media stream transmitted through the media port.

在本实施例中,可选地,录音服务器51用于根据通过该号码对应的IP地址和媒体端口传输的媒体流确定录音方式,具体包括:在匹配结果中获取录音指令中的号码对应的IP地址和媒体端口;从获取自镜像交换机的媒体流中识别出通过该IP地址和媒体端口传输的媒体流;对识别出的媒体流进行分析以判断该媒体流是否加密,并在判断出该媒体流未加密时确定该录音方式为镜像录音;相应地,录音服务器51还用于根据该确定的录音方式对通话终端的媒体流进行录音,具体包括:录音服务器51,用于对获取自该镜像交换机的媒体流中通过该IP地址和媒体端口传输的媒体流进行录音。In this embodiment, optionally, the recording server 51 is configured to determine the recording method according to the IP address corresponding to the number and the media stream transmitted through the media port, specifically including: obtaining the IP address corresponding to the number in the recording instruction from the matching result address and media port; identify the media stream transmitted through the IP address and media port from the media stream obtained from the mirror switch; analyze the identified media stream to determine whether the media stream is encrypted, and determine the media stream When the stream is not encrypted, it is determined that the recording mode is mirror image recording; correspondingly, the recording server 51 is also used to record the media stream of the call terminal according to the determined recording mode, specifically including: Record the media stream transmitted through the IP address and media port in the media stream of the switch.

类似地,录音服务器51用于根据通过该号码对应的IP地址和媒体端口传输的媒体流确定录音方式,具体还包括:在匹配结果中获取录音指令中的号码对应的IP地址和媒体端口;如果从获取自镜像交换机的媒体流中未识别出通过该IP地址和媒体端口传输的媒体流,或者,从获取自该镜像交换机的媒体流中识别出通过该IP地址和媒体端口传输的媒体流,且判断出该识别出的媒体流已加密,确定该录音方式为会场录音。Similarly, the recording server 51 is used to determine the recording mode according to the media stream transmitted through the IP address corresponding to the number and the media port, and specifically includes: obtaining the IP address and the media port corresponding to the number in the recording instruction in the matching result; if The media stream transmitted through the IP address and media port is not identified from the media stream obtained from the mirror switch, or the media stream transmitted through the IP address and media port is identified from the media stream obtained from the mirror switch, And it is determined that the identified media stream has been encrypted, and it is determined that the recording mode is venue recording.

进一步地,本发明实施例提供的录音服务器51,还用于对信令进行解析获取该信令中的指示信息;当该指示信息指示通过该IP地址和媒体端口的媒体流未加密时,确定录音方式为镜像录音;或者,当该指示信息指示通过该IP地址和媒体端口的媒体流已加密时,确定录音方式为会场录音。Further, the recording server 51 provided by the embodiment of the present invention is also used to analyze the signaling to obtain the indication information in the signaling; when the indication information indicates that the media stream passing through the IP address and media port is not encrypted, determine The recording mode is mirror recording; or, when the indication information indicates that the media stream passing through the IP address and media port has been encrypted, it is determined that the recording mode is venue recording.

本发明实施例提供的录音系统为与本发明实施例一所提供的录音服务器和实施例二所提供的PBX对应的录音系统,其实现原理和技术效果类似,此处不再赘述。The recording system provided in the embodiment of the present invention is a recording system corresponding to the recording server provided in the first embodiment of the present invention and the PBX provided in the second embodiment of the present invention, and its implementation principle and technical effect are similar, and will not be repeated here.

在本实施例的另一种实现方式中,录音服务器51还用于对信令进行解析,并根据该录音指令中的号码和对该信令进行解析的结果确定录音方式,具体包括:录音服务器51,用于对信令进行解析获取该信令中的号码,以及该号码对应的网协IP地址和媒体端口,并将解析的结果存储在录音服务器中;进而将录音指令中的号码与录音服务器51中存储的解析结果进行匹配,在该解析结果中未匹配到该录音指令中的号码时,将录音方式确定为会场录音。In another implementation of this embodiment, the recording server 51 is also used to analyze the signaling, and determine the recording mode according to the number in the recording instruction and the result of analyzing the signaling, specifically including: a recording server 51, for analyzing the signaling to obtain the number in the signaling, and the IP address and media port corresponding to the number, and storing the result of the analysis in the recording server; and then combining the number in the recording instruction with the recording The parsing results stored in the server 51 are matched, and if the parsing result does not match the number in the recording instruction, the recording mode is determined as conference recording.

更进一步地,本实施例在具体实现中,当录音方式确定为会场录音时,录音服务器51还用于根据该确定的录音方式对通话终端的媒体流进行录音,具体包括:录音服务器51,用于向PBX52发送会场录音指令;并在PBX52创建会场后对该会场中的该通话终端的媒体流进行录音;通常地,通话终端包括主叫通话终端和被叫通话终端;相应地,PBX52,还用于接收录音服务器51发送的会场录音指令;根据该会场录音指令创建会场,并将该主叫通话终端、该被叫通话终端和录音服务器51加入该会场;进而对接收自该主叫通话终端和该被叫通话终端的媒体流进行混音后发送给该录音服务器。Furthermore, in the specific implementation of this embodiment, when the recording mode is determined as venue recording, the recording server 51 is also used to record the media stream of the call terminal according to the determined recording mode, specifically including: the recording server 51, using To send a site recording instruction to PBX52; and record the media stream of the call terminal in the site after PBX52 creates the site; usually, the call terminal includes the calling call terminal and the called call terminal; correspondingly, PBX52 also It is used to receive the recording instruction of the meeting place sent by the recording server 51; create a meeting place according to the recording instruction of the meeting place, and add the calling terminal, the called terminal and the recording server 51 to the meeting place; After being mixed with the media stream of the called terminal, the audio is sent to the recording server.

需要说明的是,在本实施例中,当会场中的媒体流为加密媒体流时,PBX52还用于对接收自该主叫通话终端和该被叫通话终端的媒体流进行混音后发送给该录音服务器,具体包括:在确定接收自该主叫通话终端和该被叫通话终端的媒体流已加密时,对接收自该主叫通话终端的媒体流和接收自该被叫通话终端的媒体流分别进行解密,并对该解密后的媒体流进行混音后发送给该录音服务器。It should be noted that, in this embodiment, when the media stream in the conference site is an encrypted media stream, the PBX52 is also used to mix the media streams received from the calling terminal and the called terminal and then send it to the The recording server specifically includes: when it is determined that the media stream received from the calling terminal and the called terminal has been encrypted, the media stream received from the calling terminal and the media stream received from the called terminal are encrypted. The streams are respectively decrypted, and the decrypted media streams are mixed and then sent to the recording server.

本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above method embodiments can be completed by program instructions and related hardware. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the above-mentioned method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than limiting them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: It is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the various embodiments of the present invention. scope.

Claims (28)

1.一种通话录音方法,其特征在于,包括:1. A call recording method, characterized in that, comprising: 从镜像交换机获取信令;Obtain signaling from the mirror switch; 接收用户级交换机PBX发送的录音指令,所述录音指令中包括通话终端的号码;Receive the recording instruction sent by the user-level exchange PBX, the recording instruction includes the number of the call terminal; 对所述信令进行解析,并根据所述录音指令中的号码和对所述信令进行解析的结果确定录音方式,所述确定的录音方式具体为镜像录音或会场录音;Analyzing the signaling, and determining the recording mode according to the number in the recording instruction and the result of analyzing the signaling, the determined recording mode is specifically mirror recording or venue recording; 根据所述确定的录音方式对所述通话终端的媒体流进行录音。Recording the media stream of the calling terminal according to the determined recording manner. 2.根据权利要求1所述的方法,其特征在于,所述对所述信令进行解析,并根据所述录音指令中的号码和对所述信令进行解析的结果确定录音方式,包括:2. The method according to claim 1, wherein said parsing said signaling, and determining the recording mode according to the number in said recording instruction and the result of parsing said signaling, comprises: 对所述信令进行解析获取所述信令中的号码,以及所述号码对应的网协IP地址和媒体端口,并将解析的结果存储在录音服务器中;Analyzing the signaling to obtain the number in the signaling, and the network association IP address and media port corresponding to the number, and storing the result of the analysis in the recording server; 将所述录音指令中的号码与所述录音服务器中存储的所述解析结果进行匹配,在所述解析结果中匹配到所述录音指令中的号码时,根据通过所述号码对应的IP地址和媒体端口传输的媒体流确定录音方式。Matching the number in the recording instruction with the parsing result stored in the recording server, when the parsing result matches the number in the recording instruction, according to the IP address corresponding to the number and The media stream transmitted by the media port determines the recording method. 3.根据权利要求2所述的方法,其特征在于,所述根据通过所述号码对应的IP地址和媒体端口传输的媒体流确定录音方式,包括:3. The method according to claim 2, wherein said determining the recording mode according to the media stream transmitted through the IP address corresponding to the number and the media port includes: 在所述匹配结果中获取所述录音指令中的号码对应的IP地址和媒体端口;Obtain the IP address and media port corresponding to the number in the recording instruction from the matching result; 从获取自所述镜像交换机的媒体流中识别出通过所述IP地址和媒体端口传输的媒体流;Identifying the media stream transmitted through the IP address and media port from the media stream obtained from the mirror switch; 对识别出的媒体流进行分析以判断所述媒体流是否加密,并在判断出所述媒体流未加密时确定所述录音方式为镜像录音;Analyzing the identified media stream to determine whether the media stream is encrypted, and determining that the recording method is mirror image recording when it is determined that the media stream is not encrypted; 所述根据所述确定的录音方式对所述通话终端的媒体流进行录音,包括:The recording the media stream of the call terminal according to the determined recording method includes: 对获取自所述镜像交换机的媒体流中通过所述IP地址和媒体端口传输的媒体流进行录音。recording the media stream transmitted through the IP address and media port among the media streams obtained from the mirroring switch. 4.根据权利要求2所述的方法,其特征在于,所述根据通过所述号码对应的IP地址和媒体端口传输的媒体流确定录音方式,包括:4. The method according to claim 2, wherein the determining the recording mode according to the media stream transmitted through the IP address corresponding to the number and the media port includes: 在所述匹配结果中获取所述录音指令中的号码对应的IP地址和媒体端口;Obtain the IP address and media port corresponding to the number in the recording instruction from the matching result; 如果从获取自所述镜像交换机的媒体流中未识别出通过所述IP地址和媒体端口传输的媒体流,或者,从获取自所述镜像交换机的媒体流中识别出通过所述IP地址和媒体端口传输的媒体流,且判断出所述识别出的媒体流已加密,确定所述录音方式为会场录音。If the media stream transmitted through the IP address and media port is not identified from the media stream obtained from the mirror switch, or, the media stream transmitted through the IP address and media port is identified from the media stream obtained from the mirror switch The media stream transmitted by the port, and it is determined that the identified media stream has been encrypted, and the recording mode is determined as conference recording. 5.根据权利要求2所述的方法,其特征在于,还包括:5. The method of claim 2, further comprising: 对所述信令进行解析获取所述信令中的指示信息;Analyzing the signaling to obtain indication information in the signaling; 当所述指示信息指示通过所述IP地址和媒体端口的媒体流未加密时,确定所述录音方式为镜像录音;或者,When the indication information indicates that the media stream passing through the IP address and media port is not encrypted, it is determined that the recording mode is mirror recording; or, 当所述指示信息指示通过所述IP地址和媒体端口的媒体流已加密时,确定所述录音方式为会场录音。When the indication information indicates that the media stream passing through the IP address and media port has been encrypted, it is determined that the recording mode is conference recording. 6.根据权利要求1所述的方法,其特征在于,所述对所述信令进行解析,并根据所述录音指令中的号码和对所述信令进行解析的结果确定录音方式,包括:6. The method according to claim 1, wherein the analyzing the signaling, and determining the recording mode according to the number in the recording instruction and the result of analyzing the signaling comprises: 对所述信令进行解析获取所述信令中的号码,以及所述号码对应的IP地址和媒体端口,并将解析的结果存储在录音服务器中;Analyzing the signaling to obtain the number in the signaling, and the IP address and media port corresponding to the number, and storing the result of the analysis in the recording server; 将所述录音指令中的号码与所述录音服务器中存储的所述解析结果进行匹配,在所述解析结果中未匹配到所述录音指令中的号码时,将所述录音方式确定为会场录音。Matching the number in the recording instruction with the parsing result stored in the recording server, and determining the recording method as venue recording when the parsing result does not match the number in the recording instruction . 7.根据权利要求4~6中任一项所述的方法,其特征在于,所述根据所述确定的录音方式对所述通话终端的媒体流进行录音,包括:7. The method according to any one of claims 4-6, wherein the recording the media stream of the calling terminal according to the determined recording method comprises: 向所述PBX发送会场录音指令,以使所述PBX创建会场并将所述通话终端和所述录音服务器加入所述会场;Sending a site recording instruction to the PBX, so that the PBX creates a site and adds the call terminal and the recording server to the site; 对所述会场中的所述通话终端的媒体流进行录音。recording the media stream of the calling terminal in the conference site. 8.一种通话录音方法,其特征在于,包括:8. A call recording method, characterized in that, comprising: 生成录音指令,所述录音指令包括通话终端的号码;Generate a recording instruction, the recording instruction includes the number of the call terminal; 向录音服务器发送录音指令,以使所述录音服务器根据所述号码和对从镜像交换机获取的信令进行解析的结果确定录音方式,并根据所述确定的录音方式对所述通话终端的媒体流进行录音,所述确定的录音方式具体为镜像录音或会场录音。Send a recording instruction to the recording server, so that the recording server determines the recording mode according to the number and the result of analyzing the signaling obtained from the mirror switch, and records the media stream of the call terminal according to the determined recording mode. Recording is performed, and the determined recording method is specifically mirror recording or venue recording. 9.根据权利要求8所述的方法,其特征在于,所述通话终端包括主叫通话终端和被叫通话终端,所述向录音服务器发送录音指令之后,还包括:9. The method according to claim 8, wherein the calling terminal includes a calling terminal and a called calling terminal, and after sending the recording instruction to the recording server, further comprising: 接收所述录音服务器发送的会场录音指令;receiving the venue recording instruction sent by the recording server; 根据所述会场录音指令创建会场,并将所述主叫通话终端、所述被叫通话终端和所述录音服务器加入所述会场;Create a conference site according to the recording instruction of the conference site, and add the calling terminal, the called terminal and the recording server to the conference site; 对接收自所述主叫通话终端和所述被叫通话终端的媒体流进行混音后发送给所述录音服务器。The media streams received from the calling terminal and the called terminal are mixed and then sent to the recording server. 10.根据权利要求8或9所述的方法,其特征在于,所述对接收自所述主叫通话终端和所述被叫通话终端的媒体流进行混音后发送给所述录音服务器,包括:10. The method according to claim 8 or 9, wherein the mixing of the media streams received from the calling terminal and the called terminal to the recording server includes: : 在确定接收自所述主叫通话终端和所述被叫通话终端的媒体流已加密时,对接收自所述主叫通话终端的媒体流和接收自被叫通话终端的媒体流分别进行解密,并对所述解密后的媒体流进行混音后发送给所述录音服务器。When it is determined that the media streams received from the calling terminal and the called terminal have been encrypted, respectively decrypting the media stream received from the calling terminal and the media stream received from the called terminal, And after mixing the decrypted media stream, send it to the recording server. 11.一种录音服务器,其特征在于,包括:11. A recording server, characterized in that, comprising: 获取模块,用于从镜像交换机获取信令;An acquisition module, configured to acquire signaling from the mirrored switch; 接收模块,用于接收用户级交换机PBX发送的录音指令,所述录音指令中包括通话终端的号码;The receiving module is used to receive the recording instruction sent by the user-level exchange PBX, and the recording instruction includes the number of the call terminal; 解析模块,用于对所述获取模块获取的信令进行解析,并根据所述接收模块接收的录音指令中的号码和对所述信令进行解析的结果确定录音方式,所述确定的录音方式具体为镜像录音或会场录音;An analysis module, configured to analyze the signaling acquired by the acquisition module, and determine the recording mode according to the number in the recording instruction received by the receiving module and the result of analyzing the signaling, and the determined recording mode Specifically, mirror recording or venue recording; 录音模块,用于根据所述解析模块确定的录音方式对所述通话终端的媒体流进行录音。The recording module is configured to record the media stream of the call terminal according to the recording mode determined by the parsing module. 12.根据权利要求11所述的录音服务器,其特征在于,所述解析模块,包括:12. The recording server according to claim 11, wherein the parsing module includes: 第一解析单元,用于对所述获取模块获取的信令进行解析获取所述信令中的号码,以及所述号码对应的网协IP地址和媒体端口,并将解析的结果存储在录音服务器中;The first analysis unit is used to analyze the signaling obtained by the acquisition module to obtain the number in the signaling, and the network association IP address and media port corresponding to the number, and store the analysis result in the recording server middle; 第一匹配单元,用于将所述接收模块接收的录音指令中的号码与所述录音服务器中存储的所述解析结果进行匹配,在所述解析结果中匹配到所述录音指令中的号码时,根据通过所述号码对应的IP地址和媒体端口传输的媒体流确定录音方式。A first matching unit, configured to match the number in the recording instruction received by the receiving module with the parsing result stored in the recording server, when the parsing result matches the number in the recording instruction , determine the recording mode according to the media stream transmitted through the IP address corresponding to the number and the media port. 13.根据权利要求12所述的录音服务器,其特征在于,所述第一匹配单元用于根据通过所述号码对应的IP地址和媒体端口传输的媒体流确定录音方式,具体包括:在所述匹配结果中获取所述录音指令中的号码对应的IP地址和媒体端口;从获取自所述镜像交换机的媒体流中识别出通过所述IP地址和媒体端口传输的媒体流;对识别出的媒体流进行分析以判断所述媒体流是否加密,并在判断出所述媒体流未加密时确定所述录音方式为镜像录音;13. The recording server according to claim 12, wherein the first matching unit is configured to determine the recording mode according to the media stream transmitted through the IP address corresponding to the number and the media port, specifically comprising: Obtain the IP address and media port corresponding to the number in the recording instruction in the matching result; identify the media stream transmitted through the IP address and media port from the media stream obtained from the mirror switch; stream is analyzed to determine whether the media stream is encrypted, and when it is determined that the media stream is not encrypted, it is determined that the recording mode is a mirror image recording; 则所述录音模块,具体用于对获取自所述镜像交换机的媒体流中通过所述IP地址和媒体端口传输的媒体流进行录音。The recording module is specifically configured to record the media stream transmitted through the IP address and media port among the media streams obtained from the mirroring switch. 14.根据权利要求12所述的录音服务器,其特征在于,所述第一匹配单元用于根据通过所述号码对应的IP地址和媒体端口传输的媒体流确定录音方式,具体包括:在所述匹配结果中获取所述录音指令中的号码对应的IP地址和媒体端口;如果从获取自所述镜像交换机的媒体流中未识别出通过所述IP地址和媒体端口传输的媒体流,或者,从获取自所述镜像交换机的媒体流中识别出通过所述IP地址和媒体端口传输的媒体流,且判断出所述识别出的媒体流已加密,确定所述录音方式为会场录音。14. The recording server according to claim 12, wherein the first matching unit is configured to determine the recording mode according to the IP address corresponding to the number and the media stream transmitted through the media port, specifically comprising: Obtain the IP address and media port corresponding to the number in the recording instruction from the matching result; if the media stream transmitted through the IP address and media port is not identified from the media stream obtained from the mirror switch, or, from The media stream transmitted through the IP address and the media port is identified from the media stream obtained from the mirroring switch, and it is determined that the identified media stream has been encrypted, and the recording mode is determined as conference recording. 15.根据权利要求12所述的录音服务器,其特征在于,所述第一解析单元,还用于对所述获取模块获取的信令进行解析获取所述信令中的指示信息;15. The recording server according to claim 12, wherein the first parsing unit is further configured to parse the signaling obtained by the obtaining module to obtain indication information in the signaling; 所述解析模块还包括:确定单元,用于当所述第一解析单元获取的指示信息指示通过所述IP地址和媒体端口的媒体流未加密时,确定所述录音方式为镜像录音;或者,当所述第一解析单元获取的指示信息指示通过所述IP地址和媒体端口的媒体流已加密时,确定所述录音方式为会场录音。The parsing module further includes: a determining unit, configured to determine that the recording mode is mirror recording when the indication information obtained by the first parsing unit indicates that the media stream passing through the IP address and media port is not encrypted; or, When the indication information obtained by the first parsing unit indicates that the media stream passing through the IP address and media port has been encrypted, it is determined that the recording mode is conference recording. 16.根据权利要求11所述的录音服务器,其特征在于,所述解析模块,包括:16. The recording server according to claim 11, wherein the parsing module includes: 第二解析单元,用于对所述获取模块获取的信令进行解析获取所述信令中的号码,以及所述号码对应的IP地址和媒体端口,并将解析的结果存储在录音服务器中;The second analysis unit is used to analyze the signaling obtained by the acquisition module to obtain the number in the signaling, and the IP address and media port corresponding to the number, and store the analysis result in the recording server; 第二匹配单元,用于将所述接收模块接收的录音指令中的号码与所述录音服务器中存储的所述解析结果进行匹配,在所述解析结果中未匹配到所述录音指令中的号码时,将所述录音方式确定为会场录音。The second matching unit is configured to match the number in the recording instruction received by the receiving module with the parsing result stored in the recording server, and the parsing result does not match the number in the recording instruction , the recording mode is determined as conference recording. 17.根据权利要求14~16中任一项所述的录音服务器,其特征在于,所述录音模块,包括:17. The recording server according to any one of claims 14-16, wherein the recording module includes: 发送单元,用于向所述PBX发送会场录音指令,以使所述PBX创建会场并将所述通话终端和所述录音服务器加入所述会场;a sending unit, configured to send a site recording instruction to the PBX, so that the PBX creates a site and adds the call terminal and the recording server to the site; 录音单元,用于对所述会场中的所述通话终端的媒体流进行录音。The recording unit is configured to record the media stream of the call terminal in the conference site. 18.一种用户级交换机,其特征在于,包括:18. A user-level switch, characterized in that it comprises: 录音指示模块,用于生成录音指令,所述录音指令包括通话终端的号码;The recording instruction module is used to generate a recording instruction, and the recording instruction includes the number of the calling terminal; 发送模块,用于向录音服务器发送录音指令,以使所述录音服务器根据所述号码和对从镜像交换机获取的信令进行解析的结果确定录音方式,并根据所述确定的录音方式对所述通话终端的媒体流进行录音,所述确定的录音方式具体为镜像录音或会场录音。The sending module is configured to send a recording instruction to the recording server, so that the recording server determines the recording mode according to the number and the result of analyzing the signaling obtained from the mirror switch, and records the recording mode according to the determined recording mode. The media stream of the calling terminal is recorded, and the determined recording method is specifically mirror recording or conference recording. 19.根据权利要求18所述的交换机,其特征在于,所述通话终端包括主叫通话终端和被叫通话终端,所述用户级交换机PBX还包括:接收模块,用于在所述发送模块向录音服务器发送录音指令之后,接收所述录音服务器发送的会场录音指令;19. The switch according to claim 18, characterized in that, the call terminal comprises a calling call terminal and a called call terminal, and the user-level exchange PBX also includes: a receiving module, configured to send a message to the sending module After the recording server sends the recording instruction, it receives the venue recording instruction sent by the recording server; 创建模块,用于根据所述接收模块接收的会场录音指令创建会场,并将所述主叫通话终端、所述被叫通话终端和所述录音服务器加入所述会场;A creating module, configured to create a site according to the site recording instruction received by the receiving module, and add the calling terminal, the called terminal, and the recording server to the site; 媒体处理模块,用于对接收自所述主叫通话终端和所述被叫通话终端的媒体流进行混音;a media processing module, configured to mix media streams received from the calling terminal and the called terminal; 所述发送模块,还用于将所述混音后的媒体流发送给所述录音服务器。The sending module is further configured to send the mixed media stream to the recording server. 20.根据权利要求18或19所述的交换机,其特征在于,所述媒体处理模块,具体用于在确定接收自所述主叫通话终端和所述被叫通话终端的媒体流已加密时,对接收自所述主叫通话终端的媒体流和接收自所述被叫通话终端的媒体流分别进行解密,并对所述解密后的媒体流进行混音。20. The switch according to claim 18 or 19, wherein the media processing module is specifically configured to, when it is determined that the media streams received from the calling terminal and the called terminal have been encrypted, Decrypting the media stream received from the calling terminal and the media stream received from the called terminal respectively, and mixing the decrypted media streams. 21.一种录音系统,其特征在于,包括:录音服务器和用户级交换机PBX;21. A recording system, characterized in that it comprises: a recording server and a user-level exchange PBX; 其中,录音服务器,用于从镜像交换机获取信令;Wherein, the recording server is used to obtain signaling from the mirror switch; 所述PBX,用于生成录音指令,所述录音指令包括通话终端的号码,并向录音服务器发送所述录音指令;The PBX is used to generate a recording instruction, the recording instruction includes the number of the call terminal, and sends the recording instruction to the recording server; 所述录音服务器,还用于接收用户级交换机PBX发送的录音指令,对所述信令进行解析,并根据所述录音指令中的号码和对所述信令进行解析的结果确定录音方式,所述确定的录音方式具体为镜像录音或会场录音;进而根据所述确定的录音方式对所述通话终端的媒体流进行录音。The recording server is also used to receive the recording instruction sent by the user-level exchange PBX, analyze the signaling, and determine the recording mode according to the number in the recording instruction and the result of analyzing the signaling, so The determined recording mode is specifically mirror recording or venue recording; and then the media stream of the call terminal is recorded according to the determined recording mode. 22.根据权利要求21所述的系统,其特征在于,所述录音服务器还用于对所述信令进行解析,并根据所述录音指令中的号码和对所述信令进行解析的结果确定录音方式,具体包括:22. The system according to claim 21, wherein the recording server is further configured to analyze the signaling, and determine the number according to the number in the recording instruction and the result of analyzing the signaling Recording methods, including: 所述录音服务器,用于对所述信令进行解析获取所述信令中的号码,以及所述号码对应的网协IP地址和媒体端口,并将解析的结果存储在录音服务器中;进而将所述录音指令中的号码与所述录音服务器中存储的所述解析结果进行匹配,在所述解析结果中匹配到所述录音指令中的号码时,根据通过所述号码对应的IP地址和媒体端口传输的媒体流确定录音方式。The recording server is used to analyze the signaling to obtain the number in the signaling, and the IP address and media port corresponding to the number, and store the resolved result in the recording server; The number in the recording instruction is matched with the analysis result stored in the recording server, and when the number in the recording instruction is matched in the analysis result, according to the IP address and media corresponding to the number, The media stream transmitted by the port determines the recording method. 23.根据权利要求22所述的系统,其特征在于,所述录音服务器用于根据通过所述号码对应的IP地址和媒体端口传输的媒体流确定录音方式,具体包括:在所述匹配结果中获取所述录音指令中的号码对应的IP地址和媒体端口;从获取自所述镜像交换机的媒体流中识别出通过所述IP地址和媒体端口传输的媒体流;对识别出的媒体流进行分析以判断所述媒体流是否加密,并在判断出所述媒体流未加密时确定所述录音方式为镜像录音;23. The system according to claim 22, wherein the recording server is configured to determine the recording mode according to the media stream transmitted through the IP address corresponding to the number and the media port, specifically comprising: in the matching result Obtain the IP address and media port corresponding to the number in the recording instruction; identify the media stream transmitted through the IP address and media port from the media stream obtained from the mirror switch; analyze the identified media stream To determine whether the media stream is encrypted, and when it is determined that the media stream is not encrypted, determine that the recording method is mirror recording; 所述录音服务器还用于根据所述确定的录音方式对所述通话终端的媒体流进行录音,具体包括:所述录音服务器,用于对获取自所述镜像交换机的媒体流中通过所述IP地址和媒体端口传输的媒体流进行录音。The recording server is further configured to record the media stream of the calling terminal according to the determined recording method, specifically including: the recording server configured to record the media stream obtained from the mirror switch through the IP Address and media port transmitted media stream for recording. 24.根据权利要求22所述的系统,其特征在于,所述录音服务器用于根据通过所述号码对应的IP地址和媒体端口传输的媒体流确定录音方式,具体包括:在所述匹配结果中获取所述录音指令中的号码对应的IP地址和媒体端口;如果从获取自所述镜像交换机的媒体流中未识别出通过所述IP地址和媒体端口传输的媒体流,或者,从获取自所述镜像交换机的媒体流中识别出通过所述IP地址和媒体端口传输的媒体流,且判断出所述识别出的媒体流已加密,确定所述录音方式为会场录音。24. The system according to claim 22, wherein the recording server is configured to determine the recording mode according to the media stream transmitted through the IP address corresponding to the number and the media port, specifically comprising: in the matching result Obtain the IP address and media port corresponding to the number in the recording instruction; if the media stream transmitted through the IP address and media port is not identified from the media stream obtained from the mirror switch, or, obtained from the Identifying the media stream transmitted through the IP address and media port in the media stream of the mirroring switch, and judging that the identified media stream has been encrypted, and determining that the recording mode is conference recording. 25.根据权利要求22所述的系统,其特征在于,所述录音服务器,还用于对所述信令进行解析获取所述信令中的指示信息;当所述指示信息指示通过所述IP地址和媒体端口的媒体流未加密时,确定所述录音方式为镜像录音;或者,当所述指示信息指示通过所述IP地址和媒体端口的媒体流已加密时,确定所述录音方式为会场录音。25. The system according to claim 22, wherein the recording server is further configured to analyze the signaling to obtain indication information in the signaling; when the indication information indicates that the IP When the media stream of the address and media port is not encrypted, determine that the recording mode is mirror recording; or, when the indication information indicates that the media stream passing through the IP address and media port is encrypted, determine that the recording mode is a venue recording. 26.根据权利要求21所述的系统,其特征在于,所述录音服务器还用于对所述信令进行解析,并根据所述录音指令中的号码和对所述信令进行解析的结果确定录音方式,具体包括:26. The system according to claim 21, wherein the recording server is further configured to analyze the signaling, and determine according to the number in the recording instruction and the result of analyzing the signaling Recording methods, including: 所述录音服务器,用于对所述信令进行解析获取所述信令中的号码,以及所述号码对应的网协IP地址和媒体端口,并将解析的结果存储在录音服务器中;进而将所述录音指令中的号码与所述录音服务器中存储的所述解析结果进行匹配,在所述解析结果中未匹配到所述录音指令中的号码时,将所述录音方式确定为会场录音。The recording server is used to analyze the signaling to obtain the number in the signaling, and the IP address and media port corresponding to the number, and store the resolved result in the recording server; The number in the recording instruction is matched with the analysis result stored in the recording server, and if the analysis result does not match the number in the recording instruction, the recording mode is determined as conference recording. 27.根据权利要求24~26中任一项所述的系统,其特征在于,所述录音服务器还用于根据所述确定的录音方式对所述通话终端的媒体流进行录音,具体包括:所述录音服务器,用于向所述PBX发送会场录音指令;在所述PBX创建会场后对所述会场中的所述通话终端的媒体流进行录音;27. The system according to any one of claims 24-26, wherein the recording server is further configured to record the media stream of the call terminal according to the determined recording method, specifically comprising: the The recording server is configured to send a site recording instruction to the PBX; record the media stream of the call terminal in the site after the PBX creates the site; 所述通话终端包括主叫通话终端和被叫通话终端;所述PBX,还用于接收所述录音服务器发送的会场录音指令;根据所述会场录音指令创建所述会场,并将所述主叫通话终端、所述被叫通话终端和所述录音服务器加入所述会场;进而对接收自所述主叫通话终端和所述被叫通话终端的媒体流进行混音后发送给所述录音服务器。The call terminal includes a calling call terminal and a called call terminal; the PBX is also configured to receive a site recording instruction sent by the recording server; create the site according to the site recording instruction, and send the caller The calling terminal, the called calling terminal and the recording server join the conference site; and then mix the media streams received from the calling calling terminal and the called calling terminal and send them to the recording server. 28.根据权利要求27所述的系统,其特征在于,所述PBX还用于对接收自所述主叫通话终端和所述被叫通话终端的媒体流进行混音后发送给所述录音服务器,具体包括:28. The system according to claim 27, wherein the PBX is further configured to mix the media streams received from the calling terminal and the called terminal and send them to the recording server , including: 所述PBX,用于在确定接收自所述主叫通话终端和所述被叫通话终端的媒体流已加密时,对接收自所述主叫通话终端的媒体流和接收自所述被叫通话终端的媒体流分别进行解密,并对所述解密后的媒体流进行混音后发送给所述录音服务器。The PBX is configured to, when it is determined that the media streams received from the calling terminal and the called terminal have been encrypted, compare the media stream received from the calling terminal and the media stream received from the called terminal The media streams of the terminal are respectively decrypted, and the decrypted media streams are mixed and then sent to the recording server.
CN201410145226.0A 2014-04-11 2014-04-11 Call recording method, recording server, user class interchanger and recording system Active CN104980406B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410145226.0A CN104980406B (en) 2014-04-11 2014-04-11 Call recording method, recording server, user class interchanger and recording system
PCT/CN2014/094525 WO2015154520A1 (en) 2014-04-11 2014-12-22 Call recording method, recording server, private branch exchange and recording system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410145226.0A CN104980406B (en) 2014-04-11 2014-04-11 Call recording method, recording server, user class interchanger and recording system

Publications (2)

Publication Number Publication Date
CN104980406A true CN104980406A (en) 2015-10-14
CN104980406B CN104980406B (en) 2018-11-20

Family

ID=54276516

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410145226.0A Active CN104980406B (en) 2014-04-11 2014-04-11 Call recording method, recording server, user class interchanger and recording system

Country Status (2)

Country Link
CN (1) CN104980406B (en)
WO (1) WO2015154520A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105389154A (en) * 2015-10-21 2016-03-09 北京捷思锐科技股份有限公司 Audio and video recording method
CN105681532A (en) * 2016-03-07 2016-06-15 上海携程商务有限公司 Recording system and method of call center based on Softpbx
CN105721492A (en) * 2016-03-25 2016-06-29 宇龙计算机通信科技(深圳)有限公司 Voice processing method and apparatus and terminal
CN108833727A (en) * 2018-07-04 2018-11-16 广东商路信息科技有限公司 Sound record management method and system based on telephone exchange
CN110913084A (en) * 2019-12-18 2020-03-24 迈普通信技术股份有限公司 Session recording method and device, electronic equipment and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114866130B (en) * 2022-04-25 2023-07-28 慧众行知科技(北京)有限公司 Method for forming call detail list by satellite communication signaling mirror image data

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1753216A2 (en) * 2005-08-11 2007-02-14 Avaya Technology Llc Managing held telephone calls at the call-forwarding system
US20070124416A1 (en) * 2005-11-30 2007-05-31 Qwest Communications International Inc. Real-time on demand server
CN101605184A (en) * 2009-07-23 2009-12-16 杭州华三通信技术有限公司 A kind of method and apparatus of VoIP recording
CN101616222A (en) * 2009-07-22 2009-12-30 杭州华三通信技术有限公司 The way of recording of videoconference and equipment
KR20100053041A (en) * 2008-11-12 2010-05-20 (주)블루베이네트웍스 Session initiation protocol based video callcenter system and media stream control method
CN101741994A (en) * 2008-11-13 2010-06-16 广达电脑股份有限公司 Call recording method and communication system
CN102111514A (en) * 2009-12-25 2011-06-29 杭州华三通信技术有限公司 VoIP recording system and recording method
CN201893844U (en) * 2010-11-18 2011-07-06 广州市华谱电子科技有限公司 Call center system based on internet protocol-private branch exchange (IP-PBX)
CN103166913A (en) * 2011-12-09 2013-06-19 华为技术有限公司 Encrypted media stream recording method and switching control device
US20130253970A1 (en) * 2002-03-08 2013-09-26 Robert Joseph Hazy Audio Message Driven Customer Interaction Queuing System
EP2680525A1 (en) * 2012-06-29 2014-01-01 Avaya Inc. System and method for reducing headers

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247432B (en) * 2007-07-18 2011-12-07 北京九合创胜网络科技有限公司 VoIP voice data real-time monitoring method and device
CN101938397A (en) * 2009-06-29 2011-01-05 华为技术有限公司 Method, device and system for associating RTP packets in SIP sessions
CN102137199B (en) * 2011-03-31 2014-01-01 华为技术有限公司 Method, device and system for call recording in call center

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130253970A1 (en) * 2002-03-08 2013-09-26 Robert Joseph Hazy Audio Message Driven Customer Interaction Queuing System
EP1753216A2 (en) * 2005-08-11 2007-02-14 Avaya Technology Llc Managing held telephone calls at the call-forwarding system
US20070124416A1 (en) * 2005-11-30 2007-05-31 Qwest Communications International Inc. Real-time on demand server
KR20100053041A (en) * 2008-11-12 2010-05-20 (주)블루베이네트웍스 Session initiation protocol based video callcenter system and media stream control method
CN101741994A (en) * 2008-11-13 2010-06-16 广达电脑股份有限公司 Call recording method and communication system
CN101616222A (en) * 2009-07-22 2009-12-30 杭州华三通信技术有限公司 The way of recording of videoconference and equipment
CN101605184A (en) * 2009-07-23 2009-12-16 杭州华三通信技术有限公司 A kind of method and apparatus of VoIP recording
CN102111514A (en) * 2009-12-25 2011-06-29 杭州华三通信技术有限公司 VoIP recording system and recording method
CN201893844U (en) * 2010-11-18 2011-07-06 广州市华谱电子科技有限公司 Call center system based on internet protocol-private branch exchange (IP-PBX)
CN103166913A (en) * 2011-12-09 2013-06-19 华为技术有限公司 Encrypted media stream recording method and switching control device
EP2680525A1 (en) * 2012-06-29 2014-01-01 Avaya Inc. System and method for reducing headers

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105389154A (en) * 2015-10-21 2016-03-09 北京捷思锐科技股份有限公司 Audio and video recording method
CN105389154B (en) * 2015-10-21 2018-12-25 北京捷思锐科技股份有限公司 A kind of method of recording audio/video
CN105681532A (en) * 2016-03-07 2016-06-15 上海携程商务有限公司 Recording system and method of call center based on Softpbx
CN105681532B (en) * 2016-03-07 2019-03-12 携程旅游信息技术(上海)有限公司 The recording system and method for call center based on Softpbx
CN105721492A (en) * 2016-03-25 2016-06-29 宇龙计算机通信科技(深圳)有限公司 Voice processing method and apparatus and terminal
CN105721492B (en) * 2016-03-25 2019-10-11 宇龙计算机通信科技(深圳)有限公司 Method, device and terminal for voice processing
CN108833727A (en) * 2018-07-04 2018-11-16 广东商路信息科技有限公司 Sound record management method and system based on telephone exchange
CN110913084A (en) * 2019-12-18 2020-03-24 迈普通信技术股份有限公司 Session recording method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
WO2015154520A1 (en) 2015-10-15
CN104980406B (en) 2018-11-20

Similar Documents

Publication Publication Date Title
US12218773B2 (en) Video conference acceleration
KR101994504B1 (en) Making calls using an additional terminal
CN104980406B (en) Call recording method, recording server, user class interchanger and recording system
US10009389B2 (en) Scalable conference bridge
US8824684B2 (en) Dynamic, selective obfuscation of information for multi-party transmission
US12316618B2 (en) Securely recording and retrieving encrypted video conferences
US10097693B2 (en) Managing data streams for a communication network
US9124706B2 (en) Method and system for interoperation between multiple conference systems
CN112738559A (en) Screen projection implementation method, device and system
CN107872462B (en) Video conference calling method and device
US8243903B1 (en) Method and apparatus for implementing a secure side conversation on a telephone conference call
CN113612734A (en) Cross-network remote court trial media stream transmission method and device
WO2016029742A1 (en) Method, device, and system for audio recording
US20220391452A1 (en) Method for conducting an audio and/or video conference
CA2844428C (en) Real-time encryption of voice and fax over ip
CN102594794B (en) Access method and device of media encryption conference
WO2016015542A1 (en) Quality inspection method and apparatus for contact center
CN103414836B (en) Access processing method and the device of IP-based videoconference
CN103166913B (en) The method for recording of encrypted media streams and switch control device
US12137072B1 (en) Duplicate message filtering in a multi-region active-active architecture
CN105099990A (en) Media recording method, device and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant