CN102158615A - LINUX-based media server in (Voice Over Internet Protocol) system and playback method of media server - Google Patents

LINUX-based media server in (Voice Over Internet Protocol) system and playback method of media server Download PDF

Info

Publication number
CN102158615A
CN102158615A CN 201110091324 CN201110091324A CN102158615A CN 102158615 A CN102158615 A CN 102158615A CN 201110091324 CN201110091324 CN 201110091324 CN 201110091324 A CN201110091324 A CN 201110091324A CN 102158615 A CN102158615 A CN 102158615A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
playback
system
module
processing
media server
Prior art date
Application number
CN 201110091324
Other languages
Chinese (zh)
Other versions
CN102158615B (en )
Inventor
侯小军
Original Assignee
迈普通信技术股份有限公司
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

Links

Abstract

The invention provides an LINUX-based media server in a VOIP system and a playback method of the media server, relating to a VOIP (Voice Over Internet Protocol) technology and solving the problems of low forwarding speed and lower performance of a media server when dedicated hardware is not used in the VOIP system. The technical scheme of the invention can be summarized as follows: the LINUX-based media server in the VOIP system comprises a user space system and a kernel space system, wherein the user space system is used for sending a control command to the kernel space system according to areceived playback signaling request; and the kernel space system is used for receiving a playback request of the user space system and generating a playback message according to a cached corresponding playback file and sending the playback message. The invention has the beneficial effects of improving the efficiency of the media server and being suitable for the VOIP system in the LINUX environment.

Description

VOIP系统中基于LINUX的媒体服务器及其放音方法 VOIP system LINUX-based media servers and playback method

技术领域 FIELD

[0001] 本发明涉及VOIP (Voice Over Internet Protocol)技术,特别涉及VOIP系统在LINUX环境下放音的技术。 [0001] The present invention relates to a VOIP (Voice Over Internet Protocol) technology, particularly to a decentralized LINUX environment sound art VOIP system.

背景技术 Background technique

[0002]在 VOIP 系统中,如图1 所示,主要有IPPBX(IP Private Branch eXchange)及其接入的用户(话机)、呼叫控制服务器(例如软交换或者IMS(IP Multimedia Subsystem) 核心设备)、应用服务器(Application Server,简称AS)、媒体服务器(Media Server,简称MS)。 [0002] In the VOIP system shown in Figure 1, the main user IPPBX (IP Private Branch eXchange) and access (phone), the call control server (e.g., softswitch or IMS (IP Multimedia Subsystem) core devices) The application server (application server, referred to as AS), a media server (media server, referred to as MS).

[0003] 应用服务器,负责各种增值业务的逻辑产生和管理,增值业务如彩铃、即时消息服务等,应用服务器还能够提供第三方呼叫接口,以方便与其他系统的集成与融合,应用服务器是完全独立的组件,它与呼叫控制无关,从而可以实现呼叫控制与业务的分离,有助于新业务的应用,其在运行过程中,很多业务功能需要媒体服务器的支撑。 [0003] The application server is responsible for a variety of value-added business logic generation and management, value-added services such as ring tones, instant messaging services, application servers can also provide third-party call interface to facilitate integration and integration with other systems, application server totally independent components, which has nothing to do with the call control, to separate call control and service may be implemented, facilitate the use of new services, which during operation, many business functions required to support the media server. 媒体服务器,负责媒体资源功能的提供,如编解码转换,放音功能提供以支撑彩铃、信号提示音等业务,信号音检测与产生,DTMF信号(Double tone multifrequency,典型如拨号按键)检测与产生、会议混音等。 Media server, responsible for media resource function to provide, such as codec conversion, playback functions provided to support the ring back tone, signal tone, and other services, tone detection and generation, the DTMF signal (Double tone multifrequency, typically such as dial buttons) detection and generation , conference mixer and so on. 通过AS与MS的配合,IPPBX用户可以使用如前所述的多种增值服务。 AS by blending with the MS, IPPBX user can use a variety of value-added services as previously described.

[0004] 媒体服务器的语音文件可以存储在本地或者网络,在放音的时候,媒体服务器读取文件,并转化成IP报文发送出去,媒体服务器的放音功能的实现,一般采用的技术方案是用专用的硬件处理,由硬件实现编解码、IP报文组装。 [0004] The media server may be stored in a voice file or a local network, at the time of playback, the media server reads the file, and converted into IP packets sent, to achieve playback function of the media server, the technical solutions generally used by treatment with dedicated hardware, the hardware codec, the IP packet is assembled. 但是为了节约硬件成本,有人提出不用专用硬件,而是基于操作系统的架构放音,这种方式可以在用户量不大的情况下部署, 能够节约专用硬件成本;放音具体实现方案为,创建套接字,然后基于此套接字向接收方发送基于UDP协议的语音报文,从而达到放音的目的。 But in order to save hardware costs, it was suggested that without a dedicated hardware, but based on the operating system architecture playback, this approach can be deployed in a small number of users, it is able to save the cost of dedicated hardware; playback specific implementation plan is created socket, and then based on this socket send voice packets based on UDP to the recipient, so as to achieve the purpose of playback. 当操作系统为LINUX时,以上技术方案的所有的操作均在用户空间,而不是内核空间,由于所有语音数据均需要从用户空间到内核空间的拷贝,而语音数据又非常庞大,所以存在转发速度慢,性能较低的弱点。 When the operating system is a LINUX, all operations above technical solutions are in user space, not the kernel space, since all voice data is to be copied from user space to kernel space, and the voice data and very large, there is forwarding speed slow, lower performance weaknesses.

发明内容 SUMMARY

[0005] 本发明的目的就是克服目前LINUX环境中,VOIP系统不用专用硬件时媒体服务器转发速度慢、性能较低的缺点,提供一种VOIP系统中基于LINUX的媒体服务器及其放音方 [0005] The object of the present invention is to overcome LINUX environment, VOIP system without a dedicated hardware forwarding media server slow, lower performance shortcomings, there is provided a VOIP system LINUX-based media server and the playback side

法。 law.

[0006] 本发明解决其技术问题,采用的技术方案是,VOIP系统中基于LINUX的媒体服务器,包括用户空间系统和内核空间系统,其特征在于,所述用户空间系统用于根据接收的放音信令请求,向内核空间系统发送控制命令;所述内核空间系统用于接收用户空间系统的放音请求,根据缓存的对应放音文件生成放音报文并进行发送。 [0006] The present invention to solve the technical problem, the technical solution adopted, VOIP system LINUX-based media server, the system comprising a user space and kernel space system, wherein said user-space system according to the received playback signaling the request, transmits a control command to the kernel space systems; the kernel space for receiving a system user request for playback system space, generating a playback file playback and transmit packets according to the corresponding buffer.

[0007] 具体的,所述用户空间系统包括参数设置模块和放音请求模块; [0007] Specifically, the system includes a user space module and a playback parameter setting request module;

[0008] 所述参数设置模块,用于向内核空间系统发送设置参数; [0008] The parameter setting module, configured to send the parameter set to the system kernel space;

[0009] 所述放音请求模块,用于向内核空间系统发送放音请求。 [0009] The playback requesting module, configured to send a request to the playback system in kernel space. [0010] 进一步的,所述内核空间系统包括参数设置和请求处理模块、放音处理和调度模块及报文发送模块; [0010] Further, the system comprises a kernel space and the parameter setting request processing module, a scheduling module and the playback processing and message sending module;

[0011] 所述参数设置和请求处理模块,用于接收并处理来自用户空间系统的设置参数及放音请求; [0011] The parameter setting and the request processing module, for receiving and processing system setup parameters from the user space and the playback request;

[0012] 所述放音处理和调度模块,用于读取缓存中的放音文件以及生成RTP (Real-timeTransport Protocol)放音ί艮文; [0012] The playback processing and a scheduling module, for reading the playback file cache and generate RTP (Real-timeTransport Protocol) packets playback ί Gen;

[0013] 所述报文发送模块,用于将所述放音处理和调度模块生成的RTP放音报文进行IP 封装并发送。 [0013] The message sending module, for processing said playback and scheduling module generates an RTP packet playback IP encapsulation and transmission.

[0014] 具体的,所述用户空间系统还包括DTMF处理模块和放音事件处理模块; [0014] Specifically, the system further includes a user space module DTMF processing and playback event processing module;

[0015] 所述DTMF处理模块,用于处理RTP报文,并根据一定算法来分析DTMF事件并产生DTMF信号; [0015] The DTMF processing module, for processing RTP packet, and according to a certain algorithm to analyze events and generating DTMF DTMF signal;

[0016] 所述放音事件处理模块,用于接收内核空间系统的放音事件。 [0016] The playback event processing module, configured to receive sound reproduction system kernel space event.

[0017] 再进一步的,所述内核空间系统还包括RTCP(Real_time Transport Control Protocol)处理模块和报文接收模块; [0017] Still further, the system further comprises a kernel space RTCP (Real_time Transport Control Protocol) message processing module and the receiving module;

[0018] 所述RTCP处理模块,用于根据RTP报文内容生成回复的RTCP报文,并接收RTCP 报文且将处理结果反馈给用户空间系统; [0018] The RTCP processing module is configured to generate contents according to the RTP packet reply RTCP packet, and receives RTCP packet and the processing result back to the user space of the system;

[0019] 所述报文接收模块,用于接收外部IP报文。 [0019] The message receiving module, for receiving an external IP packet.

[0020] 具体的,所述参数设置模块及放音请求模块分别与参数设置和请求处理模块连接,参数设置和请求处理模块与放音处理和调度模块连接,放音处理和调度模块与放音事件处理模块连接,放音处理及调度模块与报文发送模块连接,报文接收模块与RTCP处理模块连接,报文接收模块与DTMF处理模块连接,RTCP处理模块与报文发送模块连接。 [0020] Specifically, the parameter setting module and the playback module are respectively provided request and the request processing module connected to the parameter, and the parameter setting request processing module is connected to the playback processing and scheduling module, playback processing and playback and scheduling module event processing module is connected, playback processing module and a scheduling module is connected to the message sending, message receiving module is connected with the RTCP processing module, the message receiving module is connected to the DTMF processing module, the processing module and the RTCP packet sending module.

[0021] VOIP系统中基于LINUX的媒体服务器放音方法,其特征在于,包括以下步骤: [0021] LINUX playback media server based VOIP system, characterized by comprising the steps of:

[0022] a.媒体服务器接收到放音请求后,用户空间系统向内核空间系统发送放音请求; . [0022] a media server receives the playback request, the system user space to the kernel space transmission system playback request;

[0023] b.内核空间系统接收到用户空间系统的放音请求后,读取缓存中对应的放音文件并生成RTP放音报文; After [0023] b kernel space system receives a user request for playback system space, the corresponding read cache playback file playback and generates RTP packets;

[0024] c.内核空间系统将生成的RTP放音报文进行IP封装后从对应端口发送出去。 [0024] c. After the system kernel space generated RTP playback encapsulated packet sent from the corresponding IP port.

[0025] 具体的,所述步骤c中,内核空间系统判断缓存中没有对应的放音文件时,需要先将用户空间系统中的该语音文件拷贝到内核空间系统。 When [0025] Specifically, the step (c), the system determines the kernel space no corresponding cache playback file, the user first needs to space the system of the voice files to the system kernel space.

[0026] 进一步的,内核空间系统在放音的过程中,接收到IP报文后,执行如下操作: After [0026] Further, the kernel space of the system during playback, the received IP packets, perform the following operations:

[0027] dl.判断所述IP报文是RTP报文还是或RTCP报文,若为RTP报文则进入d2步骤, 若为RTCP报文则进入d3步骤; [0027] dl determines the IP packet is the RTP or RTCP packets or packets, the RTP packets if the process proceeds to step d2, when the RTCP packet proceeds to step d3.;

[0028] d2.对该RTP报文进行判断,是否需要发送RTCP报文,若是则生成RTCP报文并进行IP封装后发送,同时将该RTP报文发送给用户空间系统,并进入d4步骤; . [0028] d2 determines the RTP packet, whether to send RTCP packet, if the transmission generates RTCP packet and IP encapsulation, and sends the RTP packet to the user space systems, and enters a step d4;

[0029] d3.将该RTCP报文处理后,将处理结果反馈用户空间系统; . [0029] d3 RTCP packet after the processing, the processing result feedback system user space;

[0030] d4.用户空间系统的DTMF处理模块接收到该RTP报文后,分析判断其是否为DTMF 数据,若是则通知应用服务器处理相应事件。 [0030] d4. DTMF processing system's user space module after receiving the RTP packet, it determines whether the DTMF analysis data, if the application server notifies the corresponding event process.

[0031] 具体的,所述内核空间系统定时判断内核空间系统中的缓存文件是否在一段时间内没有被访问,若没有被访问则删除该缓存文件。 [0031] Specifically, the timing of the system kernel space kernel space system determines whether cache file is not accessed within a period of time, if not to access the cache file is deleted.

[0032] 本发明的有益效果是,通过上述LINUX环境下VOIP系统中的媒体服务器及其放音方法,由于其放音RTP报文是在内核空间系统直接完成的,包括对放音报文流控制的RTCP 报文也在内核空间系统完成,减少了数据拷贝过程,从而提高媒体服务器的效率,且可以控制放音文件数据是否在内核缓存,这样可以进一步减少内核空间系统与用户空间系统数据的拷贝,极大的提高转发效率。 [0032] Advantageous effects of the present invention is that, by the above-described VOIP system LINUX environment, a media server and playback method, since the RTP packet whose playback is done directly in the kernel space of the system, including packet flows playback RTCP packets are control system to complete the kernel space, reducing data copying process, thereby improving the efficiency of the media server, and may control whether the playback file data cache in the kernel, which may further reduce the system kernel space and user space system data copy, which greatly improves the forwarding efficiency.

附图说明 BRIEF DESCRIPTION

[0033] 图1是本发明实施例的VOIP系统结构图。 [0033] FIG. 1 is a configuration diagram of an embodiment VOIP system of the present invention.

[0034] 图2是本发明媒体服务器结构框图。 [0034] FIG. 2 is a block diagram showing a media server of the present invention.

[0035] 图3是本发明实施例的媒体服务器结构框图。 [0035] FIG. 3 is a block diagram of a media server according to embodiments of the present invention.

[0036] 图4是本发明放音方法流程图。 [0036] FIG 4 is a flowchart of a method of the present invention, the playback.

具体实施方式 detailed description

[0037] 下面结合实施例及附图,详细描述本发明的技术方案。 [0037] The following examples and the accompanying drawings in conjunction with embodiments, the technical solutions of the present invention is described in detail.

[0038] 本发明VOIP系统结构图参见图1,本发明媒体服务器结构框图参见图2,本发明放音方法流程图参见图4。 [0038] VOIP system configuration diagram of the present invention Referring to Figure 1, a block diagram of a media server according to the present invention Referring to FIG. 2, the playback method of the present invention Referring to the flowchart of FIG. 4. 本发明的VOIP系统中基于LINUX的媒体服务器由用户空间系统和内核空间系统组成,其中,用户空间系统用于根据接收的放音信令请求,向内核空间系统发送控制命令;内核空间系统用于接收用户空间系统的放音请求,根据缓存的对应放音文件生成放音报文并进行发送。 VOIP system of the present invention, a LINUX-based media server system by a user space and kernel space system components, wherein the user space systems for playback request according to the received signaling, transmits a control command to the kernel space of the system; a system for kernel space receiving a user space request playback system, playback playback file is generated and transmitted according to the packet buffer corresponds. 本发明的VOIP系统中基于LINUX的媒体服务器放音方法中,首先媒体服务器接收到放音请求后,用户空间系统向内核空间系统发送放音请求,然后在内核空间系统接收到用户空间系统的放音请求后,读取缓存中对应的放音文件并生成RTP放音报文,最后内核空间系统将生成的RTP放音报文进行IP封装后从对应端口发送出去。 After playback method, first, a media server receives the playback request VOIP system of the present invention, LINUX-based media server, user space system sends kernel space system playback request, and then receive the user space of the system put in the kernel space system after the request tone, the corresponding read cache playback playback file and generates RTP packets, and finally the system kernel space generated playback RTP packet sent from the port corresponding to the IP encapsulation.

[0039] 实施例 [0039] Example

[0040] 本实施例的VOIP系统结构图参见图1,其媒体服务器结构框图参见图3,其放音方法流程图参见图4。 [0040] VOIP system configuration diagram of the present embodiment Referring to Figure 1, a block diagram of a media server 3, which the playback method of flowchart of FIG. 4. 本实施例必须基于IP网络进行构建,包括应用服务器(AS),媒体服务器(MS),IPPBX,电话用户。 This embodiment must be built, it includes an application server (the AS), the media server (MS), IPPBX, IP-based telephone network users. 其中IPPBX作为支持IP协议的用户交换机,可以连接电话机,并完成相应的呼叫控制与媒体处理。 Wherein as the supporting IPPBX IP protocol user switch, you can connect the telephone, and complete the call control and media handling. 应用服务器给用户提供业务,它会与媒体服务器交互完成媒体的控制,媒体服务器提供媒体功能,如DTMF信号产生与检测,放音等,媒体服务器可以与应用服务器合在一起作为一个物理实体,也可以分别部署。 The application server provides service to the user, it will complete control of the media interacts with the media server, the media server to provide media features, such as the DTMF signal generation and detection, and so playback, the media server may be bonded together with the application server as a physical entity, and It can be deployed separately. 本实施例中,放音功能分两部分来完成,在用户空间系统完成与应用服务器的信令交互,向内核空间系统发送控制命令, 统计告警等;内核空间系统完成放音报文组装与发送等。 In this embodiment, the playback function is done in two parts, the signaling interaction is completed and the user space application server system, sending a control command to the kernel space systems, alarms statistics; kernel space complete sound reproduction systems and packet transmission assembly Wait.

[0041] 首先由用户空间系统和内核空间系统组成VOIP系统中基于LINUX的媒体服务器, 其中,用户空间系统用于根据接收的放音信令请求,向内核空间系统发送控制命令,内核空间系统用于接收用户空间系统的放音请求,根据缓存的对应放音文件生成放音报文并进行发送,用户空间系统包括参数设置模块和放音请求模块,参数设置模块用于向内核空间系统发送设置参数,如报文的发送频率、是否进行语音文件缓存等,放音请求模块用于向内核空间系统发送放音请求,其包括文件名、放音次数、编码、放音接收方IP地址、端口参数等, 内核空间系统包括参数设置和请求处理模块、放音处理和调度模块及报文发送模块,参数设置和请求处理模块用于接收并处理来自用户空间系统的设置参数及放音请求,放音处理和调度模块用于读取缓存中的放音文件以及生 [0041] First, the system by the user space and kernel space system components VOIP system LINUX-based media server, wherein the user space of a system for a signaling in accordance with the received playback request, transmits a control command to the system kernel space, kernel space systems receiving a user request for playback in the system space, generating a playback file playback and packets transmitted according to the buffer corresponding to the user space includes a system parameter setting module and playback request module, configured to send the parameter setting module to set the system kernel space parameters, such as the transmission frequency of the packets, whether a voice file cache and the like, the playback requesting means for sending a request to the kernel space playback system, which includes a file name, the playback frequency encoding, playback receiver IP addresses, port parameters, the system comprises a kernel space and the parameter setting request processing module, a scheduling module and the playback processing and message sending module, and the parameter setting request processing module for receiving and processing system setup parameters from the user space and the playback request, the discharge sound processing and scheduling means for reading the playback file cache and Health RTP放音报文,包括放音的报文组装、编 RTP packets playback, including playback of the message assembly, compiled

6解码、放音事件通知、放音文件管理等,以及向用户空间系统反馈放音事件等,报文发送模块用于将所述放音处理和调度模块生成的RTP放音报文进行IP封装并发送,用户空间系统还可以包括DTMF处理模块和放音事件处理模块,DTMF处理模块用于处理RTP报文,并根据一定算法来分析DTMF事件且产生DTMF信号等,放音事件处理模块用于接收内核空间系统的放音事件,如当前播放状态(开始、完成、出错等)等,内核空间系统还可以包括RTCP处理模块和报文接收模块,RTCP处理模块用于根据RTP报文内容生成回复的RTCP报文,并接收RTCP报文且将处理结果反馈给用户空间系统,报文接收模块用于接收外部IP报文,其包含RTP报文;这里参数设置模块及放音请求模块分别与参数设置和请求处理模块连接, 参数设置和请求处理模块与放音处理和调度模块连接,放音处理和调 Decoder 6, playback event notification, playback document management, and user feedback event space playback system, packet transmission module for converting the playback processing and scheduling module generates an RTP packet playback IP encapsulation and sending, the user space may further include a DTMF processing system and a playback module event processing module, the processing module for processing DTMF RTP packet, and according to a certain algorithm for analyzing the DTMF event and generating DTMF signals, a playback event processing module receiving system kernel space playback events, such as the current playback status (start, completion, error, etc.), the system may further include a kernel space RTCP packet processing module and a receiving module, a processing module for RTCP RTP packets generated in accordance with the contents of replies the RTCP packet, and receives RTCP packet and the processing result back to the user space of the system, the message receiving module for receiving the external IP packet comprising RTP packet; this parameter setting module and the playback module, respectively, and a request parameter and a connection setting request processing module, and the parameter setting request processing module and the playback processing and scheduling module is connected, playback and transfer process 模块与放音事件处理模块连接,放音处理及调度模块与报文发送模块连接,报文接收模块与RTCP处理模块连接,报文接收模块与DTMF处理模块连接,RTCP处理模块与报文发送模块连接。 Module and the playback event processing module is connected, playback processing and a scheduling module and the message transmission module is connected, the message receiving module and the RTCP processing module is connected, the message receiving module and the DTMF processing module is connected, RTCP processing module and a message sending module connection.

[0042] 本实施例VOIP系统中基于LINUX的媒体服务器放音方法,具体步骤如下: [0042] VOIP system of the present embodiment the media server LINUX-based playback, the following steps:

[0043] a.媒体服务器接收到放音请求后,用户空间系统向内核空间系统发送放音请求; . [0043] a media server receives the playback request, the system user space to the kernel space transmission system playback request;

[0044] b.内核空间系统接收到用户空间系统的放音请求后,读取缓存中对应的放音文件并生成RTP放音报文; After [0044] b kernel space system receives a user request for playback system space, the corresponding read cache playback file playback and generates RTP packets;

[0045] c.内核空间系统将生成的RTP放音报文进行IP封装后从对应端口发送出去。 [0045] c. After the system kernel space generated RTP playback encapsulated packet sent from the corresponding IP port.

[0046] 在步骤c中,内核空间系统判断缓存中没有对应的放音文件时,需要先将用户空间系统中的该语音文件拷贝到内核空间系统。 When [0046] In step c, the system determines the kernel space no corresponding cache playback files, need to first copy of the voice file in user space to the kernel space system system.

[0047] 该内核空间系统在放音的过程中,接收到IP报文后,执行如下操作: [0047] The kernel space system during the playback, after receiving the IP packet, performs the following operations:

[0048] dl.判断所述IP报文是RTP报文还是或RTCP报文,若为RTP报文则进入d2步骤, 若为RTCP报文则进入d3步骤; [0048] dl determines the IP packet is the RTP or RTCP packets or packets, the RTP packets if the process proceeds to step d2, when the RTCP packet proceeds to step d3.;

