CN104869106A - Sound recording method, voice switching equipment, sound recording server and sound recording system - Google Patents
Sound recording method, voice switching equipment, sound recording server and sound recording system Download PDFInfo
- Publication number
- CN104869106A CN104869106A CN201410065530.4A CN201410065530A CN104869106A CN 104869106 A CN104869106 A CN 104869106A CN 201410065530 A CN201410065530 A CN 201410065530A CN 104869106 A CN104869106 A CN 104869106A
- Authority
- CN
- China
- Prior art keywords
- recording
- media stream
- switching device
- communication terminal
- voice switching
- 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.)
- Withdrawn
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M3/00—Automatic or semi-automatic exchanges
- H04M3/42—Systems providing special services or facilities to subscribers
- H04M3/42221—Conversation recording systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2203/00—Aspects of automatic or semi-automatic exchanges
- H04M2203/30—Aspects of automatic or semi-automatic exchanges related to audio recordings in general
- H04M2203/301—Management of recordings
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M3/00—Automatic or semi-automatic exchanges
- H04M3/42—Systems providing special services or facilities to subscribers
- H04M3/42314—Systems providing special services or facilities to subscribers in private branch exchanges
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M3/00—Automatic or semi-automatic exchanges
- H04M3/42—Systems providing special services or facilities to subscribers
- H04M3/50—Centralised arrangements for answering calls; Centralised arrangements for recording messages for absent or busy subscribers ; Centralised arrangements for recording messages
- H04M3/51—Centralised call answering arrangements requiring operator intervention, e.g. call or contact centers for telemarketing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M7/00—Arrangements for interconnection between switching centres
- H04M7/006—Networks other than PSTN/ISDN providing telephone service, e.g. Voice over Internet Protocol (VoIP), including next generation networks with a packet-switched transport layer
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Telephonic Communication Services (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明公开了一种录音方法、语音交换设备、录音服务器及录音系统,所述方法包括:在收到录音服务器的启动录音响应之前,语音交换设备将混音处理后生成的第一媒体流保存在缓存中;在收到录音服务器的启动录音响应之后,语音交换设备将混音处理后生成的第二媒体流向录音服务器发送;语音交换设备将保存在缓存中的第一媒体流向录音服务器发送,录音服务器接收到第一媒体流和第二媒体流后,对第一媒体流和第二媒体流进行合并录制。通过上述方式,本发明能够防止丢失录音服务器为录音做好准备之前的录音,从而可以获得完整的录音。
The invention discloses a recording method, a voice exchange device, a recording server and a recording system. The method includes: before receiving the recording server's start recording response, the voice exchange device saves the first media stream generated after the audio mixing process In the cache; after receiving the start recording response from the recording server, the voice switching device sends the second media stream generated after the audio mixing to the recording server; the voice switching device sends the first media stream stored in the cache to the recording server, After receiving the first media stream and the second media stream, the recording server performs combined recording on the first media stream and the second media stream. Through the above method, the present invention can prevent the loss of the recording before the recording server is ready for recording, so that a complete recording can be obtained.
Description
技术领域technical field
本发明涉及通信技术领域,特别是涉及一种录音方法、语音交换设备、录音服务器及录音系统。The invention relates to the technical field of communication, in particular to a recording method, a voice exchange device, a recording server and a recording system.
背景技术Background technique
在统一通信和呼叫中心(UC&CC,Unified Communication&CallCenter)应用场景,经常需要对用户的点对点通话、会议通话进行按需录音。用户在通话过程中在IP话机上按键启动录音,IP话机发送录音请求给基于IP网络的语音交换机(IP-PBX,IP Private Branch eXchange),IP-PBX,当通话的通信终端都在会场中后,IP-PBX再把录音服务器以“只听不说”的方式加入会场,并向该录音服务器发送启动录音请求,并在收到该录音服务器返回的启动录音响应后对来自通话的通信终端的媒体流进行混音,并把混音后生成的媒体流发给录音服务器,录音服务器获取媒体流并进行录制,从而实现录音。In Unified Communications and Call Center (UC&CC, Unified Communication & CallCenter) application scenarios, it is often necessary to record users' point-to-point calls and conference calls on demand. During the call, the user presses the button on the IP phone to start recording, and the IP phone sends a recording request to the voice exchange (IP-PBX, IP Private Branch eXchange) based on the IP network. When the communication terminals of the call are all in the venue , the IP-PBX adds the recording server to the venue in the way of "only listening but not talking", and sends a recording start request to the recording server, and after receiving the recording start response returned by the recording server, it responds to the call from the communication terminal The media stream is mixed, and the mixed media stream is sent to the recording server, and the recording server obtains the media stream and records it, thereby realizing recording.
但是,在IP-PBX接收到录音请求至收到录音服务器发送的启动录音响应的过程中,涉及诸多信令交互,这段时间内录音服务器无法获取对通信终端的媒体流进行混音后生成的媒体流,因此无法实现录音。However, during the process from the IP-PBX receiving the recording request to the start recording response sent by the recording server, many signaling interactions are involved. Media streaming, so recording is not possible.
发明内容Contents of the invention
本发明主要解决的技术问题是提供一种录音方法、语音交换设备、录音服务器及录音系统,能够防止丢失录音服务器为录音做好准备之前的录音,从而可以获得完整的录音。The technical problem mainly solved by the present invention is to provide a recording method, a voice exchange device, a recording server and a recording system, which can prevent the loss of the recording before the recording server is ready for recording, so that a complete recording can be obtained.
第一方面,本发明提供一种录音方法,所述方法包括:语音交换设备接收来自第一通信终端的录音请求,所述第一通信终端和其它通信终端通过所述语音交换设备进行通信;所述语音交换设备在收到所述录音请求时,对将当前接收的来自所述第一通信终端的媒体流和来自所述其它通信终端的媒体流进行混音,并将混音生成的媒体流作为第一媒体流保存在缓存中;所述语音交换设备将录音服务器加入所述语音交换设备创建的包括所述第一通信终端和所述其它通信终端的会场中;所述语音交换设备向所述录音服务器发送启动录音请求;所述语音交换设备在收到所述录音服务器的启动录音响应之后,对当前接收的来自所述第一通信终端的媒体流和来自所述其它通信终端的媒体流进行混音,将混音生成的媒体流作为第二媒体流发送给所述录音服务器,并将收到所述启动录音响应之前保存在所述缓存中的第一媒体流发送给所述录音服务器,以便于所述录音服务器对所述第一媒体流和所述第二媒体流进行合并录制。In a first aspect, the present invention provides a method for recording, the method comprising: a voice switching device receiving a recording request from a first communication terminal, and the first communication terminal communicates with other communication terminals through the voice switching device; When the voice switching device receives the recording request, it mixes the currently received media stream from the first communication terminal and the media stream from the other communication terminals, and mixes the generated media stream Stored in the cache as the first media stream; the voice switching device adds the recording server to the conference site created by the voice switching device and includes the first communication terminal and the other communication terminals; the voice switching device sends The recording server sends a recording start request; after the voice switching device receives the recording start response from the recording server, it performs the current reception of the media stream from the first communication terminal and the media stream from the other communication terminals. Perform audio mixing, send the media stream generated by the audio mixing as a second media stream to the recording server, and send the first media stream stored in the cache before receiving the start recording response to the recording server , so that the recording server performs combined recording of the first media stream and the second media stream.
在第一方面的第一种可能的实现方式中,所述方法还包括:所述语音交换设备在接收到所述录音请求时创建所述缓存。In a first possible implementation manner of the first aspect, the method further includes: when the voice switching device receives the recording request, creating the cache.
结合第一方面或第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,所述方法还包括:所述语音交换设备在收到所述启动录音响应时停止将混音生成的媒体流保存在缓存中。With reference to the first aspect or the first possible implementation manner of the first aspect, in the second possible implementation manner of the first aspect, the method further includes: the voice switching device receives the recording start response stop saving the media stream generated by the mixdown in the cache.
结合第一方面至第一方面的第二种中任一种可能的实现方式,在第一方面的第三种可能的实现方式中,所述第一媒体流中的媒体包带有序号标识,以便于所述录音服务器根据所述序号标识按时间顺序录制所述第一媒体流中的媒体包。With reference to any one of the possible implementation manners from the first aspect to the second aspect of the first aspect, in a third possible implementation manner of the first aspect, the media packets in the first media stream are identified with sequence numbers, In order for the recording server to record the media packets in the first media stream in chronological order according to the serial number identifier.
第二方面,本发明提供一种录音方法,所述方法包括:录音服务器加入语音交换设备创建的包括第一通信终端和其它通信终端的会场中,所述第一通信终端和所述其它通信终端通过所述语音交换设备进行通信;所述录音服务器接收所述语音交换设备发送的启动录音请求并向所述语音交换设备发送启动录音响应;在向语音交换设备发送启动录音响应之后,录音服务器接收来自所述语音交换设备的第一媒体流和第二媒体流,所述第一媒体流是所述语音交换设备在收到所述启动录音响应之前对来自所述第一通信终端和所述其它通信终端的媒体流进行混音处理后生成的媒体流,所述第二媒体流是所述语音交换设备在收到所述启动录音响应之后对来自所述第一通信终端和所述其它通信终端的媒体流进行混音处理后生成的媒体流;所述录音服务器对所述第一媒体流和所述第二媒体流进行合并录制。In a second aspect, the present invention provides a method for recording, the method comprising: the recording server joins a conference site created by a voice switching device that includes a first communication terminal and other communication terminals, and the first communication terminal and the other communication terminals Communicate through the voice switching device; the recording server receives the start recording request sent by the voice switching device and sends a start recording response to the voice switching device; after sending the start recording response to the voice switching device, the recording server receives A first media stream and a second media stream from the voice switching device, the first media stream is the voice switching device receiving the recording start response from the first communication terminal and the other A media stream generated after the media stream of the communication terminal is mixed and processed, the second media stream is the voice switching device receiving the recording start response from the first communication terminal and the other communication terminal. The media stream is generated after the media stream is mixed; the recording server combines and records the first media stream and the second media stream.
第三方面,本发明提供一种语音交换设备,所述语音交换设备包括:接收模块、混音模块、保存模块、加入模块、第一发送模块、第二发送模块以及第三发送模块;所述接收模块用于接收来自第一通信终端的录音请求和来自录音服务器的启动录音响应,所述第一通信终端和其它通信终端通过所述语音交换设备进行通信;所述混音模块用于在收到所述录音请求时,将当前接收的来自所述第一通信终端的媒体流和来自所述其它通信终端的媒体流进行混音;所述保存模块用于在所述接收模块接收到所述录音请求之后、接收到所述启动录音响应之前将所述混音模块混音生成的媒体流作为第一媒体流保存在缓存中;所述加入模块用于将录音服务器加入所述语音交换设备创建的包括所述第一通信终端和所述其它通信终端的会场中;所述第一发送模块用于向所述录音服务器发送启动录音请求;所述第二发送模块用于在所述接收模块接收到所述启动录音响应之后将所述混音模块当前混音生成的媒体流作为第二媒体流发送给所述录音服务器;所述第三发送模块用于在所述接收模块接收到所述启动录音响应之后将保存在所述缓存中的第一媒体流向所述录音服务器发送,以便于所述录音服务器对所述第一媒体流和所述第二媒体流进行合并录制。In a third aspect, the present invention provides a voice switching device, which includes: a receiving module, a sound mixing module, a saving module, a joining module, a first sending module, a second sending module, and a third sending module; The receiving module is used to receive the recording request from the first communication terminal and the start recording response from the recording server, and the first communication terminal communicates with other communication terminals through the voice switching device; the mixing module is used for receiving When the recording request is received, mix the currently received media stream from the first communication terminal with media streams from the other communication terminals; the saving module is used to receive the After the recording request, before receiving the start recording response, the media stream generated by the mixing module is stored in the cache as the first media stream; the adding module is used to add the recording server to the voice exchange device to create In the venue that includes the first communication terminal and the other communication terminals; the first sending module is used to send a recording start request to the recording server; the second sending module is used to receive the recording request at the receiving module After the start recording response, send the media stream generated by the current mixing of the mixing module to the recording server as the second media stream; the third sending module is used to receive the start After the recording response, the first media stream stored in the cache is sent to the recording server, so that the recording server performs combined recording of the first media stream and the second media stream.
在第三方面的第一种可能的实现方式中,所述语音交换设备还包括创建模块,所述创建模块用于在接收到所述录音请求时创建所述缓存。In a first possible implementation manner of the third aspect, the voice exchange device further includes a creating module, configured to create the cache when receiving the recording request.
结合第三方面或第三方面的第一种可能的实现方式,在第三方面的第二种可能的实现方式中,所述保存模块还用于在收到所述启动录音响应时停止将混音生成的媒体流保存在缓存中。With reference to the third aspect or the first possible implementation manner of the third aspect, in the second possible implementation manner of the third aspect, the saving module is further configured to stop recording the audio recording when receiving the recording start response. The media stream generated by the audio is stored in the cache.
结合第三方面至第三方面的第二种可能的实现方式,在第三方面的第三种可能的实现方式中,所述第一媒体流中的媒体包带有序号标识,以便于所述录音服务器根据所述序号标识按时间顺序录制所述第一媒体流中的媒体包。In combination with the third aspect to the second possible implementation of the third aspect, in the third possible implementation of the third aspect, the media packets in the first media stream are marked with sequence numbers, so that the The recording server records the media packets in the first media stream in time order according to the serial number identification.
第四方面,本发明提供一种录音服务器,所述录音服务器包括:加入模块、第一接收模块、发送模块、第二接收模块、第三接收模块以及合并录制模块;所述加入模块用于加入语音交换设备创建的包括第一通信终端和其它通信终端的会场中,所述第一通信终端和所述其它通信终端通过所述语音交换设备进行通信;所述第一接收模块接收所述语音交换设备发送的启动录音请求;所述发送模块用于在所述第一接收模块接收所述语音交换设备发送的启动录音请求后,向所述语音交换设备发送启动录音响应;所述第二接收模块用于在所述发送模块向所述语音交换设备发送启动录音响应之后,接收来自所述语音交换设备的第二媒体流,所述第二媒体流是所述语音交换设备在收到所述启动录音响应之后对来自所述第一通信终端和所述其它通信终端的媒体流进行混音处理后生成的媒体流;所述第三接收模块用于在所述发送模块向所述语音交换设备发送启动录音响应之后,接收来自所述语音交换设备的缓存的第一媒体流,所述第一媒体流是所述语音交换设备在收到所述启动录音响应之前对来自所述第一通信终端和所述其它通信终端的媒体流进行混音处理后生成的媒体流;所述合并录制模块用于对所述第二接收模块接收的第二媒体流和所述第三接收模块接收的第一媒体流进行合并录制。In a fourth aspect, the present invention provides a recording server. The recording server includes: a joining module, a first receiving module, a sending module, a second receiving module, a third receiving module, and a combined recording module; the joining module is used to join In the conference site created by the voice switching device that includes the first communication terminal and other communication terminals, the first communication terminal and the other communication terminals communicate through the voice switching device; the first receiving module receives the voice switching A recording start request sent by the device; the sending module is configured to send a recording start response to the voice switching device after the first receiving module receives the recording start request sent by the voice switching device; the second receiving module It is configured to receive a second media stream from the voice switching device after the sending module sends a start recording response to the voice switching device, and the second media stream is that the voice switching device receives the start recording response. After the recording response, the media stream generated after performing mixing processing on the media streams from the first communication terminal and the other communication terminals; the third receiving module is used to send the voice switching device to the voice switching device in the sending module After starting the recording response, receiving the buffered first media stream from the voice switching device, the first media stream is the voice switching device's response to the first communication terminal and the first media stream before receiving the recording start response. The media stream generated after the media stream of the other communication terminal is mixed; the combined recording module is used for the second media stream received by the second receiving module and the first media received by the third receiving module streams for combined recording.
第五方面,本发明提供一种录音系统,所述系统包括:语音交换设备和录音服务器;所述语音交换设备用于接收来自第一通信终端的录音请求,所述第一通信终端和其它通信终端通过所述语音交换设备进行通信;在收到所述录音请求时,对当前接收的来自所述第一通信终端的媒体流和来自所述其它通信终端的媒体流进行混音,并将混音生成的媒体流作为第一媒体流保存在缓存中;将录音服务器加入所述语音交换设备创建的包括所述第一通信终端和所述其它通信终端的会场中;向所述录音服务器发送启动录音请求;在收到所述录音服务器的启动录音响应之后,对当前接收的来自所述第一通信终端的媒体流和来自所述其它通信终端的媒体流进行混音,将混音生成的媒体流作为第二媒体流发送给所述录音服务器,并将收到所述启动录音响应之前保存在所述缓存中的第一媒体流发送给所述录音服务器,以便于所述录音服务器对所述第一媒体流和所述第二媒体流进行合并录制;所述录音服务器用于加入语音交换设备创建的包括第一通信终端和其它通信终端的会场中,所述第一通信终端和所述其它通信终端通过所述语音交换设备进行通信;接收所述语音交换设备发送的启动录音请求并向所述语音交换设备发送启动录音响应;在向所述语音交换设备发送启动录音响应之后,接收来自所述语音交换设备的第一媒体流和第二媒体流,所述第一媒体流是所述语音交换设备在收到所述启动录音响应之前对来自所述第一通信终端和所述其它通信终端的媒体流进行混音处理后生成的媒体流,所述第二媒体流是所述语音交换设备在收到所述启动录音响应之后对来自所述第一通信终端和所述其它通信终端的媒体流进行混音处理后生成的媒体流;对所述第一媒体流和所述第二媒体流进行合并录制。In a fifth aspect, the present invention provides a recording system, the system comprising: a voice switching device and a recording server; the voice switching device is used to receive a recording request from a first communication terminal, and the first communication terminal communicates with other The terminal communicates through the voice switching device; when receiving the recording request, mix the currently received media stream from the first communication terminal and the media stream from the other communication terminals, and mix the The media stream generated by the voice is stored in the cache as the first media stream; the recording server is added to the conference site created by the voice exchange device and includes the first communication terminal and the other communication terminals; a start is sent to the recording server recording request; after receiving the start recording response from the recording server, mix the currently received media stream from the first communication terminal and the media stream from the other communication terminals, and mix the generated media The stream is sent to the recording server as the second media stream, and the first media stream stored in the cache before receiving the start recording response is sent to the recording server, so that the recording server can The first media stream and the second media stream are combined and recorded; the recording server is used to join the conference site created by the voice exchange device and include the first communication terminal and other communication terminals, and the first communication terminal and the other communication terminals The communication terminal communicates through the voice switching device; receiving the recording start request sent by the voice switching device and sending a recording start response to the voice switching device; after sending the recording start response to the voice switching device, receiving The first media stream and the second media stream of the voice switching device, the first media stream is the first media stream from the first communication terminal and the other communication terminals before the voice switching device receives the recording start response The media stream is generated after the media stream is mixed, and the second media stream is the media stream from the first communication terminal and the other communication terminals after the voice switching device receives the recording start response. A media stream generated after the stream is mixed and processed; the first media stream and the second media stream are combined and recorded.
本发明的有益效果是:区别于现有技术的情况,本发明在收到录音服务器的启动录音响应之前,语音交换设备将混音处理后的第一媒体流保存在缓存中;在收到录音服务器的启动录音响应之后,语音交换设备将混音处理后的第二媒体流向录音服务器发送;语音交换设备将保存在缓存中的第一媒体流向录音服务器发送,录音服务器接收到第一媒体流和第二媒体流后,对第一媒体流和第二媒体流进行合并录制。通过这种方式,能够防止丢失录音服务器为录音做好准备之前的录音,从而可以获得完整的录音。The beneficial effects of the present invention are: different from the situation of the prior art, before the present invention receives the start recording response from the recording server, the voice switching device stores the first media stream after the audio mixing in the cache; After the server starts the recording response, the voice switching device sends the mixed second media stream to the recording server; the voice switching device sends the first media stream stored in the cache to the recording server, and the recording server receives the first media stream and After the second media stream, merge and record the first media stream and the second media stream. In this way, the loss of the recording before the recording server is ready for recording can be prevented, so that a complete recording can be obtained.
附图说明Description of drawings
图1是现有技术中典型的对点对点通话进行录音的场景的组网一结构示意图;FIG. 1 is a schematic diagram of a network structure of a typical scene of recording a point-to-point call in the prior art;
图2是本发明录音方法对点对点会通话进行录音的场景的组网一结构示意图;Fig. 2 is a schematic diagram of a network structure of a scene where the recording method of the present invention records a point-to-point conference call;
图3是本发明录音方法一实施方式的流程图;Fig. 3 is a flowchart of an embodiment of the recording method of the present invention;
图4是本发明录音方法另一实施方式的流程图;Fig. 4 is the flowchart of another embodiment of recording method of the present invention;
图5是本发明录音方法又一实施方式的流程图;Fig. 5 is a flowchart of another embodiment of the recording method of the present invention;
图6是本发明录音方法点对点的应用场景在组网中各网元交互的流程图;Fig. 6 is a flow chart of the interaction between network elements in the networking of the point-to-point application scenario of the recording method of the present invention;
图7是本发明语音交换设备一实施方式的结构示意图;FIG. 7 is a schematic structural diagram of an embodiment of the voice switching device of the present invention;
图8是本发明语音交换设备另一实施方式的结构示意图;Fig. 8 is a schematic structural diagram of another embodiment of the voice switching device of the present invention;
图9是本发明录音服务器一实施方式的结构示意图;Fig. 9 is a schematic structural diagram of an embodiment of the recording server of the present invention;
图10是本发明录音系统一实施方式的结构示意图;Fig. 10 is a structural schematic diagram of an embodiment of the recording system of the present invention;
图11是本发明语音交换设备又一实施方式的实体结构示意图;Fig. 11 is a schematic diagram of the physical structure of another embodiment of the voice exchange device of the present invention;
图12是本发明录音服务器另一实施方式的实体结构示意图。Fig. 12 is a schematic diagram of the physical structure of another embodiment of the recording server of the present invention.
具体实施方式Detailed ways
下面结合附图和实施方式对本发明进行详细说明。The present invention will be described in detail below in conjunction with the accompanying drawings and embodiments.
参阅图1,图1是现有技术中典型的对点对点通话进行录音的场景的组网一结构示意图,用户在通话过程中在IP话机11上按键启动录音,IP话机11发送录音请求给IP-PBX12,IP-PBX12创建会场把该用户的IP话机和另一用户的IP话机加入会场中,IP-PBX12发送Invite消息给SIP信令服务器13,邀请录音服务器14加入会场,SIP信令服务器13在录音服务器集群中选择合适的录音服务器14,并把录音服务器14的IP地址在200OK消息中回复给IP-PBX12,IP-PBX12将录音服务器14加入会场,IP-PBX12发送SIP INFO消息给SIP信令服务器13,通知录音服务器14启动录音,IP-PBX12通过SIP信令服务器13收到录音服务器14启动录音200OK响应后,IP-PBX12把来自会场中通话双方的媒体流进行混音处理,将混音后生成的媒体流发送给录音服务器14,录音服务器14获取媒体流,对该媒体流进行录制,从而实现录音。在IP-PBX12收到录音请求至IP-PBX收到录音服务器14发送的启动录音响应的过程中,涉及诸多信令交互,这段时间内录音服务器14无法获取通话双方的的媒体流,因此会丢失这个过程中的媒体流,从而使得录音不完整。Referring to FIG. 1, FIG. 1 is a schematic diagram of a network structure of a typical point-to-point call recording scene in the prior art. During a call, the user presses a button on the IP phone 11 to start recording, and the IP phone 11 sends a recording request to the IP- PBX12 and IP-PBX12 create a conference site and add the user's IP phone and another user's IP phone to the conference site. IP-PBX12 sends an Invite message to the SIP signaling server 13 to invite the recording server 14 to join the conference site. The SIP signaling server 13 Select the appropriate recording server 14 in the recording server cluster, and reply the IP address of the recording server 14 to IP-PBX12 in the 200OK message, IP-PBX12 will add the recording server 14 to the venue, and IP-PBX12 sends the SIP INFO message to the SIP signaling The server 13 notifies the recording server 14 to start the recording. After the IP-PBX 12 receives the 200 OK response from the recording server 14 to start the recording through the SIP signaling server 13, the IP-PBX 12 mixes the media streams from both parties in the meeting place. The generated media stream is sent to the recording server 14, and the recording server 14 acquires the media stream and records the media stream, thereby realizing recording. During the process from when the IP-PBX12 receives the recording request to when the IP-PBX receives the recording start response sent by the recording server 14, many signaling interactions are involved. During this period, the recording server 14 cannot obtain the The media stream is lost in the process, making the recording incomplete.
参阅图2,图2是本发明录音方法对点对点通话进行录音的场景的组网一结构示意图。在本发明方法中,IP-PBX21创建会场,将发起录音请求的IP话机和另一IP话机加入会场中,同时为本次录音创建缓存22。IP-PBX21发送Invite消息给SIP信令服务器23,邀请录音服务器24加入会场,SIP信令服务器23在录音服务器集群中选择合适的录音服务器24,并把录音服务器24的IP地址在200OK消息中回复给IP-PBX21,IP-PBX21将录音服务器24加入会场,IP-PBX21发送SIP INFO消息给SIP信令服务器23,通知录音服务器24启动录音。其中,IP-PBX21在收到录音服务器24的启动录音响应前,IP-PBX21把来自通话双方的媒体流进行混音处理,将混音后生成的媒体流发送到缓存22中;录音服务器24加入会场后,IP-PBX21把来自会场中通话双方经过混音处理后生成的媒体流通过录音服务器24的IP地址直接发送给录音服务器24,不再发送到缓存22。IP-PBX21将缓存22中保存的媒体流发送给录音服务器24。因此,录音服务器收到媒体流后,能够不丢失录音服务器在做好录音准备之前的录音,从而实现完整的录音。Referring to FIG. 2 , FIG. 2 is a schematic diagram of a network structure of a scene where the recording method of the present invention records a point-to-point call. In the method of the present invention, the IP-PBX 21 creates a conference site, adds the IP phone that initiated the recording request and another IP phone into the conference site, and creates a cache 22 for this recording at the same time. IP-PBX21 sends Invite message to SIP signaling server 23, invites recording server 24 to join the venue, SIP signaling server 23 selects suitable recording server 24 in the recording server cluster, and the IP address of recording server 24 is replied in 200OK message For IP-PBX21, IP-PBX21 adds recording server 24 to the venue, IP-PBX21 sends SIP INFO message to SIP signaling server 23, and notifies recording server 24 to start recording. Among them, before the IP-PBX21 receives the start recording response from the recording server 24, the IP-PBX21 mixes the media streams from both sides of the call, and sends the mixed media streams to the cache 22; the recording server 24 joins the After the conference, the IP-PBX 21 directly sends the media stream generated by both parties in the conference to the recording server 24 through the IP address of the recording server 24 through the audio mixing process, and does not send it to the cache 22 any more. The IP-PBX 21 sends the media stream stored in the cache 22 to the recording server 24 . Therefore, after the recording server receives the media stream, the recording before the recording server is ready for recording can not be lost, thereby realizing complete recording.
图3是本发明录音方法一实施方式的流程图,本实施方式是语音交换设备端的流程图,包括:Fig. 3 is the flow chart of one embodiment of recording method of the present invention, and this embodiment is the flow chart of voice switching equipment end, comprises:
步骤S101:语音交换设备接收来自第一通信终端的录音请求,第一通信终端和其它通信终端通过语音交换设备进行通信。Step S101: the voice switching device receives a recording request from the first communication terminal, and the first communication terminal communicates with other communication terminals through the voice switching device.
语音交换设备是一种用于语音电信号转发的网络设备,主要作用是处理用户的注册、呼叫、出局中继、创建会场以及与录音服务器的指令交互等。The voice switching device is a network device used for voice and electrical signal forwarding. Its main function is to handle user registration, call, outgoing relay, create a conference site, and command interaction with the recording server.
第一通信终端是主动发起录音请求的通信终端,其它通信终端是除了第一通信终端外参与录音过程的通信终端。当通过语音交换设备上创建的电话会议进行通信时,其它通信终端一般至少有两个;当通过语音交换设备进行点对点通信时,其它通信终端是一个。The first communication terminal is a communication terminal that actively initiates a recording request, and the other communication terminals are communication terminals that participate in the recording process except for the first communication terminal. When communicating through a conference call created on the voice switching device, there are generally at least two other communication terminals; when performing point-to-point communication through the voice switching device, there is one other communication terminal.
第一通信终端向语音交换设备发送录音请求时,语音交换设备接收来自第一通信终端的录音请求,其中,第一通信终端和其它通信终端通过语音交换设备进行通信。When the first communication terminal sends a recording request to the voice switching device, the voice switching device receives the recording request from the first communication terminal, wherein the first communication terminal communicates with other communication terminals through the voice switching device.
步骤S102:语音交换设备在收到录音请求时,对当前接收的来自第一通信终端的媒体流和来自其它通信终端的媒体流进行混音,并将混音生成的媒体流作为第一媒体流保存在缓存中。Step S102: When the voice switching device receives the recording request, it mixes the currently received media stream from the first communication terminal and media streams from other communication terminals, and uses the media stream generated by the mixing as the first media stream stored in the cache.
第一媒体流是语音交换设备在收到录音服务器的启动录音响应之前,将来自第一通信终端的媒体流和来自其它通信终端的媒体流进行混音处理后生成的媒体流。The first media stream is a media stream generated by the voice switching device after mixing the media stream from the first communication terminal and the media streams from other communication terminals before receiving the recording start response from the recording server.
语音交换设备在收到录音服务器的启动录音响应之前,录音服务器还没有为录音做好准备。但是第一通信终端和其它通信终端已经开始会话,语音交换设备将第一媒体流保存在缓存中,可以防止丢失录音服务器为录音做好准备之前的媒体流,其中,缓存是预先已经创建好的。Before the voice switching device receives the start recording response from the recording server, the recording server is not ready for recording. But the first communication terminal and other communication terminals have already started a conversation, and the voice switching device saves the first media stream in the cache, which can prevent the loss of the media stream before the recording server is ready for recording, wherein the cache is created in advance .
步骤S103:语音交换设备将录音服务器加入语音交换设备创建的包括第一通信终端和其它通信终端的会场中。Step S103: the voice switching device adds the recording server to the conference site created by the voice switching device including the first communication terminal and other communication terminals.
录音服务器是获取媒体流,实现用户录音的设备。语音交换设备收到来自第一通信终端的录音请求后,需要将录音服务器加入会场中才能够实现录音。会场是语音交换设备创建的,包括第一通信终端和其它通信终端。如果是点对点会话,当语音交换设备接收第一通信终端的录音请求后,语音交换设备创建会场,将第一通信终端和其它通信终端加入会场中;如果是电话会议,会场是在电话会议开始之前已经创建好的,即为电话会议的会场,当语音交换设备接收第一通信终端的录音请求后,不需要再创建会场。The recording server is a device that obtains media streams and realizes user recording. After receiving the recording request from the first communication terminal, the voice switching device needs to add a recording server to the conference site to realize the recording. The conference site is created by the voice switching device, and includes the first communication terminal and other communication terminals. If it is a point-to-point conversation, after the voice switching device receives the recording request from the first communication terminal, the voice switching device creates a site, and adds the first communication terminal and other communication terminals to the site; if it is a conference call, the site is before the conference call starts The already created site is the conference site. After the voice switching device receives the recording request from the first communication terminal, there is no need to create another site.
具体可以是:语音交换设备发送Invite消息给信令服务器,邀请录音服务器加入会场,信令服务器在录音服务器集群中选择合适的录音服务器,并把录音服务器的IP地址在200OK消息中回复给语音交换设备,语音交换设备将录音服务器加入会场。Specifically, the voice exchange device sends an Invite message to the signaling server to invite the recording server to join the venue, the signaling server selects a suitable recording server in the recording server cluster, and replies the IP address of the recording server to the voice exchange in a 200OK message Device, the voice exchange device will add the recording server to the venue.
信令服务器用于处理来自语音交换设备的信令和录音指令的设备,同时负责与录音服务器之间的交互。The signaling server is used to process the signaling and recording instructions from the voice exchange equipment, and is also responsible for the interaction with the recording server.
其中,语音交换设备是基于IP网络的语音交换设备,信令服务器是会话发起协议SIP信令服务器。当然,信令服务器还可以是H.323协议的信令服务器,在此不做限制。Wherein, the voice switching device is a voice switching device based on an IP network, and the signaling server is a SIP signaling server. Of course, the signaling server may also be a signaling server of the H.323 protocol, which is not limited here.
当然,信令服务器进行信令交互的功能也可以集成在录音服务器上,使得语音交换设备直接与录音服务器进行信令的交互。Certainly, the function of the signaling server for signaling interaction can also be integrated on the recording server, so that the voice switching device directly performs signaling interaction with the recording server.
步骤S104:语音交换设备向录音服务器发送启动录音请求并接收录音服务器发送的启动录音响应。Step S104: the voice switching device sends a recording start request to the recording server and receives a recording start response sent by the recording server.
具体可以是,当录音服务器加入会场后,语音交换设备再向录音服务器发送启动录音请求,以便于录音服务器为录音做好准备(如为该录音预留录音资源)。如,步骤S104的具体实现方式为:语音交换设备发送SIP INFO消息给信令服务器,通知录音服务器启动录音,信令服务器将通知录音服务器启动录音的消息发送给录音服务器,信令服务器收到录音服务器的启动录音响应后,通过200OK消息将该录音服务器的启动录音响应发送给语音交换设备,语音交换设备在收到录音服务器的启动录音响应后,即可确定录音服务器已经为录音做好准备。Specifically, after the recording server joins the conference site, the voice switching device sends a recording start request to the recording server, so that the recording server can prepare for the recording (eg, reserve recording resources for the recording). For example, the specific implementation of step S104 is as follows: the voice switching device sends a SIP INFO message to the signaling server to notify the recording server to start recording, and the signaling server sends a message notifying the recording server to start recording to the recording server, and the signaling server receives the recording After the recording start response of the server, the recording start response of the recording server is sent to the voice switching device through a 200OK message, and the voice switching device can determine that the recording server is ready for recording after receiving the recording start response of the recording server.
具体还可以是,在将录音服务器加入会场的过程中,通过将录音服务器加入会场时交互的信令发送启动录音请求和启动录音响应。如,步骤S104的具体实现方式为:语音交换设备通过邀请录音服务器加入会场的SIP INVITE消息携带启动录音指令,信令服务器将通知录音服务器启动录音的消息发送给录音服务器,并在收到录音服务器的启动录音响应后,通过SIP INVITE的200OK消息将该录音服务器的启动录音响应发送给语音交换设备,语音交换设备在收到该200OK消息后即完成将该录音服务器加入会场的过程,并确定录音服务器已经为录音做好准备。Specifically, during the process of adding the recording server to the conference site, the recording start request and the recording start response are sent through signaling interacted when the recording server is added to the conference site. For example, the specific implementation of step S104 is as follows: the voice switching device carries an instruction to start recording through the SIP INVITE message that invites the recording server to join the venue, and the signaling server sends a message notifying the recording server to start recording to the recording server. After the start recording response of the SIP INVITE 200OK message, the recording server’s start recording response is sent to the voice switching device. After receiving the 200 OK message, the voice switching device completes the process of adding the recording server to the venue and confirms the recording The server is ready for recording.
步骤S105:语音交换设备在收到录音服务器的启动录音响应之后,对当前接收的来自第一通信终端的媒体流和来自其它通信终端的媒体流进行混音,并将混音生成的媒体流作为第二媒体流发送给录音服务器。Step S105: After receiving the recording start response from the recording server, the voice switching device mixes the currently received media stream from the first communication terminal and media streams from other communication terminals, and uses the media stream generated by the mixing as The second media stream is sent to the recording server.
第二媒体流是语音交换设备在收到录音服务器的启动录音响应之后,将来自第一通信终端的媒体流和来自其它通信终端的媒体流进行混音处理后生成的媒体流。The second media stream is a media stream generated by the voice switching device after receiving the recording start response from the recording server and performing mixing processing on the media stream from the first communication terminal and the media streams from other communication terminals.
语音交换设备在收到录音服务器的启动录音响应之后,录音服务器已经为录音做好了录音准备。语音交换设备将当前接收的来自第一通信终端的媒体流和来自其它通信终端的媒体流进行混音,此时,将混音生成的媒体流作为第二媒体流发送给录音服务器。After the voice switching device receives the recording start response from the recording server, the recording server is ready for recording. The voice switching device mixes the currently received media stream from the first communication terminal and media streams from other communication terminals, and at this time, sends the media stream generated by the mixing as the second media stream to the recording server.
步骤S106:语音交换设备将收到启动录音响应之前保存在缓存中的第一媒体流发送给录音服务器,以便于录音服务器对第一媒体流和第二媒体流进行合并录制。Step S106: The voice switching device sends the first media stream stored in the cache before receiving the recording start response to the recording server, so that the recording server can perform combined recording of the first media stream and the second media stream.
在录音服务器没有为录音做好准备的时间内,第一媒体流保存在缓存中,为了便于录音服务器获得完整的媒体流,语音交换设备将保存在缓存中的第一媒体流向录音服务器发送,以便于录音服务器对第一媒体流和第二媒体流进行合并录制。步骤S106具体可以有多种实现方式,如,语音交换设备同时发送第一媒体流和第二媒体流,录音服务器将第一媒体流和第二媒体流进行合并并录制为一个录音文件;又如,语音交换设备先发送第二媒体流再发送第一媒体流,录音服务器将第一媒体流和第二媒体流分别录制为一个录音文件,并将这两个录音文件合并为一个录音文件。During the time when the recording server is not ready for recording, the first media stream is stored in the cache. In order to facilitate the recording server to obtain a complete media stream, the voice switching device sends the first media stream stored in the cache to the recording server, so that Combine and record the first media stream and the second media stream at the recording server. Step S106 can be implemented in multiple ways, for example, the voice switching device sends the first media stream and the second media stream at the same time, and the recording server combines the first media stream and the second media stream and records them into one recording file; , the voice switching device first sends the second media stream and then the first media stream, and the recording server records the first media stream and the second media stream respectively into one recording file, and merges the two recording files into one recording file.
参阅图4,本发明录音方法还包括:Referring to Fig. 4, the recording method of the present invention also includes:
步骤S107:语音交换设备在接收到录音请求时创建缓存。Step S107: the voice switching device creates a cache when receiving the recording request.
缓存是指临时文件交换区,具有极快的存取速率,它是内部存储和外界接口之间的缓冲器。Cache refers to the temporary file exchange area, which has an extremely fast access rate. It is a buffer between internal storage and external interfaces.
其中,缓存是先进先出FIFO缓存。FIFO缓存是指在对缓存进行读操作时,先被写入缓存里的数据先被读出来。通过这种方式,能够自动管理缓存。Wherein, the cache is a first-in-first-out FIFO cache. FIFO cache means that when the cache is read, the data that is first written into the cache is read out first. In this way, caching can be managed automatically.
语音交换设备在接收到录音请求时创建缓存。例如:可以是在接收到第一通信终端的录音请求后进行创建。当然,也可以是在接收到第一通信终端的录音请求之前进行创建,在此不做限制。A voice switching device creates a cache when it receives a recording request. For example: it may be created after receiving a recording request from the first communication terminal. Of course, it may also be created before receiving the recording request from the first communication terminal, which is not limited here.
步骤S108:语音交换设备在收到启动录音响应时停止将混音生成的媒体流保存在缓存中。Step S108: the voice switching device stops storing the media stream generated by the audio mixing in the cache when receiving the recording start response.
在收到录音服务器的启动录音响应之后,录音服务器已经为录音做好准备,因此,语音交换设备可以停止将混音处理后生成的媒体流保存在缓存中,直接将混音处理后生成的媒体流作为第二媒体流向录音服务器发送。这样,可以避免浪费缓存的存储空间。After receiving the start recording response from the recording server, the recording server is ready for recording. Therefore, the voice switching device can stop saving the media stream generated after the audio mixing process in the cache, and directly store the media stream generated after the audio mixing process The stream is sent to the recording server as a second media stream. In this way, the storage space of the cache can be avoided from being wasted.
其中,第一媒体流中的媒体包带有序号标识,以便于录音服务器根据序号标识按时间顺序录制第一媒体流中的媒体包。Wherein, the media packets in the first media stream are marked with sequence numbers, so that the recording server can record the media packets in the first media stream in chronological order according to the sequence numbers.
其中,媒体流是实时传输协议RTP媒体流。Wherein, the media stream is a real-time transport protocol RTP media stream.
本发明在收到录音服务器的启动录音响应之前,语音交换设备将混音处理后生成的第一媒体流保存在缓存中;在收到录音服务器的启动录音响应之后,语音交换设备将混音处理后生成的第二媒体流向录音服务器发送;语音交换设备将保存在缓存中的第一媒体流向录音服务器发送,以便于录音服务器对第一媒体流和第二媒体流进行合并录制。通过这种方式,能够防止丢失录音服务器为录音做好准备之前的录音,从而可以获得完整的录音。In the present invention, before receiving the recording start response from the recording server, the voice switching device stores the first media stream generated after the audio mixing process in the cache; The second media stream generated later is sent to the recording server; the voice switching device sends the first media stream stored in the cache to the recording server, so that the recording server can combine and record the first media stream and the second media stream. In this way, the loss of the recording before the recording server is ready for recording can be prevented, so that a complete recording can be obtained.
参阅图5,图5是本发明录音方法又一实施方式的流程图,本实施方式是录音服务器端的流程图,包括:Referring to Fig. 5, Fig. 5 is a flow chart of another embodiment of the recording method of the present invention, and this embodiment is a flow chart of the recording server end, including:
步骤S301:录音服务器加入语音交换设备创建的包括第一通信终端和其它通信终端的会场中,第一通信终端和其它通信终端通过语音交换设备进行通信。Step S301: The recording server joins the conference site created by the voice switching device and includes the first communication terminal and other communication terminals, and the first communication terminal and other communication terminals communicate through the voice switching device.
录音服务器是获取媒体流,实现用户录音的设备。语音交换设备是一种用于语音电信号转发的网络设备。第一通信终端是主动发起录音请求的通信终端,其它通信终端是除了第一通信终端外参与录音过程的通信终端。当通过语音交换设备上创建的电话会议进行通信时,其它通信终端一般至少有两个;当通过语音交换设备进行点对点通信时,其它通信终端是一个。其中,第一通信终端和其它通信终端通过语音交换设备进行通信。The recording server is a device that obtains media streams and realizes user recording. A voice switching device is a network device used for voice electrical signal forwarding. The first communication terminal is a communication terminal that actively initiates a recording request, and the other communication terminals are communication terminals that participate in the recording process except for the first communication terminal. When communicating through a conference call created on the voice switching device, there are generally at least two other communication terminals; when performing point-to-point communication through the voice switching device, there is one other communication terminal. Wherein, the first communication terminal communicates with other communication terminals through the voice switching device.
步骤S302:录音服务器接收语音交换设备发送的启动录音请求并向语音交换设备发送启动录音响应。Step S302: the recording server receives the recording start request sent by the voice switching device and sends a recording start response to the voice switching device.
在录音服务器加入会场后,接收语音交换设备发送的启动录音请求,此时录音服务器接收语音交换设备发送的启动录音请求,并向语音交换设备发送启动录音响应。After the recording server joins the conference site, it receives the recording start request sent by the voice switching device. At this time, the recording server receives the recording start request sent by the voice switching device, and sends a recording start response to the voice switching device.
步骤S303:在向语音交换设备发送启动录音响应之后,录音服务器接收来自语音交换设备的第一媒体流和第二媒体流。Step S303: After sending the recording start response to the voice switching device, the recording server receives the first media stream and the second media stream from the voice switching device.
第二媒体流是语音交换设备在收到录音服务器的启动录音响应之后,将来自第一通信终端的媒体流和来自其它通信终端的媒体流进行混音处理后生成的媒体流。在向语音交换设备发送启动录音响应之后,录音服务器已经为录音做好准备,此时,录音服务器接收来自语音交换设备的第二媒体流。The second media stream is a media stream generated by the voice switching device after receiving the recording start response from the recording server and performing mixing processing on the media stream from the first communication terminal and the media streams from other communication terminals. After sending the recording start response to the voice switching device, the recording server is ready for recording, and at this time, the recording server receives the second media stream from the voice switching device.
第一媒体流是语音交换设备在收到录音服务器的启动录音响应之前,语音交换设备将来自第一通信终端的媒体流和来自其它通信终端的媒体流进行混音处理后生成的媒体流。第一媒体流预先保存在缓存中,待录音服务器为录音做好准备后,即可接收语音交换设备发送的保存在缓存中的第一媒体流。The first media stream is a media stream generated by the voice switching device after mixing the media stream from the first communication terminal and the media streams from other communication terminals before the voice switching device receives a recording start response from the recording server. The first media stream is stored in the cache in advance, and after the recording server is ready for recording, it can receive the first media stream stored in the cache and sent by the voice switching device.
步骤S304:录音服务器对第一媒体流和第二媒体流进行合并录制。Step S304: the recording server combines and records the first media stream and the second media stream.
录音服务器对第一媒体流和第二媒体流进行合并录制。如,语音交换设备同时发送第一媒体流和第二媒体流,录音服务器将第一媒体流和第二媒体流进行合并并录制为一个录音文件;又如,语音交换设备先发送第二媒体流再发送第一媒体流,录音服务器将第一媒体流和第二媒体流分别录制为一个录音文件,并将这两个录音文件合并为一个录音文件。The recording server merges and records the first media stream and the second media stream. For example, the voice switching device sends the first media stream and the second media stream at the same time, and the recording server combines the first media stream and the second media stream and records them into one recording file; another example, the voice switching device sends the second media stream first Then the first media stream is sent, and the recording server records the first media stream and the second media stream respectively into one recording file, and merges the two recording files into one recording file.
本发明录音服务器接收到第一媒体流和第二媒体流后,对第一媒体流和第二媒体流进行合并录制。通过这种方式,能够防止丢失录音服务器为录音做好准备之前的录音,从而可以获得完整的录音。After the recording server of the present invention receives the first media stream and the second media stream, it combines and records the first media stream and the second media stream. In this way, the loss of the recording before the recording server is ready for recording can be prevented, so that a complete recording can be obtained.
下面以点对点的应用场景和电话会议的应用场景为例具有说明本发明录音方法。The recording method of the present invention will be described below by taking point-to-point application scenarios and teleconference application scenarios as examples.
参阅图6,图6是本发明录音方法点对点的应用场景在组网中各网元交互的流程图。以IP-PBX、FIFO缓存、SIP信令服务器为例说明。Referring to FIG. 6 , FIG. 6 is a flow chart of the interaction between network elements in the networking of the point-to-point application scenario of the recording method of the present invention. Take IP-PBX, FIFO cache, and SIP signaling server as examples.
(1)第一通信终端的用户利用第一通信终端通过IP-PBX呼叫其它通信终端的用户,并与该其它通信终端的用户进行点对点通信,第一通信终端的用户在第一通信终端上按录音键启动录音,向IP-PBX发送录音请求。(1) The user of the first communication terminal uses the first communication terminal to call the user of other communication terminal through IP-PBX, and conducts point-to-point communication with the user of the other communication terminal. The user of the first communication terminal presses on the first communication terminal The record button starts recording and sends a recording request to the IP-PBX.
第一通信终端和其它通信终端均可以为IP话机,第一通信终端和其它通信终端的用户均可以为内部用户。Both the first communication terminal and other communication terminals may be IP phones, and users of the first communication terminal and other communication terminals may be internal users.
如果是电话会议场景,这一步骤应该是:第一通信终端的用户在会议过程中在第一通信终端上按录音键启动录音,向IP-PBX发送录音请求。If it is a teleconference scenario, this step should be: the user of the first communication terminal presses the recording key on the first communication terminal to start recording during the conference, and sends a recording request to the IP-PBX.
(2)IP-PBX接收录音请求后,创建会场,把第一通信终端和其它通信终端加入会场中,并将来自第一通信终端和其它通信终端的媒体流进行混音处理,混音处理后生成的媒体流作为第一媒体流。(2) After receiving the recording request, the IP-PBX creates a conference site, adds the first communication terminal and other communication terminals to the conference site, and performs audio mixing processing on the media streams from the first communication terminal and other communication terminals. The generated media stream is used as the first media stream.
如果是电话会议场景,这一步骤应该是:IP-PBX接收录音请求后,由于会场在电话会议开始前已经创建好,此时不需要再创建会场,将来自第一通信终端和其它通信终端的媒体流进行混音处理,混音处理后生成的媒体流作为第一媒体流。If it is a conference call scenario, this step should be: After the IP-PBX receives the recording request, since the site has been created before the conference call starts, there is no need to create a site at this time, and the audio from the first communication terminal and other communication terminals The media stream is subjected to sound mixing processing, and the media stream generated after the sound mixing processing is used as the first media stream.
(2)IP-PBX为本次录音创建FIFO缓存。在IP-PBX收到录音服务器的启动录音响应前,IP-PBX把第一媒体流发送到FIFO缓存中进行保存。(2) IP-PBX creates FIFO buffer for this recording. Before the IP-PBX receives the recording start response from the recording server, the IP-PBX sends the first media stream to the FIFO buffer for storage.
(3)IP-PBX发送Invite消息给SIP Server,邀请录音服务器加入会场。(3) IP-PBX sends an Invite message to SIP Server, inviting the recording server to join the venue.
(4)SIP Server在录音服务器集群中选择合适的录音服务器,并把该录音服务器IP地址在200OK消息中回复给IP-PBX。(4) SIP Server selects a suitable recording server in the recording server cluster, and replies the IP address of the recording server to IP-PBX in a 200OK message.
(5)IP-PBX将录音服务器加入会场,然后,IP-PBX发送SIP INFO消息给SIP Server,以通过SIP Server通知录音服务器启动录音,SIPServer通知录音服务器启动录音,SIP Server收到录音服务器的启动录音响应后,在200OK消息中将该录音服务器的启动录音响应发送给语音交换设备。(5) IP-PBX adds the recording server to the venue, and then, IP-PBX sends a SIP INFO message to the SIP Server to notify the recording server to start recording through the SIP Server, and the SIP Server notifies the recording server to start recording, and the SIP Server receives the start of the recording server After the recording response, send the recording server's start recording response to the voice switching device in a 200OK message.
(6)IP-PBX收到录音服务器启动录音200OK响应后,IP-PBX把来自第一通信终端和其它通信终端的媒体流进行混音处理,混音处理后生成的媒体流作为第二媒体流直接发给录音服务器,不再发送到FIFO缓存。(6) After the IP-PBX receives the 200 OK response from the recording server to start recording, the IP-PBX performs mixing processing on the media streams from the first communication terminal and other communication terminals, and the media stream generated after the mixing processing is used as the second media stream Send it directly to the recording server instead of sending it to the FIFO cache.
(7)FIFO缓存中的第一媒体流发送给录音服务器。第一媒体流有序号标识,录音服务器收到乱序的第一媒体流,能够根据序号标识按时间顺序录制第一媒体流中的媒体包,实现丢失录音服务器为录音做好准备之前的录音。(7) The first media stream in the FIFO buffer is sent to the recording server. The serial number of the first media stream is identified, and the recording server receives the out-of-order first media stream, and can record the media packets in the first media stream in time order according to the serial number identification, so as to realize the recording before the recording server is ready for recording.
(8)录音服务器对第一媒体流和第二媒体流进行合并录制。(8) The recording server merges and records the first media stream and the second media stream.
参阅图7,图7是本发明语音交换设备一实施方式的结构示意图,该语音交换设备包括:接收模块101、混音模块102、保存模块103、加入模块104、第一发送模块105、第二发送模块106以及第三发送模块107。Referring to Fig. 7, Fig. 7 is the structure schematic diagram of an embodiment of the voice switching equipment of the present invention, and this voice switching equipment comprises: receiving module 101, mixing module 102, saving module 103, adding module 104, first sending module 105, second A sending module 106 and a third sending module 107 .
接收模块101用于接收来自第一通信终端的录音请求和来自录音服务器的启动录音响应,第一通信终端和其它通信终端通过语音交换设备进行通信。The receiving module 101 is configured to receive a recording request from the first communication terminal and a recording start response from the recording server, and the first communication terminal communicates with other communication terminals through the voice switching device.
语音交换设备是一种用于语音电信号转发的网络设备,主要作用是处理用户的注册、呼叫、出局中继、创建会场以及与录音服务器的指令交互等。The voice switching device is a network device used for voice and electrical signal forwarding. Its main function is to handle user registration, call, outgoing relay, create a conference site, and command interaction with the recording server.
第一通信终端是主动发起录音请求的通信终端,其它通信终端是除了第一通信终端外参与录音过程的通信终端。当通过语音交换设备上创建的电话会议进行通信时,其它通信终端一般至少有两个;当通过语音交换设备进行点对点通信时,其它通信终端是一个。The first communication terminal is a communication terminal that actively initiates a recording request, and the other communication terminals are communication terminals that participate in the recording process except for the first communication terminal. When communicating through a conference call created on the voice switching device, there are generally at least two other communication terminals; when performing point-to-point communication through the voice switching device, there is one other communication terminal.
第一通信终端向语音交换设备发送录音请求时,语音交换设备接收来自第一通信终端的录音请求,其中,第一通信终端和其它通信终端通过语音交换设备进行通信。When the first communication terminal sends a recording request to the voice switching device, the voice switching device receives the recording request from the first communication terminal, wherein the first communication terminal communicates with other communication terminals through the voice switching device.
另外,在语言交换设备向录音服务器发送录音请求后,可以接收到来自录音服务器的启动录音响应,此时,录音服务器已经为录音做好准备。In addition, after the language exchange device sends a recording request to the recording server, it may receive a recording start response from the recording server, and at this time, the recording server is ready for recording.
混音模块102用于在收到来自第一通信终端的录音请求时,将当前接收的来自第一通信终端的媒体流和来自其它通信终端的媒体流进行混音。The sound mixing module 102 is configured to mix the currently received media stream from the first communication terminal and media streams from other communication terminals when receiving a recording request from the first communication terminal.
保存模块103用于在接收模块101接收到所述录音请求之后、接收到所述启动录音响应之前将混音模块102混音生成的媒体流作为第一媒体流保存在缓存中。The saving module 103 is configured to save the media stream generated by the mixing module 102 as the first media stream in the cache after the receiving module 101 receives the recording request and before receiving the recording start response.
第一媒体流是语音交换设备在收到录音服务器的启动录音响应之前,将来自第一通信终端的媒体流和来自其它通信终端的媒体流进行混音处理后生成的媒体流。The first media stream is a media stream generated by the voice switching device after mixing the media stream from the first communication terminal and the media streams from other communication terminals before receiving the recording start response from the recording server.
语音交换设备在收到录音服务器的启动录音响应之前,录音服务器还没有为录音做好准备。但是第一通信终端和其它通信终端已经开始会话,语音交换设备将第一媒体流保存在缓存中,可以防止丢失录音服务器为录音做好准备之前的媒体流,其中,缓存是预先已经创建好的。Before the voice switching device receives the start recording response from the recording server, the recording server is not ready for recording. But the first communication terminal and other communication terminals have already started a conversation, and the voice switching device saves the first media stream in the cache, which can prevent the loss of the media stream before the recording server is ready for recording, wherein the cache is created in advance .
加入模块104用于将录音服务器加入语音交换设备创建的包括第一通信终端和其它通信终端的会场中。The joining module 104 is used for adding the recording server into the conference site created by the voice exchange device and including the first communication terminal and other communication terminals.
录音服务器是获取媒体流,实现用户录音的设备。语音交换设备收到来自第一通信终端的录音请求后,需要将录音服务器加入会场中才能够实现录音。会场是语音交换设备创建的,包括第一通信终端和其它通信终端。如果是点对点会话,当语音交换设备接收第一通信终端的录音请求后,语音交换设备创建会场,将第一通信终端和其它通信终端加入会场中;如果是电话会议,会场是在电话会议开始之前已经创建好的,即为电话会议的会场,当语音交换设备接收第一通信终端的录音请求后,不需要再创建会场。The recording server is a device that obtains media streams and realizes user recording. After receiving the recording request from the first communication terminal, the voice switching device needs to add a recording server to the conference site to realize the recording. The conference site is created by the voice switching device, and includes the first communication terminal and other communication terminals. If it is a point-to-point conversation, after the voice switching device receives the recording request from the first communication terminal, the voice switching device creates a site, and adds the first communication terminal and other communication terminals to the site; if it is a conference call, the site is before the conference call starts The already created site is the conference site. After the voice switching device receives the recording request from the first communication terminal, there is no need to create another site.
第一发送模块105用于向录音服务器发送启动录音请求。The first sending module 105 is configured to send a recording start request to the recording server.
当录音服务器加入会场后,语音交换设备再向录音服务器发送启动录音请求,以便于录音服务器为录音做好准备。After the recording server joins the conference site, the voice switching device sends a recording start request to the recording server, so that the recording server is ready for recording.
第二发送模块106用于在接收模块101接收到所述启动录音响应之后将混音模块102当前混音生成的媒体流作为第二媒体流发送给录音服务器。The second sending module 106 is configured to send, as a second media stream, the media stream generated by the current mixing module 102 to the recording server after the receiving module 101 receives the recording start response.
第二媒体流是语音交换设备在收到录音服务器的启动录音响应之后,将来自第一通信终端的媒体流和来自其它通信终端的媒体流进行混音处理后生成的媒体流。The second media stream is a media stream generated by the voice switching device after receiving the recording start response from the recording server and performing mixing processing on the media stream from the first communication terminal and the media streams from other communication terminals.
语音交换设备在收到录音服务器的启动录音响应之后,录音服务器已经为录音做好了录音准备。语音交换设备将当前接收的来自第一通信终端的媒体流和来自其它通信终端的媒体流进行混音,此时,将混音生成的媒体流作为第二媒体流发送给录音服务器。After the voice switching device receives the recording start response from the recording server, the recording server is ready for recording. The voice switching device mixes the currently received media stream from the first communication terminal and media streams from other communication terminals, and at this time, sends the media stream generated by the mixing as the second media stream to the recording server.
第三发送模块107用于在接收模块101接收到启动录音响应之后将保存在缓存中的第一媒体流向录音服务器发送,以便于录音服务器对第一媒体流和第二媒体流进行合并录制。The third sending module 107 is configured to send the first media stream stored in the cache to the recording server after the receiving module 101 receives the recording start response, so that the recording server can perform combined recording of the first media stream and the second media stream.
在录音服务器没有为录音做好准备的时间内,第一媒体流保存在缓存中,为了便于录音服务器获得完整的媒体流,语音交换设备将保存在缓存中的第一媒体流向录音服务器发送,以便于录音服务器对第一媒体流和第二媒体流进行合并录制。During the time when the recording server is not ready for recording, the first media stream is stored in the cache. In order to facilitate the recording server to obtain a complete media stream, the voice switching device sends the first media stream stored in the cache to the recording server, so that Combine and record the first media stream and the second media stream at the recording server.
需要说明的是,在实际应用中,可以对本实施方式的模块或单元进行增减或合并,在此不再一一赘叙。It should be noted that, in practical applications, the modules or units of this embodiment may be increased, decreased or combined, and details will not be repeated here.
参阅图8,语音交换设备还包括创建模块108,创建模块108用于在接收到录音请求时创建缓存。Referring to Fig. 8, the voice switching device further includes a creation module 108, which is used to create a buffer when a recording request is received.
缓存是指临时文件交换区,具有极快的存取速率,它是内部存储和外界接口之间的缓冲器。Cache refers to the temporary file exchange area, which has an extremely fast access rate. It is a buffer between internal storage and external interfaces.
语音交换设备在接收到录音请求时创建缓存。例如:可以是在接收到第一通信终端的录音请求后进行创建。当然,也可以是在接收到第一通信终端的录音请求之前进行创建,在此不做限制。A voice switching device creates a cache when it receives a recording request. For example: it may be created after receiving a recording request from the first communication terminal. Of course, it may also be created before receiving the recording request from the first communication terminal, which is not limited here.
保存模块103用于在收到录音服务器的启动录音响应时停止将混音生成的媒体流保存在缓存中。The saving module 103 is configured to stop saving the media stream generated by the audio mixing in the cache when receiving a recording start response from the recording server.
在收到录音服务器的启动录音响应之后,录音服务器已经为录音做好准备,因此,语音交换设备可以停止将混音处理后生成的媒体流保存在缓存中,直接将混音处理后生成的媒体流作为第二媒体流向录音服务器发送。这样,可以避免浪费缓存的存储空间。After receiving the start recording response from the recording server, the recording server is ready for recording. Therefore, the voice switching device can stop saving the media stream generated after the audio mixing process in the cache, and directly store the media stream generated after the audio mixing process The stream is sent to the recording server as a second media stream. In this way, the storage space of the cache can be avoided from being wasted.
其中,第一媒体流中的媒体包带有序号标识,以便于录音服务器根据序号标识按时间顺序录制第一媒体流中的媒体包。Wherein, the media packets in the first media stream are marked with sequence numbers, so that the recording server can record the media packets in the first media stream in chronological order according to the sequence numbers.
需要说明的是,本实施方式的语音交换设备可以执行图3和图4中的步骤。It should be noted that the voice switching device in this embodiment can execute the steps in FIG. 3 and FIG. 4 .
本发明在收到录音服务器的启动录音响应之前,语音交换设备将混音处理后生成的第一媒体流保存在缓存中;在收到录音服务器的启动录音响应之后,语音交换设备将混音处理后生成的第二媒体流向录音服务器发送;语音交换设备将保存在缓存中的第一媒体流向录音服务器发送,以便于录音服务器对第一媒体流和第二媒体流进行合并录制。通过这种方式,能够防止丢失录音服务器为录音做好准备之前的录音,从而可以获得完整的录音。In the present invention, before receiving the recording start response from the recording server, the voice switching device stores the first media stream generated after the audio mixing process in the cache; The second media stream generated later is sent to the recording server; the voice switching device sends the first media stream stored in the cache to the recording server, so that the recording server can combine and record the first media stream and the second media stream. In this way, the loss of the recording before the recording server is ready for recording can be prevented, so that a complete recording can be obtained.
参阅图9,图9是本发明录音服务器一实施方式的结构示意图,该录音服务器包括:加入模块201、第一接收模块202、发送模块203、第二接收模块204、第三接收模块205以及合并录制模块206。Referring to Fig. 9, Fig. 9 is a schematic structural diagram of an embodiment of the recording server of the present invention, and the recording server includes: a joining module 201, a first receiving module 202, a sending module 203, a second receiving module 204, a third receiving module 205 and a combination Recording module 206.
需要说明的是,本实施方式的录音服务器可以执行图5中的步骤。It should be noted that the recording server in this embodiment can execute the steps in FIG. 5 .
加入模块201用于加入语音交换设备创建的包括第一通信终端和其它通信终端的会场中,第一通信终端和其它通信终端通过语音交换设备进行通信。The joining module 201 is used to join the conference site created by the voice switching device and includes the first communication terminal and other communication terminals, and the first communication terminal and other communication terminals communicate through the voice switching device.
录音服务器是获取媒体流,实现用户录音的设备。语音交换设备是一种用于语音电信号转发的网络设备。第一通信终端是主动发起录音请求的通信终端,其它通信终端是除了第一通信终端外参与录音过程的通信终端。当通过语音交换设备上创建的电话会议进行通信时,其它通信终端一般至少有两个;当通过语音交换设备进行点对点通信时,其它通信终端是一个。其中,第一通信终端和其它通信终端通过语音交换设备进行通信。The recording server is a device that obtains media streams and realizes user recording. A voice switching device is a network device used for voice electrical signal forwarding. The first communication terminal is a communication terminal that actively initiates a recording request, and the other communication terminals are communication terminals that participate in the recording process except for the first communication terminal. When communicating through a conference call created on the voice switching device, there are generally at least two other communication terminals; when performing point-to-point communication through the voice switching device, there is one other communication terminal. Wherein, the first communication terminal communicates with other communication terminals through the voice switching device.
录音服务器加入语音交换设备创建的包括第一通信终端和其它通信终端的会场中,才可以为录音做准备。The recording server can prepare for recording only when it joins the conference site created by the voice exchange device and includes the first communication terminal and other communication terminals.
第一接收模块202用于接收语音交换设备发送的启动录音请求。The first receiving module 202 is configured to receive the recording start request sent by the voice switching device.
发送模块203用于在第一接收模块202接收语音交换设备发送的启动录音请求后,向语音交换设备发送启动录音响应。The sending module 203 is configured to send a recording start response to the voice switching device after the first receiving module 202 receives the recording start request sent by the voice switching device.
在录音服务器加入会场后,接收语音交换设备发送的启动录音请求,此时录音服务器接收语音交换设备发送的启动录音请求,并向语音交换设备发送启动录音响应。After the recording server joins the conference site, it receives the recording start request sent by the voice switching device. At this time, the recording server receives the recording start request sent by the voice switching device, and sends a recording start response to the voice switching device.
第二接收模块204用于在发送模块203向语音交换设备发送启动录音响应之后,接收来自语音交换设备的第二媒体流。The second receiving module 204 is configured to receive the second media stream from the voice switching device after the sending module 203 sends the recording start response to the voice switching device.
第二媒体流是语音交换设备在收到录音服务器的启动录音响应之后,将来自第一通信终端的媒体流和来自其它通信终端的媒体流进行混音处理后生成的媒体流。在向语音交换设备发送启动录音响应之后,录音服务器已经为录音做好准备,此时,录音服务器接收来自语音交换设备的第二媒体流。The second media stream is a media stream generated by the voice switching device after receiving the recording start response from the recording server and performing mixing processing on the media stream from the first communication terminal and the media streams from other communication terminals. After sending the recording start response to the voice switching device, the recording server is ready for recording, and at this time, the recording server receives the second media stream from the voice switching device.
第三接收模块205用于在发送模块203向所述语音交换设备发送启动录音响应之后,接收来自语音交换设备的缓存的第一媒体流。The third receiving module 205 is configured to receive the buffered first media stream from the voice switching device after the sending module 203 sends the recording start response to the voice switching device.
第一媒体流是语音交换设备在收到录音服务器的启动录音响应之前,语音交换设备将来自第一通信终端的媒体流和来自其它通信终端的媒体流进行混音处理后生成的媒体流。第一媒体流预先保存在缓存中,待录音服务器为录音做好准备后,即可接收语音交换设备发送的保存在缓存中的第一媒体流。The first media stream is a media stream generated by the voice switching device after mixing the media stream from the first communication terminal and the media streams from other communication terminals before the voice switching device receives a recording start response from the recording server. The first media stream is stored in the cache in advance, and after the recording server is ready for recording, it can receive the first media stream stored in the cache and sent by the voice switching device.
合并录制模块206用于对第二接收模块204接收的第二媒体流和第三接收模块205接收的第一媒体流进行合并录制。The combined recording module 206 is configured to combine and record the second media stream received by the second receiving module 204 and the first media stream received by the third receiving module 205 .
录音服务器对第一媒体流和第二媒体流进行合并录制。如,语音交换设备同时发送第一媒体流和第二媒体流,录音服务器将第一媒体流和第二媒体流进行合并并录制为一个录音文件;又如,语音交换设备先发送第二媒体流再发送第一媒体流,录音服务器将第一媒体流和第二媒体流分别录制为一个录音文件,并将这两个录音文件合并为一个录音文件。The recording server merges and records the first media stream and the second media stream. For example, the voice switching device sends the first media stream and the second media stream at the same time, and the recording server combines the first media stream and the second media stream and records them into one recording file; another example, the voice switching device sends the second media stream first Then the first media stream is sent, and the recording server records the first media stream and the second media stream respectively into one recording file, and merges the two recording files into one recording file.
本发明录音服务器接收到第一媒体流和第二媒体流后,对第一媒体流和第二媒体流进行合并录制。通过这种方式,能够防止丢失录音服务器为录音做好准备之前的录音,从而可以获得完整的录音。After the recording server of the present invention receives the first media stream and the second media stream, it combines and records the first media stream and the second media stream. In this way, the loss of the recording before the recording server is ready for recording can be prevented, so that a complete recording can be obtained.
参阅图10,图10是本发明录音系统一实施方式的结构示意图,该系统包括:语音交换设备31和录音服务器32。Referring to FIG. 10 , FIG. 10 is a schematic structural diagram of an embodiment of the recording system of the present invention, and the system includes: a voice exchange device 31 and a recording server 32 .
语音交换设备用于接收来自第一通信终端的录音请求,第一通信终端和其它通信终端通过语音交换设备进行通信;在收到录音请求时,对当前接收的来自第一通信终端的媒体流和来自其它通信终端的媒体流进行混音,并将混音生成的媒体流作为第一媒体流保存在缓存中;将录音服务器加入语音交换设备创建的包括第一通信终端和其它通信终端的会场中;向录音服务器发送启动录音请求;在收到录音服务器的启动录音响应之后,对当前接收的来自第一通信终端的媒体流和来自其它通信终端的媒体流进行混音,将混音生成的媒体流作为第二媒体流发送给录音服务器,并将收到启动录音响应之前保存在缓存中的第一媒体流发送给录音服务器,以便于录音服务器对第一媒体流和第二媒体流进行合并录制。The voice switching device is used to receive a recording request from the first communication terminal, and the first communication terminal communicates with other communication terminals through the voice switching device; when receiving the recording request, the currently received media stream from the first communication terminal and Mix the media streams from other communication terminals, and save the media stream generated by the mixing as the first media stream in the cache; add the recording server to the conference site created by the voice switching device including the first communication terminal and other communication terminals ; Send a recording start request to the recording server; after receiving the recording start response from the recording server, mix the currently received media stream from the first communication terminal and media streams from other communication terminals, and mix the generated media The stream is sent to the recording server as the second media stream, and the first media stream stored in the cache before receiving the start recording response is sent to the recording server, so that the recording server can perform combined recording of the first media stream and the second media stream .
录音服务器用于加入语音交换设备创建的包括第一通信终端和其它通信终端的会场中,第一通信终端和其它通信终端通过语音交换设备进行通信;接收语音交换设备发送的启动录音请求并向语音交换设备发送启动录音响应;在向语音交换设备发送启动录音响应之后,接收来自语音交换设备的第一媒体流和第二媒体流,第一媒体流是语音交换设备在收到启动录音响应之前对来自第一通信终端和其它通信终端的媒体流进行混音处理后生成的媒体流,第二媒体流是语音交换设备在收到启动录音响应之后对来自第一通信终端和其它通信终端的媒体流进行混音处理后生成的媒体流;对第一媒体流和第二媒体流进行合并录制。The recording server is used to join the conference site created by the voice switching device and includes the first communication terminal and other communication terminals, and the first communication terminal and other communication terminals communicate through the voice switching device; receive the start recording request sent by the voice switching device and send a voice call The switching device sends a start recording response; after sending the start recording response to the voice switching device, receiving the first media stream and the second media stream from the voice switching device, the first media stream is the voice switching device before receiving the start recording response The media stream generated after the media stream from the first communication terminal and other communication terminals is mixed, and the second media stream is the media stream from the first communication terminal and other communication terminals received by the voice switching device after receiving the start recording response A media stream generated after performing sound mixing processing; performing combined recording on the first media stream and the second media stream.
本发明在收到录音服务器的启动录音响应之前,语音交换设备将混音处理后的第一媒体流保存在缓存中;在收到录音服务器的启动录音响应之后,语音交换设备将混音处理后的第二媒体流向录音服务器发送;语音交换设备将保存在缓存中的第一媒体流向录音服务器发送,录音服务器接收到第一媒体流和第二媒体流后,对第一媒体流和第二媒体流进行合并录制。通过这种方式,能够防止丢失录音服务器为录音做好准备之前的录音,从而可以获得完整的录音。In the present invention, before receiving the start-recording response from the recording server, the voice exchange device saves the mixed-processed first media stream in the cache; The second media stream is sent to the recording server; the voice switching device sends the first media stream stored in the cache to the recording server, and the recording server receives the first media stream and the second media stream, streams for combined recording. In this way, the loss of the recording before the recording server is ready for recording can be prevented, so that a complete recording can be obtained.
参阅图11,图11是本发明语音交换设备又一实施方式的实体结构示意图,该语音交换设备40包括处理器41、与处理器41耦合的存储器42、接收器43以及发送器44。Referring to FIG. 11 , FIG. 11 is a schematic diagram of the physical structure of another embodiment of the voice switching device of the present invention. The voice switching device 40 includes a processor 41 , a memory 42 coupled to the processor 41 , a receiver 43 and a transmitter 44 .
接收器43用于接收来自第一通信终端的录音请求,所述第一通信终端和其它通信终端通过所述语音交换设备40的接收器43和发送器44进行通信。The receiver 43 is used to receive a recording request from the first communication terminal, and the first communication terminal communicates with other communication terminals through the receiver 43 and the transmitter 44 of the voice switching device 40 .
处理器41在接收器43收到所述录音请求时,对当前接收器43接收的来自所述第一通信终端的媒体流和来自所述其它通信终端的媒体流进行混音,并控制发送器44将混音生成的媒体流作为第一媒体流保存在存储器42的缓存中。When the receiver 43 receives the recording request, the processor 41 mixes the media stream from the first communication terminal currently received by the receiver 43 and the media stream from the other communication terminals, and controls the transmitter 44. Store the media stream generated by the audio mixing as the first media stream in the cache of the memory 42.
处理器41将录音服务器加入所述语音交换设备创建的包括所述第一通信终端和所述其它通信终端的会场中。The processor 41 adds the recording server to the conference site created by the voice exchange device and includes the first communication terminal and the other communication terminals.
发送器44向所述录音服务器发送启动录音请求。The sender 44 sends a recording start request to the recording server.
处理器41在接收器43收到所述录音服务器的启动录音响应之后,对当前接收的来自所述第一通信终端的媒体流和来自所述其它通信终端的媒体流进行混音,并控制发送器44将混音生成的媒体流作为第二媒体流发送给所述录音服务器。After the receiver 43 receives the recording start response from the recording server, the processor 41 mixes the currently received media stream from the first communication terminal and media streams from the other communication terminals, and controls the sending The device 44 sends the media stream generated by the audio mixing as the second media stream to the recording server.
处理器41获取保存在存储器42的缓存中的第一媒体流,控制发送器44将接收器43收到所述启动录音响应之前保存在所述缓存中的第一媒体流发送给所述录音服务器,以便于所述录音服务器对所述第一媒体流和所述第二媒体流进行合并录制。The processor 41 obtains the first media stream stored in the cache of the memory 42, and controls the transmitter 44 to send the first media stream stored in the cache before the receiver 43 receives the start recording response to the recording server , so that the recording server performs combined recording of the first media stream and the second media stream.
本发明在收到录音服务器的启动录音响应之前,语音交换设备将混音处理后生成的第一媒体流保存在缓存中;在收到录音服务器的启动录音响应之后,语音交换设备将混音处理后生成的第二媒体流向录音服务器发送;语音交换设备将保存在缓存中的第一媒体流向录音服务器发送,以便于录音服务器对第一媒体流和第二媒体流进行合并录制。通过这种方式,能够防止丢失录音服务器为录音做好准备之前的录音,从而可以获得完整的录音。In the present invention, before receiving the recording start response from the recording server, the voice switching device stores the first media stream generated after the audio mixing process in the cache; The second media stream generated later is sent to the recording server; the voice switching device sends the first media stream stored in the cache to the recording server, so that the recording server can combine and record the first media stream and the second media stream. In this way, the loss of the recording before the recording server is ready for recording can be prevented, so that a complete recording can be obtained.
参阅图12,图12是本发明录音服务器另一实施方式的结构示意图,该录音服务器50包括:处理器51、与处理器51耦合的存储器52、接收器53以及发送器54。Referring to FIG. 12 , FIG. 12 is a schematic structural diagram of another embodiment of the recording server of the present invention. The recording server 50 includes: a processor 51 , a memory 52 coupled to the processor 51 , a receiver 53 and a transmitter 54 .
处理器51用于加入语音交换设备创建的包括第一通信终端和其它通信终端的会场中,所述第一通信终端和所述其它通信终端通过所述语音交换设备进行通信;The processor 51 is configured to join a conference site created by the voice switching device that includes the first communication terminal and other communication terminals, where the first communication terminal and the other communication terminals communicate through the voice switching device;
接收器53接收所述语音交换设备发送的启动录音请求,发送器54向所述语音交换设备发送启动录音响应;The receiver 53 receives the recording start request sent by the voice switching device, and the transmitter 54 sends a recording start response to the voice switching device;
在向所述语音交换设备发送启动录音响应之后,接收器53接收来自所述语音交换设备的第一媒体流和第二媒体流,所述第一媒体流是所述语音交换设备在收到所述启动录音响应之前对来自所述第一通信终端和所述其它通信终端的媒体流进行混音处理后生成的媒体流,所述第二媒体流是所述语音交换设备在收到所述启动录音响应之后对来自所述第一通信终端和所述其它通信终端的媒体流进行混音处理后生成的媒体流;After sending the start recording response to the voice switching device, the receiver 53 receives the first media stream and the second media stream from the voice switching device, the first media stream is the voice switching device receiving the The media stream generated after the media stream from the first communication terminal and the other communication terminal is mixed before the start of the recording response, and the second media stream is the voice switching device receiving the start After the recording response, the media stream generated after performing mixing processing on the media streams from the first communication terminal and the other communication terminals;
处理器51对所述第一媒体流和所述第二媒体流进行合并录制。The processor 51 combines and records the first media stream and the second media stream.
本发明录音服务器接收到第一媒体流和第二媒体流后,对第一媒体流和第二媒体流进行合并录制。通过这种方式,能够防止丢失录音服务器为录音做好准备之前的录音,从而可以获得完整的录音。After the recording server of the present invention receives the first media stream and the second media stream, it combines and records the first media stream and the second media stream. In this way, the loss of the recording before the recording server is ready for recording can be prevented, so that a complete recording can be obtained.
以上所述仅为本发明的实施方式,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above is only the embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process conversion made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related technologies fields, all of which are equally included in the scope of patent protection of the present invention.
Claims (11)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410065530.4A CN104869106A (en) | 2014-02-25 | 2014-02-25 | Sound recording method, voice switching equipment, sound recording server and sound recording system |
PCT/CN2014/089748 WO2015127793A1 (en) | 2014-02-25 | 2014-10-29 | Recording method, voice exchanging device, recording server, and recording system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410065530.4A CN104869106A (en) | 2014-02-25 | 2014-02-25 | Sound recording method, voice switching equipment, sound recording server and sound recording system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104869106A true CN104869106A (en) | 2015-08-26 |
Family
ID=53914631
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410065530.4A Withdrawn CN104869106A (en) | 2014-02-25 | 2014-02-25 | Sound recording method, voice switching equipment, sound recording server and sound recording system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104869106A (en) |
WO (1) | WO2015127793A1 (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105162801A (en) * | 2015-09-24 | 2015-12-16 | 河北远东通信系统工程有限公司 | Method for realizing independent recording of internet protocol (IP) terminal in conference mode |
CN105681532A (en) * | 2016-03-07 | 2016-06-15 | 上海携程商务有限公司 | Recording system and method of call center based on Softpbx |
CN107395904A (en) * | 2017-07-28 | 2017-11-24 | 河北远东通信系统工程有限公司 | A kind of distributed call recording method |
WO2018059044A1 (en) * | 2016-09-29 | 2018-04-05 | 中兴通讯股份有限公司 | Recording method and device for telephone conference |
AU2016319432B2 (en) * | 2015-09-10 | 2018-09-20 | Nec Platforms, Ltd. | Telephone switching apparatus and method, and program |
CN108833727A (en) * | 2018-07-04 | 2018-11-16 | 广东商路信息科技有限公司 | Sound record management method and system based on telephone exchange |
CN110352591A (en) * | 2017-12-05 | 2019-10-18 | Nec平台株式会社 | Communication device, communication data recording system, communication method and program |
CN114817524A (en) * | 2022-04-21 | 2022-07-29 | 医渡云(北京)技术有限公司 | Method and device, system, medium and electronic device for generating infectious disease epidemiological report |
CN114944171A (en) * | 2022-06-06 | 2022-08-26 | 北京字跳网络技术有限公司 | Audio recording method, device and electronic equipment |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7321923B1 (en) * | 2000-03-08 | 2008-01-22 | Music Choice | Personalized audio system and method |
CN103166913B (en) * | 2011-12-09 | 2015-10-21 | 华为技术有限公司 | The method for recording of encrypted media streams and switch control device |
CN102769633A (en) * | 2012-08-03 | 2012-11-07 | 深圳中兴网信科技有限公司 | Call recording system and call recording method |
-
2014
- 2014-02-25 CN CN201410065530.4A patent/CN104869106A/en not_active Withdrawn
- 2014-10-29 WO PCT/CN2014/089748 patent/WO2015127793A1/en active Application Filing
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10165098B2 (en) | 2015-09-10 | 2018-12-25 | Nec Platforms, Ltd. | Telephone switching apparatus and method, and program |
AU2016319432B2 (en) * | 2015-09-10 | 2018-09-20 | Nec Platforms, Ltd. | Telephone switching apparatus and method, and program |
CN105162801A (en) * | 2015-09-24 | 2015-12-16 | 河北远东通信系统工程有限公司 | Method for realizing independent recording of internet protocol (IP) terminal in conference mode |
CN105162801B (en) * | 2015-09-24 | 2018-03-02 | 河北远东通信系统工程有限公司 | A kind of method for realizing that IP terminals independently record with conferencing |
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 |
WO2018059044A1 (en) * | 2016-09-29 | 2018-04-05 | 中兴通讯股份有限公司 | Recording method and device for telephone conference |
CN107395904B (en) * | 2017-07-28 | 2019-07-02 | 河北远东通信系统工程有限公司 | A kind of distributed call recording method |
CN107395904A (en) * | 2017-07-28 | 2017-11-24 | 河北远东通信系统工程有限公司 | A kind of distributed call recording method |
CN110352591A (en) * | 2017-12-05 | 2019-10-18 | Nec平台株式会社 | Communication device, communication data recording system, communication method and program |
US11064069B2 (en) | 2017-12-05 | 2021-07-13 | Nec Platforms, Ltd. | Communication apparatus, communication data recording system, communication method, and program |
CN110352591B (en) * | 2017-12-05 | 2021-10-26 | Nec平台株式会社 | Communication device, communication data recording system, communication method, and program |
CN108833727A (en) * | 2018-07-04 | 2018-11-16 | 广东商路信息科技有限公司 | Sound record management method and system based on telephone exchange |
CN114817524A (en) * | 2022-04-21 | 2022-07-29 | 医渡云(北京)技术有限公司 | Method and device, system, medium and electronic device for generating infectious disease epidemiological report |
CN114944171A (en) * | 2022-06-06 | 2022-08-26 | 北京字跳网络技术有限公司 | Audio recording method, device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
WO2015127793A1 (en) | 2015-09-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104869106A (en) | Sound recording method, voice switching equipment, sound recording server and sound recording system | |
US12355830B2 (en) | Transferring a phone call into a video conferencing session | |
TWI551112B (en) | Non-transitory tangible machine readable medium and client device for circuit switched audio calls and video call transitions | |
WO2015131709A1 (en) | Method and device for participants to privately chat in video conference | |
WO2012037790A1 (en) | Method,apparatus and system for digital tv terminals to perform instant messaging | |
CN102215216B (en) | Between circuit-switched call and video call, change | |
WO2008003266A1 (en) | Method, system and device for realizing the poc session's storing and playing | |
CN106797379A (en) | Teleconferencing System Using Synthetic Identifiers | |
WO2016045321A1 (en) | Method, device, system and computer storage medium for multi-party call | |
US9049342B2 (en) | Electronic conference system, band management system, and storage medium having band management program stored therein | |
WO2018001229A1 (en) | Method, application server and system for realizing call park | |
KR101589195B1 (en) | METHOD AND APPARATUS FOR SEAMLESSlY IMPLEMENTING TRNASFERRING DUAL-PARTY CALL INTO CONFERENCE | |
CN104756447B (en) | A kind of method and Video Record Processor for recording session information | |
CN107666396B (en) | Multi-terminal conference processing method and device | |
CN103414836B (en) | Processing method and device for accessing IP-based teleconference | |
CN110943910A (en) | WebSocket-based interphone implementation method | |
CN103428208B (en) | Distributed SIP redirection server and construction method thereof | |
CN108616485B (en) | Communication method and device based on fusion device | |
WO2011140744A1 (en) | Multimedia conference system in next generation network and realization method thereof | |
CN104767754B (en) | Equipment is calculated for online communication session registered client | |
CN110113371B (en) | Session management system and session management server | |
WO2009006830A1 (en) | Method, device and system for implementing communication between the user terminals | |
CN102148907A (en) | Method and system for tracking conference message and conference tracking controller | |
WO2014127620A1 (en) | Method and system for performing multimedia conference notification service between ngn and ims | |
CN105099990A (en) | Media recording method, device and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20150826 |