CN101656735B - Code flow processing method and device in communication link - Google Patents

Code flow processing method and device in communication link Download PDF

Info

Publication number
CN101656735B
CN101656735B CN 200910170364 CN200910170364A CN101656735B CN 101656735 B CN101656735 B CN 101656735B CN 200910170364 CN200910170364 CN 200910170364 CN 200910170364 A CN200910170364 A CN 200910170364A CN 101656735 B CN101656735 B CN 101656735B
Authority
CN
China
Prior art keywords
code stream
stream
compressed encoding
characteristic
code
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
CN 200910170364
Other languages
Chinese (zh)
Other versions
CN101656735A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN 200910170364 priority Critical patent/CN101656735B/en
Publication of CN101656735A publication Critical patent/CN101656735A/en
Application granted granted Critical
Publication of CN101656735B publication Critical patent/CN101656735B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a code flow processing method and device in a communication link, which is used for solving the problem of wasting MGW resource when executing VQE in a call link according to VQE rules provided by the prior art. The inventive method comprises that a media gateway receives code flow, and determines characteristic of the received code flow; when determined that the characteristic of the received code flow is VoIP compression code flow, the media gateway decodes the VoIP compression code flow to generate PCM code flow; the media gateway transmits the generated PCM code flow which does not execute voice quality enhancement.

Description

Code flow processing method in the communication link and device
Technical field
The present invention relates to communication technical field, relate in particular to code flow processing method and device in a kind of communication link.
Background technology
In the communication network, disturbing factor in the communication terminal place environment of conversing can be different on the call voice mass formation impact, especially background noise, energy attenuation, electric echo, acoustic echo etc., it all is the principal element that affects communication quality, in order to eliminate or to weaken above-mentioned factor to the impact of call voice quality, what generally adopt at present is to be called as voice quality to strengthen (VQE, Voice Quality Enhancement) method, the method mainly is at media gateway (MGW, Media Gate Way) VQE unit of configuration in, MGW can call this VQE unit, and the code stream in the communication link is carried out VQE.
Particularly, the rule to the execution of the code stream in communication link VQE that provides in the prior art is: need carry out VQE to the code stream that will encode; Also need carry out VQE to the code stream that obtains after the decoding, but can there be some problems in this rule in actual applications, that is: in same talking link, may repeat repeatedly VQE, such as, (Media Gateway Controller (the MGC among Fig. 1 in talking link as shown in Figure 1, Media Gateway Controller) etc. be the less entity of property related to the present invention, do not do and introduce), the above-mentioned rule that provides according to prior art, can cause the code stream in the talking link to carry out three VQE in the direction that code stream flows to, (BSC is as base station controller take code stream from BSC/ fixed network 103, Base Station Controller) flowing to RNC/BSC105 (RNC is radio network controller, Radio Network Controller) is example, and these three VQE are respectively:
1, the VQE that realizes for MGW102, owing to the pulse-code modulation (PCM that comes from BSC/ fixed network 103, Pulse Code Modulation) after the 64K code stream arrives MGW102, owing to need to this PCM64K code stream be carried out compressed encoding, therefore, regular according to the VQE that prior art provides, need to be before coding, the PCM64K code stream is carried out VQE, and then the PCM64K code stream that will carry out VQE carries out compressed encoding, obtain IP network voice transfer protocol (VoIP, Voice over Internet Protocol) compressed encoding code stream;
2, the VQE that realizes for MGW104, because the code stream at MGW104 two ends is respectively VoIP compressed encoding code stream and 3GPP compressed encoding code stream, this just needs first VoIP compressed encoding code stream decoding to be become the PCM64K code stream, according to the VQE rule that prior art provides, need to carry out VQE to the PCM64K code stream that obtains after the decoding;
3, another time VQE that realizes for MGW104, after because VoIP compressed encoding code stream decoded and finishes VQE, what produce is the PCM64K code stream, and need to carry out just mailing to behind the compressed encoding of 3GPP RNC/BSC105 in the IP/ATM network to this PCM64K code stream, regular according to the VQE that prior art provides, need to before the PCM64K code stream is encoded, carry out VQE to it.
To sum up, in the talking link of BSC/ fixed network 103 to RNC/BSC105 directions, processing mode to code stream includes 2 codings, 1 decoding, therefore this conversation direction needs to carry out VQE altogether 3 times, and the talking link opposite with this direction also is like this, session from RNC/BSC105 to BSC/ fixed network direction can be experienced 2 decodings, 1 coding, also is to need to carry out 3 VQE.
In the talking link of reality, at background noise etc. on the impact of communication quality hour, code stream is carried out repeatedly VQE can worsen voice quality on the contrary, has played the effect of running counter to desire; In addition, a code stream direction for actual talking link, general only need to carry out a VQE to code stream and can make communication quality satisfy communication requirement, therefore, the VQE rule that provides according to prior art and the too much VQE that carries out also is a kind of waste to the limited resource of MGW.
Summary of the invention
The embodiment of the invention provides code flow processing method and the device in a kind of communication link, when carrying out VQE in order to the VQE rule that provides according to prior art to be provided in talking link, can waste the problem of MGW resource.
For this reason, the embodiment of the invention is by the following technical solutions:
Code flow processing method in a kind of communication link comprises: media gateway in the communication link receives code stream, and determines the characteristic of the code stream that receives; When the characteristic of determining the described code stream that receives was IP network voice transfer protocol VoIP compressed encoding code stream, described media gateway was carried out decoding to described VoIP compressed encoding code stream, generated the pulse-code modulation code stream; Described media gateway sends does not carry out the pulse-code modulation code stream that voice quality strengthens.
Preferably, described media gateway determines that the characteristic of the code stream that receives specifically comprises: described media gateway is determined the pattern information of the described code stream that receives according to the sign pattern information of the described code stream that receives; Described media gateway is determined to process relevant process information with the described code stream that receives is decoded processing or coding according to the compression pattern information of the described code stream that receives; Described media gateway is determined the characteristic of the described code stream that receives according to described definite pattern information and described definite process information.
Preferably, described media gateway sends and do not carry out the pulse-code modulation code stream that voice quality strengthens and specifically comprise: described media gateway is determined the characteristic of the pulse-code modulation code stream of described generation; When the characteristic of the pulse-code modulation code stream of determining described generation for need carry out the pulse-code modulation code stream of VoIP compressed encoding the time, described media gateway is not carried out compressed encoding for carrying out the described pulse-code modulation code stream that voice quality strengthens, and generates VoIP compressed encoding code stream; Described media gateway sends the VoIP compressed encoding code stream of described generation.
Code flow processing method in a kind of communication link comprises: the media gateway in the communication link determine will transmitted stream characteristic; When determining that described characteristic that will transmitted stream is for need carry out the pulse-code modulation code stream of IP network voice transfer protocol VoIP compressed encoding the time, described media gateway is carried out compressed encoding for the described pulse-code modulation code stream of not carrying out the voice quality enhancing, generates IP network voice transfer protocol VoIP compressed encoding code stream; Described media gateway sends the VoIP compressed encoding code stream of described generation.
Preferably, the media gateway in the described communication link determine will transmitted stream characteristic specifically comprise: described media gateway is according to described sign pattern information that will transmitted stream, determines described pattern information that will transmitted stream; Described media gateway is according to described compression pattern information that will transmitted stream, determines and described will transmitted stream the decoding processed or process information that the coding processing is relevant; Described media gateway is according to described definite pattern information and described definite process information, determines described characteristic that will transmitted stream.
Code stream processing unit in a kind of communication link comprises: the code stream receiving element, for the code stream that receives described communication link; Code stream characteristic determining unit is for the characteristic of determining the code stream that the code stream receiving element receives; Decoding unit when being IP network voice transfer protocol VoIP compressed encoding code stream for the characteristic of determining the described code stream that receives when code stream characteristic determining unit, is carried out decoding to described VoIP compressed encoding code stream, generates the pulse-code modulation code stream; The code stream transmitting element is used for sending the pulse-code modulation code stream of not carrying out the voice quality enhancing that decoding unit generates.
Preferably, described code stream characteristic determining unit specifically comprises: pattern information determination module, for the sign pattern information of the code stream that receives according to the code stream receiving element, determine the pattern information of the described code stream that receives; The process information determination module for the compression pattern information of the code stream that receives according to the code stream receiving element, is determined and the described code stream that receives is decoded processing or the relevant process information of processing of encoding; The characteristic determination module is used for pattern information and the process information determination module definite process information definite according to pattern information determination module, determines the characteristic of the described code stream that receives.
Preferably, described code stream characteristic determining unit also is used for the characteristic of the pulse-code modulation code stream of definite described generation, and described code stream transmitting element specifically comprises: coding module, characteristic for the pulse-code modulation code stream of determining described generation when code stream characteristic determining unit is in the time of need carrying out the pulse-code modulation code stream of VoIP compressed encoding, the described need of not carrying out the voice quality enhancing are carried out the pulse-code modulation code stream of compressed encoding and carry out compressed encoding, generate VoIP compressed encoding code stream; The code stream sending module is used for sending the VoIP compressed encoding code stream that coding module generates.
Code stream processing unit in a kind of communication link comprises: code stream characteristic determining unit, be used for to determine will transmitted stream characteristic; Coding unit, being used for determining described characteristic that will transmitted stream when code stream characteristic determining unit is in the time of need carrying out the pulse-code modulation code stream of IP network voice transfer protocol VoIP compressed encoding, the described pulse-code modulation code stream execution compressed encoding that strengthens not carrying out voice quality generates IP network voice transfer protocol VoIP compressed encoding code stream; Transmitting element is used for sending the VoIP compressed encoding code stream that coding unit generates.
Preferably, described code stream characteristic determining unit specifically comprises: pattern information determination module, be used for according to described sign pattern information that will transmitted stream, and determine described pattern information that will transmitted stream; The process information determination module is used for according to described compression pattern information that will transmitted stream, determines and described will transmitted stream the decoding processed or process information that the coding processing is relevant; The characteristic determination module is used for the process information that the pattern information determined according to pattern information determination module and process information determination module are determined, determines described characteristic that will transmitted stream.
The embodiment of the invention by media gateway after receiving code stream, determine first the characteristic of code stream, and when the code stream characteristic of determining the code stream that receives is VoIP compressed encoding code stream, media gateway is carried out decoding to this VoIP compressed encoding code stream, generate pcm stream, and pcm stream that will not carry out the voice quality enhancing sends, therefore, the voice quality that provides in the prior art strengthens strategy, when scheme provided by the invention is VoIP compressed encoding code stream in the characteristic of determining the code stream that receives, there is no need to carry out voice quality definite this moment strengthens, strengthen thereby the code stream that obtains after the code stream that receives is decoded is not carried out voice quality, thus therefore avoided the VQE rule that provides according to prior art still needs the code stream that need not carry out voice quality and strengthen is carried out the problem of VQE waste MGW resource.
In addition, the code stream processing scheme in another communication link of providing of the embodiment of the invention by media gateway determine will transmitted stream characteristic; When determine will transmitted stream characteristic for need carry out the pcm stream of VoIP compressed encoding the time, media gateway is not carried out compressed encoding for carrying out the pcm stream that voice quality strengthens, and generates VoIP compressed encoding code stream; And the VoIP compressed encoding code stream that generates sent, therefore, the voice quality that provides in the prior art strengthens strategy, scheme provided by the invention determine will transmitted stream characteristic for need carry out the pcm stream of VoIP compressed encoding the time, there is no need to carry out voice quality definite this moment strengthens, thereby this pcm stream that need is not carried out compressed encoding is carried out voice quality and is strengthened, thus therefore avoided the VQE rule that provides according to prior art still needs the code stream that need not carry out voice quality and strengthen is carried out the problem of VQE waste MGW resource.
Description of drawings
Fig. 1 is talking link schematic diagram of the prior art;
The specific implementation schematic flow sheet of the code flow processing method in a kind of communication link that Fig. 2 provides for the embodiment of the invention;
Fig. 3 is the idiographic flow schematic diagram that MGW determines the characteristic of the code stream that receives in the embodiment of the invention;
The specific implementation schematic flow sheet of the code flow processing method in the another kind of communication link that Fig. 4 provides for the embodiment of the invention;
The concrete structure schematic diagram of the MGW that provides in the embodiment of the invention is provided Fig. 5 a;
The code flow processing method specific implementation process schematic diagram in actual applications that Fig. 5 b provides for the embodiment of the invention;
The concrete structure schematic diagram of the code stream processing unit in the first communication link that Fig. 6 provides for the embodiment of the invention;
The concrete structure schematic diagram of the code stream processing unit in the second communication link that Fig. 7 provides for the embodiment of the invention.
Embodiment
The embodiment of the invention provides the processing scheme of the code stream in a kind of communication link, by media when the characteristic of determining the code stream that receives is VoIP compressed encoding code stream, after this VoIP compressed encoding code stream is decoded, the code stream that decoding is not obtained is carried out voice quality and is strengthened, thereby avoided the VQE rule that provides according to prior art still the code stream of needs with above-mentioned characteristic carry out the VQE that there is no need, thereby the problem of waste MGW resource.
Be explained in detail to the main realization principle of embodiment of the invention technical scheme, embodiment and to the beneficial effect that should be able to reach below in conjunction with each accompanying drawing.
The embodiment of the invention at first provides the code flow processing method in a kind of communication link, and the specific implementation flow chart of the method mainly may further comprise the steps as shown in Figure 2:
Step 21, the code stream in the MGW received communication link, and determine the characteristic of the code stream that receives;
Step 22, when the characteristic of determining the code stream that receives as MGW was VoIP compressed encoding code stream, MGW carried out decoding to this VoIP compressed encoding code stream, generates pcm stream;
Step 23, MGW is that will generate and that do not carry out VQE, and pcm stream sends, such as, can directly send pcm stream this generation and that do not carry out VQE, after also can carrying out compressed encoding generation compressed encoding code stream to it, send again the compressed encoding code stream that generates, specifically will be introduced hereinafter its mode of carrying out sending again behind the compressed encoding, do not repeat them here.
In the said method that the embodiment of the invention provides, the specific implementation process of step 23 can be in the following way:
At first, MGW determines the characteristic of the pulse-code modulation code stream of generation;
Then, when the characteristic of the pulse-code modulation code stream that determine to generate for need carry out the pcm stream of VoIP compressed encoding the time, MGW does not carry out VQE to the pcm stream that this need carry out the VoIP compressed encoding, but directly this pcm stream that need carry out compressed encoding is carried out compressed encoding, generate VoIP compressed encoding code stream;
At last, MGW this VoIP compressed encoding code stream that will generate sends.
In embodiments of the present invention, MGW determines that the process of the characteristic of the code stream that receives can as shown in Figure 3, specifically comprise the steps:
Step 31, MGW is according to the sign pattern information of the code stream that receives, determine the pattern information of the code stream that receives, usually, pattern comprises the adaptive multi-rate (AMR of 3GPP, Adaptive Multi-Rate) pattern, enhanced variable rate encoding and decoding pattern (EVRC, Enhanced Variable Rate Codecc), Code Excited Linear Prediction encoding and decoding pattern (QCELP, Qualcomm Code Excite Linear PredictiveCodec), three kinds of patterns of GSM (comprise HR half rate pattern, FR full rate pattern, EFR enhanced full rate pattern), be carried on the pattern (VoIP on the IP, G.711 Voice over IP comprises, G.729, G.723 wait pattern etc.) etc.;
Step 32, MGW determines to process relevant process information with the code stream that receives is decoded processing or coding further according to the compression pattern information of the code stream that receives;
Step 33, MGW is according to above-mentioned definite pattern information and definite process information, determine the characteristic of the code stream that receives, such as, the step 12 of the method that provides for the embodiment of the invention, when the characteristic that MGW determines the code stream that receives is VoIP compressed encoding code stream, then no matter this VoIP compressed encoding code stream is from which network, according to the said method that the embodiment of the invention provides, the code stream that MGW obtains after can not decoding to the VoIP compressed encoding code stream that this is received is carried out VQE.
Need to prove, above-mentioned steps 31,32 execution sequence also can carry out not according to said sequence, with random order execution in step 31,32 all within protection scope of the present invention.
The embodiment of the invention also provides the code flow processing method in the another kind of communication link, by when MGW determine self will transmitted stream characteristic for need carry out the pcm stream of VoIP compressed encoding the time, MGW carries out the VoIP compressed encoding for the pcm stream of not carrying out the voice quality enhancing, generates VoIP compressed encoding code stream; And the VoIP compressed encoding code stream that generates sent, therefore, the voice quality that provides in the prior art strengthens strategy, scheme provided by the invention determine will transmitted stream characteristic for need carry out the pcm stream of VoIP compressed encoding the time, there is no need to carry out voice quality definite this moment strengthens, thereby need are not carried out this pcm stream execution voice quality enhancing of VoIP compressed encoding, thereby therefore avoided the VQE rule that provides according to prior art still needs the code stream that need not carry out voice quality and strengthen is carried out the problem of VQE waste MGW resource, particularly, the idiographic flow schematic diagram of this code flow processing method that the embodiment of the invention provides may further comprise the steps as shown in Figure 4:
Step 41, MGW determine will transmitted stream characteristic;
Step 42, when determine will transmitted stream characteristic for need carry out the pcm stream of VoIP compressed encoding the time, MGW does not carry out VQE to the pcm stream that this need carry out the VoIP compressed encoding, and directly carries out the VoIP compressed encoding for this pcm stream of not carrying out VQE, generates VoIP compressed encoding code stream;
Step 43, MGW sends the VoIP compressed encoding code stream that generates.
Particularly, in the above-mentioned steps 41, MGW determines that the process of characteristic that will self transmitted stream can adopt following steps:
At first, MGW is according to sign pattern information that will transmitted stream, determine will transmitted stream pattern information;
Then, MGW is according to compression pattern information that will transmitted stream, determines and the process information of processing will transmitted stream decoding or the coding processing is relevant;
At last, MGW is according to the pattern information of determining and definite process information, determine will transmitted stream characteristic, such as, for above-mentioned steps 42, when determining characteristic that MGW will transmitted stream for the code stream of the PCM that need carry out the VoIP compressed encoding, then no matter need which network this pcm stream is sent to, MGW can not carry out VQE to this pcm stream before this pcm stream is carried out the VoIP compressed encoding.
Before the step 41 of the method that the embodiment of the invention provides, can further include step: the code stream in the MGW received communication link, and determine the characteristic of the code stream that receives; When the characteristic of determining the code stream that receives as MGW was VoIP compressed encoding code stream, MGW carried out decoding to this VoIP compressed encoding code stream, generates pcm stream; MGW pcm stream that will generate and that do not carry out VQE will carry out transmitted stream as described.
The said method that provides in order to describe the embodiment of the invention in detail is below with in above-mentioned two kinds of method synthesis to practical application flow process, to specify the specific implementation process of above-mentioned two kinds of methods.
Code flow processing method in the above-mentioned communication link that provides corresponding to the embodiment of the invention, MGW can be divided into a plurality of functional units, specifically shown in Fig. 5 a, comprise: code stream receiving element 501, code stream characteristic determining unit 502, VQE unit 503, coding unit 504, decoding unit 505, code stream transmitting element 506, in order to describe intuitively the method that the embodiment of the invention provides and the difference of prior art, code stream from the T net to IP network in the communication link shown in Figure 1 flows to as example, the process that code stream is processed is finished in above-mentioned 6 unit cooperations to be described, the concrete schematic diagram of this process may further comprise the steps shown in Fig. 5 b:
Step 51, the code stream receiving element among the MGW102 receives the code stream of being sent by the T net;
Step 52, the code stream analysis unit among the MGW102 is analyzed the code stream that the code stream receiving element receives, and according to the connection attribute information of the code stream that receives, and the network of determining to send this code stream is the T net;
Step 53, the code stream analysis unit among the MGW102 are further determined pattern and the process information of the code stream that this receives and will transmit, and are to carry out the PCM64 code stream that the VoIP compressed encoding is processed if determine the code stream that receives, and then execution in step 54;
Step 54, MGW102 no longer carries out the PCM64 code stream that the VoIP compressed encoding processes to need and carries out VQE, but directly call coding unit, this PCM64 code stream that receives is carried out the VoIP compressed encoding to be processed, generate VoIP compressed encoding code stream, and call the code stream transmitting element and will generate VoIP compressed encoding code stream and send in the IP network and go;
Step 55, the VoIP compressed encoding code stream that sends in the code stream receiving element receiving step 54 among the MGW104, and the characteristic of this VoIP compressed encoding code stream that the code stream receiving element receives is determined in the code stream specificity analysis unit among the MGW104;
Step 56, the code stream characteristic that code stream specificity analysis unit among the MGW104 is determined is VoIP compressed encoding code stream, therefore, provide code flow processing method according to the embodiment of the invention, MGW104 only need to call decoding unit this VoIP compressed encoding code stream was decoded this moment, generate the PCM64K code stream, follow-uply no longer need to call the VQE unit this PCM64K code stream that decoding unit generates is carried out VQE;
Step 57, MGW104 judges that further current this PCM64K code stream that will send is the code stream that need to carry out the 3GPP compressed encoding, therefore, this PCM64K code stream that generates in the step 56 is carried out VQE, and to having carried out after the PCM64K code stream behind the VQE carries out the 3GPP compressed encoding, the 3GPP compressed encoding code stream that obtains is sent to RNC/BSC105, and flow process finishes.
Code flow processing method process in actual applications in the communication link that is provided by the embodiment of the invention as can be known, compared with prior art, the first method that provides according to the embodiment of the invention, in the talking link of as shown in Figure 1 BSC/ fixed network 103 to RNC/BSC105 directions, can reduce VQE 2 times, thereby the method that adopts the embodiment of the invention to provide, MGW need not repeatedly to call the VQE unit, can realize improving under the prerequisite of speech quality, greatly save code stream is carried out the required processing resource of unnecessary VQE, reduced the resource overhead of whole communication system.
In addition, according to above-described embodiment as can be known, the code flow processing method that provides according to the embodiment of the invention, in the talking link of as shown in Figure 1 BSC/ fixed network 103 to RNC/BSC105 directions, at least can carry out VQE one time to code stream, thereby the voice quality of whole talking link can be because of MGW104, MGW102 has removed the VQE function of partial code streams has been descended, on the contrary, according to the analysis of prior art as can be known, this code flow processing method that the embodiment of the invention provides background noise etc. on the less situation of the impact of communication quality under, can avoid code stream is carried out repeatedly VQE and the problem of the deterioration voice quality that causes.
Similarly, flow to for the code stream of netting from the IP network to T in the communication link shown in Figure 1, it is similar that process and the flow process shown in Fig. 5 b that code stream is processed are finished in above-mentioned 6 unit cooperations, therefore repeats no more.
Correspondingly, the embodiment of the invention also provides the code stream processing unit in two kinds of communication links, when carrying out VQE in order to the VQE rule that provides according to prior art to be provided in talking link, can waste the problem of MGW resource.Wherein, the concrete structure schematic diagram of the code stream processing unit in the first communication link that the embodiment of the invention provides as shown in Figure 6, the title of each functional unit and function are as follows respectively:
Code stream receiving element 61 is for the code stream of received communication link;
Code stream characteristic determining unit 62 is for the characteristic of determining the code stream that code stream receiving element 61 receives;
Decoding unit 63 is used for this VoIP compressed encoding code stream being carried out decoding, the generation pcm stream when characteristic that code stream characteristic determining unit 62 is determined the code stream that code stream receiving element 61 receives is VoIP compressed encoding code stream;
Code stream transmitting element 64 is used for sending the pcm stream of not carrying out the voice quality enhancing that decoding unit 63 generates.
Corresponding to a kind of implementation of code stream characteristic determining unit 62 functions, can be the following functions module with code stream characteristic determining unit 62 Further Divisions in the embodiment of the invention, comprising:
Pattern information determination module for the sign pattern information of the code stream that receives according to the code stream receiving element, is determined the pattern information of the described code stream that receives; The process information determination module for the compression pattern information of the code stream that receives according to the code stream receiving element, is determined and the described code stream that receives is decoded processing or the relevant process information of processing of encoding; The characteristic determination module is used for pattern information and the process information determination module definite process information definite according to pattern information determination module, determines the characteristic of the described code stream that receives.
In addition, in embodiments of the present invention, code stream characteristic determining unit 62 can also be used for the characteristic of definite pcm stream that generates, and preferably, the code stream transmitting element 64 in the embodiment of the invention can Further Division be the following functions module, comprising:
Coding module, characteristic for the pcm stream of determining generation when code stream characteristic determining unit is in the time of need carrying out the pcm stream of VoIP compressed encoding, this pcm stream that need carry out the VoIP compressed encoding of not carrying out the voice quality enhancing is carried out the VoIP compressed encoding, generate VoIP compressed encoding code stream;
The code stream sending module is used for sending the VoIP compressed encoding code stream that coding module generates.
The embodiment of the invention also provides the processing unit of the code stream in the second communication link, when carrying out VQE in order to the VQE rule that provides according to prior art to be provided in talking link, can waste the problem of MGW resource, the concrete structure schematic diagram of this device specifically comprises the following functions unit as shown in Figure 7:
Code stream characteristic determining unit 71, be used for to determine will transmitted stream characteristic;
Coding unit 72, be used for when code stream characteristic determining unit 71 determine will transmitted stream characteristic be in the time of need carrying out the pcm stream of VoIP compressed encoding, this pcm stream execution VoIP compressed encoding that strengthens not carrying out voice quality generates VoIP compressed encoding code stream;
Transmitting element 73 is used for sending the VoIP compressed encoding code stream that coding unit 72 generates.
Preferably, can also be the following functions module with above-mentioned code stream characteristic determining unit 71 Further Divisions in the embodiment of the invention:
Pattern information determination module is used for according to sign pattern information that will transmitted stream, determine will transmitted stream pattern information; The process information determination module is used for according to compression pattern information that will transmitted stream, determines and the process information of processing will transmitted stream decoding or the coding processing is relevant; The characteristic determination module is used for the process information that the pattern information determined according to pattern information determination module and process information determination module are determined, determine will transmitted stream characteristic.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (10)

1. the code flow processing method in the communication link is characterized in that, comprising:
Media gateway in the communication link receives code stream, and determines the characteristic of the code stream that receives;
When the characteristic of determining the described code stream that receives is IP network voice transfer protocol VoIP compressed encoding code stream, described media gateway is carried out decoding to described VoIP compressed encoding code stream, generate the pulse-code modulation code stream, described media gateway sends does not carry out the pulse-code modulation code stream that voice quality strengthens; And
When the characteristic of determining the described code stream that receives is the pulse-code modulation code stream of VoIP compressed encoding, after the pulse-code modulation code stream execution voice quality enhancing of not carrying out the voice quality enhancing in the pulse-code modulation code stream of receiving, carry out the 3GPP compressed encoding, obtain 3GPP compressed encoding code stream, described media gateway sends the 3GPP compressed encoding code stream that obtains.
2. the method for claim 1 is characterized in that, described media gateway determines that the characteristic of the code stream that receives specifically comprises:
Described media gateway is determined the pattern information of the described code stream that receives according to the sign pattern information of the described code stream that receives;
Described media gateway is determined to process relevant process information with the described code stream that receives is decoded processing or coding according to the compression pattern information of the described code stream that receives;
Described media gateway is determined the characteristic of the described code stream that receives according to described definite pattern information and described definite process information.
3. the method for claim 1 is characterized in that, described media gateway sends the pulse-code modulation code stream of not carrying out the voice quality enhancing and specifically comprises:
Described media gateway is determined the characteristic of the pulse-code modulation code stream of described generation;
When the characteristic of the pulse-code modulation code stream of determining described generation for need carry out the pulse-code modulation code stream of VoIP compressed encoding the time, described media gateway is carried out the VoIP compressed encoding for the described pulse-code modulation code stream of not carrying out the voice quality enhancing, generates VoIP compressed encoding code stream;
Described media gateway sends the VoIP compressed encoding code stream of described generation.
4. the code flow processing method in the communication link is characterized in that, comprising:
Media gateway in the communication link determine will transmitted stream characteristic;
When determining that described characteristic that will transmitted stream is for need carry out the pulse-code modulation code stream of IP network voice transfer protocol VoIP compressed encoding the time, described media gateway is carried out the VoIP compressed encoding for the described pulse-code modulation code stream of not carrying out the voice quality enhancing, generate IP network voice transfer protocol VoIP compressed encoding code stream, described media gateway sends the VoIP compressed encoding code stream of described generation; And
When the code stream characteristic of determining reception is 3GPP compressed encoding code stream, described media gateway is carried out decoding to described 3GPP compressed encoding code stream, generate the pulse-code modulation code stream, then carrying out voice quality strengthens, and the pulse-code modulation code stream of carrying out after voice quality strengthens carried out the VoIP compressed encoding, obtain VoIP compressed encoding code stream, described media gateway sends has carried out the VoIP compressed encoding code stream that voice quality strengthens.
5. method as claimed in claim 4 is characterized in that, the media gateway in the described communication link determine will transmitted stream characteristic specifically comprise:
Described media gateway is according to described sign pattern information that will transmitted stream, determines described pattern information that will transmitted stream;
Described media gateway is according to described compression pattern information that will transmitted stream, determines and described will transmitted stream the decoding processed or process information that the coding processing is relevant;
Described media gateway is according to described definite pattern information and described definite process information, determines described characteristic that will transmitted stream.
6. the code stream processing unit in the communication link is characterized in that, comprising:
The code stream receiving element is for the code stream that receives described communication link;
Code stream characteristic determining unit is for the characteristic of determining the code stream that the code stream receiving element receives;
Decoding unit when being IP network voice transfer protocol VoIP compressed encoding code stream for the characteristic of determining the described code stream that receives when code stream characteristic determining unit, is carried out decoding to described VoIP compressed encoding code stream, generates the pulse-code modulation code stream; When the characteristic of determining the described code stream that receives is the pulse-code modulation code stream of VoIP compressed encoding, after the pulse-code modulation code stream execution voice quality enhancing of not carrying out the voice quality enhancing in the pulse-code modulation code stream of receiving, carry out the 3GPP compressed encoding, obtain 3GPP compressed encoding code stream;
The code stream transmitting element is used for sending the pulse-code modulation code stream of not carrying out the voice quality enhancing that decoding unit generates; And send the 3GPP compressed encoding code stream obtain.
7. device as claimed in claim 6 is characterized in that, described code stream characteristic determining unit specifically comprises:
Pattern information determination module for the sign pattern information of the code stream that receives according to the code stream receiving element, is determined the pattern information of the described code stream that receives;
The process information determination module for the compression pattern information of the code stream that receives according to the code stream receiving element, is determined and the described code stream that receives is decoded processing or the relevant process information of processing of encoding;
The characteristic determination module is used for pattern information and the process information determination module definite process information definite according to pattern information determination module, determines the characteristic of the described code stream that receives.
8. device as claimed in claim 6 is characterized in that, described code stream characteristic determining unit also is used for the characteristic of the pulse-code modulation code stream of definite described generation, and described code stream transmitting element specifically comprises:
Coding module, characteristic for the pulse-code modulation code stream of determining described generation when code stream characteristic determining unit is in the time of need carrying out the pulse-code modulation code stream of VoIP compressed encoding, the described need of not carrying out the voice quality enhancing are carried out the pulse-code modulation code stream of compressed encoding and carry out the VoIP compressed encoding, generate VoIP compressed encoding code stream; The code stream sending module is used for sending the VoIP compressed encoding code stream that coding module generates.
9. the code stream processing unit in the communication link is characterized in that, comprising:
Code stream characteristic determining unit, be used for to determine will transmitted stream characteristic;
Coding unit, being used for determining described characteristic that will transmitted stream when code stream characteristic determining unit is in the time of need carrying out the pulse-code modulation code stream of IP network voice transfer protocol VoIP compressed encoding, the described pulse-code modulation code stream execution VoIP compressed encoding that strengthens not carrying out voice quality generates IP network voice transfer protocol VoIP compressed encoding code stream; And when the code stream characteristic of determining reception is 3GPP compressed encoding code stream, media gateway is carried out decoding to described 3GPP compressed encoding code stream, generate the pulse-code modulation code stream, then carrying out voice quality strengthens, and carry out the VoIP compressed encoding to carrying out the pulse-code modulation code stream that voice quality strengthens, obtain VoIP compressed encoding code stream;
Transmitting element is used for sending the VoIP compressed encoding code stream that coding unit generates, and sends the VoIP compressed encoding code stream of having carried out the voice quality enhancing.
10. device as claimed in claim 9 is characterized in that, described code stream characteristic determining unit specifically comprises:
Pattern information determination module is used for according to described sign pattern information that will transmitted stream, determines described pattern information that will transmitted stream;
The process information determination module is used for according to described compression pattern information that will transmitted stream, determines and described will transmitted stream the decoding processed or process information that the coding processing is relevant;
The characteristic determination module is used for the process information that the pattern information determined according to pattern information determination module and process information determination module are determined, determines described characteristic that will transmitted stream.
CN 200910170364 2009-09-11 2009-09-11 Code flow processing method and device in communication link Active CN101656735B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910170364 CN101656735B (en) 2009-09-11 2009-09-11 Code flow processing method and device in communication link

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910170364 CN101656735B (en) 2009-09-11 2009-09-11 Code flow processing method and device in communication link

Publications (2)

Publication Number Publication Date
CN101656735A CN101656735A (en) 2010-02-24
CN101656735B true CN101656735B (en) 2013-02-13

Family

ID=41710822

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910170364 Active CN101656735B (en) 2009-09-11 2009-09-11 Code flow processing method and device in communication link

Country Status (1)

Country Link
CN (1) CN101656735B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1474581A (en) * 2002-08-10 2004-02-11 华为技术有限公司 Method for realizing voice coding and decoding changeover and intercommunication
CN1756128A (en) * 2004-09-30 2006-04-05 北京信威通信技术股份有限公司 Method for improving communication terminal intercommunicating voice quality and communication system
CN1870785A (en) * 2005-11-15 2006-11-29 华为技术有限公司 Method for implement secondary coding-decoding operation service at cross-packet network and media gateway
US7173910B2 (en) * 2001-05-14 2007-02-06 Level 3 Communications, Inc. Service level agreements based on objective voice quality testing for voice over IP (VOIP) networks
CN101237620A (en) * 2008-02-27 2008-08-06 中兴通讯股份有限公司 Transmission method and media gateway for impulse coding modulation code stream

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7173910B2 (en) * 2001-05-14 2007-02-06 Level 3 Communications, Inc. Service level agreements based on objective voice quality testing for voice over IP (VOIP) networks
CN1474581A (en) * 2002-08-10 2004-02-11 华为技术有限公司 Method for realizing voice coding and decoding changeover and intercommunication
CN1756128A (en) * 2004-09-30 2006-04-05 北京信威通信技术股份有限公司 Method for improving communication terminal intercommunicating voice quality and communication system
CN1870785A (en) * 2005-11-15 2006-11-29 华为技术有限公司 Method for implement secondary coding-decoding operation service at cross-packet network and media gateway
CN101237620A (en) * 2008-02-27 2008-08-06 中兴通讯股份有限公司 Transmission method and media gateway for impulse coding modulation code stream

Also Published As

Publication number Publication date
CN101656735A (en) 2010-02-24

Similar Documents

Publication Publication Date Title
CN1223989C (en) Frame erasure compensation method in variable rate speech coder
JP6151405B2 (en) System, method, apparatus and computer readable medium for criticality threshold control
EP1368979B1 (en) Mobile communications using wideband terminals allowing tandem-free operation
CN106664161A (en) System and method of redundancy based packet transmission error recovery
CN101051465B (en) Method and apparatus for decoding layer encoded data
JP2006295931A (en) Apparatus and method for switching voice codec of mobile terminal
US20120323568A1 (en) Source Code Adaption Based on Communication Link Quality and Source Coding Delay
CN1488137A (en) Enhanced conversion of wideband signals to narrow band signals
EP2577935A1 (en) Codec deployment using in-band signals
CN101835204A (en) Voice communication method, equipment and system
CN103210681A (en) Core network and communication system
EP2109950B1 (en) Method of transmitting data in a communication system
EP2056293A2 (en) Data processing method and data processing apparatus
CN101656735B (en) Code flow processing method and device in communication link
AU6533799A (en) Method for transmitting data in wireless speech channels
KR101245451B1 (en) Speech energy estimation from coded parameters
CN101622711A (en) Methods, systems, and computer program products for silence insertion descriptor (sid) conversion
CN103812824A (en) Audio frequency multi-code transmission method and corresponding device
US7715365B2 (en) Vocoder and communication method using the same
CN103827964A (en) Encoding-decoding system, decoding device, encoding device, and encoding-decoding method
CN101170590A (en) A method, system and device for transmitting encoding stream under background noise
CN101309487B (en) Voice frame processing method, system and base station
CN101211561A (en) Music signal quality enhancement method and device
CN101529830B (en) Method and system for realizing the voice compensation in the mobile communication network
CN101322423B (en) System and method for non-cascade operation signal transmission

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