CN101662468A - Method and system for media negotiation - Google Patents
Method and system for media negotiation Download PDFInfo
- Publication number
- CN101662468A CN101662468A CN200910107681A CN200910107681A CN101662468A CN 101662468 A CN101662468 A CN 101662468A CN 200910107681 A CN200910107681 A CN 200910107681A CN 200910107681 A CN200910107681 A CN 200910107681A CN 101662468 A CN101662468 A CN 101662468A
- Authority
- CN
- China
- Prior art keywords
- voice encoding
- gateway
- decoding format
- caller
- media negotiation
- 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
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 still based on PSTN 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 of each self-supporting that sends from caller gateway and 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 be 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 by 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 sets in advance the priority of voice encoding and decoding format, and the method for described 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 described voice encoding and decoding format, in the voice encoding and decoding format that described caller gateway and called gateway are all supported, select a kind of voice encoding and decoding format of high priority.
Further, the voice encoding and decoding format of described high priority is meant the high-fidelity voice encoding and decoding format.
Further, also comprise the binary number of giving each voice encoding and decoding format definition correspondence in advance;
The method of described media negotiation is further comprising the steps of:
Binary number to all voice encoding and decoding format correspondences of caller gateway support carries out exclusive disjunction, obtains the caller media capability, and the binary number of all voice encoding and decoding format correspondences of called gateway support is carried out exclusive disjunction, obtains called media capability;
The voice encoding and decoding format that described taking-up caller gateway and called gateway are all supported is meant:
Described caller media capability and described called media capability are carried out and computing, obtain the binary number of the voice encoding and decoding format correspondence that caller gateway and called gateway all support.
Further, have only one to be 1 in the binary number of described definition, all the other positions are 0;
The described 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 of definition voice encoding and decoding format correspondence, the value of described binary number from small to large corresponding its priority rank from high to low.
Further, described 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 binary number of the voice encoding and decoding format correspondence that described 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 binary number of voice encoding and decoding format correspondence of high priority.
Further, further comprising the steps of:
Called gateway is sent to the soft switch unit with the described voice encoding and decoding format of selecting as the media negotiation result;
Caller gateway and called gateway are opened corresponding voice channel according to the described media negotiation result that the soft switch unit issues.
In addition, the invention allows for a kind of system of media negotiation, comprise: caller gateway, soft switch unit, called gateway, described 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 described voice encoding and decoding format, select a kind of voice encoding and decoding format of high priority;
Described caller gateway is used for sending all voice encoding and decoding formats that described caller gateway is supported to described called gateway;
Described soft switch unit is used for all voice encoding and decoding formats of described caller gateway support are forwarded to described called gateway.
Further, described called gateway also is used for the described voice encoding and decoding format of selecting is sent to described soft switch unit as the media negotiation result, and is used for opening corresponding voice channel according to the described media negotiation result that described soft switch unit issues;
Described caller gateway also is used for opening corresponding voice channel according to the described media negotiation result that described soft switch unit issues;
Described soft switch unit also is used for described media negotiation result is forwarded to described caller gateway and described called gateway.
Compared with prior art, the present invention is by 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;
The system block diagram of another media negotiation of Fig. 3.
Embodiment
Below in conjunction with the drawings and specific embodiments 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 of definition voice encoding and decoding format correspondence, the value of described binary number from small to large corresponding its priority rank from high to low, as 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 0,000 0,000 0,000 0001 as G.722 corresponding binary number.
Secondly, the binary number of all voice encoding and decoding format correspondences of called gateway support is carried out exclusive disjunction, obtain called media capability.
The caller media capability carries out computing in two kinds of situation:
(1) with reference to figure 2, if the caller gateway comprises the media negotiation module, then the caller gateway carries out exclusive disjunction in this locality with the binary number of all voice encoding and decoding format correspondences of its support, 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 binary number of all voice encoding and decoding format correspondences 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 by following formula
G.722|G.711U|G.726=(00000001)|(00000100)|(00100000)=00100101;
Called media capability obtains by following formula
G.722|G.711U|G.723=(00000001)|(00000100)|(00010000)=00010101;
Then, described caller media capability and described called media capability are carried out and computing, obtain the binary number of the voice encoding and decoding format correspondence that caller gateway and called gateway all support.
Caller Mei Tinengli ﹠amp; Called media capability=(00100101) ﹠amp; (00010101)=00000101
The binary number of the voice encoding and decoding format correspondence that described caller gateway and called gateway are all supported is 00000101, keeping low level, to begin first be 1 value, all the other positions are set to 0, obtain a kind of binary number 00000001 of voice encoding and decoding format correspondence of high priority, be the high-fidelity voice encoding and decoding format G.722.
Step 105, caller gateway and called gateway are opened corresponding voice channel according to the described media negotiation result that the soft switch unit issues.
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;
Described called gateway comprises: the media negotiation module, described 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, according to the priority of described voice encoding and decoding format, select a kind of voice encoding and decoding format of high priority;
Described caller gateway is used for sending all voice encoding and decoding formats that described caller gateway is supported to described called gateway;
Described soft switch unit is used for all voice encoding and decoding formats of described caller gateway support are forwarded to described called gateway.
Further, described called gateway also is used for the described voice encoding and decoding format of selecting is sent to described soft switch unit as the media negotiation result, and is used for opening corresponding voice channel according to the described media negotiation result that described soft switch unit issues;
Described caller gateway also is used for opening corresponding voice channel according to the described media negotiation result that described soft switch unit issues;
Described soft switch unit also is used for described media negotiation result is forwarded to described caller gateway and described 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 (8)
1, a kind of method of media negotiation is characterized in that, sets in advance the priority of voice encoding and decoding format, and the method for described 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 described voice encoding and decoding format, in the voice encoding and decoding format that described caller gateway and called gateway are all supported, select a kind of voice encoding and decoding format of high priority.
According to the method for the described media negotiation of claim 1, it is characterized in that 2, the voice encoding and decoding format of described high priority is meant the high-fidelity voice encoding and decoding format.
3, according to the method for the described media negotiation of claim 1, it is characterized in that, also comprise and give each voice encoding and decoding format definition corresponding binary number in advance;
The method of described media negotiation is further comprising the steps of:
Binary number to all voice encoding and decoding format correspondences of caller gateway support carries out exclusive disjunction, obtains the caller media capability, and the binary number of all voice encoding and decoding format correspondences of called gateway support is carried out exclusive disjunction, obtains called media capability;
The voice encoding and decoding format that described taking-up caller gateway and called gateway are all supported, be meant described caller media capability and described called media capability are carried out and computing, obtain the binary number of the voice encoding and decoding format correspondence that caller gateway and called gateway all support.
4, according to the method for the described media negotiation of claim 3, it is characterized in that having only one to be 1 in the binary number of described definition, all the other positions are 0;
The described 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 of definition voice encoding and decoding format correspondence, the value of described binary number from small to large corresponding its priority rank from high to low.
5, according to the method for the described media negotiation of claim 4, it is characterized in that,
Described 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 binary number of the voice encoding and decoding format correspondence that described 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 binary number of voice encoding and decoding format correspondence of high priority.
6, according to the method for the described 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 described voice encoding and decoding format of selecting as the media negotiation result;
Caller gateway and called gateway are opened corresponding voice channel according to the described media negotiation result that the soft switch unit issues.
7, a kind of system of media negotiation comprises: caller gateway, soft switch unit, called gateway, it is characterized in that,
Described 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, according to the priority of described voice encoding and decoding format, select a kind of voice encoding and decoding format of high priority;
Described caller gateway is used for sending all voice encoding and decoding formats that described caller gateway is supported to described called gateway;
Described soft switch unit is used for all voice encoding and decoding formats of described caller gateway support are forwarded to described called gateway.
8, according to the system of the described media negotiation of claim 7, it is characterized in that,
Described called gateway also is used for the described voice encoding and decoding format of selecting is sent to described soft switch unit as the media negotiation result, and is used for opening corresponding voice channel according to the described media negotiation result that described soft switch unit issues;
Described caller gateway also is used for opening corresponding voice channel according to the described media negotiation result that described soft switch unit issues;
Described soft switch unit also is used for described media negotiation result is forwarded to described caller gateway and described 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 true CN101662468A (en) | 2010-03-03 |
CN101662468B 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) |
Cited By (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 |
CN103795958A (en) * | 2012-10-30 | 2014-05-14 | 中国电信股份有限公司 | Multimedia call negotiation method, system and video interworking gateway, multimedia terminal |
CN105490703A (en) * | 2015-12-28 | 2016-04-13 | 生迪智慧科技有限公司 | Audio frequency reception device, method and wireless play system |
CN106791241A (en) * | 2016-12-09 | 2017-05-31 | 中国联合网络通信集团有限公司 | A kind of coding/decoding negotiation method and call controller |
CN106790244A (en) * | 2017-01-19 | 2017-05-31 | 宇龙计算机通信科技(深圳)有限公司 | A kind of method and device of media negotiation |
CN107453935A (en) * | 2016-05-31 | 2017-12-08 | 华为技术有限公司 | Reclaim the method, apparatus and conference system of conferencing resource |
WO2021017807A1 (en) * | 2019-07-29 | 2021-02-04 | 腾讯科技(深圳)有限公司 | Call connection establishment method, first terminal, server, and storage medium |
Family Cites Families (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 |
CN100536475C (en) * | 2006-12-19 | 2009-09-02 | 中兴通讯股份有限公司 | Method for consulting multimedia coding and decoding capacity of 3G audio frequency gateway |
CN100505644C (en) * | 2007-08-09 | 2009-06-24 | 中兴通讯股份有限公司 | 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
Cited By (11)
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 |
CN103795958A (en) * | 2012-10-30 | 2014-05-14 | 中国电信股份有限公司 | Multimedia call negotiation method, system and video interworking gateway, multimedia terminal |
CN103795958B (en) * | 2012-10-30 | 2017-10-13 | 中国电信股份有限公司 | Multimedia call machinery of consultation, system and Video Interworking Gateway, multimedia terminal |
CN105490703A (en) * | 2015-12-28 | 2016-04-13 | 生迪智慧科技有限公司 | Audio frequency reception device, method and wireless play system |
CN105490703B (en) * | 2015-12-28 | 2018-03-16 | 生迪智慧科技有限公司 | Apparatus for receiving audio, method and radio play system |
CN107453935A (en) * | 2016-05-31 | 2017-12-08 | 华为技术有限公司 | Reclaim the method, apparatus and conference system of conferencing resource |
CN107453935B (en) * | 2016-05-31 | 2021-01-15 | 华为技术有限公司 | Method and device for recovering conference resources and conference system |
CN106791241A (en) * | 2016-12-09 | 2017-05-31 | 中国联合网络通信集团有限公司 | A kind of coding/decoding negotiation method and call controller |
CN106790244A (en) * | 2017-01-19 | 2017-05-31 | 宇龙计算机通信科技(深圳)有限公司 | A kind of method and device of media negotiation |
WO2021017807A1 (en) * | 2019-07-29 | 2021-02-04 | 腾讯科技(深圳)有限公司 | Call connection establishment method, first terminal, server, and storage medium |
US11856149B2 (en) | 2019-07-29 | 2023-12-26 | Tencent Technology (Shenzhen) Company Limited | Method for establishing call connection, first terminal, server, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN101662468B (en) | 2012-09-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101662468B (en) | Method and system for media negotiation | |
US8059564B2 (en) | Method and system for terminal codec setup of multimedia ring back tone service | |
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 | |
EP1790151A2 (en) | Method and system for providing multimedia ring back tone service by using receiver-side switching center | |
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 | |
CN102695139A (en) | Message reminding system and method | |
CN104158989B (en) | Fixed telephone roaming system and method | |
CN103684970A (en) | Transmission method and thin terminals for media data streams | |
CN101384007A (en) | Inter-network data transmission method, apparatus and communication device and system | |
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 | |
CN102348007B (en) | Method and mobile terminal of realizing bidirectional call recording in packet switched domain | |
JP2016152496A (en) | Display name conversion system and display name conversion method | |
CN215897879U (en) | Campus video voice public telephone and system based on face recognition | |
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 | |
CN101800819B (en) | Method for transmitting fixed network business and gateway | |
KR100786651B1 (en) | Method and System for Providing Multimedia Ring Back Tone Alternative Service by Using Service Node | |
KR100814797B1 (en) | Method, System and Apparatus for Providing Alternative Ring Back Tone by Using Multiple Codecs | |
CN101287165B (en) | Implementing method for multimedia color ring back tone service | |
US20100027764A1 (en) | Network device and method for redialing phone calls |
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 |