[go: up one dir, main page]

CN101800818A - Voice gateway equipment and communication processing method of voice gateway - Google Patents

Voice gateway equipment and communication processing method of voice gateway Download PDF

Info

Publication number
CN101800818A
CN101800818A CN 201010118396 CN201010118396A CN101800818A CN 101800818 A CN101800818 A CN 101800818A CN 201010118396 CN201010118396 CN 201010118396 CN 201010118396 A CN201010118396 A CN 201010118396A CN 101800818 A CN101800818 A CN 101800818A
Authority
CN
China
Prior art keywords
interface
processing unit
circuit
communication service
service type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 201010118396
Other languages
Chinese (zh)
Other versions
CN101800818B (en
Inventor
刘勇虎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Huawei Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
Priority to CN2010101183961A priority Critical patent/CN101800818B/en
Publication of CN101800818A publication Critical patent/CN101800818A/en
Application granted granted Critical
Publication of CN101800818B publication Critical patent/CN101800818B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

本发明提供一种语音网关设备及语音网关的通信处理方法,设备包括:分别与CS域或PS域通信业务对应的两个RJ11接口、调制解调电路、与调制解调电路连接的处理单元,每个RJ11接口与处理单元之间连接电平检测电路,每个RJ11接口与调制解调电路之间连接开关电路;处理单元用于若通过电平检测电路检测到对应的RJ11接口的摘机状态时,控制该RJ11接口的开关电路导通,并根据该RJ11接口的通信业务类型,启动相应的数据处理流程;以及用于根据对接收到的来电数据的通信业务类型的识别,启动相应的数据处理流程,控制对应的RJ11接口的开关电路导通。本发明实施例在用户无需为不同数据业务类型添加前导码的前提下,实现对CS域和PS域通信业务的同时支持,且降低了成本。

Figure 201010118396

The present invention provides a voice gateway device and a communication processing method for the voice gateway. The device includes: two RJ11 interfaces respectively corresponding to CS domain or PS domain communication services, a modulation and demodulation circuit, and a processing unit connected to the modulation and demodulation circuit, A level detection circuit is connected between each RJ11 interface and the processing unit, and a switch circuit is connected between each RJ11 interface and the modulation and demodulation circuit; the processing unit is used to detect the off-hook state of the corresponding RJ11 interface through the level detection circuit , control the switch circuit of the RJ11 interface to be turned on, and start the corresponding data processing flow according to the communication service type of the RJ11 interface; The processing flow is to control the conduction of the switch circuit of the corresponding RJ11 interface. In the embodiment of the present invention, under the premise that users do not need to add preambles for different types of data services, the simultaneous support of CS domain and PS domain communication services is realized, and the cost is reduced.

Figure 201010118396

Description

语音网关设备及语音网关的通信处理方法 Voice gateway device and communication processing method of voice gateway

技术领域technical field

本发明实施例涉及通信技术领域,尤其涉及一种语音网关设备及语音网关的通信处理方法。The embodiment of the present invention relates to the technical field of communication, and in particular to a voice gateway device and a communication processing method of the voice gateway.

背景技术Background technique

随着网络技术的发展,语音业务正逐渐从传统的基于电路交换(CircuitSwitch,简称CS)域的语音向基于分组交换(Packet Switch,简称PS)域的互联网协议承载语音(Voice over Internet Protocol,简称VoIP)过渡,相应地,传真业务也正逐渐从传统的CS域的模拟传真向基于IP的网络传真(Fax over IP,简称FoIP)过渡。因而在目前的通信网络中,CS域的语音/传真业务与PS域的VoIP/FoIP在较长一段时间将处于并存的状态。针对这种过渡状况,目前出现了多种能够同时支持CS域的语音/传真业务,以及支持PS域的VoIP/FoIP业务的过渡性的语音终端产品,典型的为具有路由切换功能的语音网关设备。With the development of network technology, the voice service is gradually changing from traditional voice based on Circuit Switch (CS) domain to Voice over Internet Protocol (Voice over Internet Protocol) based on Packet Switch (PS) domain. Correspondingly, the fax service is gradually transitioning from analog fax in the traditional CS domain to IP-based network fax (Fax over IP, referred to as FoIP). Therefore, in the current communication network, voice/fax services in the CS domain and VoIP/FoIP in the PS domain will coexist for a long period of time. In response to this transitional situation, there are currently a variety of transitional voice terminal products that can simultaneously support voice/fax services in the CS domain and VoIP/FoIP services in the PS domain, typically voice gateway devices with routing switching functions .

现有技术中,这类语音网关设备通常有两种实现方案:第一种方案为通过为不同通信类型业务对应配置不同的前导码实现。即在此方案中,用户在进行拨号时,针对CS域或PS域的不同通信类型添加不同的前导码,语音网关设备根据获取到的不同的前导码,启动相应的通信业务的处理流程;第二种方案则通过额外增加一路调制解调电路而实现,即在语音网关设备中,针对两种通信业务类型,分别对应设置两路调制解调电路,处理单元接收到对应的调制解调电路的通信数据,则进入相应的通信业务的处理流程。In the prior art, there are generally two implementation schemes for this type of voice gateway device: the first scheme is realized by correspondingly configuring different preambles for different communication types of services. That is to say, in this solution, when the user dials, different preambles are added for different communication types in the CS domain or PS domain, and the voice gateway device starts the corresponding communication service processing process according to the obtained different preambles; The second solution is realized by adding an additional modulation and demodulation circuit, that is, in the voice gateway device, two modulation and demodulation circuits are respectively set for the two types of communication services, and the processing unit receives the information of the corresponding modulation and demodulation circuit. The communication data enters the corresponding communication service processing flow.

但是发明人在实现本发明的过程中发现,上述两种方案各自都存在一定缺陷:针对第一种方案,前导码的添加虽然能够使语音网关区分不同通信类型的业务,但是该方案中,语音网关设备只能设置一个通信接口,而且前导码的添加增加了用户使用的复杂度,易用性差,且该方式需要相应地对语音呼叫的处理流程以及整个系统进行更改,非常不利于推广。而对于第二种方案,其在语音网关中针对两种数据通信类型对应设置了两路调制解调电路,相当于在原有的单路调制解调方案的基础上,额外增加了一路调制解调电路,以成本为代价以实现对两种类型通信业务的支持,同样并非一种优化的实施方案。However, the inventor found in the process of realizing the present invention that each of the above two schemes has certain defects: for the first scheme, although the addition of the preamble can enable the voice gateway to distinguish services of different communication types, in this scheme, the voice The gateway device can only be set with one communication interface, and the addition of the preamble increases the complexity of the user's use, and the usability is poor, and this method needs to change the voice call processing flow and the entire system accordingly, which is very unfavorable for promotion. For the second scheme, two modulation and demodulation circuits are set up in the voice gateway for the two types of data communication, which is equivalent to adding an additional modulation and demodulation circuit on the basis of the original single modulation and demodulation scheme. The circuit supports two types of communication services at the expense of cost, which is also not an optimal implementation solution.

发明内容Contents of the invention

本发明实施例提供一种语音网关设备及语音网关的通信处理方法,用以在不提高成本、且不增加用户使用复杂度的前提下,实现多通信接口的、对CS域和PS域通信业务的同时支持。The embodiment of the present invention provides a voice gateway device and a communication processing method of the voice gateway, which are used to realize communication services for CS domain and PS domain with multiple communication interfaces without increasing the cost and the complexity of user use. support at the same time.

为实现上述目的,本发明实施例提供一种语音网关设备,包括:分别与电路交换域通信业务或分组交换域通信业务对应的两个RJ11接口、调制解调电路、以及与所述调制解调电路连接的处理单元,每个所述RJ11接口与所述处理单元之间连接有电平检测电路,每个所述RJ11接口与所述调制解调电路之间连接有开关电路;其中,In order to achieve the above object, the embodiment of the present invention provides a voice gateway device, including: two RJ11 interfaces respectively corresponding to the communication service of the circuit switching domain or the communication service of the packet switching domain, a modulation and demodulation circuit, and a A circuit-connected processing unit, a level detection circuit is connected between each RJ11 interface and the processing unit, and a switch circuit is connected between each RJ11 interface and the modulation and demodulation circuit; wherein,

所述处理单元用于若通过任一所述电平检测电路检测到对应的RJ11接口的摘机状态时,控制所述对应的RJ11接口上连接的开关电路导通,以及控制另一RJ11接口上连接的开关电路关断,并根据与所述对应的RJ11接口对应的通信业务类型,启动相应的数据处理流程;The processing unit is used to control the conduction of the switch circuit connected to the corresponding RJ11 interface if the off-hook state of the corresponding RJ11 interface is detected by any of the level detection circuits, and control the switch circuit connected to the other RJ11 interface. The connected switch circuit is turned off, and a corresponding data processing flow is started according to the communication service type corresponding to the corresponding RJ11 interface;

所述处理单元还用于对接收到的来电数据的通信业务类型进行识别,并根据识别出的通信业务类型,启动相应的数据处理流程,以及控制与所述识别出的通信业务类型对应的RJ11接口上连接的开关电路导通。The processing unit is also used to identify the communication service type of the incoming call data, start the corresponding data processing flow according to the identified communication service type, and control the RJ11 corresponding to the identified communication service type The switch circuit connected to the interface is turned on.

为实现上述目的,本发明实施例还提供一种语音网关的通信处理方法,包括:In order to achieve the above object, the embodiment of the present invention also provides a communication processing method of a voice gateway, including:

在所述语音网关位于主叫侧时,所述语音网关的处理单元若通过设置在所述处理单元和两个RJ11接口中的任一RJ11接口之间的电平检测电路,检测到所述任一RJ11接口处于摘机状态时,控制设置在所述任一RJ11接口和调制解调电路之间的开关电路导通,以及控制另一RJ11接口和调制解调电路之间的开关电路关断,并根据处于摘机状态的所述任一RJ11接口的通信业务类型,启动与所述通信业务类型对相应的数据处理流程;When the voice gateway is on the calling side, if the processing unit of the voice gateway detects that any When an RJ11 interface is in the off-hook state, control the switch circuit arranged between the any RJ11 interface and the modulation and demodulation circuit to be turned on, and control the switch circuit between the other RJ11 interface and the modulation and demodulation circuit to turn off, And according to the communication service type of any one of the RJ11 interfaces in the off-hook state, start the corresponding data processing flow with the communication service type;

在所述语音网关位于被叫侧时,所述处理单元对接收到的来电数据的通信业务类型进行识别,并根据识别出的通信业务类型,控制与所述识别出的通信业务类型对应的RJ11接口上连接的开关电路导通,以及启动与所述识别出的通信业务类型相对应的数据处理流程。When the voice gateway is located at the called side, the processing unit identifies the communication service type of the incoming call data, and controls the RJ11 corresponding to the identified communication service type according to the identified communication service type The switch circuit connected to the interface is turned on, and the data processing flow corresponding to the identified communication service type is started.

本发明实施例提供的语音网关设备及语音网关的通信处理方法,通过为每个接口对应设置检测电路,以及在每个接口与调制解调电路之间设置开关电路,只有处理单元通过检测电路检测到对应接口的摘机状态,或者在被叫过程中,处理单元识别到接收的来电数据为该接口对应的通信业务类型时,才控制打开在对应的接口与调制解调电路之间的开关电路,以及进入相应的数据处理流程,从而使得语音网关设备在无需额外增加一路调制解调电路,以及在用户无需为不同的数据业务类型添加前导码的前提下,便能实现对CS域通信业务和PS域通信业务的同时支持,降低了成本且易用性强,便于推广。In the voice gateway device and the communication processing method of the voice gateway provided by the embodiment of the present invention, by setting a detection circuit corresponding to each interface, and setting a switch circuit between each interface and the modulation and demodulation circuit, only the processing unit can detect To the off-hook state of the corresponding interface, or in the process of being called, when the processing unit recognizes that the incoming call data received is the communication service type corresponding to the interface, it controls to open the switch circuit between the corresponding interface and the modem circuit , and enter the corresponding data processing flow, so that the voice gateway device can realize CS domain communication services and Simultaneous support of PS domain communication services reduces costs and is easy to use and easy to promote.

附图说明Description of drawings

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

图1为本发明实施例提供的一种语音网关设备的结构示意图;FIG. 1 is a schematic structural diagram of a voice gateway device provided by an embodiment of the present invention;

图2为本发明实施例提供的另一种语音网关设备的结构示意图;FIG. 2 is a schematic structural diagram of another voice gateway device provided by an embodiment of the present invention;

图3为本发明实施例的语音网关设备中一种电平检测电路和开关电路的电路示意图;3 is a schematic circuit diagram of a level detection circuit and a switch circuit in a voice gateway device according to an embodiment of the present invention;

图4为本发明实施例的语音网关设备中另一种电平检测电路和开关电路的电路示意图;4 is a schematic circuit diagram of another level detection circuit and a switch circuit in a voice gateway device according to an embodiment of the present invention;

图5为本发明实施例提供的一种语音网关的通信处理方法的流程图;FIG. 5 is a flowchart of a communication processing method of a voice gateway provided by an embodiment of the present invention;

图6为本发明实施例提供的另一种语音网关的通信处理方法的流程图。FIG. 6 is a flow chart of another communication processing method for a voice gateway provided by an embodiment of the present invention.

具体实施方式Detailed ways

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

图1为本发明实施例提供的一种语音网关设备的结构示意图,如图1所示,本实施例的语音网关设备包括:两个RJ11接口1、调制解调电路2、以及与该调制解调电路2连接的处理单元3。其中,该两个RJ11接口1分别与CS域通信业务或者PS域通信业务相对应,即对于单独一个RJ11接口而言,该RJ11接口或者专用于CS域通信业务的终端设备,例如传统的基于电话网络的电话机和传真机,或者专用于PS域通信业务的终端设备,例如基于IP网络的VoIP电话机以及FoIP传真机。并且,每个RJ11接口1和处理单元3之间均设置有一电平检测电路4,每个RJ11接口1与调制解调电路2之间均设置有一开关电路5。Fig. 1 is a schematic structural diagram of a voice gateway device provided by an embodiment of the present invention. As shown in Fig. 1, the voice gateway device of this embodiment includes: two RJ11 interfaces 1, a modulation and demodulation circuit 2, and a The processing unit 3 to which the circuit 2 is connected. Wherein, the two RJ11 interfaces 1 correspond to CS domain communication services or PS domain communication services respectively, that is, for a single RJ11 interface, the RJ11 interface or terminal equipment dedicated to CS domain communication services, such as traditional telephone-based Network telephones and fax machines, or terminal equipment dedicated to PS domain communication services, such as VoIP telephones and FoIP fax machines based on IP networks. Moreover, a level detection circuit 4 is provided between each RJ11 interface 1 and the processing unit 3 , and a switch circuit 5 is provided between each RJ11 interface 1 and the modulation and demodulation circuit 2 .

具体地,对于每一个电平检测电路4而言,该电平检测电路4与对应的RJ11接口1以及处理单元3相连接,当对应的RJ11接口1处于摘机或者挂机状态时,电平检测电路4将根据检测到的状态输出不同电平的信号给处理单元3。此外,对于每一个开关电路5而言,该开关电路5与对应的RJ11接口1以及调制解调电路2连接,且该开关电路5的控制端连接处理单元3,当处理单元3输出不同电平的控制信号时,开关电路5将在该控制信号的控制下相应地打开或者闭合,从而使得调制解调电路2和与对应的RJ11接口1之间的通信链路也相应地处于导通或者关断的状态。Specifically, for each level detection circuit 4, the level detection circuit 4 is connected with the corresponding RJ11 interface 1 and the processing unit 3, when the corresponding RJ11 interface 1 is in the off-hook or on-hook state, the level detection The circuit 4 will output signals of different levels to the processing unit 3 according to the detected state. In addition, for each switch circuit 5, the switch circuit 5 is connected to the corresponding RJ11 interface 1 and the modulation and demodulation circuit 2, and the control terminal of the switch circuit 5 is connected to the processing unit 3, when the processing unit 3 outputs different levels When the control signal is received, the switch circuit 5 will be opened or closed accordingly under the control of the control signal, so that the communication link between the modulation and demodulation circuit 2 and the corresponding RJ11 interface 1 is also on or off accordingly. broken state.

具体地,处理单元3根据对一定情形的检测与识别,控制设置在RJ11接口1以及调制解调电路2之间的开关电路的打开或闭合,从而使相应的RJ11接口1与调制解调电路2之间的通信链路导通或者关断,并且还能根据检测或识别到的结果,决定具体应进入哪一种通信业务的数据处理流程。在本实施例中,处理单元3将在下述两种情况下,控制RJ11接口1和调制解调电路2之间的开关电路5处于导通的状态。Specifically, the processing unit 3 controls the opening or closing of the switch circuit arranged between the RJ11 interface 1 and the modulation and demodulation circuit 2 according to the detection and identification of a certain situation, so that the corresponding RJ11 interface 1 and the modulation and demodulation circuit 2 The communication link between them is turned on or off, and the data processing flow of which communication service should be entered is determined according to the detection or identification result. In this embodiment, the processing unit 3 will control the switch circuit 5 between the RJ11 interface 1 and the modulation and demodulation circuit 2 to be in a conducting state under the following two situations.

第一种情况应用在语音网关设备连接的终端设备位于主叫侧时。具体地,当处理单元3通过任一电平检测电路4,检测到与该电平检测电路4连接的RJ11接口1处于摘机状态时,得知与该RJ11接口1连接的语音终端设备将发起一通信业务。于是,为了使该语音终端设备需传送给对端终端的数据能够通过该RJ11接口1传送至调制解调电路2进行调制解调处理,进而使处理单元3能将处理后的通信数据以有线或无线的方式发送给此次通信业务中的对端终端,以及为了使得处理单元3在此次通信过程中,能够将接收到对端终端发送的通信数据通过调制解调电路2、以及通过RJ11接口1传送至连接的语音终端设备,此时,处理单元3将控制对应RJ11接口1的开关电路5闭合,以使得对应的RJ11接口1与调制解调电路2之间的通信链路导通,并控制另一RJ11接口1上连接的开关电路5打开,以使得另一RJ11接口1与调制解调电路2之间的通信链路关断。从而与导通的RJ11接口1连接的语音终端设备能够通过该RJ11接口1、以及通过语音网关设备,与对端终端进行语音或者传真业务的数据通信。The first case applies when the terminal device connected to the voice gateway device is on the calling side. Specifically, when the processing unit 3 detects that the RJ11 interface 1 connected to the level detection circuit 4 is in the off-hook state through any level detection circuit 4, it is known that the voice terminal equipment connected to the RJ11 interface 1 will initiate 1. Communication business. Therefore, in order to enable the voice terminal equipment to transmit data to the peer terminal, it can be transmitted to the modulation and demodulation circuit 2 through the RJ11 interface 1 for modulation and demodulation processing, and then the processing unit 3 can transmit the processed communication data via wired or Send it wirelessly to the peer terminal in this communication service, and in order to enable the processing unit 3 to receive the communication data sent by the peer terminal through the modulation and demodulation circuit 2 and through the RJ11 interface during this communication process 1 to the connected voice terminal equipment, at this time, the processing unit 3 will control the switch circuit 5 corresponding to the RJ11 interface 1 to close, so that the communication link between the corresponding RJ11 interface 1 and the modulation and demodulation circuit 2 is turned on, and The switch circuit 5 connected to the other RJ11 interface 1 is controlled to be turned on, so that the communication link between the other RJ11 interface 1 and the modulation and demodulation circuit 2 is turned off. Therefore, the voice terminal device connected to the turned-on RJ11 interface 1 can perform voice or fax service data communication with the opposite terminal through the RJ11 interface 1 and the voice gateway device.

进一步地,由于在本实施例中,每个RJ11接口1都与一具体的通信业务类型,即CS域通信业务或者PS域通信业务相对应。因此,为了使处理单元3在控制导通了对应的RJ11接口1与调制解调电路2的通信链路后,在后续对与该RJ11接口1连接的语音终端设备的通信数据的处理过程中,能够根据语音终端设备的通信业务类型,进入相应的数据处理流流程,处理单元3还将根据与该RJ11接口1对应的通信业务类型,启动相应的数据处理流程,以使处理单元在接收到通信数据后,能够进入到相应的与该通信数据的类型对应的数据处理流程中,对该通信数据进行相应的数据处理。Further, in this embodiment, each RJ11 interface 1 corresponds to a specific type of communication service, that is, a CS domain communication service or a PS domain communication service. Therefore, in order to make the processing unit 3 control and turn on the communication link between the corresponding RJ11 interface 1 and the modulation and demodulation circuit 2, in the subsequent processing of the communication data of the voice terminal equipment connected to the RJ11 interface 1, According to the communication service type of the voice terminal equipment, enter the corresponding data processing flow process, and the processing unit 3 will also start the corresponding data processing flow process according to the communication service type corresponding to the RJ11 interface 1, so that the processing unit receives the communication After receiving the data, it can enter the corresponding data processing flow corresponding to the type of the communication data, and perform corresponding data processing on the communication data.

第二种情况应用在语音网关设备连接的语音终端设备位于被叫侧时。具体地,当处理单元3通过有线、或者无线的方式接收到对端终端发送的来电数据时,将首先对该来电数据的数据业务类型进行识别,以识别该来电数据是属于CS域的业务数据或是PS域的业务数据。由于对于CS域和PS域的通信业务而言,这两种通信业务所承载、传输的网络类型是不一样的,因此来电数据的数据格式也将不同,处理单元3通过对来电数据的数据格式的识别,获知来电数据的通信业务类型,进而可以识别出此次来电所对应的RJ11接口1。于是,为了使对应RJ11接口1上连接的语音终端设备能够和对端终端进行数据通信,处理单元3根据识别到的结果,控制与该RJ11接口1对应的开关电路5闭合,使得对应的RJ11接口1与调制解调电路2之间的通信链路处于导通的状态,并控制另一RJ11接口1上连接的开关电路5打开,使得另一RJ11接口1与调制解调电路2之间的通信链路处于关断的状态。从而处理单元3通过调制解调电路2输出的数据便可以通过导通的RJ11接口1传达至连接的语音终端设备。The second case applies when the voice terminal connected to the voice gateway is on the called side. Specifically, when the processing unit 3 receives the incoming call data sent by the peer terminal in a wired or wireless manner, it will first identify the data service type of the incoming call data, so as to identify that the incoming call data is service data belonging to the CS domain Or service data in the PS domain. Since the communication services of the CS domain and the PS domain, the network types carried and transmitted by these two communication services are different, so the data format of the incoming call data will also be different, and the processing unit 3 passes the data format of the incoming call data. The identification of the communication service type of the incoming call data is obtained, and then the RJ11 interface 1 corresponding to the incoming call can be identified. Therefore, in order to enable the voice terminal equipment connected to the corresponding RJ11 interface 1 to perform data communication with the opposite terminal, the processing unit 3 controls the switch circuit 5 corresponding to the RJ11 interface 1 to close according to the recognized result, so that the corresponding RJ11 interface The communication link between 1 and the modulation and demodulation circuit 2 is in a conducting state, and the switch circuit 5 connected to the other RJ11 interface 1 is controlled to open, so that the communication between the other RJ11 interface 1 and the modulation and demodulation circuit 2 The link is down. Thus, the data output by the processing unit 3 through the modulation and demodulation circuit 2 can be transmitted to the connected voice terminal equipment through the conducting RJ11 interface 1 .

进一步地,为了使处理单元3在控制导通了对应的RJ11接口1与调制解调电路2的通信链路后,在后续对与RJ11接口1连接的终端设备的通信数据的处理过程中,能够根据语音终端设备对应的通信业务类型,进入相应的数据处理流程。处理单元3还将根据识别到的通信业务类型,启动相应的数据处理处理流程,以使处理单元在接收到此次通信业务中的通信数据后,能够进入到相应的数据处理流程,以对接收到的通信数据进行相应的数据处理。Further, in order to enable the processing unit 3 to control and turn on the communication link between the corresponding RJ11 interface 1 and the modulation and demodulation circuit 2, in the subsequent processing of the communication data of the terminal equipment connected to the RJ11 interface 1, it can According to the communication service type corresponding to the voice terminal device, enter the corresponding data processing flow. The processing unit 3 will also start the corresponding data processing process according to the identified communication service type, so that the processing unit can enter the corresponding data processing process after receiving the communication data in the communication service, so as to receive The received communication data is processed accordingly.

如此一来,通过处理单元对语音网关设备处于来电或去电状态的分别控制,在无需为各种通信业务类型添加前导码,以及无需额外增加一路调制解调电路的情况下,本实施例的语音网关设备也能够通过为每个RJ11接口对应设置的电平检测电路和开关电路,对两种通信业务类型进行同时支持,且能够根据对两种通信业务类型的智能识别,对通信数据进入相应的数据处理单元进行处理。In this way, through the separate control of the voice gateway device in the incoming call or outgoing call state by the processing unit, there is no need to add preambles for various types of communication services, and no need to add an additional modulation and demodulation circuit. The voice gateway device can also support two communication service types at the same time through the level detection circuit and switch circuit correspondingly set for each RJ11 interface, and can enter the corresponding communication data according to the intelligent identification of the two communication service types. data processing unit for processing.

本实施例提供一种语音网关设备,通过为每个接口对应设置检测电路,以及在每个接口与调制解调电路之间设置开关电路,只有处理单元通过检测电路检测到对应接口的摘机状态,或者在被叫过程中,处理单元识别到接收的来电数据为该接口对应的通信业务类型时,才控制打开在对应的接口与调制解调电路之间的开关电路,以及进入相应的数据处理流程,从而使得语音网关设备在无需额外增加一路调制解调电路,以及在用户无需为不同的数据业务类型添加前导码的前提下,便能实现对CS域通信业务和PS域通信业务的同时支持,降低了成本且易用性强,便于推广。This embodiment provides a voice gateway device. By setting a detection circuit for each interface and setting a switch circuit between each interface and the modulation and demodulation circuit, only the processing unit detects the off-hook state of the corresponding interface through the detection circuit. , or in the process of being called, when the processing unit recognizes that the incoming call data received is the communication service type corresponding to the interface, it controls to open the switch circuit between the corresponding interface and the modem circuit, and enters into the corresponding data processing process, so that the voice gateway device can realize simultaneous support for CS domain communication services and PS domain communication services without adding an additional modem circuit and under the premise that users do not need to add preambles for different data service types , reduces the cost and is easy to use and easy to promote.

图2为本发明实施例提供的另一种语音网关设备的结构示意图。如图2所示,在上一实施例的基础上,本实施例的语音网关设备中,处理单元3可以包括:第一控制单元31和第二控制单元32。其中第一控制单元31还包括:检测子单元311、第一开关控制子单元312、查询子单元313以及第一启动子单元314。FIG. 2 is a schematic structural diagram of another voice gateway device provided by an embodiment of the present invention. As shown in FIG. 2 , on the basis of the previous embodiment, in the voice gateway device of this embodiment, the processing unit 3 may include: a first control unit 31 and a second control unit 32 . The first control unit 31 further includes: a detection subunit 311 , a first switch control subunit 312 , a query subunit 313 and a first promoter unit 314 .

具体地,电平检测电路4的输入端与对应的RJ11接口1的TIP管脚连接(图中未示出),输出端与处理单元3连接,且该电平检测电路4用于根据连接的TIP管脚的不同电平,输出不同电平的检测信号给处理单元3。检测子单元311用于通过电平检测电路4输出的检测信号,对与该电平检测电路4对应的RJ11接口1的TIP管脚的电平进行检测。具体地,对于一RJ11接口而言,其内部通常设置有两个管脚:TIP管脚和RING管脚。在主叫过程中,当与该RJ11接口连接的语音终端设备处于不同的状态时,TIP管脚的电平将发生变化:当语音终端设备处于挂机状态时,TIP管脚的电平为低电平;而语音终端设备处于摘机状态时,TIP管脚的电平将为-50V左右的负高压电平。而由于电平检测电路4与对应RJ11接口的该TIP管脚连接,且会根据连接的TIP管脚的电平变化,输出不同电平的检测信号,因此,根据RJ11接口上TIP管脚的明显的电平变化,检测子单元311可以通过电平检测电路检测到对应RJ11接口的摘机和挂机状态。Specifically, the input end of the level detection circuit 4 is connected to the TIP pin of the corresponding RJ11 interface 1 (not shown in the figure), the output end is connected to the processing unit 3, and the level detection circuit 4 is used for Different levels of the TIP pins output detection signals of different levels to the processing unit 3 . The detection subunit 311 is used to detect the level of the TIP pin of the RJ11 interface 1 corresponding to the level detection circuit 4 through the detection signal output by the level detection circuit 4 . Specifically, for an RJ11 interface, there are generally two pins inside it: a TIP pin and a RING pin. During the calling process, when the voice terminal equipment connected to the RJ11 interface is in a different state, the level of the TIP pin will change: when the voice terminal equipment is in the on-hook state, the level of the TIP pin is low. When the voice terminal equipment is in the off-hook state, the level of the TIP pin will be a negative high voltage level of about -50V. And because the level detection circuit 4 is connected with the TIP pin corresponding to the RJ11 interface, and can output detection signals of different levels according to the level change of the connected TIP pin, therefore, according to the obvious TIP pin on the RJ11 interface The detection subunit 311 can detect the off-hook and on-hook states of the corresponding RJ11 interface through the level detection circuit.

而第一开关控制子单元312则用于,当检测子单元311检测到对应RJ11接口的TIP管脚为负高压电平,即检测到RJ11接口处于摘机状态时,则控制对应的RJ11接口上连接的开关电路导通,并控制另一RJ11接口上连接的开关电路关断。具体地,第一开关控制子单元312在检测到RJ11接口的摘机状态时,通过发送相应的控制信号给开关电路而实现对开关电路的导通及关断。例如,在本实施例中,当第一开关控制子单元312需要使对应的开关电路导通时,输出第一电平的控制信号给该开关电路,该开关电路在该第一电平的控制信号的作用下,将处于闭合的状态,从而使得对应RJ11接口与调制解调电路之间的通信链路导通,而当第一开关控制子单元312需要使另一开关电路关断时,输出第二电平的控制信号给该开关电路,该开关电路在该第二电平的控制信号的作用下,将处于打开的状态,从而使得另一RJ11接口与调制解调电路之间的通信链路关断。The first switch control subunit 312 is used to control the corresponding RJ11 interface when the detection subunit 311 detects that the TIP pin of the corresponding RJ11 interface is a negative high-voltage level, that is, when it detects that the RJ11 interface is in the off-hook state. The switch circuit connected to the above-mentioned RJ11 interface is turned on, and the switch circuit connected to the other RJ11 interface is controlled to be turned off. Specifically, when detecting the off-hook state of the RJ11 interface, the first switch control subunit 312 sends a corresponding control signal to the switch circuit to turn on and off the switch circuit. For example, in this embodiment, when the first switch control subunit 312 needs to turn on the corresponding switch circuit, it outputs a control signal of the first level to the switch circuit, and the control signal of the switch circuit at the first level Under the action of the signal, it will be in a closed state, so that the communication link between the corresponding RJ11 interface and the modulation and demodulation circuit is turned on, and when the first switch control subunit 312 needs to turn off another switch circuit, the output The control signal of the second level is given to the switch circuit, and the switch circuit will be in an open state under the action of the control signal of the second level, so that the communication link between the other RJ11 interface and the modulation and demodulation circuit Road shut down.

此外,查询子单元313用于在控制对应的开关电路导通后,对该对应的RJ11接口的通信业务类型进行查询,即查询该对应的RJ11接口是为CS域通信业务类型还是为PS域的通信业务类型;而第一启动子单元314用于根据查询子单元313查询到的对应的RJ11接口的通信业务类型,启动相应的数据处理单元,以进入相应的数据处理流程。In addition, the query subunit 313 is used to query the communication service type of the corresponding RJ11 interface after controlling the corresponding switch circuit to be turned on, that is, to query whether the corresponding RJ11 interface is a CS domain communication service type or a PS domain communication service type. communication service type; and the first starting subunit 314 is used to start the corresponding data processing unit according to the communication service type of the corresponding RJ11 interface inquired by the query subunit 313, so as to enter the corresponding data processing flow.

进一步地,第一控制单元31还可以包括第二开关控制子单元315,用于若检测子单元311检测到TIP管脚信号为低电平,即检测到RJ11接口处于挂机状态时,则控制对应的RJ11接口上连接的开关电路关断,并控制另一RJ11接口上连接的开关电路导通。同样,第二开关控制子单元315在检测到RJ11接口的挂机状态时,也可以通过发送相应的控制信号给开关电路而实现对开关电路的关断。具体地,在本实施例中,当第二开关控制子单元315需要使对应的开关电路关断时,输出第二电平的控制信号给该开关电路,该开关电路在该第二电平的控制信号的作用下,将处于打开的状态,从而使得对应RJ11接口与调制解调电路之间的通信链路关断,同时第二开关控制子单元315输出第一电平的控制信号给另一开关电路,另一开关电路在第一电平的控制信号的作用下,处于关闭的状态,从而使得对应RJ11接口与调制解调电路之间的通信链路导通。Further, the first control unit 31 may also include a second switch control subunit 315, which is used to control the corresponding The switch circuit connected to the RJ11 interface is turned off, and the switch circuit connected to the other RJ11 interface is controlled to be turned on. Similarly, when the second switch control subunit 315 detects the on-hook state of the RJ11 interface, it can also turn off the switch circuit by sending a corresponding control signal to the switch circuit. Specifically, in this embodiment, when the second switch control subunit 315 needs to turn off the corresponding switch circuit, it outputs a control signal of the second level to the switch circuit, and the switch circuit at the second level Under the action of the control signal, it will be in an open state, so that the communication link between the corresponding RJ11 interface and the modulation and demodulation circuit is shut down, and at the same time, the second switch control subunit 315 outputs a control signal of the first level to another The switch circuit, the other switch circuit is in a closed state under the action of the control signal of the first level, so that the communication link between the corresponding RJ11 interface and the modulation and demodulation circuit is turned on.

此外,在本实施例中,处理单元3中的第二控制单元32可以包括:识别子单元321、第三开关控制子单元322、第二启动子单元323和发送子单元324。其中,识别子单元321用于对接收到的来电数据是属于CS域通信业务还是属于PS域通信业务的数据进行识别;第三开关控制子单元322用于若识别子单元321识别到来电数据为CS域通信业务类型的数据时,输出第一电平的控制信号给与该CS域通信业务对应的RJ11接口上连接的开关电路,以使该开关电路导通,而若识别到来电数据为PS域通信业务类型的数据时,输出第一电平的控制信号给与该PS域通信业务对应的RJ11接口上连接的开关电路,以使该开关电路导通。第二启动子单元323用于根据识别子单元321识别出的来电数据的通信业务类型,启动相应的数据处理流程。In addition, in this embodiment, the second control unit 32 in the processing unit 3 may include: an identification subunit 321 , a third switch control subunit 322 , a second promoter subunit 323 and a sending subunit 324 . Wherein, the identifying subunit 321 is used to identify whether the received incoming call data belongs to the CS domain communication service or the data belonging to the PS domain communication service; the third switch control subunit 322 is used to identify whether the incoming call data is When the data of the CS domain communication service type is used, the control signal of the first level is output to the switch circuit connected to the RJ11 interface corresponding to the CS domain communication service, so that the switch circuit is turned on, and if the incoming call data is identified as PS When the data of the domain communication service type is used, a control signal of the first level is output to the switch circuit connected to the RJ11 interface corresponding to the PS domain communication service, so that the switch circuit is turned on. The second starting subunit 323 is configured to start a corresponding data processing flow according to the communication service type of the incoming call data identified by the identifying subunit 321 .

而发送子单元324则用于根据识别子单元321识别出的来电数据的通信业务类型,向调制解调电路发送来电指示信息,以使调制解调电路能够通过第三开关控制子单元322控制导通的开关电路,向与识别子单元321识别出的通信业务类型对应的RJ11接口输出来电信号,从而使得与该RJ11接口连接的语音终端设备产生振铃信号。The sending subunit 324 is used to send the incoming call indication information to the modulation and demodulation circuit according to the communication service type of the incoming call data identified by the identification subunit 321, so that the modulation and demodulation circuit can control the transmission through the third switch control subunit 322. The switched circuit is turned on to output an incoming call signal to the RJ11 interface corresponding to the communication service type identified by the identification subunit 321, so that the voice terminal connected to the RJ11 interface generates a ringing signal.

具体地,本实施例中,电平检测电路4和开关电路5可以通过一定的元器件得以实现。例如,对于电平检测电路4而言,其工作原理在于根据对应的RJ11接口上TIP管脚的电平的不同,输出不同电平的检测信号给处理单元中的第一开关控制子单元。因此,实际应用中,电平检测电路4可以通过三极管或者光耦器件得以实现。而对于开关电路5而言,其工作原理在于根据处理单元输出的不同电平的控制信号,处于打开或者闭合的状态,以使对应的RJ11接口与调制解调电路之间的通信链路导通或者关断。因此,在实际应用中,开关电路5可以通过开关管或者继电器得以实现。Specifically, in this embodiment, the level detection circuit 4 and the switch circuit 5 can be realized by certain components. For example, the working principle of the level detection circuit 4 is to output detection signals of different levels to the first switch control subunit in the processing unit according to the level of the TIP pin on the corresponding RJ11 interface. Therefore, in practical applications, the level detection circuit 4 can be realized by a triode or an optocoupler device. As for the switch circuit 5, its working principle is to be in an open or closed state according to the control signals of different levels output by the processing unit, so that the communication link between the corresponding RJ11 interface and the modulation and demodulation circuit is turned on or shut down. Therefore, in practical applications, the switch circuit 5 can be realized by a switch tube or a relay.

图3为本发明实施例的语音网关设备中一种电平检测电路和开关电路的电路示意图。在图3中,以电平检测电路为三极管,开关电路为开关管为例,对本实施例的语音网关设备的部分电路结构进行描述。具体地,如图3所示,三极管Q1、电阻R1~R5为电平检测电路部分,开关管Q2、Q3以及电阻R6、R7为开关电路部分。其中,电平检测电路的输入端与对应的RJ11接口的TIP管脚连接,输出端与处理单元的GPIO1管脚连接;开关电路的输入、输出端分别与对应的RJ11接口的TIP管脚以及处理单元连接,控制端与处理单元的GPIO2管脚连接。FIG. 3 is a schematic circuit diagram of a level detection circuit and a switch circuit in the voice gateway device according to the embodiment of the present invention. In FIG. 3 , taking the level detection circuit as a transistor and the switch circuit as a switch as an example, the partial circuit structure of the voice gateway device in this embodiment is described. Specifically, as shown in FIG. 3 , the transistor Q1 and the resistors R1 to R5 are part of the level detection circuit, and the switch tubes Q2 and Q3 and the resistors R6 and R7 are part of the switch circuit. Wherein, the input end of the level detection circuit is connected to the TIP pin of the corresponding RJ11 interface, and the output end is connected to the GPIO1 pin of the processing unit; the input and output ends of the switch circuit are respectively connected to the TIP pin of the corresponding RJ11 interface and the processing unit. The unit is connected, and the control terminal is connected to the GPIO2 pin of the processing unit.

当RJ11接口处于摘机状态时,TIP管脚输入的TIP信号为负高电平,三极管Q1导通,处理单元的GPIO1管脚上的检测信号为低电平,处理单元检测到这个信号,获知对应的RJ11接口的摘机状态,于是将该RJ11接口上连接的开关电路的控制端GPIO2的信号置为高电平,开关管Q2在GPIO2的高电平的作用下截止,从而与TIP信号一起控制开关管Q3的导通,从而使得该开关电路处于导通的状态。而对于另一RJ11接口而言,由于在本实施例中,开关电路在默认状态下便为关断的状态,即另一开关电路的控制端GPIO2’(图中未示出)的信号默认状态下位低电平的状态,因此处理单元无需对另一开关电路的控制端GPIO2’做任何处理。When the RJ11 interface is in the off-hook state, the TIP signal input by the TIP pin is a negative high level, the transistor Q1 is turned on, and the detection signal on the GPIO1 pin of the processing unit is low level, the processing unit detects this signal and knows The off-hook state of the corresponding RJ11 interface, so the signal of the control terminal GPIO2 of the switch circuit connected to the RJ11 interface is set to a high level, and the switch tube Q2 is cut off under the action of the high level of GPIO2, thereby together with the TIP signal The conduction of the switch tube Q3 is controlled, so that the switch circuit is in a conduction state. For another RJ11 interface, because in this embodiment, the switch circuit is in the off state by default, that is, the signal default state of the control terminal GPIO2' (not shown in the figure) of another switch circuit The low level state of the lower bit, so the processing unit does not need to do any processing on the control terminal GPIO2' of another switch circuit.

而当RJ11接口处于挂机状态时,TIP管脚输入的TIP信号为低电平,三极管Q1截止,处理单元的GPIO1管脚上的检测信号为高电平,处理单元检测到这个信号,获知对应的RJ11接口的挂机状态,于是将该RJ11接口上连接的开关电路的控制端GPIO2的信号置为低电平,开关管Q2在GPIO2的低电平的作用下导通,从而与TIP信号一起控制开关管Q3的截止,从而使得该开关电路处于截止的状态。When the RJ11 interface is in the on-hook state, the TIP signal input by the TIP pin is low level, the transistor Q1 is cut off, the detection signal on the GPIO1 pin of the processing unit is high level, the processing unit detects this signal, and knows the corresponding In the on-hook state of the RJ11 interface, the signal of the control terminal GPIO2 of the switch circuit connected to the RJ11 interface is set to a low level, and the switch tube Q2 is turned on under the action of the low level of GPIO2, thereby controlling the switch together with the TIP signal The cut-off of the tube Q3 makes the switch circuit in the cut-off state.

图4为本发明实施例的语音网关设备中另一种电平检测电路和开关电路的电路示意图。在图4中,以电平检测电路为光耦器件,开关电路为继电器为例,对本实施例的语音网关设备的部分电路结构进行描述。具体地,如图4所示,光耦器件D1、电阻R1和R2为电平检测电路部分,继电器D2、三级管Q1以及电阻R3、R4和R5为开关电路部分。其中,电平检测电路的输入端与对应的RJ11接口的TIP管脚连接,输出端与处理单元的GPIO1管脚连接;开关电路的输入、输出端分别与对应的RJ11接口的TIP管脚以及处理单元连接,控制端与处理单元的GPIO2管脚连接。在默认状态,两路继电器都处于导通状态。FIG. 4 is a schematic circuit diagram of another level detection circuit and switch circuit in the voice gateway device according to the embodiment of the present invention. In FIG. 4 , the partial circuit structure of the voice gateway device in this embodiment is described by taking the level detection circuit as an optocoupler device and the switch circuit as a relay as an example. Specifically, as shown in FIG. 4 , the optocoupler D1, resistors R1 and R2 are part of the level detection circuit, and the relay D2, transistor Q1 and resistors R3, R4 and R5 are part of the switch circuit. Wherein, the input end of the level detection circuit is connected to the TIP pin of the corresponding RJ11 interface, and the output end is connected to the GPIO1 pin of the processing unit; the input and output ends of the switch circuit are respectively connected to the TIP pin of the corresponding RJ11 interface and the processing unit. The unit is connected, and the control terminal is connected to the GPIO2 pin of the processing unit. In the default state, both relays are on.

当RJ11接口处于摘机状态时,TIP管脚及光耦器件D1控制端有电流通过,则D1的感应端处于导通状态,处理单元的GPIO1管脚上的检测信号为低电平,处理单元检测到这个信号,获知对应的RJ11接口的摘机状态,由于在本实施例中,开关电路的默认状态便为导通状态,因此处理单元无需对检测到有摘机状态的RJ11接口做控制处理,只需将另一RJ11接口上连接的开关电路的控制端GPIO2’的信号置为高电平,使得另一开关电路的三级管Q1’在GPIO2’的高电平的作用下截止,从而控制另一开关电路的继电器D2’导通,使得另一RJ11接口上的开关电路处于关断的状态即可(图中未示出)。When the RJ11 interface is in the off-hook state, current flows through the TIP pin and the control terminal of the optocoupler device D1, then the sensing terminal of D1 is in the conduction state, the detection signal on the GPIO1 pin of the processing unit is low level, and the processing unit This signal is detected, and the off-hook state of the corresponding RJ11 interface is known. Because in this embodiment, the default state of the switch circuit is a conduction state, the processing unit does not need to perform control processing on the RJ11 interface that is detected to have an off-hook state. , just set the signal of the control terminal GPIO2' of the switch circuit connected to the other RJ11 interface to a high level, so that the triode Q1' of the other switch circuit is cut off under the action of the high level of GPIO2', thus The relay D2' for controlling the other switch circuit is turned on so that the switch circuit on the other RJ11 interface is in the off state (not shown in the figure).

而当RJ11接口处于挂机状态时,TIP管脚及光耦器件D1控制端没有电流通过,则D1的感应端处于截止状态,处理单元的GPIO1管脚上的检测信号为高电平,处理单元检测到这个信号,获知对应的RJ11接口的挂机状态,于是将该RJ11接口上连接的开关电路的控制端GPIO2的信号置为高电平,三级管Q1在GPIO2的低电平的作用下截止,从而控制继电器D2的截止,使得该开关电路处于截止的状态。When the RJ11 interface is in the on-hook state, there is no current passing through the TIP pin and the control terminal of the optocoupler device D1, then the sensing terminal of D1 is in the cut-off state, the detection signal on the GPIO1 pin of the processing unit is high level, and the processing unit detects After receiving this signal, the on-hook state of the corresponding RJ11 interface is known, so the signal of the control terminal GPIO2 of the switch circuit connected to the RJ11 interface is set to a high level, and the triode Q1 is cut off under the action of the low level of GPIO2. Therefore, the cut-off of the relay D2 is controlled, so that the switch circuit is in a cut-off state.

需要说明的是,在本发明实施例仅以电平检测电路为三极管或光耦器件、以及开关电路为开关管或继电器为例,对本发明实施例的语音网关设备中的电平检测电路和开关电路做出了说明,但是需了解的是,具有上述电平检测电路以及开关电路的相同功能的其它实现方式,同样也可以应用在本发明实施例的语音网关设备中,同样也在本发明实施例所欲保护的范围之内。It should be noted that, in the embodiment of the present invention, only the level detection circuit is a transistor or an optocoupler device, and the switch circuit is a switch tube or a relay as an example. The circuit has been described, but it should be understood that other implementations with the same functions as the above-mentioned level detection circuit and switch circuit can also be applied to the voice gateway device in the embodiment of the present invention, and are also implemented in the present invention. within the scope of protection.

本实施例的语音网关设备,通过为每个接口对应设置检测电路,以及在每个接口与调制解调电路之间设置开关电路,只有处理单元通过检测电路检测到对应接口的摘机状态,或者在被叫过程中,处理单元识别到接收的来电数据为该接口对应的通信业务类型时,才控制打开在对应的接口与调制解调电路之间的开关电路,以及进入相应的数据处理流程,从而使得语音网关设备在无需额外增加一路调制解调电路,以及在用户无需为不同的数据业务类型添加前导码的前提下,便能实现对CS域通信业务和PS域通信业务的同时支持,降低了成本且易用性强,便于推广。In the voice gateway device of this embodiment, by correspondingly setting a detection circuit for each interface, and setting a switch circuit between each interface and the modulation and demodulation circuit, only the processing unit detects the off-hook state of the corresponding interface through the detection circuit, or In the process of being called, when the processing unit recognizes that the incoming call data received is the communication service type corresponding to the interface, it controls to open the switch circuit between the corresponding interface and the modulation and demodulation circuit, and enters the corresponding data processing flow, In this way, the voice gateway device can support CS domain communication services and PS domain communication services at the same time without adding an additional modulation and demodulation circuit, and users do not need to add preambles for different data service types, reducing Cost-effective and easy to use, easy to promote.

图5为本发明实施例提供的一种语音网关的通信处理方法的流程图。如图5所示,本方法包括如下步骤:FIG. 5 is a flowchart of a communication processing method of a voice gateway provided by an embodiment of the present invention. As shown in Figure 5, the method includes the following steps:

步骤100,语音网关的处理单元若通过设置在处理单元和两个RJ11接口中的任一RJ11接口之间的电平检测电路,检测到该RJ11接口处于摘机状态时,控制设置在该RJ11接口和调制解调电路之间的开关电路导通,并根据该RJ11接口的通信业务类型,启动与该通信业务类型对相应的数据处理流程;Step 100, if the processing unit of the voice gateway detects that the RJ11 interface is in the off-hook state through the level detection circuit arranged between the processing unit and any RJ11 interface in the two RJ11 interfaces, the control is set on the RJ11 interface The switching circuit between the modulation and demodulation circuit is turned on, and according to the communication service type of the RJ11 interface, the data processing process corresponding to the communication service type is started;

具体地,在本实施例中,语音网关的两个RJ11接口分别对应于CS域的通信业务和PS域的通信业务。而且在两个RJ11接口的任一RJ11接口与处理单元之间,都设置有一电平检测电路,用于根据对应RJ11接口的摘机或挂机状态,输出不同电平的检测信号。同时,在任一RJ11接口与调制解调电路之间,都设置有一开关电路,该开关电路的控制端与处理单元连接,用于该处理单元输出的控制信号的控制下,相应地处于打开或者闭合的状态,从而使得调制解调电路和与对应的RJ11接口之间的通信链路也相应地处于导通或者关断的状态。Specifically, in this embodiment, the two RJ11 interfaces of the voice gateway respectively correspond to communication services in the CS domain and communication services in the PS domain. Moreover, a level detection circuit is provided between any RJ11 interface of the two RJ11 interfaces and the processing unit, for outputting detection signals of different levels according to the off-hook or on-hook status of the corresponding RJ11 interface. At the same time, a switch circuit is provided between any RJ11 interface and the modulation and demodulation circuit, the control end of the switch circuit is connected to the processing unit, and is used to open or close accordingly under the control of the control signal output by the processing unit state, so that the communication link between the modulation and demodulation circuit and the corresponding RJ11 interface is also in the on or off state accordingly.

具体地,当语音网关位于主叫侧时,当处理单元通过任一电平检测电路,检测到与该电平检测电路连接的RJ11接口处于摘机状态时,得知与该RJ11接口连接的语音终端设备将发起一通信业务。于是,为了使该语音终端设备能够在此次通信业务中与对端终端进行数据通信,处理单元3将控制对应RJ11接口的开关电路闭合,以使得对应的RJ11接口与调制解调电路之间的通信链路导通。从而与该RJ11接口连接的语音终端设备能够通过该RJ11接口、以及通过语音网关设备,与对端终端进行语音或者传真业务的数据通信。Specifically, when the voice gateway is on the calling side, when the processing unit detects that the RJ11 interface connected to the level detection circuit is in an off-hook state through any level detection circuit, it knows that the voice signal connected to the RJ11 interface is in the off-hook state. The terminal device will initiate a communication service. Therefore, in order to enable the voice terminal device to perform data communication with the opposite terminal in this communication service, the processing unit 3 will control the switch circuit corresponding to the RJ11 interface to close, so that the connection between the corresponding RJ11 interface and the modulation and demodulation circuit The communication link is on. Therefore, the voice terminal device connected to the RJ11 interface can perform voice or fax service data communication with the opposite terminal through the RJ11 interface and the voice gateway device.

进一步地,为了使处理单元在控制导通了对应的RJ11接口与调制解调电路的通信链路后,在后续对与该RJ11接口连接的语音终端设备的通信数据的处理过程中,能够根据语音终端设备的通信业务类型,进入相应的数据处理流流程,处理单元还将根据与该RJ11接口对应的通信业务类型,启动相应的数据处理流程,以使处理单元在接收到通信数据后,能够进入到相应的与该通信数据的类型对应的数据处理流程中,对该通信数据进行相应的数据处理。Further, in order to enable the processing unit to control and turn on the communication link between the corresponding RJ11 interface and the modem circuit, in the subsequent processing of the communication data of the voice terminal equipment connected to the RJ11 interface, according to the voice The communication service type of the terminal equipment enters the corresponding data processing flow flow, and the processing unit will also start the corresponding data processing flow according to the communication service type corresponding to the RJ11 interface, so that the processing unit can enter the corresponding data processing flow after receiving the communication data. In the corresponding data processing flow corresponding to the type of the communication data, corresponding data processing is performed on the communication data.

步骤101,处理单元对接收到的来电数据的通信业务类型进行识别,并根据识别出的通信业务类型,启动相应的数据处理流程,以及控制与识别出的通信业务类型对应的RJ11接口上连接的开关电路导通。Step 101, the processing unit identifies the communication service type of the received incoming call data, and starts the corresponding data processing flow according to the identified communication service type, and controls the connection to the RJ11 interface corresponding to the identified communication service type The switch circuit is turned on.

而当语音网关位于被叫侧时,当处理单元通过有线、或者无线的方式接收到对端终端发送的来电数据时,首先对该来电数据的数据业务类型进行识别,以识别该来电数据是属于CS域的业务数据或是PS域的业务数据。而在处理单元通过对来电数据的数据格式的识别,获知来电数据的通信业务类型,进而可以识别出此次来电所对应的RJ11接口。于是,为了使对应RJ11接口上连接的语音终端设备能够和对端终端进行数据通信,处理单元根据识别到的结果,控制与该RJ11接口对应的开关电路闭合,使得对应的RJ11接口与调制解调电路之间的通信链路处于导通的状态,从而处理单元通过调制解调电路输出的数据便可以通过对应的RJ11接口传达至连接的语音终端设备。When the voice gateway is located on the called side, when the processing unit receives the incoming call data sent by the peer terminal through wired or wireless means, it first identifies the data service type of the incoming call data to identify whether the incoming call data belongs to The service data of the CS domain or the service data of the PS domain. By identifying the data format of the incoming call data, the processing unit knows the communication service type of the incoming call data, and then can identify the RJ11 interface corresponding to the incoming call. Therefore, in order to enable the voice terminal equipment connected to the corresponding RJ11 interface to perform data communication with the peer terminal, the processing unit controls the switch circuit corresponding to the RJ11 interface to close according to the recognized result, so that the corresponding RJ11 interface and modem The communication link between the circuits is in a conducting state, so that the data output by the processing unit through the modulation and demodulation circuit can be transmitted to the connected voice terminal equipment through the corresponding RJ11 interface.

进一步地,为了使处理单元在控制导通了对应的RJ11接口与调制解调电路的通信链路后,在后续对与RJ11接口连接的终端设备的通信数据的处理过程中,能够根据语音终端设备对应的通信业务类型,进入相应的数据处理流程。处理单元还将根据识别到的通信业务类型,启动相应的数据处理处理流程,以使处理单元在接收到此次通信业务中的通信数据后,能够进入到相应的数据处理流程,以对接收到的通信数据进行相应的数据处理。Further, in order to enable the processing unit to control and turn on the communication link between the corresponding RJ11 interface and the modulation and demodulation circuit, in the subsequent processing of the communication data of the terminal equipment connected to the RJ11 interface, according to the voice terminal equipment The corresponding communication service type enters the corresponding data processing flow. The processing unit will also start the corresponding data processing process according to the identified communication service type, so that the processing unit can enter the corresponding data processing process after receiving the communication data in this communication service, so as to process the received Corresponding data processing of the communication data.

本实施例的语音网关的通信处理方法,通过为每个接口对应设置检测电路,以及在每个接口与调制解调电路之间设置开关电路,只有处理单元通过检测电路检测到对应接口的摘机状态,或者在被叫过程中,处理单元识别到接收的来电数据为该接口对应的通信业务类型时,才控制打开在对应的接口与调制解调电路之间的开关电路,以及进入相应的数据处理流程,从而使得语音网关设备在无需额外增加一路调制解调电路,以及在用户无需为不同的数据业务类型添加前导码的前提下,便能实现对CS域通信业务和PS域通信业务的同时支持,降低了成本且易用性强,便于推广。In the communication processing method of the voice gateway of this embodiment, by correspondingly setting a detection circuit for each interface, and setting a switch circuit between each interface and the modulation and demodulation circuit, only the processing unit detects the off-hook of the corresponding interface through the detection circuit state, or in the process of being called, when the processing unit recognizes that the incoming call data received is the communication service type corresponding to the interface, it controls to open the switch circuit between the corresponding interface and the modem circuit, and enters the corresponding data Processing flow, so that the voice gateway device can realize the simultaneous communication of CS domain communication service and PS domain communication service without adding an additional modem circuit, and under the premise that the user does not need to add preambles for different data service types Support, reduced costs and strong ease of use, easy to promote.

图6为本发明实施例提供的另一种语音网关的通信处理方法的流程图。如图6所示,本方法包括如下步骤:FIG. 6 is a flow chart of another communication processing method for a voice gateway provided by an embodiment of the present invention. As shown in Figure 6, the method includes the following steps:

步骤200,语音网关的处理单元通过电平检测电路对对应的RJ11接口的摘机或挂机状态进行检测,若检测到摘机状态时,进入步骤201,若检测到挂机状态时,进入步骤203;Step 200, the processing unit of the voice gateway detects the off-hook or on-hook state of the corresponding RJ11 interface through the level detection circuit, if the off-hook state is detected, enter step 201, and if the on-hook state is detected, enter step 203;

步骤201,处理单元控制设置在RJ11接口和调制解调电路之间的开关电路导通;Step 201, the processing unit controls the switch circuit provided between the RJ11 interface and the modulation and demodulation circuit to be turned on;

步骤202,处理单元根据检测到的处于摘机状态的RJ11接口的通信业务类型,启动与该通信业务类型对相应的数据处理流程;Step 202, the processing unit starts a data processing flow corresponding to the communication service type according to the detected communication service type of the RJ11 interface in the off-hook state;

步骤203,处理单元控制设置在RJ11接口和调制解调电路之间的开关电路关断;Step 203, the processing unit controls the switching circuit arranged between the RJ11 interface and the modulation and demodulation circuit to be turned off;

具体地,在本实施例,语音网关的处理单元将随时通过设置在任一RJ11接口上的电平检测电路,对与该电平检测电路对应的RJ11接口的摘机或者挂机状态进行检测。具体地,电平检测电路的输入端与对应的RJ11接口的TIP管脚连接,输出端与处理单元连接,当RJ11接口处于不同的状态时,TIP管脚输出的信号的电平将不同。具体地,若RJ11接口处于挂机状态时,TIP管脚的电平为低电平;而若RJ11接口处于摘机状态时,TIP管脚的电平将为-50V左右的负高压电平。电平检测电路在TIP管脚的不同电平的作用下,将输出不同电平的检测信号给处理单元。处理单元根据电平检测电路输出的检测信号电平的不同,可以检测到对应的RJ11接口的摘机或者挂机状态。Specifically, in this embodiment, the processing unit of the voice gateway will detect the off-hook or on-hook status of the RJ11 interface corresponding to the level detection circuit through the level detection circuit provided on any RJ11 interface at any time. Specifically, the input end of the level detection circuit is connected to the TIP pin of the corresponding RJ11 interface, and the output end is connected to the processing unit. When the RJ11 interface is in different states, the level of the signal output by the TIP pin will be different. Specifically, if the RJ11 interface is in the on-hook state, the level of the TIP pin is low; and if the RJ11 interface is in the off-hook state, the level of the TIP pin will be a negative high voltage level of about -50V. The level detection circuit will output detection signals of different levels to the processing unit under the action of different levels of the TIP pin. The processing unit can detect the off-hook or on-hook state of the corresponding RJ11 interface according to the difference in the detection signal level output by the level detection circuit.

具体地,处理单元若通过一电平检测电路检测对应的RJ11接口处于摘机状态时,处理单元控制设置在该RJ11接口和调制解调电路之间的开关电路导通,并查询该检测到的处于摘机状态的RJ11接口的通信业务类型,并根据该查询到的通信业务类型,启动与该通信业务类型对相应的数据处理流程。而处理单元若通过一电平检测电路检测对应的RJ11接口处于挂机状态时,处理单元将控制设置在该RJ11接口和调制解调电路之间的开关电路关断。Specifically, if the processing unit detects that the corresponding RJ11 interface is in the off-hook state through a level detection circuit, the processing unit controls the switch circuit provided between the RJ11 interface and the modulation and demodulation circuit to conduct, and queries the detected The communication service type of the RJ11 interface in the off-hook state, and according to the queried communication service type, start the data processing flow corresponding to the communication service type pair. If the processing unit detects that the corresponding RJ11 interface is in the on-hook state through a level detection circuit, the processing unit will control the switch circuit arranged between the RJ11 interface and the modulation and demodulation circuit to turn off.

步骤204,处理单元对接收到的来电数据的通信业务类型进行识别;Step 204, the processing unit identifies the communication service type of the received incoming call data;

步骤205,处理单元根据识别出的通信业务类型,控制与对应的RJ11接口上连接的开关电路导通;Step 205, the processing unit controls the switch circuit connected to the corresponding RJ11 interface to be turned on according to the identified communication service type;

步骤206,处理单元向调制解调电路发送来电指示信息;Step 206, the processing unit sends incoming call indication information to the modulation and demodulation circuit;

步骤207,处理单元根据识别出的通信业务类型,启动与相应的数据处理流程。In step 207, the processing unit starts a corresponding data processing flow according to the identified communication service type.

而在本实施例的语音网关处于被叫侧时,在本实施例,语音网关在接收到对端终端发送的来电数据后,将来电数据的通信业务类型进行识别,即识别该来电数据是属于CS域通信业务还是属于PS域通信业务的数据,以此判断此次来电所对应的RJ11接口。若识别到该来电数据的通信业务类型为CS域通信业务的数据时,处理单元将控制对应于CS域通信业务的RJ11接口与调制解调电路之间设置的开关电路的导通,并向调制解调电路发送相应的来电指示信息。由于调制解调电路与CS域通信业务的RJ11接口之间的通信链路导通,因此,此次调制解调电路发送的来电信号将通过该RJ11接口传送至连接的语音终端设备,从而会在该连接的语音终端设备上产生振铃。接下来,处理单元启动与CS域通信业务相对应的数据处理流程,以至于在此次的通信过程中,能够对属于CS域的通信数据进行相应的处理。However, when the voice gateway in this embodiment is on the called side, in this embodiment, after receiving the incoming call data sent by the peer terminal, the voice gateway identifies the communication service type of the incoming call data, that is, identifies whether the incoming call data belongs to The CS domain communication service still belongs to the data of the PS domain communication service, so as to determine the RJ11 interface corresponding to the incoming call. If it is recognized that the communication service type of the incoming call data is the data of the CS domain communication service, the processing unit will control the conduction of the switch circuit provided between the RJ11 interface corresponding to the CS domain communication service and the modulation and demodulation circuit, and send to the modulation and demodulation circuit. The demodulation circuit sends corresponding incoming call indication information. Since the communication link between the modem circuit and the RJ11 interface of the CS domain communication service is turned on, the incoming call signal sent by the modem circuit will be transmitted to the connected voice terminal equipment through the RJ11 interface, so that Ringing occurs on the connected voice end device. Next, the processing unit starts a data processing flow corresponding to the communication service in the CS domain, so that in this communication process, corresponding processing can be performed on the communication data belonging to the CS domain.

而相反地,若处理单元通过对来电数据的识别,识别到该来电数据的通信业务类型为PS域通信业务的数据时,处理单元将控制对应于PS域通信业务的RJ11接口与调制解调电路之间设置的开关电路的导通,并向调制解调电路发送相应的来电指示信息。由于调制解调电路与PS域通信业务的RJ11接口之间的通信链路导通,因此,此次调制解调电路发送的来电信号将通过该RJ11接口传送至连接的语音终端设备,从而会在该连接的语音终端设备上产生振铃。接下来,处理单元启动与PS域通信业务相对应的数据处理流程,以至于在此次的通信过程中,能够对属于PS域的通信数据进行相应的处理。On the contrary, if the processing unit recognizes that the communication service type of the incoming call data is the data of the PS domain communication service through the identification of the incoming call data, the processing unit will control the RJ11 interface and the modulation and demodulation circuit corresponding to the PS domain communication service. The conduction of the switch circuit set between them, and send the corresponding incoming call indication information to the modulation and demodulation circuit. Since the communication link between the modem circuit and the RJ11 interface of the PS domain communication service is turned on, the incoming call signal sent by the modem circuit will be transmitted to the connected voice terminal equipment through the RJ11 interface, so that the Ringing occurs on the connected voice end device. Next, the processing unit starts a data processing flow corresponding to the PS domain communication service, so that in this communication process, corresponding processing can be performed on the communication data belonging to the PS domain.

具体地,本实施例中,设置在RJ11接口与处理单元之间的电平检测电路可以通过三极管或者光耦器件得以实现,而开关电路4可以通过开关管或者继电器得以实现。电平检测单元与开关电路的具体实现方式,以及电路结构可以参照上述语音网关设备实施例的描述,在此不再赘述。Specifically, in this embodiment, the level detection circuit arranged between the RJ11 interface and the processing unit can be realized by a triode or an optocoupler device, and the switch circuit 4 can be realized by a switch or a relay. For the specific implementation manners of the level detection unit and the switch circuit, as well as the circuit structure, reference may be made to the description of the voice gateway device embodiment above, and details are not repeated here.

本实施例的语音网关的通信处理方法,通过为每个接口对应设置检测电路,以及在每个接口与调制解调电路之间设置开关电路,只有处理单元通过检测电路检测到对应接口的摘机状态,或者在被叫过程中,处理单元识别到接收的来电数据为该接口对应的通信业务类型时,才控制打开在对应的接口与调制解调电路之间的开关电路,以及进入相应的数据处理流程,从而使得语音网关设备在无需额外增加一路调制解调电路,以及在用户无需为不同的数据业务类型添加前导码的前提下,便能实现对CS域通信业务和PS域通信业务的同时支持,降低了成本且易用性强,便于推广。In the communication processing method of the voice gateway of this embodiment, by correspondingly setting a detection circuit for each interface, and setting a switch circuit between each interface and the modulation and demodulation circuit, only the processing unit detects the off-hook of the corresponding interface through the detection circuit state, or in the process of being called, when the processing unit recognizes that the incoming call data received is the communication service type corresponding to the interface, it controls to open the switch circuit between the corresponding interface and the modem circuit, and enters the corresponding data Processing flow, so that the voice gateway device can realize the simultaneous communication of CS domain communication service and PS domain communication service without adding an additional modem circuit, and under the premise that the user does not need to add preambles for different data service types Support, reduced costs and strong ease of use, easy to promote.

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

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

Claims (14)

1. A voice gateway device, comprising: the system comprises two RJ11 interfaces respectively corresponding to circuit switching domain communication service or packet switching domain communication service, a modulation and demodulation circuit and a processing unit connected with the modulation and demodulation circuit, wherein a level detection circuit is connected between each RJ11 interface and the processing unit, and a switch circuit is connected between each RJ11 interface and the modulation and demodulation circuit; wherein,
the processing unit is used for controlling a switch circuit connected to the corresponding RJ11 interface to be turned on and controlling a switch circuit connected to another RJ11 interface to be turned off if the off-hook state of the corresponding RJ11 interface is detected by any one of the level detection circuits, and starting a corresponding data processing flow according to the communication service type corresponding to the corresponding RJ11 interface;
the processing unit is further configured to identify a communication service type of the received incoming call data, start a corresponding data processing flow according to the identified communication service type, and control a switching circuit connected to an RJ11 interface corresponding to the identified communication service type to be turned on.
2. The voice gateway apparatus of claim 1, wherein the level detection circuit is implemented by a triode or an optocoupler device.
3. The voice gateway apparatus of claim 1, wherein the switching circuit is implemented by a switching tube or a relay.
4. The voice gateway device of claim 1, wherein:
the input end of the level detection circuit is connected with a TIP pin of a corresponding RJ11 interface, and the level detection circuit is used for outputting detection signals of different levels to the processing unit according to different levels of the TIP pin.
5. The voice gateway device of claim 4, wherein the processing unit comprises a first control unit comprising:
the detection subunit is used for detecting the level of a TIP pin in an RJ11 interface corresponding to the level detection circuit through the detection signal output by the level detection circuit;
the first switch control subunit is used for outputting a control signal of a first level to a switch circuit connected to a corresponding RJ11 interface to enable the connected switch circuit to be turned on if the TIP pin is detected to be at a negative high voltage level, and outputting a control signal of a second level to a switch circuit connected to another RJ11 interface to enable the switch circuit connected to another RJ11 interface to be turned off;
the query subunit is used for querying the communication service type of the corresponding RJ11 interface;
and the first sub-unit is used for starting a corresponding data processing flow according to the inquired communication service type.
6. The voice gateway apparatus of claim 5, wherein the first control unit further comprises:
and the second switch control subunit is used for outputting a control signal of a second level to the switch circuit connected to the corresponding RJ11 interface to turn off the connected switch circuit if the TIP pin signal is detected to be at a low level.
7. The voice gateway apparatus according to any of claims 1 to 6, wherein the processing unit further comprises a second control unit, the second control unit comprising:
an identifying subunit, configured to identify that the received incoming call data is data of the circuit switched domain communication service or the packet switched domain communication service;
the third switch control subunit is used for outputting a control signal of a first level to a switch circuit connected to the RJ11 interface corresponding to the communication service type of the incoming call data according to the identified communication service type of the incoming call data, so that the switch circuit connected to the corresponding RJ11 interface is turned on;
and the second sub-unit is used for starting the corresponding data processing flow according to the identified communication service type of the incoming call data.
8. The voice gateway device of claim 7, wherein the processing unit further comprises:
and the sending subunit is configured to send incoming call indication information to the modulation and demodulation circuit according to the identified communication service type, so that the modulation and demodulation circuit controls the turned-on switch circuit through the switch control subunit, and outputs an incoming call signal to the RJ11 interface corresponding to the identified communication service type.
9. A communication processing method of a voice gateway is characterized by comprising the following steps:
when the voice gateway is located at a calling side, if a processing unit of the voice gateway detects that any RJ11 interface is in an off-hook state through a level detection circuit arranged between the processing unit and any RJ11 interface of two RJ11 interfaces, the processing unit controls a switch circuit arranged between any RJ11 interface and a modulation and demodulation circuit to be switched on, controls a switch circuit arranged between the other RJ11 interface and the modulation and demodulation circuit to be switched off, and starts a data processing flow corresponding to the communication service type according to the communication service type of any RJ11 interface in the off-hook state;
when the voice gateway is located at the called side, the processing unit identifies the communication service type of the received incoming call data, controls a switch circuit connected to an RJ11 interface corresponding to the identified communication service type to be switched on according to the identified communication service type, and starts a data processing flow corresponding to the identified communication service type.
10. The method of claim 9, wherein the detecting that the RJ11 interface is in an off-hook state by the processing unit of the voice gateway via a level detection circuit disposed between the processing unit and any RJ11 interface of the two RJ11 interfaces is specifically:
the processing unit detects that any RJ11 interface is in an off-hook state through a triode or an optocoupler device arranged between the processing unit and any RJ11 interface.
11. The communication processing method of the voice gateway according to claim 9 or 10, characterized in that:
the controlling the on/off of the switching circuit arranged between any RJ11 interface and the modulation and demodulation circuit is specifically to control the on/off of a switching tube or a relay arranged between any RJ11 interface and the modulation and demodulation circuit;
specifically, the controlling of the on/off of the switching circuit connected to the RJ11 interface corresponding to the identified communication service type is controlling of the on/off of a switching tube or a relay connected to the RJ11 interface corresponding to the identified communication service type.
12. The communication processing method of the voice gateway according to claim 9, further comprising:
and if the processing unit detects that any RJ11 interface is in an on-hook state through the level detection circuit, the processing unit controls a switch circuit arranged between any RJ11 interface and the modulation and demodulation circuit to be switched off.
13. The method of claim 9, wherein the detecting that the RJ11 interface is in an off-hook state by the processing unit of the voice gateway via a level detection circuit disposed between the processing unit and any RJ11 interface of the two RJ11 interfaces comprises:
the processing unit detects the level of the TIP pin of any one of the corresponding RJ11 interfaces through the level detection circuit;
if the TIP pin is detected to be at the negative high voltage level, knowing that any RJ11 interface is in the off-hook state;
and if the TIP pin is detected to be at a low level, knowing that any RJ11 interface is in the on-hook state.
14. The method of claim 9, wherein after the controlling the switching circuit connected to the RJ11 interface corresponding to the identified communication service type is turned on, the method further comprises:
and sending incoming call indication information to the modulation and demodulation circuit according to the identified communication service type, so that the modulation and demodulation circuit controls the switched-on switching circuit through the switch control subunit, and outputs an incoming call signal to the RJ11 interface corresponding to the identified communication service type.
CN2010101183961A 2010-03-03 2010-03-03 Voice gateway equipment and communication processing method of voice gateway Active CN101800818B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010101183961A CN101800818B (en) 2010-03-03 2010-03-03 Voice gateway equipment and communication processing method of voice gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010101183961A CN101800818B (en) 2010-03-03 2010-03-03 Voice gateway equipment and communication processing method of voice gateway

Publications (2)

Publication Number Publication Date
CN101800818A true CN101800818A (en) 2010-08-11
CN101800818B CN101800818B (en) 2011-12-28

Family

ID=42596306

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010101183961A Active CN101800818B (en) 2010-03-03 2010-03-03 Voice gateway equipment and communication processing method of voice gateway

Country Status (1)

Country Link
CN (1) CN101800818B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016058394A1 (en) * 2014-10-17 2016-04-21 中兴通讯股份有限公司 Method and device for detecting voice chip

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999043143A1 (en) * 1998-02-23 1999-08-26 Telefonaktiebolaget Lm Ericsson (Publ) Processing packet-switched voice calls directed to a mobile unit operating in circuit-switched mode
CN1599376A (en) * 2004-07-28 2005-03-23 沈逸林 Application and communication method of terminal of network media phone
CN101175008A (en) * 2007-07-07 2008-05-07 山东浪潮齐鲁软件产业股份有限公司 Method for implementing voice intercommunication between telephone network and internet
CN101277199A (en) * 2008-02-22 2008-10-01 东南大学 Automatic deployment of embedded IP-PBX and its communication method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999043143A1 (en) * 1998-02-23 1999-08-26 Telefonaktiebolaget Lm Ericsson (Publ) Processing packet-switched voice calls directed to a mobile unit operating in circuit-switched mode
CN1599376A (en) * 2004-07-28 2005-03-23 沈逸林 Application and communication method of terminal of network media phone
CN101175008A (en) * 2007-07-07 2008-05-07 山东浪潮齐鲁软件产业股份有限公司 Method for implementing voice intercommunication between telephone network and internet
CN101277199A (en) * 2008-02-22 2008-10-01 东南大学 Automatic deployment of embedded IP-PBX and its communication method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016058394A1 (en) * 2014-10-17 2016-04-21 中兴通讯股份有限公司 Method and device for detecting voice chip

Also Published As

Publication number Publication date
CN101800818B (en) 2011-12-28

Similar Documents

Publication Publication Date Title
WO2009127155A1 (en) Method for realizing local exchange, device and system thereof
WO2020029807A1 (en) Voice call control method and apparatus, mobile terminal, and storage medium
CN101106823A (en) Call processing method and intelligent network service control device for realizing one-number multi-device
US20070165611A1 (en) Phone device for public switched telecommunication network and voice over internet protocol network
CN101800818B (en) Voice gateway equipment and communication processing method of voice gateway
CN101572639A (en) Method, device and system for processing voice service
CN101132461B (en) Method, system and equipment for realizing change from voice service to fax service
EP2442584B1 (en) METHOD AND APPARATUS FOR SUPPORTING CALL CONTROL OF CIRCUIT DOMAIN TELEPHONE AND VoIP
US8194686B2 (en) Communications relay device, program and method, and network system
JP3955602B2 (en) VoIP terminal and call backup method for VoIP terminal
CN104837186A (en) Method and device for terminal voice communication
CN101686519A (en) Switch method for keeping continuity of multimedia session
CN102118295B (en) Method and device for forwarding multicast message
CN100359883C (en) A Method of Realizing V.34 High Speed Fax Through T.38 Protocol
CN1897590B (en) A message transmission method and device based on DUA protocol
CN100366043C (en) A Method for Identifying and Switching Low-Speed Modem and Fax Services
CN100469180C (en) Mobile communication device and network selection method thereof
KR20090105675A (en) Internet Phone Number Portability Call Processing Method Using Wireless Terminal
CN102347841B (en) Router and conversation connection control method thereof
WO2006012805A1 (en) A method for switching working mode of the media stream conversion channel on gateway and the apparatus thereof
CN101022471A (en) Method and system for realizing public telephone exchange network simulation service
CN106331401A (en) Voice protocol switching method and voice terminal device
WO2007083581A1 (en) Relay device, telephone system, relay program product, and computer-readable recording medium containing the relay program
CN104348988A (en) Telephone network accessing equipment
CN101166300B (en) Service switching method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong.

Patentee after: Huawei terminal (Shenzhen) Co.,Ltd.

Address before: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong.

Patentee before: HUAWEI DEVICE Co.,Ltd.

CP01 Change in the name or title of a patent holder
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20181219

Address after: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee after: HUAWEI DEVICE Co.,Ltd.

Address before: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong.

Patentee before: Huawei terminal (Shenzhen) Co.,Ltd.

TR01 Transfer of patent right

Effective date of registration: 20210423

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Shenzhen Zhixin new information technology Co.,Ltd.

Address before: Metro Songshan Lake high tech Industrial Development Zone, Guangdong Province, Dongguan City Road 523808 No. 2 South Factory (1) project B2 -5 production workshop

Patentee before: HUAWEI DEVICE Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211021

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Device Co.,Ltd.

Address before: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee before: Shenzhen Zhixin new information technology Co.,Ltd.

TR01 Transfer of patent right
CP03 Change of name, title or address

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Terminal Co.,Ltd.

Country or region after: China

Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong

Patentee before: Honor Device Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address