[0049] d2.对该RTP报文进行判断,是否需要发送RTCP报文,若是则生成RTCP报文并进行IP封装后发送,同时将该RTP报文发送给用户空间系统,并进入d4步骤; . [0049] d2 determines the RTP packet, whether to send RTCP packet, if the transmission generates RTCP packet and IP encapsulation, and sends the RTP packet to the user space systems, and enters a step d4;

[0050] d3.将该RTCP报文处理后,将处理结果反馈用户空间系统; . [0050] d3 RTCP packet after the processing, the processing result feedback system user space;

[0051] d4.用户空间系统的DTMF处理模块接收到该RTP报文后,分析判断其是否为DTMF 数据,若是则通知应用服务器处理相应事件。 [0051] d4. DTMF processing system's user space module after receiving the RTP packet, it determines whether the DTMF analysis data, if the application server notifies the corresponding event process.

[0052] 该内核空间系统定时判断内核空间系统中的缓存文件是否在一段时间内没有被访问,若没有被访问则删除该缓存文件。 [0052] The kernel space kernel space system timing system determines whether cache file is not accessed within a period of time, if not to access the cache file is deleted.

[0053] 本实施例中,不约束内核空间系统与用户空间系统间的通信方式。 [0053] In this embodiment, unconstrained communication system between kernel space and user space system.

Claims (10)

  1. 1. VOIP系统中基于LINUX的媒体服务器,包括用户空间系统和内核空间系统,其特征在于,所述用户空间系统用于根据接收的放音信令请求,向内核空间系统发送控制命令;所述内核空间系统用于接收用户空间系统的放音请求,根据缓存的对应放音文件生成放音报文并进行发送。 1. VOIP system LINUX-based media server, the system comprising a user space and kernel space system, wherein the user space playback system according to a signaling received request, transmits a control command to the kernel space systems; the the system kernel space for receiving the user space request playback system, playback playback file is generated and transmitted according to the packet buffer corresponds.
  2. 2.如权利要求1所述VOIP系统中基于LINUX的媒体服务器,其特征在于,所述用户空间系统包括参数设置模块和放音请求模块;所述参数设置模块,用于向内核空间系统发送设置参数;所述放音请求模块,用于向内核空间系统发送放音请求。 2. The system 1 VOIP LINUX-based media server claim, wherein the user space includes a system parameter setting module and playback module request; said parameter setting means for setting the transmission system to the kernel space parameter; said playback requesting module, configured to send a request to the playback system in kernel space.
  3. 3.如权利要求2所述VOIP系统中基于LINUX的媒体服务器,其特征在于,所述内核空间系统包括参数设置和请求处理模块、放音处理和调度模块及报文发送模块;所述参数设置和请求处理模块,用于接收并处理来自用户空间系统的设置参数及放音请求;所述放音处理和调度模块,用于读取缓存中的放音文件以及生成RTP放音报文;所述报文发送模块,用于将所述放音处理和调度模块生成的RTP放音报文进行IP封装并发送。 3. The 2 VOIP system LINUX-based media server claim, wherein said system comprises a kernel space and the parameter setting request processing module, a scheduling module and the playback processing and message sending module; said parameter setting and a request processing module, for receiving and processing system setup parameters from the user space and the playback request; the playback processing and a scheduling module, for reading the cache playback file playback and generating RTP packets; the said message sending module, for processing said playback and scheduling module generates an RTP packet playback IP encapsulation and transmission.
  4. 4.如权利要求3所述VOIP系统中基于LINUX的媒体服务器,其特征在于,所述用户空间系统还包括DTMF处理模块和放音事件处理模块;所述DTMF处理模块,用于处理RTP报文,并根据一定算法来分析DTMF事件并产生DTMF信号;所述放音事件处理模块,用于接收内核空间系统的放音事件。 4. The 3 VOIP system LINUX-based media server claim, wherein said system further comprises a user space module DTMF processing and playback event processing module; the DTMF processing module, for processing RTP packets and according to a certain algorithm to analyze and generate DTMF DTMF signal event; the playback event processing module, configured to receive sound reproduction system kernel space event.
  5. 5.如权利要求4所述VOIP系统中基于LINUX的媒体服务器,其特征在于,所述内核空间系统还包括RTCP处理模块和报文接收模块;所述RTCP处理模块,用于根据RTP报文内容生成回复的RTCP报文,并接收RTCP报文且将处理结果反馈给用户空间系统;所述报文接收模块,用于接收外部IP报文。 5. The 4 VOIP system LINUX-based media server claim, wherein said system further comprises a kernel space RTCP packet receiving module and a processing module; the RTCP processing module for RTP packet content generating a reply RTCP packet, and receives RTCP packet and the processing result back to the user space systems; said message receiving module, for receiving an external IP packet.
  6. 6.如权利要求5所述VOIP系统中基于LINUX的媒体服务器,其特征在于,所述参数设置模块及放音请求模块分别与参数设置和请求处理模块连接,参数设置和请求处理模块与放音处理和调度模块连接,放音处理和调度模块与放音事件处理模块连接,放音处理及调度模块与报文发送模块连接,报文接收模块与RTCP处理模块连接,报文接收模块与DTMF处理模块连接,RTCP处理模块与报文发送模块连接。 6. 5 the VOIP system LINUX-based media server claim, wherein said parameter setting module and the playback module are respectively provided request and the request processing module connected to the parameter, and the parameter setting request processing module and playback processing and scheduling module is connected, playback processing and scheduling module playback event processing module is connected, playback processing and a scheduling module and the message transmission module is connected, the message receiving module and the RTCP processing module is connected, the message receiving module and the DTMF processing module is connected, RTCP processing module connected to the message sending module.
  7. 7. VOIP系统中基于LINUX的媒体服务器放音方法,其特征在于,包括以下步骤:a.媒体服务器接收到放音请求后,用户空间系统向内核空间系统发送放音请求;b.内核空间系统接收到用户空间系统的放音请求后,读取缓存中对应的放音文件并生成RTP放音报文;c.内核空间系统将生成的RTP放音报文进行IP封装后从对应端口发送出去。 Playback Method 7. VOIP system LINUX-based media server, characterized by comprising the steps of: a media server receives the playback request, the system sends the user space to the kernel space request playback system; B system kernel space. after receiving the user space request playback system reads the cache file corresponding to the playback and playback generates RTP packets;. c kernel space after the system will generate an RTP playback encapsulated packet sent from the corresponding IP port .
  8. 8.如权利要求7所述的VOIP系统中基于LINUX的媒体服务器放音方法,其特征在于, 步骤c中,内核空间系统判断缓存中没有对应的放音文件时,需要先将用户空间系统中的该语音文件拷贝到内核空间系统。 8. The method as claimed in claim playback the VOIP system of claim 7, LINUX-based media server, wherein step (c), the system determines that the kernel space no corresponding cache playback file, the user first needs to space the system the voice files are copied into kernel space systems.
  9. 9.如权利要求7或8所述VOIP系统中基于LINUX的媒体服务器放音方法,其特征在于,内核空间系统在放音的过程中,接收到IP报文后,执行如下操作:dl.判断所述IP报文是RTP报文还是或RTCP报文,若为RTP报文则进入d2步骤,若为RTCP报文则进入d3步骤;d2.对该RTP报文进行判断,是否需要发送RTCP报文,若是则生成RTCP报文并进行IP 封装后发送,同时将该RTP报文发送给用户空间系统,并进入d4步骤; d3.将该RTCP报文处理后,将处理结果反馈用户空间系统;d4.用户空间系统的DTMF处理模块接收到该RTP报文后,分析判断其是否为DTMF数据,若是则通知应用服务器处理相应事件。 9. A method as claimed in claim playback or 7 8 VOIP system LINUX-based media server, wherein the system kernel space during the playback, after receiving the IP packet, performs the following operations:. Dl Analyzing the IP packets are RTP packets or RTCP packets or, if the RTP packets proceeds to step d2, when the RTCP packet proceeds to step d3;. d2 judge the RTP packet, RTCP packet to be dispatched article, if the RTCP packet is generated and transmitted IP encapsulation, while the RTP packet to the system user space, and enters step d4;. d3 RTCP packet after the processing, the processing result feedback system user space; d4. DTMF processing system's user space module after receiving the RTP packet, it determines whether the DTMF analysis data, if the application server notifies the corresponding event process.
  10. 10.根据权利要求9所述VOIP系统中基于LINUX的媒体服务器放音方法,其特征在于, 所述内核空间系统定时判断内核空间系统中的缓存文件是否在一段时间内没有被访问,若没有被访问则删除该缓存文件。 10. The playback method of claim 9 VOIP system LINUX-based media server, wherein said system timing kernel space kernel space system determines whether cache file is not accessed for some time claims, if not access the cache file is deleted.
CN 201110091324 2011-04-12 2011-04-12 LINUX-based media server in (Voice Over Internet Protocol) system and playback method of media server CN102158615B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110091324 CN102158615B (en) 2011-04-12 2011-04-12 LINUX-based media server in (Voice Over Internet Protocol) system and playback method of media server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110091324 CN102158615B (en) 2011-04-12 2011-04-12 LINUX-based media server in (Voice Over Internet Protocol) system and playback method of media server

Publications (2)

Publication Number Publication Date
CN102158615A true true CN102158615A (en) 2011-08-17
CN102158615B CN102158615B (en) 2013-07-10

Family

ID=44439783

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110091324 CN102158615B (en) 2011-04-12 2011-04-12 LINUX-based media server in (Voice Over Internet Protocol) system and playback method of media server

Country Status (1)

Country Link
CN (1) CN102158615B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102638453A (en) * 2012-03-13 2012-08-15 广州华多网络科技有限公司 Voice data kernel forwarding method based on Linux system server
CN102685342A (en) * 2012-05-11 2012-09-19 深圳市共进电子股份有限公司 Method and system for improving instantaneity of VOIP (Voice Over Internet Protocol) voice signal based on Linux system
CN103916548A (en) * 2014-04-17 2014-07-09 上海斐讯数据通信技术有限公司 Embedded type VOIP voice communication system and voice playing method thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6108695A (en) * 1997-06-24 2000-08-22 Sun Microsystems, Inc. Method and apparatus for providing analog output and managing channels on a multiple channel digital media server
CN1852219A (en) * 2005-07-14 2006-10-25 华为技术有限公司 Audio/video document play-back method
CN101345767A (en) * 2008-08-11 2009-01-14 中兴通讯股份有限公司 Resource management method of medium service apparatus
CN101563906A (en) * 2006-12-20 2009-10-21 Nxp股份有限公司 Wireless media system with embedded media server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6108695A (en) * 1997-06-24 2000-08-22 Sun Microsystems, Inc. Method and apparatus for providing analog output and managing channels on a multiple channel digital media server
CN1852219A (en) * 2005-07-14 2006-10-25 华为技术有限公司 Audio/video document play-back method
CN101563906A (en) * 2006-12-20 2009-10-21 Nxp股份有限公司 Wireless media system with embedded media server
CN101345767A (en) * 2008-08-11 2009-01-14 中兴通讯股份有限公司 Resource management method of medium service apparatus

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈小军,李毅: "一种基于Linux内核提高流媒体服务器性能的方法", 《科技信息》, no. 6, 20 February 2008 (2008-02-20) *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102638453A (en) * 2012-03-13 2012-08-15 广州华多网络科技有限公司 Voice data kernel forwarding method based on Linux system server
CN102638453B (en) * 2012-03-13 2015-07-29 广州华多网络科技有限公司 Voice data forwarding method based on the Linux kernel system server
CN102685342A (en) * 2012-05-11 2012-09-19 深圳市共进电子股份有限公司 Method and system for improving instantaneity of VOIP (Voice Over Internet Protocol) voice signal based on Linux system
CN102685342B (en) 2012-05-11 2014-05-21 深圳市共进电子股份有限公司 Method and system for improving instantaneity of VOIP (Voice Over Internet Protocol) voice signal based on Linux system
CN103916548A (en) * 2014-04-17 2014-07-09 上海斐讯数据通信技术有限公司 Embedded type VOIP voice communication system and voice playing method thereof

Also Published As

Publication number Publication date Type
CN102158615B (en) 2013-07-10 grant

Similar Documents

Publication Publication Date Title
US20020159439A1 (en) Dynamically downloading telecommunication call services
US20020071424A1 (en) Packet voice telephony apparatus and method
US20050117605A1 (en) Network address and port translation gateway with real-time media channel management
US7715413B2 (en) Multi-network exchange system for telephony applications
US20110153809A1 (en) Legal Intercept
CN101237333A (en) An universal service platform for supporting multiple services based on multi-network fusion
US20080063167A1 (en) Process for scalable conversation recording
CN101500344A (en) Service platform system for implementing enterprise fusion communication
CN1929600A (en) System and method for realizing remote monitoring control by using IP videophone
CN102308560A (en) Transmission method and device of media stream data in cloud calculative system
CN103580986A (en) Real-time communication method, terminal equipment, real-time communication server and system
CN1719788A (en) Method for call controlling and service monitoring of soft exchange monitoring
CN1642117A (en) Method for realizing monitoring based on soft switch
CN101159784A (en) Video mailbox leave message storing method
CN101056189A (en) A phone meeting control method and system
CN1984060A (en) Method and system for alternating medium-flow during process of terminal talk
US20110249681A1 (en) Systems, methods, and computer readable media for loose coupling of multimedia resource function controllers and multimedia resource function processors
US6985480B2 (en) System, software and method for implementing an integrated, device independent, packet telephony framework software solution
CN101860536A (en) Private network access system based on SIP soft phone and method thereof
CN102111514A (en) VoIP recording system and recording method
CN101079934A (en) Method and system for utilizing session initialization protocol soft terminal to record the voice
CN1964474A (en) A multipoint control unit video conference system based on SIP protocol and realization method
CN1464700A (en) Method for notifying busy status to session initiating protocol network from end user
CN1633129A (en) A media server based on soft switch
CN101110791A (en) Method and system for implementing short message business bifurcation transmission in multimedia subsystem

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model