CN103188403A - Voice gateway online monitoring method - Google Patents

Voice gateway online monitoring method Download PDF

Info

Publication number
CN103188403A
CN103188403A CN2011104534574A CN201110453457A CN103188403A CN 103188403 A CN103188403 A CN 103188403A CN 2011104534574 A CN2011104534574 A CN 2011104534574A CN 201110453457 A CN201110453457 A CN 201110453457A CN 103188403 A CN103188403 A CN 103188403A
Authority
CN
China
Prior art keywords
data
voice gateways
pcm
rtp
monitoring
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
CN2011104534574A
Other languages
Chinese (zh)
Other versions
CN103188403B (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 Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201110453457.4A priority Critical patent/CN103188403B/en
Publication of CN103188403A publication Critical patent/CN103188403A/en
Application granted granted Critical
Publication of CN103188403B publication Critical patent/CN103188403B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to the technology of a voice over internet phone (VOIP) system and provides a voice gateway online monitoring method which solves the problem that instantaneity of an achieved monitoring function on an existing VOIP voice gateway can not be guaranteed. The technical schemes includes: negotiating an encode mode used by call into a G711A rule through a system, redirecting two routers of RTP streams of the call into an interior buffer queue, and respectively decoding two routers of real-time transport protocol RTP streams in the interior buffer queue into pulse code modulation PCM data, then utilizing software to combine the two routers of PCM data into one router of PCM data through sound mixing, then converting the combined PCM data into G711A-rule coded format data, finally, sending the converted G711A-rule coded format data to a monitoring party through RTP data messages. The voice gateway online monitoring method has the advantages of achieving real-time monitoring and being suitable for a VOIP voice gate way monitoring system.

Description

The online monitor method of voice gateways
Technical field
The present invention relates to the technology of VOIP system, particularly the monitoring system of VOIP system.
Background technology
Along with being extensive use of of ip voice (VOIP) system, monitor VOIP user's conversation in real time, for release mechanisms such as national security, public security and prison, more and more be necessary.Online monitoring is often referred to through the user that authorizes on the equipment that has monitor function such as voice gateways, between the real-time listening local user, the content of voice call between local user and IP user or the IP user.
Main employing digital signal processor on the present VOIP voice gateways (Digital Signal Processing, DSP) mode of audio mixing realizes monitor function, but a lot of dsp chips itself are not supported Three-Way Calling or conferencing function.Realize monitoring at the VOIP gateway that adopts this dsp chip, need and will be redirected to third party's (server) by the rtp streaming of monitoring side, decode at server, audio mixing and coding, convert operation such as played file to, its real-time can't guarantee.
G.711 A-law encoding (being called for short G711A) is a kind of compression/decompression algorithm about pulse code of ITU-T (International Telecommunications Union) definition, and most of country adopts A rule compression algorithm to carry out the encoding and decoding of speech data at present.
Summary of the invention
Purpose of the present invention is exactly to overcome to realize on the present VOIP voice gateways that monitor function can't guarantee the shortcoming of real-time, provides a kind of voice gateways online monitor method.
The present invention solves its technical problem, and the technical scheme of employing is that the online monitor method of voice gateways is characterized in that, may further comprise the steps:
Step 1. starts monitor function according to the instruction of monitoring side;
Whether the coding mode that road conversation that step 2. system is judged needs monitoring is used is G711A, if then enter step 3, otherwise coding mode is revised as G711A by Session Initiation Protocol;
Step 3. system is redirected to the internal damping formation with the two-way rtp streaming of conversation;
Step 4. system is not decoded as pulse code modulation PCM data to the two-way realtime transmission protocol RTP flow point in the inner buffer queue;
Step 5. system synthesizes one road PCM data to two-way PCM The data software audio mixing;
PCM data after step 6. system will synthesize are converted to G711A rule coded format data;
G711A rule coded format data after step 7. system will change send to monitoring side by the RTP data message.
Concrete, step 3 may further comprise the steps:
The digital signal processor DSP that step 301. arranges voice gateways is handled the packet of both transmit and receive direction in turn with Fixed Time Interval;
Step 302. system with the DSP of voice gateways in the same time interval packet of both transmit and receive direction be stored in the node, this node is as the audio mixing node;
Step 303. system is redirected the audio mixing node to the internal damping formation.
Further, in the step 301, described Fixed Time Interval is 20 milliseconds.
Concrete, step 4 may further comprise the steps:
Step 401. system takes out the audio mixing node that is redirected in the buffer queue internally, comprises the two-way rtp streaming in this audio mixing node;
Step 402. system is the PCM data to the rule of the G711A in each road rtp streaming coded data by byte code respectively.
Further again, in the step 402, the described PCM of being encoded to data are to be encoded to 16 PCM data.
Concrete, step 5 may further comprise the steps:
The mode that average is got to two-way PCM The data linear superposition by step 501. system realizes the software audio mixing, and it is synthesized one road PCM data.
Further again, step 6 may further comprise the steps:
The road PCM data that step 601. system will synthesize are that the mode of G711A rule coding is converted to G711A rule coded format data with the PCM data with per two byte conversion.
Concrete, step 7 may further comprise the steps:
Step 701. system is converted to the RTP data message with the G711A rule coded format data that obtain;
Step 702. system judges whether monitoring side is the local user, if then enter step 703, otherwise enters step 704;
Step 703. system directly sends to monitoring side with this RTP data message;
Step 704. system sends to monitoring side with this RTP data message by the IP mode.
Further again, described local user refers to that monitoring side and quilt monitoring side are on same voice gateways.
The invention has the beneficial effects as follows, by the online monitor method of above-mentioned voice gateways, realized real-time listening, and adopt the mode of software audio mixing, do not need to have mixer on the DSP of VOIP voice gateways, also be the providing a great convenience property of use of monitoring service, the monitoring personnel can monitor in this locality, also can monitor by remote mode.
Description of drawings
Fig. 1 is the structured flowchart of embodiment of the 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 that is redirected 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 transmitting data in the online monitor method of voice gateways of the present invention.
Embodiment
Below in conjunction with embodiment and accompanying drawing, describe technical scheme of the present invention in detail.
The flow chart of the online monitor method of voice gateways of the present invention is referring to Fig. 2.In the online monitor method of voice gateways of the present invention, at first start monitor function, system judges whether the coding mode that road conversation of needs monitoring is used is G711A then, otherwise coding mode is revised as G711A by Session Initiation Protocol, if then system is redirected to the internal damping formation with the two-way rtp streaming of conversation, and then the two-way rtp streaming in the inner buffer queue is decoded as the PCM data respectively, and two-way PCM The data software audio mixing synthesized one road PCM data, PCM data after will synthesizing again are converted to G711A rule coded format data, and the G711A rule coded format data after will changing at last send to monitoring side by the RTP data message and play.
Embodiment
The structured flowchart of monitoring system is referring to Fig. 1 in the embodiment of the invention.The monitoring system of present embodiment is by the voice gateways 1 that realize monitor function, the quilt monitoring side user A that connects voice gateways 1 connects the outside line user B of voice gateways 1 and by the E1/FXS/FX0 mode user A on the voice gateways 1 is realized that the monitoring side user C of local monitoring forms by IP network.At VOIP gateway 1 deploy monitor function, thereby realize monitoring side user C monitoring users A and the conversation of outside line user C arbitrarily, perhaps local user's conversation arbitrarily on monitoring users A and the voice gateways 1.In addition, the side of monitoring user C can realize remote monitoring to the user A on the voice gateways 1 by the IP mode.
The online monitor method of the voice gateways of present embodiment referring to Fig. 2, is the flow chart of the online monitor method of voice gateways in the embodiment of the invention, and its detailed process is as follows:
Step 1. starts monitor function according to the instruction of monitoring side;
Whether the coding mode that road conversation that step 2. system is judged needs monitoring is used is G711A, if then enter step 3, otherwise coding mode is revised as G711A by Session Initiation Protocol;
Here, the computational efficiency in the time of can improving audio mixing effect and audio mixing greatly by the modification of encoding.
Step 3. system is redirected to the internal damping formation with the two-way rtp streaming of conversation;
Referring to Fig. 3, for being redirected the flow chart of rtp streaming in the online monitor method of voice gateways in the embodiment of the invention.Step 3 may further comprise the steps: the DSP that voice gateways at first are set handles the packet of both transmit and receive direction in turn with Fixed Time Interval, this Fixed Time Interval is 20 milliseconds, again with the DSP of voice gateways in the same time interval packet of both transmit and receive direction be stored in the node, this node is redirected the audio mixing node to the internal damping formation at last as the audio mixing node.The two-way RTP that is redirected during here owing to audio mixing must be synchronous, for fear of amount of calculation and the computing time that simultaneous operation brings, adopt the mode of interrupting processing, the DSP of gateway handles the packet of both transmit and receive direction in turn with regular time interval (being that DSP is every 20 milliseconds of operations of carrying out a read and write), therefore the packet of both direction can be stored in the node, not need extra simultaneous operation; And in the prior art, before audio mixing begins, owing to need carry out preliminary treatment to data, therefore must the data source of audio mixing be cushioned, for the mutual order of the both call sides that guarantees monitoring, the data of both direction must be consistent on timestamp simultaneously.If adopt the method for software to come the data message according to timestamp ordering, processing will be that unusual complexity and effect is uncertain fine.The DSP that the present invention takes full advantage of in the gateway handles the characteristics of the packet of both transmit and receive direction at interval in turn with regular time, and the packet of both direction in the same time interval is stored in the node; This node so just effectively guarantees the mutual consistency of monitoring of both call sides as the audio mixing node.Be redirected the audio mixing node then to the internal damping formation, be used for follow-up audio mixing and handle.
Step 4. system is decoded as the PCM data respectively to the two-way rtp streaming in the inner buffer queue;
Here the concrete steps of step 4 are as follows: at first system takes out the audio mixing node that is redirected in the buffer queue internally, comprise the two-way rtp streaming in this audio mixing node, respectively the rule of the G711A in each road rtp streaming coded data is encoded to 16 PCM data by byte (G711A encodes by 8 bit representations) then.
Step 5. system synthesizes one road PCM data to two-way PCM The data software audio mixing;
In the embodiment of the invention in the online monitor method of voice gateways the flow chart of software audio mixing referring to Fig. 4.Because no matter the quilt conversation of monitoring side is common two square tubes words, Three-Way Calling, or MPTY, all only contains the two-way rtp streaming of sending direction and receive direction.According to these characteristics of having only the two-way rtp streaming, adopt linear superposition to get the algorithm of average, monitor effect and can satisfy the quality of monitoring fully.Therefore system's mode that two-way PCM The data linear superposition is got average realizes the software audio mixing, and it is synthesized one road PCM data, and for example recipient's PCM data are B, and the PCM data of transmit leg are A, and then its PCM data after synthetic are (A+B)/2.
PCM data after step 6. system will synthesize are converted to G711A rule coded format data;
Here, the road PCM data that will synthesize of its system are that the mode of G711A rule coding is converted to G711A rule coded format data with the PCM data with per two byte conversion.
G711A rule coded format data after step 7. system will change send to monitoring side by the RTP data message and play;
Transmit the flow chart of data in the embodiment of the invention in the online monitor method of voice gateways referring to Fig. 5.Here, step 7 may further comprise the steps:
Step 701. system is converted to the RTP data message with the G711A rule coded format data that obtain;
Step 702. system judges whether monitoring side is the local user, if then enter step 703, otherwise enters step 704;
Step 703. system directly sends to monitoring side with this RTP data message;
Step 704. system sends to monitoring side with this RTP data message by the IP mode.
Wherein, the local user refers to that monitoring side and quilt monitoring side are on same voice gateways.Otherwise the local user then is the long-distance user, and the long-distance user refers to monitoring side and monitored square tube and cross IP and link to each other.

Claims (9)

1. the online monitor method of voice gateways is characterized in that, may further comprise the steps:
Step 1. starts monitor function according to the instruction of monitoring side;
Whether the coding mode that road conversation that step 2. system is judged needs monitoring is used is G711A, if then enter step 3, otherwise coding mode is revised as G711A by Session Initiation Protocol;
Step 3. system is redirected to the internal damping formation with the two-way rtp streaming of conversation;
Step 4. system is not decoded as pulse code modulation PCM data to the two-way realtime transmission protocol RTP flow point in the inner buffer queue;
Step 5. system synthesizes one road PCM data to two-way PCM The data software audio mixing;
PCM data after step 6. system will synthesize are converted to G711A rule coded format data;
G711A rule coded format data after step 7. system will change send to monitoring side by the RTP data message.
2. the online monitor method of voice gateways as claimed in claim 1 is characterized in that step 3 may further comprise the steps:
The digital signal processor DSP that step 301. arranges voice gateways is handled the packet of both transmit and receive direction in turn with Fixed Time Interval;
Step 302. system with the DSP of voice gateways in the same time interval packet of both transmit and receive direction be stored in the node, this node is as the audio mixing node;
Step 303. system is redirected the audio mixing node to the internal damping formation.
3. the online monitor method of voice gateways as claimed in claim 2 is characterized in that, in the step 301, described Fixed Time Interval is 20 milliseconds.
4. as claim 2 or the online monitor method of 3 described voice gateways, it is characterized in that step 4 may further comprise the steps:
Step 401. system takes out the audio mixing node that is redirected in the buffer queue internally, comprises the two-way rtp streaming in this audio mixing node;
Step 402. system is the PCM data to the rule of the G711A in each road rtp streaming coded data by byte code respectively.
5. the online monitor method of voice gateways as claimed in claim 4 is characterized in that, in the step 402, the described PCM of being encoded to data are to be encoded to 16 PCM data.
6. the online monitor method of voice gateways as claimed in claim 1 is characterized in that step 5 may further comprise the steps:
The mode that average is got to two-way PCM The data linear superposition by step 501. system realizes the software audio mixing, and it is synthesized one road PCM data.
7. the online monitor method of voice gateways as claimed in claim 1 is characterized in that step 6 may further comprise the steps:
The road PCM data that step 601. system will synthesize are that the mode of G711A rule coding is converted to G711A rule coded format data with the PCM data with per two byte conversion.
8. as claim 1 or 2 or 3 or the 6 or 7 online monitor methods of described voice gateways, it is characterized in that step 7 may further comprise the steps:
Step 701. system is converted to the RTP data message with the G711A rule coded format data that obtain;
Step 702. system judges whether monitoring side is the local user, if then enter step 703, otherwise enters step 704;
Step 703. system directly sends to monitoring side with this RTP data message;
Step 704. system sends to monitoring side with this RTP data message by the IP mode.
9. the online monitor method of voice gateways as claimed in claim 8 is characterized in that, described local user refers to that monitoring side and quilt monitoring side are on same voice gateways.
CN201110453457.4A 2011-12-30 2011-12-30 The online monitor method of voice gateways Active CN103188403B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110453457.4A CN103188403B (en) 2011-12-30 2011-12-30 The online monitor method of voice gateways

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110453457.4A CN103188403B (en) 2011-12-30 2011-12-30 The online monitor method of voice gateways

Publications (2)

Publication Number Publication Date
CN103188403A true CN103188403A (en) 2013-07-03
CN103188403B CN103188403B (en) 2016-08-03

Family

ID=48679361

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110453457.4A Active CN103188403B (en) 2011-12-30 2011-12-30 The online monitor method of voice gateways

Country Status (1)

Country Link
CN (1) CN103188403B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105337897A (en) * 2015-10-31 2016-02-17 广州海格通信集团股份有限公司 Audio PTT synchronous transmission system based on RTP message
CN108810294A (en) * 2018-06-13 2018-11-13 广州市毅航互联通信股份有限公司 A kind of two-way sound mixing method based on FPGA
CN111432075A (en) * 2020-03-12 2020-07-17 深圳震有科技股份有限公司 Voice call real-time monitoring method and device based on VOIP network
CN111787160A (en) * 2020-07-07 2020-10-16 上海茂声智能科技有限公司 Method, device and system for voice gateway security detection

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1389862A1 (en) * 2002-08-08 2004-02-18 Alcatel Lawful interception for VoIP calls in IP based networks
CN101188525A (en) * 2007-11-27 2008-05-28 华为技术有限公司 A processing method and device for voice stream
CN101488954A (en) * 2009-01-09 2009-07-22 中兴通讯股份有限公司 Speech monitoring method and access gateway

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1389862A1 (en) * 2002-08-08 2004-02-18 Alcatel Lawful interception for VoIP calls in IP based networks
CN101188525A (en) * 2007-11-27 2008-05-28 华为技术有限公司 A processing method and device for voice stream
CN101488954A (en) * 2009-01-09 2009-07-22 中兴通讯股份有限公司 Speech monitoring method and access gateway

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105337897A (en) * 2015-10-31 2016-02-17 广州海格通信集团股份有限公司 Audio PTT synchronous transmission system based on RTP message
CN105337897B (en) * 2015-10-31 2019-01-22 广州海格通信集团股份有限公司 A kind of audio PTT synchronous transmission system based on RTP message
CN108810294A (en) * 2018-06-13 2018-11-13 广州市毅航互联通信股份有限公司 A kind of two-way sound mixing method based on FPGA
CN111432075A (en) * 2020-03-12 2020-07-17 深圳震有科技股份有限公司 Voice call real-time monitoring method and device based on VOIP network
CN111432075B (en) * 2020-03-12 2022-03-08 深圳震有科技股份有限公司 Voice call real-time monitoring method and device based on VOIP network
CN111787160A (en) * 2020-07-07 2020-10-16 上海茂声智能科技有限公司 Method, device and system for voice gateway security detection
CN111787160B (en) * 2020-07-07 2022-06-14 上海茂声智能科技有限公司 Method, device and system for voice gateway security detection

Also Published As

Publication number Publication date
CN103188403B (en) 2016-08-03

Similar Documents

Publication Publication Date Title
CN101313525B (en) Infrastructure for enabling high quality real-time audio
JP4645856B2 (en) Protocol conversion system for media communication between packet switching network and circuit switching network
WO2019128204A1 (en) Conference implementation method, device, apparatus and system, and computer readable storage medium
JP5320406B2 (en) Audio processing method, system, and control server
CN102226944B (en) Audio mixing method and equipment thereof
TWI442742B (en) Performance enhancement protocol, systems, methods and devices
JP2006060828A (en) Method and apparatus for transmitting video signal
USRE47345E1 (en) Apparatus and method for converting control information
JP2006504300A (en) Method and apparatus for DTMF search and speech mixing in CELP parameter domain
WO2009067954A1 (en) A method and device for processing an audio stream
JP5299438B2 (en) Gateway apparatus and method and system
WO2010083737A1 (en) Method and apparatus for processing voice signal, method and apparatus for transmitting voice signal
CN102299962A (en) Cloud-based Voice over Internet Protocol (VoIP) system, device and method
JP5500069B2 (en) Gateway apparatus and method and program
CN103188403A (en) Voice gateway online monitoring method
JP5316546B2 (en) Gateway apparatus, method and program
WO2017036259A1 (en) Resource request method and device, and terminal control method and device
WO2021017807A1 (en) Call connection establishment method, first terminal, server, and storage medium
KR20120132532A (en) Transcoder bypass in mobile handset for voip call with bluetooth headsets
US7649898B1 (en) Converting media streams in a communication system
WO2014071766A1 (en) Audio multi-code transmission method and corresponding apparatus
CN112887497B (en) Communication method, apparatus and computer storage medium
KR100986113B1 (en) The media codec sharing method for multi-party call
WO2022037444A1 (en) Encoding and decoding methods and apparatuses, medium, and electronic device
KR20040095652A (en) Control component removal of one or more encoded frames from isochronous telecommunication stream based on one or more code rates of the one or more encoded frames to create non-isochronous telecommunication stream

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