Movatterモバイル変換


[0]ホーム

URL:


CN103188403B - The online monitor method of voice gateways - Google Patents

The online monitor method of voice gateways
Download PDF

Info

Publication number
CN103188403B
CN103188403BCN201110453457.4ACN201110453457ACN103188403BCN 103188403 BCN103188403 BCN 103188403BCN 201110453457 ACN201110453457 ACN 201110453457ACN 103188403 BCN103188403 BCN 103188403B
Authority
CN
China
Prior art keywords
voice gateways
data
pcm data
rtp
monitor method
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.)
Active
Application number
CN201110453457.4A
Other languages
Chinese (zh)
Other versions
CN103188403A (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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology 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 Maipu Communication Technology Co LtdfiledCriticalMaipu Communication Technology Co Ltd
Priority to CN201110453457.4ApriorityCriticalpatent/CN103188403B/en
Publication of CN103188403ApublicationCriticalpatent/CN103188403A/en
Application grantedgrantedCritical
Publication of CN103188403BpublicationCriticalpatent/CN103188403B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Landscapes

Abstract

The present invention relates to the technology of VOIP system.The present invention solves and realizes, in existing VOIP voice gateways, the problem that monitor function cannot ensure real-time, provide a kind of online monitor method of voice gateways, its technical scheme can be summarized as: the coding mode that call is used by system consults G711A, again the two-way rtp streaming of call is redirected to internal damping queue, and the two-way realtime transmission protocol RTP stream in internal buffer queue is decoded as pulse code modulation PCM data respectively, software audio mixing is used to synthesize a road PCM data two-way PCM data again, then the PCM data after synthesis is converted to G711A and restrains encoding format data, finally the G711A rule encoding format data after conversion is sent to monitoring side by RTP data message.The invention has the beneficial effects as follows: achieve monitoring in real time, it is adaptable to VOIP voice gateways monitoring system.

Description

The online monitor method of voice gateways
Technical field
The present invention relates to the technology of VOIP system, particularly to the monitoring system of VOIP system.
Background technology
Along with being widely used of ip voice (VOIP) system, monitor the call of VOIP user in real time, be increasingly necessary for the release mechanisms such as national security, public security and prison.Online monitor the user being often referred to through authorizing on the equipment such as voice gateways with monitor function, in real time between monitoring local user, the content of voice call between local user and IP user or IP user.
Mainly use the mode of digital signal processor (DigitalSignalProcessing, DSP) audio mixing to realize monitor function at present in VOIP voice gateways, but a lot of dsp chip itself does not support Three-Way Calling or conferencing function.The VOIP gateway using this dsp chip realizes monitor, need to be redirected to the rtp streaming of monitored side third party's (server), being decoded on the server, audio mixing and coding, be converted into the operation such as played file, its real-time cannot ensure.
G.711A restraining coding (being called for short G711A) is a kind of compression/decompression algorithm about pulse code that ITU-T (International Telecommunication Union) defines, and A rule compression algorithm can be used to carry out the encoding and decoding of speech data by most countries at present.
Summary of the invention
The purpose of the present invention is exactly to overcome to realize, in current VOIP voice gateways, the shortcoming that monitor function cannot ensure real-time, it is provided that a kind of online monitor method of voice gateways.
The present invention solves its technical problem, employed technical scheme comprise that, the online monitor method of voice gateways, it is characterised in that comprise the following steps:
Step 1. starts monitor function according to the instruction of monitoring side;
Step 2. system judges whether the coding mode needing that a-road-through monitored words to use is G711A, if then entering step 3, otherwise by Session Initiation Protocol, coding mode is revised as G711A;
The two-way rtp streaming of call is redirected to internal damping queue by step 3. system;
Step 4. system is decoded as pulse code modulation PCM data respectively to the two-way realtime transmission protocol RTP stream in internal buffer queue;
Two-way PCM data is used software audio mixing to synthesize a road PCM data by step 5. system;
PCM data after synthesis is converted to G711A and restrains encoding format data by step 6. system;
G711A rule encoding format data after conversion is sent to monitoring side by RTP data message by step 7. system.
Concrete, step 3 comprises the following steps:
Step 301. arranges the digital signal processor DSP of voice gateways and processes the packet sending and receiving direction with Fixed Time Interval in turn;
The packet sending and receiving direction in same for the DSP of voice gateways time interval is stored in a node by step 302. system, and this node is as audio mixing node;
Step 303. system redirects audio mixing node to internal damping queue.
Further, in step 301, described Fixed Time Interval is 20 milliseconds.
Concrete, step 4 comprises the following steps:
Step 401. system takes out the audio mixing node of redirection from internal damping queue, comprises two-way rtp streaming in this audio mixing node;
It is PCM data by byte code that G711A in the rtp streaming of each road is restrained coded data by step 402. system respectively.
Further, in step 402, described in be encoded to PCM data be to be encoded to the PCM data of 16.
Concrete, step 5 comprises the following steps:
The mode that two-way PCM data is used linear superposition to take average by step 501. system realizes software audio mixing, is synthesized a road PCM data.
Further, step 6 comprises the following steps:
PCM data is converted to G711A in the mode that each two byte conversion is G711A rule coding and restrains encoding format data by one road PCM data of synthesis by step 601. system.
Concrete, step 7 comprises the following steps:
The G711A obtained rule encoding format data is converted to RTP data message by step 701. system;
Step 702. system judges whether monitoring side is local user, if then entering step 703, otherwise enters step 704;
This RTP data message is directly sent to monitoring side by step 703. system;
This RTP data message is sent to monitoring side by IP mode by step 704. system.
Further, described local user refers to that monitoring side and monitored side are in same voice gateways.
The invention has the beneficial effects as follows, by the online monitor method of upper voice gateway, achieve monitoring in real time, and use the mode of software audio mixing, need not, on the DSP of VOIP voice gateways, there is mixer, also for the providing a great convenience property of use of monitoring service, monitoring personnel can monitor in this locality, it is also possible to is monitored by remote mode.
Accompanying drawing explanation
Fig. 1 is the structured flowchart of embodiment of the present invention monitoring system.
Fig. 2 is the flow chart of the online monitor method of voice gateways of the present invention.
Fig. 3 is the flow chart redirecting rtp streaming in the online monitor method of voice gateways of the present invention.
Fig. 4 is the flow chart of software audio mixing in the online monitor method of voice gateways of the present invention.
Fig. 5 is the flow chart of voice gateways of the present invention online monitor method repeating data.
Detailed description of the invention
Below in conjunction with embodiment and accompanying drawing, describe technical scheme in detail.
The flow chart of the online monitor method of voice gateways of the present invention sees Fig. 2.In the online monitor method of voice gateways of the present invention, first monitor function is started, then system judges whether the coding mode needing that a-road-through monitored words to use is G711A, otherwise coding mode is revised as G711A by Session Initiation Protocol, if then the two-way rtp streaming of call is redirected to internal damping queue by system, the two-way rtp streaming in the most internal buffer queue is decoded as PCM data respectively, and two-way PCM data employing software audio mixing is synthesized a road PCM data, again the PCM data after synthesis is converted to G711A and restrains encoding format data, finally the G711A rule encoding format data after conversion is sent to the broadcasting of the side of monitoring by RTP data message.
Embodiment
In the embodiment of the present invention, the structured flowchart of monitoring system sees Fig. 1.The monitoring system of the present embodiment is by the voice gateways 1 realizing monitor function, connecting the monitored side user A of voice gateways 1, the outside line user B connecting voice gateways 1 by IP network and the monitoring side user C realizing monitoring this locality to the user A in voice gateways 1 by E1/FXS/FX0 mode forms.VOIP gateway 1 is disposed monitor function, thus realizes the call of the side of monitoring user C monitoring users A and any outside line user C, or monitoring users A call of any local user with in voice gateways 1.It addition, monitoring side user C can realize remote monitoring by IP mode to the user A in voice gateways 1.
The online monitor method of voice gateways of the present embodiment, sees Fig. 2, and for the flow chart of the online monitor method of voice gateways in the embodiment of the present invention, its detailed process is as follows:
Step 1. starts monitor function according to the instruction of monitoring side;
Step 2. system judges whether the coding mode needing that a-road-through monitored words to use is G711A, if then entering step 3, otherwise by Session Initiation Protocol, coding mode is revised as G711A;
Here, computational efficiency when audio mixing effect and audio mixing can be greatly improved by the amendment of coding.
The two-way rtp streaming of call is redirected to internal damping queue by step 3. system;
See Fig. 3, for the online monitor method of voice gateways in the embodiment of the present invention redirects the flow chart of rtp streaming.Step 3 comprises the following steps: the DSP first arranging voice gateways processes the packet sending and receiving direction in turn with Fixed Time Interval, this Fixed Time Interval is 20 milliseconds, again the packet sending and receiving direction in same for the DSP of voice gateways time interval is stored in a node, this node, as audio mixing node, finally redirects audio mixing node to internal damping queue.Here the two-way RTP owing to redirecting during audio mixing must be to synchronize, the amount of calculation brought in order to avoid simultaneously operating and calculating time, use the mode of interrupt processing, the DSP of gateway (i.e. DSP is every 20 milliseconds of operations once read and write) at regular intervals processes the packet sending and receiving direction in turn, therefore the packet of both direction can be stored in a node, it is not necessary to extra simultaneously operating;And in prior art, before audio mixing starts, owing to needs carry out pretreatment to data, it is therefore necessary to the data source of audio mixing is buffered, simultaneously mutual in order to ensure the both call sides monitored order, the data of both direction must keep consistent on timestamp.If the method using software is come data message according to timestamp ordering, it will be the most complicated for processing and effect is uncertain very well.The present invention makes full use of the DSP in gateway and processes the feature of the packet sending and receiving direction the most in turn, in same time interval, the packet of both direction stores a node;This node is as audio mixing node, the concordance that thus the effective both call sides ensureing to monitor is mutual.Then redirection audio mixing node is to internal damping queue, for follow-up stereo process.
Step 4. system is decoded as PCM data respectively to the two-way rtp streaming in internal buffer queue;
Here the first system of specifically comprising the following steps that of step 4 takes out the audio mixing node of redirection from internal damping queue, this audio mixing node comprises two-way rtp streaming, the G711A in the rtp streaming of the most each road is restrained coded data and is encoded to the PCM data of 16 by byte (G711A encodes by 8 expressions).
Two-way PCM data is used software audio mixing to synthesize a road PCM data by step 5. system;
In the embodiment of the present invention, in the online monitor method of voice gateways, the flow chart of software audio mixing sees Fig. 4.Two square tubes the most common due to the call of monitored side are talked about, Three-Way Calling, or MPTY, all comprise only sending direction and receive the two-way rtp streaming in direction.According to this feature of only two-way rtp streaming, use linear superposition to take the algorithm of average, monitor effect and be entirely capable of meeting the quality of monitoring.Therefore the mode that two-way PCM data is used linear superposition to take average by system realizes software audio mixing, is synthesized a road PCM data, and the PCM data of such as recipient is B, and the PCM data of sender is A, then the PCM data after its synthesis is (A+B)/2.
PCM data after synthesis is converted to G711A and restrains encoding format data by step 6. system;
Here, PCM data is converted to G711A in the mode that each two byte conversion is G711A rule coding and restrains encoding format data by a road PCM data of synthesis by its system.
G711A rule encoding format data after conversion is sent to the broadcasting of the side of monitoring by RTP data message by step 7. system;
In the embodiment of the present invention, the flow chart of voice gateways online monitor method repeating data sees Fig. 5.Here, step 7 comprises the following steps:
The G711A obtained rule encoding format data is converted to RTP data message by step 701. system;
Step 702. system judges whether monitoring side is local user, if then entering step 703, otherwise enters step 704;
This RTP data message is directly sent to monitoring side by step 703. system;
This RTP data message is sent to monitoring side by IP mode by step 704. system.
Wherein, local user refers to that monitoring side and monitored side are in same voice gateways.Otherwise local user is then long-distance user, and long-distance user refers to that monitoring side is connected by IP with monitored side.

Claims (8)

CN201110453457.4A2011-12-302011-12-30The online monitor method of voice gatewaysActiveCN103188403B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201110453457.4ACN103188403B (en)2011-12-302011-12-30The online monitor method of voice gateways

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201110453457.4ACN103188403B (en)2011-12-302011-12-30The online monitor method of voice gateways

Publications (2)

Publication NumberPublication Date
CN103188403A CN103188403A (en)2013-07-03
CN103188403Btrue CN103188403B (en)2016-08-03

Family

ID=48679361

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201110453457.4AActiveCN103188403B (en)2011-12-302011-12-30The online monitor method of voice gateways

Country Status (1)

CountryLink
CN (1)CN103188403B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105337897B (en)*2015-10-312019-01-22广州海格通信集团股份有限公司A kind of audio PTT synchronous transmission system based on RTP message
CN108810294A (en)*2018-06-132018-11-13广州市毅航互联通信股份有限公司A kind of two-way sound mixing method based on FPGA
CN111432075B (en)*2020-03-122022-03-08深圳震有科技股份有限公司Voice call real-time monitoring method and device based on VOIP network
CN111787160B (en)*2020-07-072022-06-14上海茂声智能科技有限公司 A method, device and system for voice gateway security detection

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
EP1389862A1 (en)*2002-08-082004-02-18AlcatelLawful interception for VoIP calls in IP based networks
CN101188525A (en)*2007-11-272008-05-28华为技术有限公司 A voice stream processing method and device
CN101488954A (en)*2009-01-092009-07-22中兴通讯股份有限公司Speech monitoring method and access gateway

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
EP1389862A1 (en)*2002-08-082004-02-18AlcatelLawful interception for VoIP calls in IP based networks
CN101188525A (en)*2007-11-272008-05-28华为技术有限公司 A voice stream processing method and device
CN101488954A (en)*2009-01-092009-07-22中兴通讯股份有限公司Speech monitoring method and access gateway

Also Published As

Publication numberPublication date
CN103188403A (en)2013-07-03

Similar Documents

PublicationPublication DateTitle
US7978688B2 (en)System and method for converting packet payload size
US20150229766A1 (en)Methods and Systems for Routing Emergency Service Calls Background
US20100128715A1 (en)Protocol Conversion System in Media Communication between a Packet-Switching Network and Circuit-Switiching Network
WO2019128204A1 (en)Conference implementation method, device, apparatus and system, and computer readable storage medium
CN102045537A (en)Method and device for connecting video conference system and video monitoring system
WO2009067954A1 (en)A method and device for processing an audio stream
USRE47345E1 (en)Apparatus and method for converting control information
CN102905165A (en)Video networking service front-end computer
CN102299962A (en)Cloud-based Voice over Internet Protocol (VoIP) system, device and method
CN103188403B (en)The online monitor method of voice gateways
CN111327580A (en)Message transmission method and device
WO2010083737A1 (en)Method and apparatus for processing voice signal, method and apparatus for transmitting voice signal
CN1472959A (en) Device and method for realizing conversion of multiple video and audio stream formats
CN106921843A (en)Data transmission method and device
US7616650B2 (en)Video flow control and non-standard capability exchange for an H.320 call leg
WO2017036259A1 (en)Resource request method and device, and terminal control method and device
WO2010079822A1 (en)Gateway device and method, and program
CN106550242B (en)Method and device for converting IP real-time media stream
US7649898B1 (en)Converting media streams in a communication system
CN112887497A (en)Communication method, apparatus and computer storage medium
US11831430B2 (en)Methods and apparatuses for encoding and decoding signal frame
WO2010083773A1 (en)Coding-decoding negotiation method, communication system, and device for encrypted voice call
CN209402738U (en)A kind of gateway and police digital cluster system
US7460671B1 (en)Encryption processing apparatus and method for voice over packet networks
JP5831095B2 (en) Voice communication system, voice communication apparatus and program

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp