CN109104295B - Encoding and decoding processing method, terminal, network equipment and computer storage medium - Google Patents

Encoding and decoding processing method, terminal, network equipment and computer storage medium Download PDF

Info

Publication number
CN109104295B
CN109104295B CN201710473982.XA CN201710473982A CN109104295B CN 109104295 B CN109104295 B CN 109104295B CN 201710473982 A CN201710473982 A CN 201710473982A CN 109104295 B CN109104295 B CN 109104295B
Authority
CN
China
Prior art keywords
terminal
codec
codec type
network
network device
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
CN201710473982.XA
Other languages
Chinese (zh)
Other versions
CN109104295A (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.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
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 China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN201710473982.XA priority Critical patent/CN109104295B/en
Publication of CN109104295A publication Critical patent/CN109104295A/en
Application granted granted Critical
Publication of CN109104295B publication Critical patent/CN109104295B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/10Architectures or entities
    • H04L65/1016IP multimedia subsystem [IMS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses an encoding and decoding processing method, a terminal, network equipment and a computer storage medium. The method comprises the following steps: a first terminal negotiates a codec type with a second terminal through network equipment; the first terminal and the second terminal are both in a first network to which the network device belongs; when the negotiation result determines that a first codec type is selected for communication, the first terminal adopts the first codec type and communicates with the second terminal through the network equipment; wherein the first terminal supports at least two codec types including the first codec type; at least one codec type included in the at least two codec types is a codec type supported by the network device.

Description

Encoding and decoding processing method, terminal, network equipment and computer storage medium
Technical Field
The present invention relates to communication technologies, and in particular, to an encoding and decoding processing method, a terminal, a network device, and a computer storage medium.
Background
An IP Multimedia Subsystem (IMS) is a Multimedia service format, and can meet the requirements of modern and diversified Multimedia services for terminal clients. Voice over Long Term Evolution (VoLTE) services based on IMS are implemented based on IMS, and are an IP data transmission technology, and all services are carried over a Long Term Evolution (LTE) network. With the continuous development of the codec technology, but the network and the terminal side device designed according to the existing standard lack forward compatibility capability, for example, after the terminal side device implements a new codec with excellent performance, the network side device needs to undergo the steps of standard revision, device upgrade, etc. to allow the terminal side device to communicate by using the new codec, and this way needs to perform the processes of standard revision and device upgrade, which results in a long design period.
Disclosure of Invention
In order to solve the existing technical problem, embodiments of the present invention provide an encoding and decoding processing method, a terminal, a network device, and a computer storage medium.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
the embodiment of the invention provides a coding and decoding processing method, which comprises the following steps:
a first terminal negotiates a codec type with a second terminal through network equipment; the first terminal and the second terminal are both in a first network to which the network device belongs;
when the negotiation result determines that a first codec type is selected for communication, the first terminal adopts the first codec type and communicates with the second terminal through the network equipment;
wherein the first terminal and the second terminal support at least two codec types including the first codec type; at least one codec type included in the at least two codec types is a codec type supported by the network device.
In the foregoing solution, when the first codec type is a codec type that is not supported by the network device, at least one codec type other than the first codec type is a codec type that is supported by the network device among the at least two codec types;
the method further comprises the following steps: when the first terminal is switched from the first network to a second network, obtaining a second codec type supported by the second network;
and reporting the second codec type to the network equipment.
The embodiment of the invention also provides a coding and decoding processing method, which comprises the following steps:
the method comprises the steps that a first terminal negotiates a codec type with a second terminal through network equipment, and the network equipment records a negotiation result; the first terminal and the second terminal are both in a first network to which the network device belongs;
when the negotiation result determines that a first codec type is selected for communication and the network equipment does not support the first codec type, the network equipment supports the first terminal to adopt the first codec type for communication with the second terminal;
wherein the first terminal and the second terminal support at least two codec types including the first codec type, and at least one codec type included in the at least two codec types is a codec type supported by the network device.
In the above scheme, the method further comprises: based on the first terminal switching from the first network to a second network, the network equipment obtains a second codec type reported by the first terminal;
the network device negotiates a codec type with the second terminal based on the second codec type to maintain communication between the first terminal and the second terminal.
In the foregoing solution, when the second codec type is a codec type supported by the network device, the negotiating, by the network device, a codec type with the second terminal based on the second codec type to maintain communication between the first terminal and the second terminal includes:
the network equipment negotiates the codec type with the second terminal, and selects a third codec type supported by the network equipment based on a negotiation result;
when the second codec type is different from the third codec type, the network device sends the communication data of the first terminal to the second terminal after performing coding and decoding processing on the communication data of the first terminal based on the second codec and the third codec, and sends the communication data of the second terminal to the first terminal after performing coding and decoding processing on the communication data of the second terminal based on the second codec and the third codec.
An embodiment of the present invention further provides a terminal, where the terminal includes: a first negotiation unit and a first communication unit; wherein the content of the first and second substances,
the first negotiation unit is used for negotiating the type of the coder and the decoder with other terminals through network equipment; the terminal and the other terminals are both in a first network to which the network equipment belongs;
the first communication unit is configured to communicate with the other terminal through the network device by using a first codec type when the negotiation result obtained by the first negotiation unit determines that the first codec type is selected for communication;
wherein the terminal and the other terminal support at least two codec types including the first codec type; at least one codec type included in the at least two codec types is a codec type supported by the network device.
In the foregoing solution, when the first codec type is a codec type that is not supported by the network device, at least one codec type other than the first codec type is a codec type that is supported by the network device among the at least two codec types; the first communication unit is further configured to obtain a second codec type supported by a second network when the terminal is switched from the first network to the second network; and reporting the second codec type to the network equipment.
An embodiment of the present invention further provides a network device, where the network device includes: an acquisition unit and a second communication unit; wherein the content of the first and second substances,
the acquiring unit is used for negotiating the type of the coder and the decoder with the second terminal through the network equipment based on the first terminal and recording a negotiation result; the first terminal and the second terminal are both in a first network to which the network device belongs;
the second communication unit is configured to support the first terminal to communicate with the second terminal by using the first codec type when the negotiation result recorded by the obtaining unit determines that the first codec type is selected for communication and the network device itself does not support the first codec type;
wherein the first terminal and the second terminal support at least two codec types including the first codec type, and at least one codec type included in the at least two codec types is a codec type supported by the network device.
In the above solution, the network device further includes a second negotiation unit;
the second communication unit is further configured to obtain a second codec type reported by the first terminal based on the first terminal being switched from the first network to a second network;
the second negotiation unit is configured to negotiate a codec type with the second terminal based on the second codec type obtained by the second communication unit, so as to maintain communication between the first terminal and the second terminal.
In the foregoing solution, the second negotiation unit is configured to negotiate, when the second codec type is a codec type supported by the network device itself, a codec type with the second terminal, and select a third codec type supported by the network device based on a negotiation result;
and the second communication unit is used for sending the communication data of the first terminal to the second terminal after carrying out coding and decoding processing on the communication data of the first terminal based on the second codec and the third codec and sending the communication data of the second terminal to the first terminal after carrying out coding and decoding processing on the communication data of the second terminal based on the second codec and the third codec when the second codec type is different from the third codec type.
The embodiment of the invention also provides a computer storage medium, on which a computer program is stored, and the program is executed by a processor to implement the steps of the coding and decoding processing method applied to the terminal.
The embodiment of the invention also provides a computer storage medium, on which a computer program is stored, and the program is executed by a processor to implement the steps of the coding and decoding processing method applied to the network device.
The embodiment of the invention also provides a terminal, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the program to realize the steps of the coding and decoding processing method in the embodiment of the invention.
The embodiment of the present invention further provides a network device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the processor executes the computer program, the steps of the encoding and decoding processing method according to the embodiment of the present invention are implemented.
In the codec processing method, the terminal, the network device, and the computer storage medium provided in the embodiments of the present invention, on one hand, a first terminal negotiates a codec type with a second terminal through the network device; the first terminal and the second terminal are both in a first network to which the network device belongs; when the negotiation result determines that a first codec type is selected for communication, the first terminal adopts the first codec type and communicates with the second terminal through the network equipment; wherein the first terminal and the second terminal support at least two codec types including the first codec type; at least one codec type included in the at least two codec types is a codec type supported by the network device. On the other hand, based on the fact that the first terminal negotiates the type of the coder and the decoder with the second terminal through the network equipment, the network equipment records a negotiation result; the first terminal and the second terminal are both in a first network to which the network device belongs; when the negotiation result determines that a first codec type is selected for communication and the network equipment does not support the first codec type, the network equipment supports the first terminal to adopt the first codec type for communication with the second terminal; wherein the first terminal and the second terminal support at least two codec types including the first codec type, and at least one codec type included in the at least two codec types is a codec type supported by the network device. Therefore, by adopting the technical scheme of the embodiment of the invention, after the terminal adopts the new codec type which is not supported by the network equipment, the network equipment can realize that the terminal adopts the new codec type for communication without standard revision and equipment upgrade, thereby greatly shortening the design period.
Drawings
Fig. 1 is a schematic flowchart of a coding/decoding processing method according to a first embodiment of the present invention;
fig. 2 is a flowchart illustrating a coding/decoding processing method according to a second embodiment of the present invention;
fig. 3 is a flowchart illustrating a coding/decoding processing method according to a third embodiment of the present invention;
fig. 4 is a flowchart illustrating a coding/decoding processing method according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a network device according to an embodiment of the present invention;
fig. 7 is a schematic diagram of data flow of a Single Radio Voice Call Continuity (SRVCC) structure of a codec processing method according to an embodiment of the present invention.
Detailed Description
Before describing the encoding and decoding processing method in the embodiment of the present invention in detail, first, the encoding and decoding method in VoLTE will be described. VoLTE uses a header Compression mechanism, supports a Robust header Compression (RoHC) mode, and has a header overhead greatly reduced compared to VoIP over an LTE network.
To ensure compatibility with existing systems, the third Generation Partnership Project (3GPP, 3rd Generation Partnership Project) requires VoLTE to support a narrowband adaptive multi-rate codec (AMR _ NB) codec type, which is proposed to implement high definition telephony (HD Voice). Enhanced Voice Service (EVS) is a new audio codec defined by 3GPP, and further increases the bandwidth of Voice signals from wideband (8kHz) to ultra wideband (16kHz) to full band (20kHz) to implement full high definition (HD Voice +).
The voice quality of a communication system is measured by Mean Opinion Score (MOS). In the MOS method, 0 score represents the worst quality and 5 score the highest. The MOS can only reach 3.8 under the AMR _ WB highest code rate of 23.85kbps, and the MOS can reach more than 4.5 under the EVS of 24.4 kbps.
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Example one
The embodiment of the invention provides a coding and decoding processing method, which is applied to a terminal, wherein the terminal can be specifically marked as a first terminal. Fig. 1 is a schematic flowchart of a coding/decoding processing method according to a first embodiment of the present invention; as shown in fig. 1, the method includes:
step 101: a first terminal negotiates a codec type with a second terminal through network equipment; the first terminal and the second terminal are both in a first network to which the network device belongs.
Step 102: when the negotiation result determines that a first codec type is selected for communication, the first terminal adopts the first codec type and communicates with the second terminal through the network equipment; wherein the first terminal and the second terminal support at least two codec types including the first codec type; at least one codec type included in the at least two codec types is a codec type supported by the network device.
In this embodiment, the terminals (including the first terminal and the second terminal of both parties of a call) support at least two codec types; wherein at least one codec type included in the at least two codec types is a codec type supported by the network device; it is to be understood that the at least two codec types may include a codec type not supported by the network device. As an implementation manner, in this embodiment, the first codec type selected after the negotiation between the first terminal and the second terminal may be a codec type that is not supported by the network device. Specifically, as an example, the codec type supported by both the terminal and the network device may be an AMR _ NB codec type.
In this embodiment, the first terminal and the second terminal are both located in a first network to which the network device belongs, where the first network may specifically be a core network in a mobile communication network, and the core network includes but is not limited to an IMS core network. The network device is specifically a core network device in the mobile communication network, for example, an IMS core network device.
In this embodiment, the first terminal negotiates a codec type with the second terminal through the network device, that is, through a first network to which the network device belongs. Specifically, the first terminal sends negotiation information to the second terminal through the network device, where the negotiation information may include at least two codec types supported by the first terminal. And after receiving the negotiation information, the second terminal selects one codec type from at least two codec types carried by the negotiation information as the first codec type, and sends the selected first codec type to the first terminal through the network equipment. The first codec type may be a codec type that is not supported by the network device, or a codec type that is supported by the network device. At least one codec type included in the at least two codec types is a codec type supported by the network device; that is, the terminals (including the first terminal and the second terminal of the both parties of the call) support at least one codec type supported by the network device among at least two codec types, and may include a codec type not supported by the network device.
In this embodiment, when the first terminal selects the first codec type determined by negotiation for communication, the first codec type is used to perform coding and decoding processing on communication data, the processed communication data is sent to the second terminal through the network device, and the second terminal performs coding and decoding processing on the obtained communication data according to the first codec type.
As an embodiment, the method further comprises: when the first terminal is switched from the first network to a second network, obtaining a second codec type supported by the second network; and reporting the second codec type to the network equipment.
Specifically, for example, when the first terminal is switched from an IMS core network to a 2G or 3G network using a Circuit Switching (CS) Switching method, the first terminal obtains a codec type supported by the second network, and records the codec type as a second codec type, and the first terminal reports the second codec type to the network device.
By adopting the technical scheme of the embodiment of the invention, after the terminal adopts the new codec type which is not supported by the network equipment, the network equipment can realize that the terminal adopts the new codec type for communication without standard revision and equipment upgrade, thereby greatly shortening the design period. Meanwhile, the smooth communication can be ensured when the different systems are switched.
Example two
The embodiment of the invention also provides a coding and decoding processing method which is applied to network equipment. Fig. 2 is a flowchart illustrating a coding/decoding processing method according to a second embodiment of the present invention; as shown in fig. 2, the method includes:
step 201: the method comprises the steps that a first terminal negotiates a codec type with a second terminal through network equipment, and the network equipment records a negotiation result; the first terminal and the second terminal are both in a first network to which the network device belongs.
Step 202: when the negotiation result determines that a first codec type is selected for communication and the network equipment does not support the first codec type, the network equipment supports the first terminal to adopt the first codec type for communication with the second terminal; wherein the first terminal and the second terminal support at least two codec types including the first codec type, and at least one codec type included in the at least two codec types is a codec type supported by the network device.
In this embodiment, the terminals (including the first terminal and the second terminal of both parties of a call) support at least two codec types; wherein at least one codec type included in the at least two codec types is a codec type supported by the network device; the at least two codec types may include a codec type not supported by the network device; that is, the terminals (including the first terminal and the second terminal of the both parties of the call) support at least one codec type supported by the network device among at least two codec types, and may include a codec type not supported by the network device. As an implementation manner, in this embodiment, the first codec type selected after the negotiation between the first terminal and the second terminal may be a codec type that is not supported by the network device. Specifically, as an example, the codec type supported by both the terminal and the network device may be an AMR _ NB codec type.
In this embodiment, the first terminal and the second terminal are both located in a first network to which the network device belongs, where the first network may specifically be a core network in a mobile communication network, and the core network includes but is not limited to an IMS core network. The network device is specifically a core network device in the mobile communication network, for example, an IMS core network device.
In this embodiment, the first terminal negotiates a codec type with the second terminal through the network device, that is, through a first network to which the network device belongs. Specifically, the first terminal sends negotiation information to the second terminal through the network device, where the negotiation information may include at least two codec types supported by the first terminal. And after receiving the negotiation information through the transmission of the network equipment, the second terminal selects one codec type from at least two codec types carried by the negotiation information as the first codec type, and sends the selected first codec type to the first terminal through the network equipment. The first codec type may be a codec type that is not supported by the network device, or a codec type that is supported by the network device. In the negotiation process, the network device obtains the negotiation information, and analyzes and records the negotiation result. That is, when the network device obtains negotiation information sent by a first terminal and waits to send to a second terminal, at least two codec types carried in the negotiation information and supported by the first terminal are obtained, that is, the codec capability of the first terminal is obtained. After the network device obtains the negotiation result, that is, after obtaining the first codec type selected by the second terminal, determining whether the first codec type is the codec type supported by the network device itself by analyzing the first codec type; based on the analysis result, the network device may allow the first terminal and the second terminal to communicate using a codec type that is not supported by the network device, and during the communication process, the network device does not need to transcode the communication data interacted between the first terminal and the second terminal.
By adopting the technical scheme of the embodiment of the invention, after the terminal adopts the new codec type which is not supported by the network equipment, the network equipment can realize that the terminal adopts the new codec type for communication without standard revision and equipment upgrade, thereby greatly shortening the design period.
EXAMPLE III
The embodiment of the invention also provides a coding and decoding processing method based on the second embodiment, which is applied to network equipment. Fig. 3 is a flowchart illustrating a coding/decoding processing method according to a third embodiment of the present invention; as shown in fig. 3, the method includes:
step 301: based on the fact that a first terminal negotiates the type of a coder and a decoder with a second terminal through the network equipment, the network equipment records a negotiation result; the first terminal and the second terminal are both in a first network to which the network device belongs.
Step 302: when the negotiation result determines that a first codec type is selected for communication and the network equipment does not support the first codec type, the network equipment supports the first terminal to adopt the first codec type for communication with the second terminal; wherein the first terminal and the second terminal support at least two codec types including the first codec type, and at least one codec type included in the at least two codec types is a codec type supported by the network device.
Step 303: and based on the first terminal being switched from the first network to a second network, the network equipment obtains a second codec type reported by the first terminal.
Step 304: the network device negotiates a codec type with the second terminal based on the second codec type to maintain communication between the first terminal and the second terminal.
In this embodiment, when the first terminal is switched from the first network to a second network, for example, from an IMS core network to a 2G or 3G network using a CS switching method, the first terminal obtains a codec type supported by the second network, and records the codec type as a second codec type, and the first terminal reports the second codec type to the network device, that is, the network device obtains the second codec type reported by the first terminal.
In this embodiment, the network device actively renegotiates the codec type with the second terminal in the first network. Specifically, the negotiating, by the network device, a codec type with the second terminal based on the second codec type includes: when the second codec type is the codec type supported by the network device, the network device negotiates the codec type with the second terminal, and selects a third codec type supported by the network device based on a negotiation result; when the second codec type is different from the third codec type, the network device sends the communication data of the first terminal to the second terminal after performing coding and decoding processing on the communication data of the first terminal based on the second codec and the third codec, and sends the communication data of the second terminal to the first terminal after performing coding and decoding processing on the communication data of the second terminal based on the second codec and the third codec.
As an embodiment, the network device may send the codec type supported by itself to the second terminal through the negotiation information, and the second terminal selects the codec type supported by itself (denoted as the third codec type) and returns the selected codec type to the network device. As another embodiment, the network device may also instruct the second terminal to send the codec types supported by itself, and the network device may select, as the third codec type, the codec type supported by itself from the codec types supported by the second terminal. After the negotiation between the network device and the second terminal is completed, that is, after a third codec type supported by the network device is selected, if the second codec type is the same as the third codec type, the network device still does not need to transcode the communication data interacted between the first terminal and the second terminal in the communication process between the first terminal and the second terminal. If the second codec type is different from the third codec type, the network device performs transcoding operation on the communication data based on the second codec type and the third codec type after obtaining the communication data which is transmitted by the first terminal and transcoded based on the second codec type, specifically, performs decoding operation on the communication data according to the second codec type, then performs coding operation on the decoded communication data according to the third codec type, and transmits the coded communication data to the second terminal; correspondingly, after obtaining the communication data which is transmitted by the second terminal and transcoded based on the third codec type, the network device transcodes the communication data based on the third codec type and the second codec type, specifically, firstly, decodes the communication data according to the third codec type, then, codes the decoded communication data according to the second codec type, and then, transmits the coded communication data to the first terminal.
By adopting the technical scheme of the embodiment of the invention, after the terminal adopts the new codec type which is not supported by the network equipment, the network equipment can realize that the terminal adopts the new codec type for communication without standard revision and equipment upgrade, thereby greatly shortening the design period. Meanwhile, the network equipment can be ensured to renegotiate the codec type when the different systems are switched, thereby ensuring the continuity of communication.
Example four
The present embodiment describes the foregoing encoding and decoding processing method with a specific application scenario. Fig. 4 is a flowchart illustrating a coding/decoding processing method according to a third embodiment of the present invention; as shown in fig. 4, the method includes:
step 401: a first terminal sends out negotiation information, and the negotiation information is sent to a second terminal through network equipment; the negotiation information includes codec types supported by the first terminal, and if the codec types supported by the first terminal include Opus and AMR _ NB, the negotiation information includes Opus and AMR _ NB. As an example, the key parameters in the negotiation information are as follows:
m=audio 54321 RTP/AVP 100 96 (1)
a=rtpmap:100opus/48000/2 (2)
a=rtpmap:96AMR/8000/1 (3)
among the key parameters shown in the above expressions (1) to (3), the parameter 100 and the parameter 96 in the expression (1) correspond to the Opus codec type in the expression (2) and the AMR encoder type in the expression (3), respectively.
Wherein Opus is an open, royalty-free voice coding format, standardized by the Internet Engineering Task Force (IETF) (RFC 6716), and suitable for real-time voice transmission over a network. Opus supports encoding from narrowband speech to high quality stereo music. The 3GPP does not list the Opus codec type as a codec type that needs to be supported. That is, when the network device is an IMS core network device, the network device is not supporting the Opus codec type. In this embodiment, assuming that both the first terminal and the second terminal support the Opus codec type, the first terminal initiates a VoLTE call to the second terminal.
Step 402: and after receiving the negotiation information, the second terminal selects the Opus codec type for communication. Although the network device (i.e., the IMS core network device) cannot recognize the Opus, the network device determines, based on the analysis of the negotiation result, that both the first terminal and the second terminal support the AMR _ NB codec type, and the AMR _ NB codec type is supported by the network device, and then allows the first terminal and the second terminal to communicate using the Opus codec type.
Step 403: when any one of the first terminal and the second terminal (assuming that the first terminal is the first terminal) moves out of a first network (for example, an IMS core network) to which the network device belongs, and it is assumed that the first terminal is switched to a Time Division-Synchronous Code Division Multiple Access (TD-SCDMA) network using a circuit switching method, the first terminal selects a codec type supported by the circuit switching network, for example, selects an AMR _ NB codec type, and reports the selected AMR _ NB codec type to the network device.
Step 404: as an implementation manner, a network device renegotiates a codec of a second terminal (the second terminal is still in an IMS core network) still in a first network through a re-INVITE (re-sending a new INVITE in the same session may be referred to as re-INVITE) or UPDATE (UPDATE) procedure, and the network device may send negotiation information to the second terminal, where the negotiation information includes codec types supported by the network device, and as an example, key parameters in the negotiation information are as follows:
m=audio 50000RTP/AVP 100 (4)
a=rtpmap:100AMR/8000/1 (5)
step 405: and the second terminal still in the first network receives the negotiation information and determines to select the AMR _ NB codec. Since the first terminal is also currently of the AMR _ NB codec type, the network device does not need to transcode the interactive data of the first terminal and the second terminal. If the codec type adopted by the second terminal is inconsistent with the codec type adopted by the first terminal after renegotiation, the network device needs to perform transcoding operation on the interactive data of the first terminal and the second terminal, and then the interactive data can be identified by the first terminal and the second terminal, so that smooth communication between the first terminal and the second terminal is maintained.
EXAMPLE five
The embodiment of the invention also provides the terminal. Fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention; as shown in fig. 5, the terminal includes: a first negotiation unit 51 and a first communication unit 52; wherein the content of the first and second substances,
the first negotiation unit 51 is configured to negotiate a codec type with another terminal through a network device; the terminal and the other terminals are both in a first network to which the network equipment belongs;
the first communication unit 52 is configured to, when the negotiation result obtained by the first negotiation unit 51 determines that a first codec type is selected for communication, adopt the first codec type and communicate with the other terminal through the network device;
wherein the terminal and the other terminal support at least two codec types including the first codec type; at least one codec type included in the at least two codec types is a codec type supported by the network device.
As an embodiment, when the first codec type is a codec type that is not supported by the network device, at least one codec type other than the first codec type is a codec type that is supported by the network device among the at least two codec types; the first communication unit 52 is further configured to obtain a second codec type supported by a second network when the terminal is handed over from the first network to the second network; and reporting the second codec type to the network equipment.
It should be understood by those skilled in the art that, the functions of each processing unit in the terminal according to the embodiment of the present invention may be understood by referring to the related description of the encoding and decoding processing method, and each processing unit in the terminal according to the embodiment of the present invention may be implemented by an analog circuit that implements the functions described in the embodiment of the present invention, or may be implemented by running software that performs the functions described in the embodiment of the present invention on an intelligent terminal.
In the embodiment of the present invention, the first negotiation unit 51 and the first communication unit 52 in the terminal can be implemented by a communication module (including a basic communication suite, an operating system, a communication module, a standardized interface, a protocol, etc.) and a transceiver antenna in practical application.
EXAMPLE six
The embodiment of the invention also provides network equipment. Fig. 6 is a schematic structural diagram of a network device according to an embodiment of the present invention; as shown in fig. 6, the network device includes: an acquisition unit 61 and a second communication unit 62; wherein the content of the first and second substances,
the obtaining unit 61 is configured to negotiate, based on the first terminal and the second terminal through the network device, a codec type and record a negotiation result; the first terminal and the second terminal are both in a first network to which the network device belongs;
the second communication unit 62 is configured to support the first terminal to communicate with the second terminal by using the first codec type when the negotiation result recorded by the obtaining unit 61 determines that the first codec type is selected for communication and the network device itself does not support the first codec type;
wherein the first terminal and the second terminal support at least two codec types including the first codec type, and at least one codec type included in the at least two codec types is a codec type supported by the network device.
As an embodiment, the network device further includes a second negotiation unit;
the second communication unit 62 is further configured to obtain a second codec type reported by the first terminal based on the first terminal being switched from the first network to a second network;
the second negotiation unit is configured to negotiate a codec type with the second terminal based on the second codec type obtained by the second communication unit 62, so as to maintain communication between the first terminal and the second terminal.
Specifically, the second negotiation unit is configured to negotiate, when the second codec type is a codec type supported by the network device itself, a codec type with the second terminal, and select a third codec type supported by the network device based on a negotiation result;
and the second communication unit 62 is configured to, when the second codec type is different from the third codec type, send the communication data of the first terminal to the second terminal after performing codec processing based on the second codec and the third codec, and send the communication data of the second terminal to the first terminal after performing codec processing based on the second codec and the third codec.
It should be understood by those skilled in the art that, the functions of each processing unit in the network device according to the embodiment of the present invention may be understood by referring to the related description of the encoding and decoding processing method, and each processing unit in the network device according to the embodiment of the present invention may be implemented by an analog circuit that implements the functions described in the embodiment of the present invention, or may be implemented by running software that executes the functions described in the embodiment of the present invention on an intelligent terminal.
In the embodiment of the present invention, the obtaining Unit 61 in the network device may be implemented by a Central Processing Unit (CPU), a Digital Signal Processor (DSP), a Micro Control Unit (MCU), or a Programmable Gate Array (FPGA) in the network device in practical application; the second communication unit 62 and the second negotiation unit in the network device can be implemented by a communication module (including a basic communication suite, an operating system, a communication module, a standardized interface, a protocol, etc.) and a transceiver antenna in practical application.
Fig. 7 is a schematic diagram of data flow of the encoding and decoding processing method in an SRVCC structure according to an embodiment of the present invention; as shown in fig. 7, handover of SRVCC from LTE to UTRAN or GERAN occurs for UE 1. In the switching process, after the IMS core network knows that the UE1 is switched to the AMR-NB code which can be identified by the IMS, the IMS core network actively initiates renegotiation with the encoder of the UE2, and the negotiation result is that the AMR-NB is adopted, so that the IMS core network does not need to provide transcoding for the UE1 and the UE2, and the conversation is maintained.
The embodiment of the invention also provides a terminal, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein when the processor executes the program, the steps of the coding and decoding processing method applied to the terminal are realized. Specifically, the processor is configured to execute, when running the computer program, the following steps: negotiating a codec type with a second terminal through a network device; the first terminal and the second terminal are both in a first network to which the network device belongs; when the negotiation result determines that a first codec type is selected for communication, the first terminal adopts the first codec type and communicates with the second terminal through the network equipment; wherein the first terminal and the second terminal support at least two codec types including the first codec type; at least one codec type included in the at least two codec types is a codec type supported by the network device.
In one embodiment, the processor is configured to execute, when running the computer program, the following: when the first network is switched to a second network, obtaining a second codec type supported by the second network; and reporting the second codec type to the network equipment.
The embodiment of the invention also provides network equipment, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the program to realize the steps of the coding and decoding processing method applied to the network equipment. Specifically, the processor is configured to execute, when running the computer program, the following steps: negotiating the type of the coder and the decoder based on the first terminal and the second terminal, and recording a negotiation result; the first terminal and the second terminal are both in a first network to which the network device belongs; when the negotiation result determines that a first codec type is selected for communication and the network equipment does not support the first codec type, the first terminal is supported to adopt the first codec type to communicate with the second terminal; wherein the first terminal and the second terminal support at least two codec types including the first codec type, and at least one codec type included in the at least two codec types is a codec type supported by the network device.
In one embodiment, the processor is configured to execute, when running the computer program, the following: switching the first terminal from the first network to a second network based on the first terminal to obtain a second codec type reported by the first terminal; negotiating a codec type with the second terminal based on the second codec type to maintain communication between the first terminal and the second terminal.
In one embodiment, the processor is configured to execute, when running the computer program, the following: when the second codec type is the codec type supported by the network equipment, negotiating the codec type with the second terminal, and selecting a third codec type supported by the network equipment based on a negotiation result; when the second codec type is different from the third codec type, the communication data of the first terminal is sent to the second terminal after being coded and decoded based on the second codec and the third codec, and the communication data of the second terminal is sent to the first terminal after being coded and decoded based on the second codec and the third codec.
In the terminal and the network device according to the embodiments of the present invention, the memory may be implemented by any type of volatile or non-volatile storage device, or a combination thereof. The nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic Random Access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 804 described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
In the terminal and the network device according to the embodiments of the present invention, the processor may be an integrated circuit chip having signal processing capability. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The processor described above may be a general purpose processor, a DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium having a memory and a processor reading the information in the memory and combining the hardware to perform the steps of the method.
The embodiment of the present invention further provides a computer storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the steps of the encoding and decoding processing method applied in the terminal according to the embodiment of the present invention. Specifically, when executed by the processor, the computer program performs: negotiating a codec type with a second terminal through a network device; the first terminal and the second terminal are both in a first network to which the network device belongs; when the negotiation result determines that a first codec type is selected for communication, the first terminal adopts the first codec type and communicates with the second terminal through the network equipment; wherein the first terminal and the second terminal support at least two codec types including the first codec type; at least one codec type included in the at least two codec types is a codec type supported by the network device.
As an embodiment, the computer program, when executed by the processor, performs: when the first network is switched to a second network, obtaining a second codec type supported by the second network; and reporting the second codec type to the network equipment.
The embodiment of the present invention further provides a computer storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the steps of the codec processing method applied to the network device according to the embodiment of the present invention. Specifically, when executed by the processor, the computer program performs: negotiating the type of the coder and the decoder based on the first terminal and the second terminal, and recording a negotiation result; the first terminal and the second terminal are both in a first network to which the network device belongs; when the negotiation result determines that a first codec type is selected for communication and the network equipment does not support the first codec type, the first terminal is supported to adopt the first codec type to communicate with the second terminal; wherein the first terminal and the second terminal support at least two codec types including the first codec type, and at least one codec type included in the at least two codec types is a codec type supported by the network device.
As an embodiment, the computer program, when executed by the processor, performs: switching the first terminal from the first network to a second network based on the first terminal to obtain a second codec type reported by the first terminal; negotiating a codec type with the second terminal based on the second codec type to maintain communication between the first terminal and the second terminal.
As an embodiment, the computer program, when executed by the processor, performs: when the second codec type is the codec type supported by the network equipment, negotiating the codec type with the second terminal, and selecting a third codec type supported by the network equipment based on a negotiation result; when the second codec type is different from the third codec type, the communication data of the first terminal is sent to the second terminal after being coded and decoded based on the second codec and the third codec, and the communication data of the second terminal is sent to the first terminal after being coded and decoded based on the second codec and the third codec.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (14)

1. A method for encoding and decoding, the method comprising:
a first terminal negotiates a codec type with a second terminal through network equipment; the first terminal and the second terminal are both in a first network to which the network device belongs;
when the negotiation result determines that a first codec type is selected for communication, the first terminal adopts the first codec type and communicates with the second terminal through the network equipment;
wherein the first terminal and the second terminal support at least two codec types including the first codec type; at least one codec type included in the at least two codec types is a codec type supported by the network device;
when the first codec type is a codec type that is not supported by the network device, at least one codec type other than the first codec type is a codec type that is supported by the network device among the at least two codec types.
2. The method of claim 1, further comprising: when the first terminal is switched from the first network to a second network, obtaining a second codec type supported by the second network;
and reporting the second codec type to the network equipment.
3. A method for encoding and decoding, the method comprising:
the method comprises the steps that a first terminal negotiates a codec type with a second terminal through network equipment, and the network equipment records a negotiation result; the first terminal and the second terminal are both in a first network to which the network device belongs;
when the negotiation result determines that a first codec type is selected for communication and the network equipment does not support the first codec type, the network equipment allows the first terminal to communicate with the second terminal by adopting the first codec type, and in the communication process, the network equipment does not carry out transcoding operation on communication data in the communication process of the first terminal and the second terminal;
wherein the first terminal and the second terminal support at least two codec types including the first codec type, and at least one codec type included in the at least two codec types is a codec type supported by the network device.
4. The method of claim 3, further comprising: based on the first terminal switching from the first network to a second network, the network equipment obtains a second codec type reported by the first terminal;
the network device negotiates a codec type with the second terminal based on the second codec type to maintain communication between the first terminal and the second terminal.
5. The method of claim 4, wherein when the second codec type is a codec type supported by the network device, the network device negotiates a codec type with the second terminal based on the second codec type to maintain communication between the first terminal and the second terminal, comprising:
the network equipment negotiates the codec type with the second terminal, and selects a third codec type supported by the network equipment based on a negotiation result;
when the second codec type is different from the third codec type, the network device sends the communication data of the first terminal to the second terminal after performing coding and decoding processing on the communication data of the first terminal based on the second codec and the third codec, and sends the communication data of the second terminal to the first terminal after performing coding and decoding processing on the communication data of the second terminal based on the second codec and the third codec.
6. A terminal, characterized in that the terminal comprises: a first negotiation unit and a first communication unit; wherein the content of the first and second substances,
the first negotiation unit is used for negotiating the type of the coder and the decoder with other terminals through network equipment; the terminal and the other terminals are both in a first network to which the network equipment belongs;
the first communication unit is configured to communicate with the other terminal through the network device by using a first codec type when the negotiation result obtained by the first negotiation unit determines that the first codec type is selected for communication;
wherein the terminal and the other terminal support at least two codec types including the first codec type; at least one codec type included in the at least two codec types is a codec type supported by the network device;
when the first codec type is a codec type that is not supported by the network device, at least one codec type other than the first codec type is a codec type that is supported by the network device among the at least two codec types.
7. The terminal according to claim 6, wherein the first communication unit is further configured to obtain a second codec type supported by a second network when the terminal is handed over from the first network to the second network; and reporting the second codec type to the network equipment.
8. A network device, characterized in that the network device comprises: an acquisition unit and a second communication unit; wherein the content of the first and second substances,
the acquiring unit is used for negotiating the type of the coder and the decoder with the second terminal through the network equipment based on the first terminal and recording a negotiation result; the first terminal and the second terminal are both in a first network to which the network device belongs;
the second communication unit is configured to allow the first terminal to communicate with the second terminal by using the first codec type when the negotiation result recorded by the obtaining unit determines that the first codec type is selected for communication and the network device itself does not support the first codec type, and the network device does not perform transcoding operation on communication data in a communication process between the first terminal and the second terminal in a communication process;
wherein the first terminal and the second terminal support at least two codec types including the first codec type, and at least one codec type included in the at least two codec types is a codec type supported by the network device.
9. The network device of claim 8, further comprising a second negotiation unit;
the second communication unit is further configured to obtain a second codec type reported by the first terminal based on the first terminal being switched from the first network to a second network;
the second negotiation unit is configured to negotiate a codec type with the second terminal based on the second codec type obtained by the second communication unit, so as to maintain communication between the first terminal and the second terminal.
10. The network device according to claim 9, wherein the second negotiating unit is configured to negotiate a codec type with the second terminal when the second codec type is a codec type supported by the network device itself, and select a third codec type supported by the network device based on a negotiation result;
and the second communication unit is used for sending the communication data of the first terminal to the second terminal after carrying out coding and decoding processing on the communication data of the first terminal based on the second codec and the third codec and sending the communication data of the second terminal to the first terminal after carrying out coding and decoding processing on the communication data of the second terminal based on the second codec and the third codec when the second codec type is different from the third codec type.
11. A computer storage medium having a computer program stored thereon, the program, when executed by a processor, implementing the steps of the codec processing method of claim 1 or 2.
12. A computer storage medium having a computer program stored thereon, wherein the program is adapted to perform the steps of the codec processing method according to any one of claims 3 to 5 when executed by a processor.
13. A terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the codec processing method according to claim 1 or 2 are implemented when the processor executes the program.
14. A network device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the codec processing method according to any of claims 3 to 5 are implemented when the processor executes the program.
CN201710473982.XA 2017-06-21 2017-06-21 Encoding and decoding processing method, terminal, network equipment and computer storage medium Active CN109104295B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710473982.XA CN109104295B (en) 2017-06-21 2017-06-21 Encoding and decoding processing method, terminal, network equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710473982.XA CN109104295B (en) 2017-06-21 2017-06-21 Encoding and decoding processing method, terminal, network equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN109104295A CN109104295A (en) 2018-12-28
CN109104295B true CN109104295B (en) 2021-07-20

Family

ID=64796107

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710473982.XA Active CN109104295B (en) 2017-06-21 2017-06-21 Encoding and decoding processing method, terminal, network equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN109104295B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1856147A (en) * 2005-04-07 2006-11-01 Lg电子株式会社 Apparatus and method for switching a voice codec of a mobile terminal
CN102448135A (en) * 2011-11-17 2012-05-09 中兴通讯股份有限公司 Method and system for continuously switching single wireless voice
CN102474552A (en) * 2009-07-21 2012-05-23 株式会社Ntt都科摩 Communication control system and communication control method
CN103401833A (en) * 2013-06-26 2013-11-20 华为技术有限公司 Media cipher/decipher switching method and device
WO2016056811A1 (en) * 2014-10-07 2016-04-14 Samsung Electronics Co., Ltd. Single radio voice call continuity

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1856147A (en) * 2005-04-07 2006-11-01 Lg电子株式会社 Apparatus and method for switching a voice codec of a mobile terminal
CN102474552A (en) * 2009-07-21 2012-05-23 株式会社Ntt都科摩 Communication control system and communication control method
CN102448135A (en) * 2011-11-17 2012-05-09 中兴通讯股份有限公司 Method and system for continuously switching single wireless voice
CN103401833A (en) * 2013-06-26 2013-11-20 华为技术有限公司 Media cipher/decipher switching method and device
WO2016056811A1 (en) * 2014-10-07 2016-04-14 Samsung Electronics Co., Ltd. Single radio voice call continuity

Also Published As

Publication number Publication date
CN109104295A (en) 2018-12-28

Similar Documents

Publication Publication Date Title
US10965719B2 (en) Service capabilities in heterogeneous network
US11799922B2 (en) Network core facilitating terminal interoperation
US10362514B2 (en) Network node and communication method
CN107197488B (en) Communication terminal device, communication method, and integrated circuit
KR101479393B1 (en) Codec deployment using in-band signals
US20040037312A1 (en) Method and communication network for operating a cross coding element
US9826072B1 (en) Network-terminal interoperation using compatible payloads
US10911988B2 (en) Communication node, terminal, and communication control method
US20130157674A1 (en) Bandwidth extension usage optimization
WO2015174018A1 (en) Network node and signaling processing method
CN109104295B (en) Encoding and decoding processing method, terminal, network equipment and computer storage medium
Bruhn et al. System aspects of the 3GPP evolution towards enhanced voice services
JP7009509B2 (en) Network device management
CN113555025A (en) Mute description frame sending and negotiating method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant