CN101662468B - Method and system for media negotiation - Google Patents
Method and system for media negotiation Download PDFInfo
- Publication number
- CN101662468B CN101662468B CN200910107681A CN200910107681A CN101662468B CN 101662468 B CN101662468 B CN 101662468B CN 200910107681 A CN200910107681 A CN 200910107681A CN 200910107681 A CN200910107681 A CN 200910107681A CN 101662468 B CN101662468 B CN 101662468B
- Authority
- CN
- China
- Prior art keywords
- voice encoding
- gateway
- caller
- decoding
- decoding format
- 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
Links
Images
Landscapes
- Telephonic Communication Services (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a method and a system for media negotiation, wherein the method comprises the steps of: presetting the priority level of voice codecs formats and receiving all voice codecs formats transmitted by a calling gateway and supported by the calling gateway; taking out the voice codecs formats supported by both the calling gateway and a called gateway; and according to the priority level of the voice codecs formats, selecting the voice codecs format with high priority level from the voice codecs formats supported by both the calling gateway and the called gateway. The invention causes the media negotiation to preferably select the high-fidelity voice codecs format, thus improving voice quality during conversation, and fully utilizing system and network resources.
Description
Technical field
The present invention relates to electronic communication field, particularly IP phone, wired optical communication EPON, GPON, the method and system of media negotiation in the comprehensive access technology such as wireless 3G.
Background technology
Our phone is main with PSTN still at present, and for the PSTN net of merges telecommunication, G.711A the encoding and decoding speech of being taked among the VOIP is first-selected still adopts or voice encoding and decoding format G.711U.High-fidelity code/decode format (as G.722) is supported wideer bandwidth, but also is not widely used at present.
The media negotiation of prior art normally carries out in the soft switch unit, and the soft switch unit can adopt following two kinds of methods to hold consultation after receiving the voice encoding and decoding format from each self-supporting of caller gateway and the transmission of called gateway:
(1) if first voice encoding and decoding format that the caller gateway sends, called gateway support, then the soft switch unit is not discerned the follow-up voice encoding and decoding format that sends, directly with first voice encoding and decoding format as negotiation result.
(2) the soft switch unit takes out the voice encoding and decoding format that caller gateway and called gateway are all supported, therefrom selects a kind of the most frequently used voice encoding and decoding format as negotiation result.
These two kinds of processing methods; Make that the high-fidelity code/decode format is difficult to chosen by the soft switch unit; Even the calling and called gateway is all supported the high-fidelity code/decode format, also can't utilize prior art to consult to obtain the high-fidelity code/decode format, so can not improve the tonequality of speech through adopting the high-fidelity encoding and decoding speech; Bring the user and experience more really, wasted system resource greatly.
Summary of the invention
Technical problem to be solved by this invention is, a kind of method and system of media negotiation is provided, and makes media negotiation can preferentially select the high-fidelity voice encoding and decoding format for use, thereby the speech quality when improving conversation makes full use of system and Internet resources.
The present invention has proposed a kind of method of media negotiation for solving the problems of the technologies described above, and the priority of voice encoding and decoding format is set in advance, and the method for said media negotiation may further comprise the steps:
All voice encoding and decoding formats of its support that reception caller gateway sends over;
Take out the voice encoding and decoding format that caller gateway and called gateway are all supported;
According to the priority of said voice encoding and decoding format, in the voice encoding and decoding format that said caller gateway and called gateway are all supported, select a kind of voice encoding and decoding format of high priority;
The method of said media negotiation comprises and gives each voice encoding and decoding format definition corresponding binary number in advance;
The method of said media negotiation is further comprising the steps of:
The binary number corresponding to all voice encoding and decoding formats of caller gateway support carries out exclusive disjunction, obtains the caller media capability, and the binary number corresponding to all voice encoding and decoding formats of called gateway support carries out exclusive disjunction, obtains called media capability;
The voice encoding and decoding format that said taking-up caller gateway and called gateway are all supported is meant:
Said caller media capability and said called media capability are carried out and computing, obtain the corresponding binary number of voice encoding and decoding format that caller gateway and called gateway are all supported.
Further, have only one to be 1 in the binary number of said definition, all the other positions are 0;
The said method of the corresponding binary number of each voice encoding and decoding format definition of giving is:
According to the priority of voice encoding and decoding format, the binary number that the definition voice encoding and decoding format is corresponding, the value of said binary number from small to large corresponding its priority rank from high to low.
Further, the voice encoding and decoding format of said high priority is meant the high-fidelity voice encoding and decoding format.
Further, said in the voice encoding and decoding format that caller gateway and called gateway are all supported, select a kind of voice encoding and decoding format of high priority, be meant:
Keeping low level in the corresponding binary number of voice encoding and decoding format that said caller gateway and called gateway all support, to begin first be 1 value, and all the other positions are set to 0, obtain a kind of corresponding binary number of voice encoding and decoding format of high priority.
Further, further comprising the steps of:
Called gateway is sent to the soft switch unit with the said voice encoding and decoding format of selecting as the media negotiation result;
Caller gateway and called gateway are opened the relevant voice passage according to the said media negotiation result that the soft switch unit issues.
In addition, the invention allows for a kind of system of media negotiation, comprising: caller gateway, soft switch unit, called gateway; Said called gateway comprises: the media negotiation module; Be used to be provided with the priority of voice encoding and decoding format, and all voice encoding and decoding formats that are used to receive its support that the caller gateway sends, the voice encoding and decoding format that caller gateway and called gateway are all supported taken out; According to the priority of said voice encoding and decoding format, select a kind of voice encoding and decoding format of high priority;
Said caller gateway is used for sending all voice encoding and decoding formats that said caller gateway is supported to said called gateway;
Said soft switch unit is used for all voice encoding and decoding formats of said caller gateway support are forwarded to said called gateway;
Said media negotiation module specifically also is used for the corresponding binary number of respectively caller gateway, called gateway being supported of all voice encoding and decoding format definition; And the corresponding binary number of all voice encoding and decoding formats of corresponding called gateway support carries out exclusive disjunction, obtains called media capability; The corresponding binary number of all voice encoding and decoding formats of corresponding caller gateway support carries out or moves calculation, obtains the caller media capability; Said caller media capability and said called media capability are carried out and computing, obtain the corresponding binary number of voice encoding and decoding format that caller gateway and called gateway are all supported;
Have only one to be 1 in the binary number that each voice encoding and decoding format is corresponding in all voice encoding and decoding formats that said caller gateway, called gateway are supported respectively, all the other positions are 0;
Said media negotiation module is specially the corresponding binary number of each voice encoding and decoding format definition: according to the priority of voice encoding and decoding format; The binary number that the definition voice encoding and decoding format is corresponding, the value of said binary number from small to large corresponding its priority rank from high to low.
Further, said called gateway also is used for the said voice encoding and decoding format of selecting is sent to said soft switch unit as the media negotiation result, and is used for opening the relevant voice passage according to the said media negotiation result that said soft switch unit issues;
Said caller gateway also is used for opening the relevant voice passage according to the said media negotiation result that said soft switch unit issues;
Said soft switch unit also is used for said media negotiation result is forwarded to said caller gateway and said called gateway.
Compared with prior art; The present invention is through preferentially selecting the media consulation method of high-fidelity voice encoding and decoding format for use; Overcome being the scheme of first-selection G.711A or G.711U; Can not only improve the utilance of broadband network information, the more important thing is and adopt the high-fidelity encoding and decoding speech to improve the tonequality of speech, thereby can bring the user real more sound.
Description of drawings
The flow chart of Fig. 1 media consulation method;
The system block diagram of Fig. 2 media negotiation.
Embodiment
Below in conjunction with accompanying drawing and specific embodiment technical scheme of the present invention is elaborated.
Usually the voice encoding and decoding format that adopts in the prior art has: G.711A, G.711U, G.729, G.723, G.726 and G.722, wherein G.722 be the high-fidelity voice encoding and decoding format.
Embodiment one
With reference to figure 1, called gateway comprises the method that all voice encoding and decoding formats of all voice encoding and decoding formats of caller gateway support and called gateway support carry out media negotiation:
To the following consideration of being provided with of priority
(1) at first select the high-fidelity voice encoding and decoding format for use, promptly G.722,
(2) secondly select common voice encoding and decoding format for use, as G.711A, G.711U.
So voice encoding and decoding format according to priority sequence arrangement from high to low is:
G.722→G.711A→G.711U→G.729→G.723→G.726
The voice encoding and decoding format that step 102, taking-up caller gateway and called gateway are all supported.
At first, give each voice encoding and decoding format definition corresponding binary number.
Have only one to be 1 in the binary number of definition, all the other positions are 0.
According to the priority of voice encoding and decoding format, the binary number that the definition voice encoding and decoding format is corresponding, the value of said binary number from small to large corresponding its priority rank from high to low, like table 1.
Table 1
Voice encoding and decoding format | Corresponding binary number |
G.722 | 00000001 |
G.711A | 00000010 |
G.711U | 00000100 |
G.729 | 00001000 |
G.723 | 00010000 |
G.726 | 00100000 |
Binary number in the table 1 is 8, can expand 8 simultaneously in the high position of all binary numbers, becomes 16 bits, and the value of the high position of expansion is 0, is 0000000000000001 like G.722 corresponding binary number.
Secondly, the binary number corresponding to all voice encoding and decoding formats of called gateway support carries out exclusive disjunction, obtains called media capability.
The caller media capability divides two kinds of situation to carry out computing:
(1) with reference to figure 2, if the caller gateway comprises the media negotiation module, the binary number that then the caller gateway is corresponding with all voice encoding and decoding formats of its support in this locality carries out exclusive disjunction, obtains the caller media capability, and the caller media capability is issued called gateway;
(1) with reference to figure 3; If the caller gateway does not comprise the media negotiation module; Then the caller gateway sends to called gateway with all voice encoding and decoding formats of its support; Called gateway carries out exclusive disjunction to the corresponding binary number of all voice encoding and decoding formats of caller gateway support, obtains the caller media capability;
For example: all voice encoding and decoding formats of caller gateway support are: G.722, G.711U and G.726, all voice encoding and decoding formats of called gateway support are: G.722, G.711U and G.723,
So: the caller media capability obtains through following formula
G.722|G.711U|G.726=(00000001)|(00000100)|(00100000)=00100101;
Called media capability obtains through following formula
G.722|G.711U|G.723=(00000001)|(00000100)|(00010000)=00010101;
Then, said caller media capability and said called media capability are carried out and computing, obtain the corresponding binary number of voice encoding and decoding format that caller gateway and called gateway are all supported.
The called media capability of caller media capability &=(00100101) & (00010101)=00000101
The binary number that the voice encoding and decoding format that said caller gateway and called gateway are all supported is corresponding is 00000101; Keeping low level, to begin first be 1 value; All the other positions are set to 0; Obtain a kind of corresponding binary number 00000001 of voice encoding and decoding format of high priority, be the high-fidelity voice encoding and decoding format G.722.
Embodiment two
With reference to figure 2, Fig. 3, the invention allows for a kind of system of media negotiation, comprising: caller gateway, soft switch unit, called gateway;
Said called gateway comprises: the media negotiation module; Said media negotiation module; Be used to be provided with the priority of voice encoding and decoding format, and all voice encoding and decoding formats that are used to receive its support that the caller gateway sends, the voice encoding and decoding format that caller gateway and called gateway are all supported taken out; According to the priority of said voice encoding and decoding format, select a kind of voice encoding and decoding format of high priority;
Said caller gateway is used for sending all voice encoding and decoding formats that said caller gateway is supported to said called gateway;
Said soft switch unit is used for all voice encoding and decoding formats of said caller gateway support are forwarded to said called gateway.
Further, said called gateway also is used for the said voice encoding and decoding format of selecting is sent to said soft switch unit as the media negotiation result, and is used for opening the relevant voice passage according to the said media negotiation result that said soft switch unit issues;
Said caller gateway also is used for opening the relevant voice passage according to the said media negotiation result that said soft switch unit issues;
Said soft switch unit also is used for said media negotiation result is forwarded to said caller gateway and said called gateway.
The present invention proposes a kind of media consulation method and system; The technical scheme that proposes according to the present invention, behind the closing of the circuit, called gateway can negotiate calling and called rapidly and communicate the voice encoding and decoding format that is adopted; Method and system is simple in structure; Make full use of existing systems and Internet resources, but also guaranteed preferred high-fidelity voice encoding and decoding format, made call tone quality be largely increased.
Claims (6)
1. the method for a media negotiation is characterized in that, the priority of voice encoding and decoding format is set in advance, and the method for said media negotiation may further comprise the steps:
All voice encoding and decoding formats of its support that reception caller gateway sends over;
Take out the voice encoding and decoding format that caller gateway and called gateway are all supported;
According to the priority of said voice encoding and decoding format, in the voice encoding and decoding format that said caller gateway and called gateway are all supported, select a kind of voice encoding and decoding format of high priority;
The method of said media negotiation also comprises and gives each voice encoding and decoding format definition corresponding binary number in advance;
The method of said media negotiation is further comprising the steps of:
The binary number corresponding to all voice encoding and decoding formats of caller gateway support carries out exclusive disjunction, obtains the caller media capability, and the binary number corresponding to all voice encoding and decoding formats of called gateway support carries out exclusive disjunction, obtains called media capability;
The voice encoding and decoding format that said taking-up caller gateway and called gateway are all supported; Be meant said caller media capability and said called media capability are carried out and computing, obtain the corresponding binary number of voice encoding and decoding format that caller gateway and called gateway are all supported;
Have only one to be 1 in the binary number of said definition, all the other positions are 0;
The said method of the corresponding binary number of each voice encoding and decoding format definition of giving is: according to the priority of voice encoding and decoding format; The binary number that the definition voice encoding and decoding format is corresponding, the value of said binary number from small to large corresponding its priority rank from high to low.
2. according to the method for the said media negotiation of claim 1, it is characterized in that the voice encoding and decoding format of said high priority is meant the high-fidelity voice encoding and decoding format.
3. according to the method for the said media negotiation of claim 1, it is characterized in that,
Said in the voice encoding and decoding format that caller gateway and called gateway are all supported; Select a kind of voice encoding and decoding format of high priority; Be meant: keeping low level in the corresponding binary number of voice encoding and decoding format that said caller gateway and called gateway all support, to begin first be 1 value; All the other positions are set to 0, obtain a kind of corresponding binary number of voice encoding and decoding format of high priority.
4. according to the method for the said media negotiation of claim 1, it is characterized in that, further comprising the steps of:
Called gateway is sent to the soft switch unit with the said voice encoding and decoding format of selecting as the media negotiation result;
Caller gateway and called gateway are opened the relevant voice passage according to the said media negotiation result that the soft switch unit issues.
5. the system of a media negotiation comprises: caller gateway, soft switch unit, called gateway, it is characterized in that,
Said called gateway comprises: the media negotiation module; Be used to be provided with the priority of voice encoding and decoding format; And all voice encoding and decoding formats that are used to receive its support that the caller gateway sends; Take out the voice encoding and decoding format that caller gateway and called gateway are all supported,, select a kind of voice encoding and decoding format of high priority according to the priority of said voice encoding and decoding format;
Said caller gateway is used for sending all voice encoding and decoding formats that said caller gateway is supported to said called gateway;
Said soft switch unit is used for all voice encoding and decoding formats of said caller gateway support are forwarded to said called gateway;
Said media negotiation module specifically also is used for the corresponding binary number of respectively caller gateway, called gateway being supported of all voice encoding and decoding format definition; And the corresponding binary number of all voice encoding and decoding formats of corresponding called gateway support carries out exclusive disjunction, obtains called media capability; The corresponding binary number of all voice encoding and decoding formats of corresponding caller gateway support carries out or moves calculation, obtains the caller media capability; Said caller media capability and said called media capability are carried out and computing, obtain the corresponding binary number of voice encoding and decoding format that caller gateway and called gateway are all supported;
Have only one to be 1 in the binary number that each voice encoding and decoding format is corresponding in all voice encoding and decoding formats that said caller gateway, called gateway are supported respectively, all the other positions are 0;
Said media negotiation module is specially the corresponding binary number of each voice encoding and decoding format definition: according to the priority of voice encoding and decoding format; The binary number that the definition voice encoding and decoding format is corresponding, the value of said binary number from small to large corresponding its priority rank from high to low.
6. according to the system of the said media negotiation of claim 5, it is characterized in that,
Said called gateway also is used for the said voice encoding and decoding format of selecting is sent to said soft switch unit as the media negotiation result, and is used for opening the relevant voice passage according to the said media negotiation result that said soft switch unit issues;
Said caller gateway also is used for opening the relevant voice passage according to the said media negotiation result that said soft switch unit issues;
Said soft switch unit also is used for said media negotiation result is forwarded to said caller gateway and said called gateway.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910107681A CN101662468B (en) | 2009-06-04 | 2009-06-04 | Method and system for media negotiation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910107681A CN101662468B (en) | 2009-06-04 | 2009-06-04 | Method and system for media negotiation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101662468A CN101662468A (en) | 2010-03-03 |
CN101662468B true CN101662468B (en) | 2012-09-05 |
Family
ID=41790255
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200910107681A Active CN101662468B (en) | 2009-06-04 | 2009-06-04 | Method and system for media negotiation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101662468B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102710617A (en) * | 2012-05-21 | 2012-10-03 | 深圳市共进电子股份有限公司 | Negotiation method for SDP (session description protocol) of SIP (session initiation protocol) terminal |
CN103795958B (en) * | 2012-10-30 | 2017-10-13 | 中国电信股份有限公司 | Multimedia call machinery of consultation, system and Video Interworking Gateway, multimedia terminal |
CN105490703B (en) * | 2015-12-28 | 2018-03-16 | 生迪智慧科技有限公司 | Apparatus for receiving audio, method and radio play system |
CN107453935B (en) * | 2016-05-31 | 2021-01-15 | 华为技术有限公司 | Method and device for recovering conference resources and conference system |
CN106791241B (en) * | 2016-12-09 | 2020-03-03 | 中国联合网络通信集团有限公司 | Coding and decoding negotiation method and call controller |
CN106790244A (en) * | 2017-01-19 | 2017-05-31 | 宇龙计算机通信科技(深圳)有限公司 | A kind of method and device of media negotiation |
CN110445929B (en) * | 2019-07-29 | 2022-05-20 | 腾讯科技(深圳)有限公司 | Call connection establishing method, server, electronic device and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1870649A (en) * | 2006-03-21 | 2006-11-29 | 华为技术有限公司 | Media consulation method, equipment and system |
CN1933478A (en) * | 2005-09-17 | 2007-03-21 | 华为技术有限公司 | Media stream packet assembling time length consultation method |
CN1988544A (en) * | 2006-12-19 | 2007-06-27 | 中兴通讯股份有限公司 | Method for consulting multimedia coding and decoding capacity of 3G audio frequency gateway |
CN101127639A (en) * | 2007-08-09 | 2008-02-20 | 中兴通讯股份有限公司 | A negotiation method between caller and called media to reduce cost of access device |
-
2009
- 2009-06-04 CN CN200910107681A patent/CN101662468B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1933478A (en) * | 2005-09-17 | 2007-03-21 | 华为技术有限公司 | Media stream packet assembling time length consultation method |
CN1870649A (en) * | 2006-03-21 | 2006-11-29 | 华为技术有限公司 | Media consulation method, equipment and system |
CN1988544A (en) * | 2006-12-19 | 2007-06-27 | 中兴通讯股份有限公司 | Method for consulting multimedia coding and decoding capacity of 3G audio frequency gateway |
CN101127639A (en) * | 2007-08-09 | 2008-02-20 | 中兴通讯股份有限公司 | A negotiation method between caller and called media to reduce cost of access device |
Also Published As
Publication number | Publication date |
---|---|
CN101662468A (en) | 2010-03-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101662468B (en) | Method and system for media negotiation | |
US10542136B2 (en) | Transcribing audio communication sessions | |
US10218856B2 (en) | Voice signal processing method, related apparatus, and system | |
CN101010972B (en) | Method and system for providing multimedia ring back tone service by using call-side switching center | |
CN102131305B (en) | Method and system for realizing voice service | |
JP4374054B2 (en) | Method and system for providing multimedia ringback tone service using destination exchange | |
CN104717234A (en) | Enterprise network communication device and communication method | |
US8718045B2 (en) | System and method for switching between public switched telephone networks and voice over internet protocol networks | |
RU2015156799A (en) | SYSTEM AND METHOD FOR CREATING A WIRELESS TUBE FOR STATIONARY PHONES USING A HOME GATEWAY AND A SMARTPHONE | |
TWI378709B (en) | Method, system and apparatus for providing ring back tone alternative service by using intelligent network | |
CN104158989B (en) | Fixed telephone roaming system and method | |
CN108513320A (en) | A kind of method and device of coding/decoding negotiation | |
CN101384007A (en) | Inter-network data transmission method, apparatus and communication device and system | |
US20160234384A1 (en) | Efficient allocation and usage of communication channels for text streams | |
CN102781058A (en) | Switching method between common telephone and internet protocol (IP) on intelligent terminal | |
CA2647921A1 (en) | Method and system for configuring a contact database associated with a user | |
CN101123824A (en) | Multimedia communication method and network element device | |
JP2016152496A (en) | Display name conversion system and display name conversion method | |
CN105407243B (en) | The echo cancellor VOIP system for improving affine projection algorithm is used in a kind of Android platform | |
CN102957683A (en) | Method, system and equipment for realizing POS (Point Of Sale) service in IMS (IP Multimedia Subsystem) network | |
CN102480418B (en) | Routing method for realizing video frequency intercommunication for code division multiple access (CDMA) 2000 terminal and soft exchange terminal | |
JP5070602B2 (en) | Key telephone system, data conversion control device, and automatic setting method used therefor | |
KR102125447B1 (en) | Data Generating Method And Apparatus for Improving Speech Recognition Performance | |
CN101800819B (en) | Method for transmitting fixed network business and gateway | |
US9706266B1 (en) | Telephony codec optimizing method and apparatus |
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 |