[go: up one dir, main page]

WO2012113240A1 - Multimedia session negotiation method, related device and system - Google Patents

Multimedia session negotiation method, related device and system Download PDF

Info

Publication number
WO2012113240A1
WO2012113240A1 PCT/CN2011/081401 CN2011081401W WO2012113240A1 WO 2012113240 A1 WO2012113240 A1 WO 2012113240A1 CN 2011081401 W CN2011081401 W CN 2011081401W WO 2012113240 A1 WO2012113240 A1 WO 2012113240A1
Authority
WO
WIPO (PCT)
Prior art keywords
media
session
message
terminal
sdp
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.)
Ceased
Application number
PCT/CN2011/081401
Other languages
French (fr)
Chinese (zh)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of WO2012113240A1 publication Critical patent/WO2012113240A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/24Negotiation of communication capabilities
    • 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/1066Session management
    • H04L65/1069Session establishment or de-establishment
    • 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/1066Session management
    • H04L65/1083In-session procedures
    • H04L65/1094Inter-user-equipment sessions transfer or sharing

Definitions

  • the present invention relates to the field of communications, and in particular, to a method, a related device, and a system for negotiating a multimedia session.
  • Data redundancy refers to the technology of storing the same data in different data packets. If the average continuous packet loss rate is low, if a data packet is lost during transmission, the receiver can still pass the subsequent data packet. The redundant data in the data reorganizes and recovers the lost data information to avoid the problem of poor voice quality caused by packet loss. At present, data redundancy has been widely applied and formed a request for comment (RFC, Request). For Comments) 2198 standard.
  • Session Description Protocol SDP
  • SIP Session Initiation Protocol
  • the SDP data carried in the SIP message is used for session negotiation (such as negotiation of media redundancy, media format, media codec, media receiving address, port, etc.).
  • the RFC 2198 standard described above only describes SDP for a single type of data redundancy capability. That is, based on the existing RFC 2198 standard, the calling party and the called party can only negotiate the redundancy capability of a single type of media. However, There are often multiple media types (such as voice, video, etc.) in a session. Therefore, existing methods that can only negotiate the redundancy capabilities of a single type of media have obvious limitations. Summary of the invention
  • Embodiments of the present invention provide a method, a related device, and a system for negotiating a multimedia session, which are used for Solve the problem of existing redundancy that can only be used for single-class media in a session.
  • the embodiment of the present invention provides the following technical solutions:
  • a method for negotiating a multimedia session including:
  • the called terminal receives the first session negotiation message from the calling terminal, and the attribute parameter carried in the SDP message in the first session negotiation message includes media parameters and media redundancy parameters of at least two media; the called terminal according to the local session The capability selects an attribute parameter carried in the received SDP packet.
  • the called terminal generates a new SDP packet according to the selected attribute parameter.
  • the called terminal sends the generated SDP packet to the calling terminal through the second session negotiation message.
  • a terminal comprising:
  • a receiving unit configured to receive a first session negotiation message from the calling terminal, where the attribute parameter carried in the SDP message in the first session negotiation message includes media parameters and media redundancy parameters of at least two media;
  • a selecting unit configured to select, according to a local session capability, an attribute parameter carried in the received SDP packet
  • a generating unit configured to generate a new SDP packet according to the attribute parameter selected by the selecting unit, and send, by the sending unit, the SDP packet generated by the generating unit to the calling terminal by using a second session negotiation message.
  • a terminal comprising:
  • a sending unit configured to send a first session negotiation message to the called terminal, where the attribute parameter carried in the SDP message in the first session negotiation message includes media parameters and media redundancy parameters of at least two media;
  • a receiving unit configured to receive a second session negotiation message returned by the called terminal
  • the session processing unit is configured to establish or refresh a session with the called terminal according to the SDP message in the second session negotiation message received by the receiving unit.
  • a multimedia session system including:
  • the first terminal is configured to send a first session negotiation message to the second terminal, where the attribute parameter carried in the session description protocol SDP packet in the first session negotiation message includes media of at least two media.
  • the parameter and the media redundancy parameter ; receiving the second session negotiation message returned by the second terminal, and establishing or refreshing the session with the second terminal according to the SDP message in the second session negotiation message.
  • the second terminal is configured to receive the first session negotiation message from the first terminal, where the attribute parameter carried in the SDP message in the first session negotiation message includes media redundancy parameters of at least two media; The attribute parameters included in the received SDP message are selected; the new SDP message is generated according to the selected attribute parameter; and the generated SDP message is sent to the first terminal by using the second session negotiation message.
  • the technical solution provided by the embodiment of the present invention extends the existing RFC2198 standard, so that the message based on the SDP protocol can simultaneously express the redundancy capability of multiple media, so that the calling terminal and the called terminal The calling terminal can negotiate the redundancy of multiple media at the same time before establishing or updating the session, thereby solving the problem that the existing single-type media can only be redundant in the session.
  • FIG. 1 is a schematic flowchart of another embodiment of a method for negotiating a multimedia session according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of another embodiment of a method for negotiating a multimedia session according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of another terminal according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a multimedia session system according to an embodiment of the present invention.
  • Embodiments of the present invention provide a method, a related device, and a system for negotiating a multimedia session.
  • an embodiment of a method for negotiating a multimedia session in the embodiment of the present invention includes:
  • the called terminal receives a first session negotiation message from the calling terminal.
  • the calling terminal When a terminal (ie, the calling terminal) pre-initiates a session with the opposite end (ie, the called terminal) to establish or update a session with the called terminal, the calling terminal sends a first session negotiation message to the called terminal, to The session initialization is triggered, where the first session negotiation message may be a SIP protocol message, or may be another end-to-end peer-to-peer protocol message based on the SDP protocol, which is not limited herein.
  • the calling and receiving terminals may negotiate the new session by carrying an SDP message including a new session parameter (such as a session identifier, a session duration, and an attribute parameter such as a media parameter, a media redundancy parameter, etc.) in the interactive session negotiation message. So that the calling terminal can establish or update the session according to the negotiated session parameters.
  • a new session parameter such as a session identifier, a session duration, and an attribute parameter such as a media parameter, a media redundancy parameter, etc.
  • the calling terminal when it initiates a session to the called terminal, it may encapsulate the media parameter of the media type corresponding to the pre-transmitted media data (which may include one or more media) in the SDP message.
  • the media parameters include, but are not limited to, a media type indication parameter and a media codec indication parameter.
  • the media codec indication parameter may indicate a media codec supported by the calling terminal, and the calling terminal may carry multiple media codec indications.
  • the parameter is configured to enable the called terminal to learn the media codec supported by the calling terminal when receiving the SDP message sent by the calling terminal. Further, if the calling terminal supports the redundancy capability of the media type, the corresponding media redundancy parameter may also be encapsulated in the SDP packet, and the SDP packet is sent to the called terminal by using the first session negotiation message. .
  • the attribute parameter carried in the SDP packet sent by the calling terminal includes the media parameter and the media redundancy parameter of the at least two media, where the media redundancy parameter includes but is not limited to the redundancy type indication parameter,
  • the media codec indication parameter corresponding to the redundant codec.
  • the value of the redundancy type indication parameter and the media codec indication parameter may be a load type (PT, Payload Type) value mapped to various media codecs and redundant codecs.
  • the called terminal selects an attribute parameter carried in the received SDP packet according to the local session capability.
  • the called terminal When the called terminal receives the SDP message from the calling terminal, it can be based on the local session capability (such as supported media type, supported media codec, supported media type redundancy capability, redundant codec, etc.)
  • the attribute parameters (such as media parameters, media redundancy parameters, etc.) carried in the received SDP packets are selected.
  • the called party The terminal may select a corresponding media parameter from the received SDP packet according to the locally supported media type and the media codec capability, such as a media type indication parameter corresponding to the locally supported media type, and corresponding to the locally supported media codec.
  • Media codec indication parameter a media type indication parameter corresponding to the locally supported media type, and corresponding to the locally supported media codec.
  • Media codec indication parameter a media redundancy parameter from the received SDP message, such as redundancy type indication parameter and redundancy
  • the codec corresponding to the codec indicates parameters and the like.
  • the called terminal generates a new SDP packet according to the selected attribute parameter.
  • a new SDP packet may be generated according to the selected attribute parameter.
  • the generated SDP message can be identical to the received SDP message.
  • the called terminal sends the generated SDP packet to the calling terminal by using a second session negotiation message.
  • the called terminal sends the generated SDP message to the calling terminal through the second session negotiation message, so that the calling terminal establishes or refreshes the session with the called terminal according to the SDP message returned by the called terminal.
  • the foregoing second session negotiation message may be a SIP protocol message, or may be another end-to-end peer-to-peer protocol message based on the SDP protocol, which is not limited herein.
  • the called terminal may also modify or delete other session parameters except the above attribute parameters in the received SDP message, but the processing is performed.
  • the prior art does not involve the technical solution to be described in the present invention. Therefore, in the embodiment of the present invention, the default called terminal does not need to modify other session parameters in the received SDP message (for example, Description of the technical solution of the present invention by modifying the parameters such as session duration and redundancy levels.
  • the technical solution provided by the embodiment of the present invention can be applied to a single-mode session scenario, and can also be applied to a multi-mode session scenario.
  • the technical solution provided by the embodiment of the present invention extends the existing RFC2198 standard, so that the message based on the SDP protocol can simultaneously express the redundancy capability of multiple media, so that the calling terminal and the called terminal The calling terminal can negotiate the redundancy of multiple media at the same time before establishing or updating the session, thereby solving the problem that the existing single-type media can only be redundant in the session.
  • a method for negotiating a multimedia session in the embodiment of the present invention is described below. Referring to FIG. 2, another embodiment of a method for negotiating a multimedia session in the embodiment of the present invention includes:
  • the calling terminal sends a first session negotiation message to the called terminal.
  • the calling terminal when it initiates a session to the called terminal, it may encapsulate the media parameter of the media type corresponding to the pre-transmitted media data (which may include one or more media) in the SDP message.
  • the media parameters include, but are not limited to, a media type indication parameter and a media codec indication parameter.
  • the media codec indication parameter may indicate a media codec supported by the calling terminal, and the calling terminal may carry multiple media codec indications.
  • the parameter is configured to enable the called terminal to learn the media codec supported by the calling terminal when receiving the SDP message sent by the calling terminal. Further, if the calling terminal supports the redundancy capability of the media type, the corresponding media redundancy parameter may also be encapsulated in the SDP packet, and the SDP packet is sent to the called terminal by using the first session negotiation message. .
  • the attribute parameter carried in the SDP packet sent by the calling terminal includes the media parameter and the media redundancy parameter of the at least two media, where the media redundancy parameter includes but is not limited to the redundancy type indication parameter, The media codec indication parameter corresponding to the redundant codec.
  • the value of the redundancy type indication parameter and the media codec indication parameter may be a PT value mapped to various media codecs and redundant codecs.
  • the foregoing first session negotiation message may be a SIP protocol message, or may be another end-to-end peer-to-peer protocol message based on the SDP protocol, which is not limited herein.
  • the calling terminal receives the second session negotiation message returned by the called terminal, and establishes or refreshes a session with the called terminal according to the SDP message in the second session negotiation message.
  • the calling terminal can establish or refresh the SDP message returned by the called terminal, and the calling terminal can simultaneously perform redundancy on the plurality of media transmitted in the established or updated session.
  • the foregoing second session negotiation message may be a SIP protocol message, or may be another end-to-end peer-to-peer protocol message based on the SDP protocol, which is not limited herein.
  • the technical solution provided by the embodiment of the present invention extends the existing RFC2198 standard, so that the message based on the SDP protocol can simultaneously express the redundancy capability of multiple media, so that the calling terminal and the called terminal The calling terminal can negotiate the redundancy of multiple media at the same time before establishing or updating the session, thereby solving the problem that the existing single-type media can only be redundant in the session.
  • a method for negotiating a multimedia session in the embodiment of the present invention is described below with reference to a specific application example.
  • the user equipment (UE, User Equipment) 1 is the session originating end, that is, the calling terminal, and UE2 is the called terminal.
  • UE1 supports RFC2833 encoded data and voice data, and supports G.711A, G.729 encoded voice data, with redundancy capability of RFC2833 encoded data and redundancy of voice data;
  • UE2 supports voice data, does not support RFC2833 encoding. It only supports G.729 encoded voice data and has the redundancy capability of voice data.
  • UE1 sends a first session negotiation message to UE2.
  • the UE1 encapsulates the pre-negotiated session parameters (including the attribute parameters) in the SDP packet, and sends the message to the UE2 through the first session negotiation message.
  • the SDP packet sent by the UE1 includes the media parameters and media redundancy parameters of the two media of the RFC2833 encoded data and the voice data, and specifically includes the voice type indication parameter; the media codec corresponding to the G.711A Indication parameter (such as PT value 8); media codec indication parameter corresponding to G.729 (such as PT value 18); redundant type indication parameter corresponding to voice data (such as PT value of 96), redundant codec G.711A Corresponding media codec indication parameter (such as PT value 8), media codec indication parameter corresponding to the redundancy codec G.729 (such as PT value 18), and media codec indication parameter corresponding to RFC2833 (such as PT value 97); The redundancy type indication parameter (such as PT value 98) corresponding to the RFC2833 encoded data, and the media codec indication parameter (such as the PT value 97) corresponding to the redundant codec RFC2833.
  • the redundancy type indication parameter such as PT value
  • the UE2 selects an attribute parameter carried in the received SDP packet according to the local session capability.
  • the attribute parameter carried in the received SDP message in the first session negotiation message may be selected according to the local session capability.
  • UE2 since UE2 only supports G.729 encoded voice data, it does not support RFC2833 encoding, and has the redundancy capability of voice data. Therefore, UE2 selects a voice type indication parameter and a media codec indication parameter corresponding to G.729 (such as PT value 18) from the received SDP message, and then selects a redundancy type indication parameter corresponding to the voice data from the SDP message. (eg PT value is 96), media codec indication parameter of redundant codec G.729 (eg PT value 18).
  • UE2 does not support RFC2833 encoding, so media parameters related to RFC2833 (media codec indication parameters corresponding to RFC2833) and media redundancy parameters (redundant type indication parameters and redundancy scheme corresponding to RFC2833 encoded data are not selected). Decoding the media codec indication corresponding to RFC2833.
  • media codec indication parameters corresponding to RFC2833 media codec indication parameters corresponding to RFC2833
  • media redundancy parameters redundant type indication parameters and redundancy scheme corresponding to RFC2833 encoded data are not selected.
  • Decoding the media codec indication corresponding to RFC2833 Although UE2 supports the redundancy capability of voice data, since it does not support G.711A codec, it does not use G.711 to redundantly encode voice data, so no redundancy is selected. Decoding the media codec indication parameter corresponding to G.711A.
  • the UE2 if the UE2 supports the RFC2833 codec data, but does not support the redundancy capability of the RFC2833 data, the UE2 will select the media parameter corresponding to the RFC2833 encoded data, but does not select the media corresponding to the RFC2833 encoded data. Redundant parameters.
  • the UE2 generates a new SDP message according to the selected attribute parameter.
  • a new SDP packet may be generated according to the selected attribute parameter.
  • the UE2 sends the generated SDP packet to the UE1 through the second session negotiation message, and the UE1 sends the generated SDP packet to the UE2 through the second session negotiation message, so that the UE1
  • the UE2 establishes or refreshes a session with the called terminal according to the SDP message returned by the UE1.
  • the UE1 establishes or refreshes a session with the UE2 according to the SDP packet in the second session negotiation message returned by the UE2.
  • the UE2 may establish or refresh a session with the called terminal according to the SDP message returned by UE1.
  • the UE1 receives the SDP packet returned by the UE2, it can be learned that the UE2 supports the G.729-encoded voice data and the G.729-encoded voice data redundancy, and the UE2 can transmit in the session to be established.
  • G.729 encoded speech data and the speech data is redundant using G.729 encoding.
  • the UE1 can transmit the G.729 encoded voice data and the RFC2833 encoded data in the session to be established, and simultaneously perform redundancy on the two data. .
  • the foregoing first session negotiation message and the second conference negotiation message may be SIP protocol messages, or may be other end-to-end peer-to-peer protocol messages based on the SDP protocol, which is not limited herein.
  • the foregoing UE1 may also modify or delete other session parameters except the above attribute parameters in the received SDP message, but the processing belongs to The prior art does not involve the technical solution to be clarified by the present invention. Therefore, in the embodiment of the present invention, in the case that the default UE1 does not need to modify other session parameters in the received SDP packet (such as session duration, Description of the technical solution of the present invention by modifying the parameters such as redundant series.
  • a terminal provided by the embodiment of the present invention includes:
  • the receiving unit 401 is configured to receive a first session negotiation message from the calling terminal.
  • the attribute parameter carried in the SDP packet in the first session negotiation message includes media parameters and media redundancy parameters of at least two media.
  • the selecting unit 402 is configured to select, according to the local session capability, the attribute parameter carried in the received SDP packet;
  • the selecting unit 402 can be triggered according to the local session capability (such as supported media type, supported media codec, supported media type redundancy capability and redundancy). Codec, etc.) selects attribute parameters (such as media parameters, media redundancy parameters, etc.) carried in the received SDP packets.
  • the local session capability such as supported media type, supported media codec, supported media type redundancy capability and redundancy.
  • Codec, etc. selects attribute parameters (such as media parameters, media redundancy parameters, etc.) carried in the received SDP packets.
  • the selecting unit 402 may select a corresponding SDP packet from the received SDP packet according to the locally supported media type and the media encoding and decoding capability.
  • Media parameters such as media type indication parameters corresponding to locally supported media types, media codec indication parameters corresponding to local media codec capabilities); according to local media codec capabilities and redundant capabilities of supported media types,
  • Corresponding media redundancy parameters such as a redundancy type indication parameter and a media codec indication parameter corresponding to the redundancy codec, are selected in the received SDP message.
  • the foregoing first session negotiation may be a SIP protocol message, or may be another end-to-end peer-to-peer protocol message based on the SDP protocol, which is not limited herein.
  • the generating unit 403 is configured to generate a new SDP message according to the attribute parameter selected by the selecting unit 402.
  • the sending unit 404 is configured to send, by using the second session negotiation message, the SDP ⁇ message generated by the generating unit 403 to the calling terminal.
  • the foregoing second conference negotiation message may be a SIP protocol message, or may be another end-to-end peer-to-peer protocol message based on the SDP protocol, which is not limited herein.
  • the terminal in this embodiment may be used as the called terminal in the foregoing method embodiment, and may be used to implement all the technical solutions in the foregoing method embodiments, and the functions of the respective functional modules may be in accordance with the foregoing method embodiments.
  • the specific implementation of the method may be referred to the related description in the foregoing embodiments, and details are not described herein again.
  • the following is a description of another terminal in the embodiment of the present invention for implementing the foregoing method for negotiating a multimedia session. Referring to FIG. 5, a terminal provided by the embodiment of the present invention includes:
  • the sending unit 501 is configured to send a session initiation protocol first session negotiation message to the called terminal, where the attribute parameter carried in the session description protocol SDP message in the first session negotiation message includes media parameters and media of at least two media.
  • the media parameter includes, but is not limited to, a media type indication parameter and a media codec indication parameter.
  • the media redundancy parameter includes, but is not limited to, a redundancy type indication parameter, and a media codec indication parameter corresponding to the redundancy codec.
  • the value of the redundancy type indication parameter and the media codec indication parameter may be a PT value mapped to various media codecs and redundant codecs.
  • the receiving unit 502 is configured to receive the second session negotiation message returned by the called terminal, and the session processing unit 503 is configured to establish or refresh the SDP message according to the second session negotiation message received by the receiving unit 502. a session called a terminal;
  • the foregoing first session negotiation message and the second conference negotiation message may be SIP protocol messages, or may be other end-to-end peer-to-peer protocol messages based on the SDP protocol, which is not limited herein.
  • the session processing unit 503 can establish or refresh a session with the called terminal according to the SDP message returned by the called terminal. If the SDP message returned by the called terminal still includes media redundancy parameters of two or more media, the foregoing The terminal can simultaneously perform redundancy on the plurality of media transmitted in the session established or updated by the session processing unit 503.
  • the terminal in this embodiment may be used as the calling terminal in the foregoing method embodiment, and may be used to implement all the technical solutions in the foregoing method embodiments, and the functions of the various functional modules may be in accordance with the foregoing method embodiments.
  • the specific implementation of the method may be referred to the related description in the foregoing embodiments, and details are not described herein again.
  • the technical solution provided by the embodiment of the present invention extends the existing RFC2198 standard, so that the message based on the SDP protocol can simultaneously express the redundancy capability of multiple media, so that the calling terminal and the called terminal Calling a terminal to simultaneously perform redundancy on multiple media before establishing or updating a session Negotiation, which in turn solves the problem of existing redundancy in a single type of media that can only be used in a session.
  • the multimedia session system in the embodiment of the present invention is described below. Referring to FIG. 6, the multimedia session system in the embodiment of the present invention includes:
  • the first terminal 601 is configured to send a first session negotiation message to the second terminal 602, where the attribute parameter carried in the SDP message in the first session negotiation message includes media parameters and media redundancy parameters of at least two media.
  • the second session negotiation message returned by the second terminal 602 is received, and the session with the second terminal 602 is established or refreshed according to the received SDP message in the second session negotiation message.
  • the first terminal 601 when the first terminal 601 initiates a session to the second terminal 602, it may encapsulate the media parameter of the media type corresponding to the pre-transmitted media data (which may include one or more media) in the SDP message.
  • the media parameters include, but are not limited to, a media type indication parameter and a media codec indication parameter.
  • the media codec indication parameter may indicate a media codec supported by the first terminal 601, and the first terminal 601 may carry multiple media. Decoding the indication parameter, so that the second terminal 602 learns the media codec supported by the first terminal 601 when receiving the SDP message sent by the first terminal 601. Further, if the first terminal 601 supports the media type The SDP packet is also encapsulated in the SDP packet, and the SDP packet is sent to the second terminal 602 by using the first session negotiation message.
  • the second terminal 602 is configured to receive the first session negotiation message from the first terminal 601, where the attribute parameter carried in the SDP message in the first session negotiation message includes media redundancy parameters of at least two media;
  • the session capability selects the attribute parameter carried in the received SDP message; generates a new SDP message according to the selected attribute parameter; and sends the generated SDP message to the first terminal 601 by using the second session negotiation message.
  • the second terminal 602 may select a corresponding SDP packet from the received SDP packet according to the locally supported media type and the media encoding and decoding capability.
  • Media parameters (such as media type indication parameters corresponding to locally supported media types, media codec indication parameters corresponding to local media codec capabilities); according to local media codec capabilities and redundant capabilities of supported media types, Corresponding media redundancy parameters, such as a redundancy type indication parameter and a media codec indication parameter corresponding to the redundancy codec, are selected in the received SDP message.
  • the foregoing first session negotiation message and the second conference negotiation message may be SIP protocol messages, or It may be an end-to-end peer-to-peer protocol message based on the SDP protocol, which is not limited herein.
  • first terminal 601 in this embodiment may be the calling terminal in the foregoing method embodiment
  • second terminal 602 in this embodiment may be the called terminal in the foregoing method embodiment, which may be used for All the technical solutions in the foregoing method embodiments are implemented, and the functions of the respective functional modules may be implemented according to the method in the foregoing method embodiments.
  • specific implementation process refer to the related description in the foregoing embodiments, and details are not described herein again.
  • the technical solution provided by the embodiment of the present invention extends the existing RFC2198 standard, so that the message based on the SDP protocol can simultaneously express the redundancy capability of multiple media, so that the calling terminal and the called terminal The calling terminal can negotiate the redundancy of multiple media at the same time before establishing or updating the session, thereby solving the problem that the existing single-type media can only be redundant in the session.
  • the medium can be a read only memory, a random access memory, a magnetic or optical disk, and the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Multimedia (AREA)
  • Computer Security & Cryptography (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Telephonic Communication Services (AREA)

Abstract

Disclosed are a multimedia session negotiation method, a related device and a system. The multimedia session negotiation method comprises: a called terminal receiving a first session negotiation message from a calling terminal, attribute parameters carried in a session description protocol (SDP) packet in the first session negotiation message containing a media parameter and a media redundancy parameter of at least two media; the called terminal selecting, according to a local session capability, an attribute parameter carried in the received SDP packet; the called terminal generating a new SDP packet according to the selected attribute parameter; and the called terminal sending the generated SDP packet to the calling terminal through a second session negotiation message. The technical solution provided in the present invention effectively solves the problem in the prior art that redundancy can only be performed on a single type of medium in a session.

Description

一种多媒体会话的协商方法、 相关设备和系统 本申请要求于 2011 年 02 月 22 日提交中国专利局、 申请号为 201110043386.0、 发明名称为"一种多媒体会话的协商方法、 相关设备和系统"的 中国专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域  Method for negotiating multimedia session, related device and system The application is submitted to the Chinese Patent Office on February 22, 2011, the application number is 201110043386.0, and the invention name is "a negotiation method of a multimedia session, related equipment and system" Priority of Chinese Patent Application, the entire contents of which is incorporated herein by reference. Technical field

本发明涉及通讯领域, 尤其涉及一种多媒体会话的协商方法、 相关设备和 系统。  The present invention relates to the field of communications, and in particular, to a method, a related device, and a system for negotiating a multimedia session.

背景技术 Background technique

随着多媒体会议得到广泛的应用, 人们对多媒体应用的服务质量的要求也 越来越高。 在实际应用中, 影响多媒体会议质量的因素有很多, 其中, 最明显 的是数据包丟失问题, 而数据冗余便是作为解决该问题的方案之一而提出的。  With the wide application of multimedia conferencing, people's requirements for the quality of service of multimedia applications are also increasing. In practical applications, there are many factors affecting the quality of multimedia conferences. The most obvious one is the packet loss problem, and data redundancy is proposed as one of the solutions to this problem.

数据冗余指的是将同一数据存储在不同数据包中的技术, 在平均连续丟包 率较低的情况下, 如果一个数据包在传输过程中丟失了, 则接收方仍可通过后 续数据包中的冗余数据对失去的数据信息进行重组和恢复, 以避免因数据包丟 失而导致的语音质量差的问题, 目前, 数据冗余已得到了广泛应用, 并形成了 请求评议( RFC, Request For Comments ) 2198标准。  Data redundancy refers to the technology of storing the same data in different data packets. If the average continuous packet loss rate is low, if a data packet is lost during transmission, the receiver can still pass the subsequent data packet. The redundant data in the data reorganizes and recovers the lost data information to avoid the problem of poor voice quality caused by packet loss. At present, data redundancy has been widely applied and formed a request for comment (RFC, Request). For Comments) 2198 standard.

目前多使用会话描述协议( SDP, Session Description Protocol )来对会话中 的媒体的冗余能力进行约束, 主叫方和接收方通过交互会话初始化协议(SIP, Session Initiation Protocol )消息来建立会话,通过 SIP消息中携带的 SDP数据进 行会话协商 (如对媒体的冗余能力、 媒体格式、 媒体编解码、 媒体接收地址、 端口等内容的协商)。  Currently, the Session Description Protocol (SDP) is used to restrict the redundancy of the media in the session. The calling party and the receiver establish a session through a Session Initiation Protocol (SIP) message. The SDP data carried in the SIP message is used for session negotiation (such as negotiation of media redundancy, media format, media codec, media receiving address, port, etc.).

但是, 上述 RFC2198标准只针对单类数据冗余能力的 SDP进行了描述, 即 基于现有的 RFC2198标准, 主叫方与被叫方只能对单类媒体类型的冗余能力进 行协商, 然而, 在一次会话中往往存在多种媒体类型(如语音、 视频等), 因此, 现有的只能对单类媒体类型的冗余能力进行协商的方式存在明显的局限性。 发明内容  However, the RFC 2198 standard described above only describes SDP for a single type of data redundancy capability. That is, based on the existing RFC 2198 standard, the calling party and the called party can only negotiate the redundancy capability of a single type of media. However, There are often multiple media types (such as voice, video, etc.) in a session. Therefore, existing methods that can only negotiate the redundancy capabilities of a single type of media have obvious limitations. Summary of the invention

本发明实施例提供了一种多媒体会话的协商方法、 相关设备和系统, 用于 解决现有的仅能在会话中对单类媒体进行冗余的问题。 Embodiments of the present invention provide a method, a related device, and a system for negotiating a multimedia session, which are used for Solve the problem of existing redundancy that can only be used for single-class media in a session.

为解决上述技术问题, 本发明实施例提供以下技术方案:  To solve the above technical problem, the embodiment of the present invention provides the following technical solutions:

一种多媒体会话的协商方法, 包括:  A method for negotiating a multimedia session, including:

被叫终端接收来自主叫终端的第一会话协商消息, 上述第一会话协商消息 中的 SDP报文携带的属性参数包含至少两种媒体的媒体参数和媒体冗余参数; 被叫终端根据本地会话能力对上述接收到的 SDP报文携带的属性参数进行 选取;  The called terminal receives the first session negotiation message from the calling terminal, and the attribute parameter carried in the SDP message in the first session negotiation message includes media parameters and media redundancy parameters of at least two media; the called terminal according to the local session The capability selects an attribute parameter carried in the received SDP packet.

被叫终端根据上述选取的属性参数生成新的 SDP报文;  The called terminal generates a new SDP packet according to the selected attribute parameter.

被叫终端将上述生成的 SDP报文通过第二会话协商消息发送给上述主叫终 端。  The called terminal sends the generated SDP packet to the calling terminal through the second session negotiation message.

一种终端, 包括:  A terminal, comprising:

接收单元, 用于接收来自主叫终端的第一会话协商消息, 上述第一会话协 商消息中的 SDP报文携带的属性参数包含至少两种媒体的媒体参数和媒体冗余 参数;  a receiving unit, configured to receive a first session negotiation message from the calling terminal, where the attribute parameter carried in the SDP message in the first session negotiation message includes media parameters and media redundancy parameters of at least two media;

选取单元, 用于根据本地会话能力对上述接收到的 SDP报文携带的属性参 数进行选取;  a selecting unit, configured to select, according to a local session capability, an attribute parameter carried in the received SDP packet;

生成单元, 用于根据上述选取单元选取的属性参数, 生成新的 SDP报文; 发送单元, 用于将上述生成单元生成的 SDP报文通过第二会话协商消息发 送给上述主叫终端。  And a generating unit, configured to generate a new SDP packet according to the attribute parameter selected by the selecting unit, and send, by the sending unit, the SDP packet generated by the generating unit to the calling terminal by using a second session negotiation message.

一种终端, 包括:  A terminal, comprising:

发送单元, 用于向被叫终端发送第一会话协商消息, 上述第一会话协商消 息中的 SDP报文携带的属性参数包含至少两种媒体的媒体参数和媒体冗余参 数;  a sending unit, configured to send a first session negotiation message to the called terminal, where the attribute parameter carried in the SDP message in the first session negotiation message includes media parameters and media redundancy parameters of at least two media;

接收单元, 用于接收上述被叫终端返回的第二会话协商消息;  a receiving unit, configured to receive a second session negotiation message returned by the called terminal;

会话处理单元, 用于根据上述接收单元接收到的第二会话协商消息中的 SDP报文, 建立或者刷新与上述被叫终端的会话。  The session processing unit is configured to establish or refresh a session with the called terminal according to the SDP message in the second session negotiation message received by the receiving unit.

一种多媒体会话系统, 包括:  A multimedia session system, including:

第一终端和第二终端;  a first terminal and a second terminal;

上述第一终端用于向上述第二终端发送第一会话协商消息, 上述第一会话 协商消息中的会话描述协议 SDP报文携带的属性参数包含至少两种媒体的媒体 参数和媒体冗余参数; 接收上述第二终端返回的第二会话协商消息, 并根据上 述第二会话协商消息中的 SDP报文建立或者刷新与上述第二终端的会话。 The first terminal is configured to send a first session negotiation message to the second terminal, where the attribute parameter carried in the session description protocol SDP packet in the first session negotiation message includes media of at least two media. The parameter and the media redundancy parameter; receiving the second session negotiation message returned by the second terminal, and establishing or refreshing the session with the second terminal according to the SDP message in the second session negotiation message.

上述第二终端用于接收来自上述第一终端的第一会话协商消息, 上述第一 会话协商消息中的 SDP报文携带的属性参数包含至少两种媒体的媒体冗余参 数; 根据本地会话能力对上述接收到的 SDP报文包含的属性参数进行选取; 根 据上述选取的属性参数生成新的 SDP报文;将上述生成的 SDP报文通过第二会 话协商消息发送给上述第一终端。  The second terminal is configured to receive the first session negotiation message from the first terminal, where the attribute parameter carried in the SDP message in the first session negotiation message includes media redundancy parameters of at least two media; The attribute parameters included in the received SDP message are selected; the new SDP message is generated according to the selected attribute parameter; and the generated SDP message is sent to the first terminal by using the second session negotiation message.

由上可见, 本发明实施例提供的技术方案对现有的 RFC2198标准进行了扩 展, 使得基于 SDP协议下的报文可同时对多种媒体的冗余能力进行表述, 从而 使主叫终端和被叫终端可在建立或更新会话前对多种媒体的冗余能力同时进行 协商, 进而解决现有的仅能在会话中的对单类媒体进行冗余的问题。  It can be seen that the technical solution provided by the embodiment of the present invention extends the existing RFC2198 standard, so that the message based on the SDP protocol can simultaneously express the redundancy capability of multiple media, so that the calling terminal and the called terminal The calling terminal can negotiate the redundancy of multiple media at the same time before establishing or updating the session, thereby solving the problem that the existing single-type media can only be redundant in the session.

附图说明 DRAWINGS

为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施 例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述 中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付 出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.

图 1为本发明实施例中多媒体会话的协商方法一个实施例流程示意图; 图 2为本发明实施例中多媒体会话的协商方法另一个实施例流程示意图; 图 3为本发明实施例中多媒体会话的协商方法再一个实施例流程示意图; 图 4为本发明实施例中一种终端的结构示意图;  FIG. 1 is a schematic flowchart of another embodiment of a method for negotiating a multimedia session according to an embodiment of the present invention; FIG. 2 is a schematic flowchart of another embodiment of a method for negotiating a multimedia session according to an embodiment of the present invention; FIG. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention; FIG.

图 5为本发明实施例中另一种终端的结构示意图;  FIG. 5 is a schematic structural diagram of another terminal according to an embodiment of the present invention;

图 6为本发明实施例中多媒体会话系统的结构示意图。  FIG. 6 is a schematic structural diagram of a multimedia session system according to an embodiment of the present invention.

具体实施例 Specific embodiment

本发明实施例提供了一种多媒体会话的协商方法、 相关设备和系统。  Embodiments of the present invention provide a method, a related device, and a system for negotiating a multimedia session.

为使得本发明的发明目的、 特征、 优点能够更加的明显和易懂, 下面将结 合本发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描 述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而非全部实施例。 基 于本发明中的实施例, 本领域普通技术人员在没有做出创造性劳动前提下所获 得的所有其他实施例, 都属于本发明保护的范围。 下面对本发明实施例中一种多媒体会话的协商方法进行描述, 请参阅图 1 , 本发明实施例中多媒体会话的协商方法的一个实施例包括: The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. The embodiments are merely a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without departing from the inventive scope are the scope of the present invention. A method for negotiating a multimedia session in the embodiment of the present invention is described below. Referring to FIG. 1, an embodiment of a method for negotiating a multimedia session in the embodiment of the present invention includes:

101、 被叫终端接收来自主叫终端的第一会话协商消息;  101. The called terminal receives a first session negotiation message from the calling terminal.

当某个终端 (即主叫终端)预发起与对端 (即被叫终端) 的会话, 建立或 者更新与被叫终端的会话时, 主叫终端向被叫终端发送第一会话协商消息, 以 触发会话初始化, 其中, 上述第一会话协商消息可以是 SIP协议消息, 或者也 可以是其它基于 SDP协议的端到端对等协议消息, 此处不作限定。 主被叫终端 可通过在交互的会话协商消息中携带包含新会话参数(如会话标识、 会话时长、 以及属性参数如媒体参数、媒体冗余参数等)的 SDP报文, 对新会话进行协商, 以便于主叫终端可根据协商后的会话参数建立或者更新会话。  When a terminal (ie, the calling terminal) pre-initiates a session with the opposite end (ie, the called terminal) to establish or update a session with the called terminal, the calling terminal sends a first session negotiation message to the called terminal, to The session initialization is triggered, where the first session negotiation message may be a SIP protocol message, or may be another end-to-end peer-to-peer protocol message based on the SDP protocol, which is not limited herein. The calling and receiving terminals may negotiate the new session by carrying an SDP message including a new session parameter (such as a session identifier, a session duration, and an attribute parameter such as a media parameter, a media redundancy parameter, etc.) in the interactive session negotiation message. So that the calling terminal can establish or update the session according to the negotiated session parameters.

在实际应用中, 当主叫终端向被叫终端发起会话时, 其可将预传输的媒体 数据 (可包括一种或多种媒体 )对应的媒体类型的媒体参数封装在 SDP报文中。 其中, 上述媒体参数包括但不限于媒体类型指示参数、 媒体编解码指示参数, 上述媒体编解码指示参数可指示一种主叫终端支持的媒体编解码, 主叫终端可 携带多个媒体编解码指示参数, 以使上述被叫终端在接收到主叫终端发送的 SDP报文时, 获知主叫终端所支持的媒体编解码。 进一步的, 若主叫终端支持 上述媒体类型的冗余能力,还可将相应的媒体冗余参数也封装在该 SDP报文中, 通过第一会话协商消息将上述 SDP报文发送给被叫终端。  In a practical application, when the calling terminal initiates a session to the called terminal, it may encapsulate the media parameter of the media type corresponding to the pre-transmitted media data (which may include one or more media) in the SDP message. The media parameters include, but are not limited to, a media type indication parameter and a media codec indication parameter. The media codec indication parameter may indicate a media codec supported by the calling terminal, and the calling terminal may carry multiple media codec indications. The parameter is configured to enable the called terminal to learn the media codec supported by the calling terminal when receiving the SDP message sent by the calling terminal. Further, if the calling terminal supports the redundancy capability of the media type, the corresponding media redundancy parameter may also be encapsulated in the SDP packet, and the SDP packet is sent to the called terminal by using the first session negotiation message. .

在本发明实施例中, 主叫终端发送的 SDP报文携带的属性参数包含至少两 种媒体的媒体参数和媒体冗余参数, 其中, 上述媒体冗余参数包括但不限于冗 余类型指示参数、 冗余编解码对应的媒体编解码指示参数。 其中, 上述冗余类 型指示参数、 媒体编解码指示参数的值可以是与各种媒体编解码和冗余编解码 相映射的载荷类型 (PT, Payload Type )值。  In the embodiment of the present invention, the attribute parameter carried in the SDP packet sent by the calling terminal includes the media parameter and the media redundancy parameter of the at least two media, where the media redundancy parameter includes but is not limited to the redundancy type indication parameter, The media codec indication parameter corresponding to the redundant codec. The value of the redundancy type indication parameter and the media codec indication parameter may be a load type (PT, Payload Type) value mapped to various media codecs and redundant codecs.

102、被叫终端根据本地会话能力对接收到的 SDP报文携带的属性参数进行 选取;  102. The called terminal selects an attribute parameter carried in the received SDP packet according to the local session capability.

当被叫终端接收到来自主叫终端的 SDP报文时, 可根据本地会话能力 (如 支持的媒体类型、 支持的媒体编解码、 支持的媒体类型的冗余能力及冗余编解 码等)对接收到的 SDP报文携带的属性参数(如媒体参数、 媒体冗余参数等) 进行选取。  When the called terminal receives the SDP message from the calling terminal, it can be based on the local session capability (such as supported media type, supported media codec, supported media type redundancy capability, redundant codec, etc.) The attribute parameters (such as media parameters, media redundancy parameters, etc.) carried in the received SDP packets are selected.

在实际应用中, 当被叫终端对媒体参数、 媒体冗余参数进行选取时, 被叫 终端可根据本地支持的媒体类型及媒体编解码能力, 从接收到的 SDP报文中选 取相应的媒体参数(如与本地支持的媒体类型对应的媒体类型指示参数, 与本 地支持的媒体编解码对应的媒体编解码指示参数 ); 根据本地的媒体编解码能力 和支持的媒体类型的冗余能力, 从接收到的 SDP报文中选取相应的媒体冗余参 数, 如冗余类型指示参数和冗余编解码对应的媒体编解码指示参数等。 In practical applications, when the called terminal selects media parameters and media redundancy parameters, the called party The terminal may select a corresponding media parameter from the received SDP packet according to the locally supported media type and the media codec capability, such as a media type indication parameter corresponding to the locally supported media type, and corresponding to the locally supported media codec. Media codec indication parameter); according to the local media codec capability and the redundancy capability of the supported media type, select corresponding media redundancy parameters from the received SDP message, such as redundancy type indication parameter and redundancy The codec corresponding to the codec indicates parameters and the like.

103、 被叫终端根据上述选取的属性参数生成新的 SDP报文;  103. The called terminal generates a new SDP packet according to the selected attribute parameter.

当被叫终端执行完步骤 102 的过程后, 可根据上述选取的属性参数生成新 的 SDP报文。  After the called terminal performs the process of step 102, a new SDP packet may be generated according to the selected attribute parameter.

可理解的是, 若被叫终端选取了接收到的 SDP携带的全部属性参数, 则其 生成的 SDP报文可与接收到的 SDP报文完全一样。  It can be understood that if the called terminal selects all the attribute parameters carried by the received SDP, the generated SDP message can be identical to the received SDP message.

104、被叫终端将上述生成的 SDP报文通过第二会话协商消息发送给上述主 叫终端;  104. The called terminal sends the generated SDP packet to the calling terminal by using a second session negotiation message.

被叫终端将上述生成的 SDP报文通过第二会话协商消息发送给上述主叫终 端, 以便于主叫终端根据被叫终端返回的的 SDP报文建立或者刷新与该被叫终 端的会话。  The called terminal sends the generated SDP message to the calling terminal through the second session negotiation message, so that the calling terminal establishes or refreshes the session with the called terminal according to the SDP message returned by the called terminal.

其中, 上述第二会话协商消息可以是 SIP协议消息, 或者也可以是其它基 于 SDP协议的端到端对等协议消息, 此处不作限定。  The foregoing second session negotiation message may be a SIP protocol message, or may be another end-to-end peer-to-peer protocol message based on the SDP protocol, which is not limited herein.

需要说明的是, 在实际的多媒体会话的协商过程中, 可能被叫终端还会对 接收到的 SDP报文中的除上述属性参数外的其它会话参数进行修改、 删除等操 作, 但由于该处理属于已有技术且与并不涉及本发明所要阐述的技术方案, 因 此, 本发明实施例是在默认被叫终端无需对接收到的 SDP报文中的其它会话参 数进行修改的情况下 (比如对会话时长、 冗余级数等参数的修改操作), 对本发 明的技术方案进行的描述。  It should be noted that, in the negotiation process of the actual multimedia session, the called terminal may also modify or delete other session parameters except the above attribute parameters in the received SDP message, but the processing is performed. The prior art does not involve the technical solution to be described in the present invention. Therefore, in the embodiment of the present invention, the default called terminal does not need to modify other session parameters in the received SDP message (for example, Description of the technical solution of the present invention by modifying the parameters such as session duration and redundancy levels.

本发明实施例提供的技术方案可应用在单模式的会话场景中, 也可应用在 多模式的会话场景中。  The technical solution provided by the embodiment of the present invention can be applied to a single-mode session scenario, and can also be applied to a multi-mode session scenario.

由上可见, 本发明实施例提供的技术方案对现有的 RFC2198标准进行了扩 展, 使得基于 SDP协议下的报文可同时对多种媒体的冗余能力进行表述, 从而 使主叫终端和被叫终端可在建立或更新会话前对多种媒体的冗余能力同时进行 协商, 进而解决现有的仅能在会话中的对单类媒体进行冗余的问题。 下面对本发明实施例中一种多媒体会话的协商方法进行描述, 请参阅图 2, 本发明实施例中多媒体会话的协商方法的另一个实施例包括: It can be seen that the technical solution provided by the embodiment of the present invention extends the existing RFC2198 standard, so that the message based on the SDP protocol can simultaneously express the redundancy capability of multiple media, so that the calling terminal and the called terminal The calling terminal can negotiate the redundancy of multiple media at the same time before establishing or updating the session, thereby solving the problem that the existing single-type media can only be redundant in the session. A method for negotiating a multimedia session in the embodiment of the present invention is described below. Referring to FIG. 2, another embodiment of a method for negotiating a multimedia session in the embodiment of the present invention includes:

201、 主叫终端向被叫终端发送第一会话协商消息;  201. The calling terminal sends a first session negotiation message to the called terminal.

在实际应用中, 当主叫终端向被叫终端发起会话时, 其可将预传输的媒体 数据 (可包括一种或多种媒体 )对应的媒体类型的媒体参数封装在 SDP报文中。 其中, 上述媒体参数包括但不限于媒体类型指示参数、 媒体编解码指示参数, 上述媒体编解码指示参数可指示一种主叫终端支持的媒体编解码, 主叫终端可 携带多个媒体编解码指示参数, 以使上述被叫终端在接收到主叫终端发送的 SDP报文时, 获知主叫终端所支持的媒体编解码。 进一步的, 若主叫终端支持 上述媒体类型的冗余能力,还可将相应的媒体冗余参数也封装在该 SDP报文中, 通过第一会话协商消息将上述 SDP报文发送给被叫终端。  In a practical application, when the calling terminal initiates a session to the called terminal, it may encapsulate the media parameter of the media type corresponding to the pre-transmitted media data (which may include one or more media) in the SDP message. The media parameters include, but are not limited to, a media type indication parameter and a media codec indication parameter. The media codec indication parameter may indicate a media codec supported by the calling terminal, and the calling terminal may carry multiple media codec indications. The parameter is configured to enable the called terminal to learn the media codec supported by the calling terminal when receiving the SDP message sent by the calling terminal. Further, if the calling terminal supports the redundancy capability of the media type, the corresponding media redundancy parameter may also be encapsulated in the SDP packet, and the SDP packet is sent to the called terminal by using the first session negotiation message. .

在本发明实施例中, 主叫终端发送的 SDP报文携带的属性参数包含至少两 种媒体的媒体参数和媒体冗余参数, 其中, 上述媒体冗余参数包括但不限于冗 余类型指示参数、 冗余编解码对应的媒体编解码指示参数。 其中, 上述冗余类 型指示参数、 媒体编解码指示参数的值可以是与各种媒体编解码和冗余编解码 相映射的 PT值。  In the embodiment of the present invention, the attribute parameter carried in the SDP packet sent by the calling terminal includes the media parameter and the media redundancy parameter of the at least two media, where the media redundancy parameter includes but is not limited to the redundancy type indication parameter, The media codec indication parameter corresponding to the redundant codec. The value of the redundancy type indication parameter and the media codec indication parameter may be a PT value mapped to various media codecs and redundant codecs.

其中, 上述第一会话协商消息可以是 SIP协议消息, 或者也可以是其它基 于 SDP协议的端到端对等协议消息, 此处不作限定。  The foregoing first session negotiation message may be a SIP protocol message, or may be another end-to-end peer-to-peer protocol message based on the SDP protocol, which is not limited herein.

202、 主叫终端接收上述被叫终端返回的第二会话协商消息, 并根据该第二 会话协商消息中的 SDP报文建立或者刷新与上述被叫终端的会话;  202. The calling terminal receives the second session negotiation message returned by the called terminal, and establishes or refreshes a session with the called terminal according to the SDP message in the second session negotiation message.

主叫终端可根据被叫终端返回的 SDP报文建立或者刷新与上述被叫终端的 则主叫终端可对在上述建立或更新的会话中传输的多种媒体同时进行冗余。  The calling terminal can establish or refresh the SDP message returned by the called terminal, and the calling terminal can simultaneously perform redundancy on the plurality of media transmitted in the established or updated session.

其中, 上述第二会话协商消息可以是 SIP协议消息, 或者也可以是其它基 于 SDP协议的端到端对等协议消息, 此处不作限定。  The foregoing second session negotiation message may be a SIP protocol message, or may be another end-to-end peer-to-peer protocol message based on the SDP protocol, which is not limited herein.

由上可见, 本发明实施例提供的技术方案对现有的 RFC2198标准进行了扩 展, 使得基于 SDP协议下的报文可同时对多种媒体的冗余能力进行表述, 从而 使主叫终端和被叫终端可在建立或更新会话前对多种媒体的冗余能力同时进行 协商, 进而解决现有的仅能在会话中的对单类媒体进行冗余的问题。 为便于更好地理解本发明技术方案, 下面以一具体应用例对本发明实施例 中的一种多媒体会话的协商方法进行描述, 请参阅图 3。 It can be seen that the technical solution provided by the embodiment of the present invention extends the existing RFC2198 standard, so that the message based on the SDP protocol can simultaneously express the redundancy capability of multiple media, so that the calling terminal and the called terminal The calling terminal can negotiate the redundancy of multiple media at the same time before establishing or updating the session, thereby solving the problem that the existing single-type media can only be redundant in the session. To facilitate a better understanding of the technical solution of the present invention, a method for negotiating a multimedia session in the embodiment of the present invention is described below with reference to a specific application example.

首先假设用户设备( UE , User Equipment ) 1为会话发起端, 即主叫终端, UE2为被叫终端。其中, UE1支持 RFC2833编码数据和语音数据,并支持 G.711A、 G.729编码的语音数据, 具备 RFC2833编码数据的冗余能力、 语音数据的冗余 能力; UE2支持语音数据, 不支持 RFC2833编码, 仅支持 G.729编码的语音数 据, 具备语音数据的冗余能力。  It is first assumed that the user equipment (UE, User Equipment) 1 is the session originating end, that is, the calling terminal, and UE2 is the called terminal. Among them, UE1 supports RFC2833 encoded data and voice data, and supports G.711A, G.729 encoded voice data, with redundancy capability of RFC2833 encoded data and redundancy of voice data; UE2 supports voice data, does not support RFC2833 encoding. It only supports G.729 encoded voice data and has the redundancy capability of voice data.

301、 UE1向 UE2发送第一会话协商消息;  301. UE1 sends a first session negotiation message to UE2.

UE1将预进行协商的会话参数 (包括属性参数)封装在 SDP报文中, 并通 过第一会话协商消息发送给 UE2。  The UE1 encapsulates the pre-negotiated session parameters (including the attribute parameters) in the SDP packet, and sends the message to the UE2 through the first session negotiation message.

在本实施例中, 假设 UE1发送的 SDP报文中包含 RFC2833编码数据和语 音数据两种媒体的媒体参数和媒体冗余参数, 具体的, 包含语音类型指示参数; G.711A对应的媒体编解码指示参数 (如 PT值 8 ); G.729对应的媒体编解码指示 参数 (如 PT值 18 ); 语音数据对应的冗余类型指示参数 (如 PT值为 96 )、 冗余 编解码 G.711A对应的媒体编解码指示参数 (如 PT值 8 )、 冗余编解码 G.729对 应的媒体编解码指示参数 (如 PT值 18 ); RFC2833对应的媒体编解码指示参数 (如 PT值 97 ); RFC2833编码数据对应的冗余类型指示参数 (如 PT值 98 )、 冗余编解码 RFC2833对应的媒体编解码指示参数 (如 PT值 97 )。  In this embodiment, it is assumed that the SDP packet sent by the UE1 includes the media parameters and media redundancy parameters of the two media of the RFC2833 encoded data and the voice data, and specifically includes the voice type indication parameter; the media codec corresponding to the G.711A Indication parameter (such as PT value 8); media codec indication parameter corresponding to G.729 (such as PT value 18); redundant type indication parameter corresponding to voice data (such as PT value of 96), redundant codec G.711A Corresponding media codec indication parameter (such as PT value 8), media codec indication parameter corresponding to the redundancy codec G.729 (such as PT value 18), and media codec indication parameter corresponding to RFC2833 (such as PT value 97); The redundancy type indication parameter (such as PT value 98) corresponding to the RFC2833 encoded data, and the media codec indication parameter (such as the PT value 97) corresponding to the redundant codec RFC2833.

302、 UE2根据本地会话能力对接收到的 SDP报文携带的属性参数进行选 取;  302. The UE2 selects an attribute parameter carried in the received SDP packet according to the local session capability.

当 UE2接收到由 UE1发送的上述第一会话协商消息时,可根据本地会话能 力对接收到的第一会话协商消息中的 SDP报文携带的属性参数进行选取。  When the UE2 receives the first session negotiation message sent by the UE1, the attribute parameter carried in the received SDP message in the first session negotiation message may be selected according to the local session capability.

在本实施例中, 由于 UE2仅支持 G.729编码的语音数据, 不支持 RFC2833 编码, 具备语音数据的冗余能力。 因此, UE2从接收到的 SDP报文中选取语音 类型指示参数及 G.729对应的媒体编解码指示参数(如 PT值 18 ) , 再从 SDP报 文中选取语音数据对应的冗余类型指示参数(如 PT值为 96 )、冗余编解码 G.729 的媒体编解码指示参数 (如 PT值 18 )。  In this embodiment, since UE2 only supports G.729 encoded voice data, it does not support RFC2833 encoding, and has the redundancy capability of voice data. Therefore, UE2 selects a voice type indication parameter and a media codec indication parameter corresponding to G.729 (such as PT value 18) from the received SDP message, and then selects a redundancy type indication parameter corresponding to the voice data from the SDP message. (eg PT value is 96), media codec indication parameter of redundant codec G.729 (eg PT value 18).

在上述选取中, UE2不支持 RFC2833编码,故不选取与 RFC2833相关的媒 体参数 ( RFC2833对应的媒体编解码指示参数)和媒体冗余参数(RFC2833编 码数据对应的冗余类型指示参数和冗余编解码 RFC2833对应的媒体编解码指示 参数), 另外, 虽然 UE2支持语音数据的冗余能力, 但由于其不支持 G.711A编 解码,故相应的也不会利用 G.711对语音数据进行冗余编码,故不选取冗余编解 码 G.711A对应的媒体编解码指示参数。 可理解, 在本发明技术方案中, 若 UE2 支持 RFC2833编解码数据, 但不支持 RFC2833数据的冗余能力, 则 UE2将会 选取 RFC2833编码数据对应的媒体参数,但不选取 RFC2833编码数据对应的媒 体冗余参数。 In the above selection, UE2 does not support RFC2833 encoding, so media parameters related to RFC2833 (media codec indication parameters corresponding to RFC2833) and media redundancy parameters (redundant type indication parameters and redundancy scheme corresponding to RFC2833 encoded data are not selected). Decoding the media codec indication corresponding to RFC2833 In addition, although UE2 supports the redundancy capability of voice data, since it does not support G.711A codec, it does not use G.711 to redundantly encode voice data, so no redundancy is selected. Decoding the media codec indication parameter corresponding to G.711A. It can be understood that, in the technical solution of the present invention, if the UE2 supports the RFC2833 codec data, but does not support the redundancy capability of the RFC2833 data, the UE2 will select the media parameter corresponding to the RFC2833 encoded data, but does not select the media corresponding to the RFC2833 encoded data. Redundant parameters.

303、 UE2根据上述选取的属性参数生成新的 SDP 4艮文;  303. The UE2 generates a new SDP message according to the selected attribute parameter.

当被叫终端执行完步骤 302 的过程后, 可根据上述选取的属性参数生成新 的 SDP报文。  After the called terminal performs the process of step 302, a new SDP packet may be generated according to the selected attribute parameter.

304、 UE2将上述生成的 SDP报文通过第二会话协商消息发送给上述 UE1 ; UE1 将上述生成的 SDP报文通过第二会话协商消息发送给 UE2, 以便于 The UE2 sends the generated SDP packet to the UE1 through the second session negotiation message, and the UE1 sends the generated SDP packet to the UE2 through the second session negotiation message, so that the UE1

UE2根据 UE1返回的的 SDP报文建立或者刷新与该被叫终端的会话。 The UE2 establishes or refreshes a session with the called terminal according to the SDP message returned by the UE1.

305、 UE1根据 UE2返回的第二会话协商消息中的 SDP报文建立或者刷新 与 UE2的会话;  305. The UE1 establishes or refreshes a session with the UE2 according to the SDP packet in the second session negotiation message returned by the UE2.

UE2可根据 UE1返回的 SDP报文建立或者刷新与上述被叫终端的会话。 在本发明实施例中, 当 UE1接收到 UE2返回的 SDP报文, 可获知 UE2支 持 G.729编码的语音数据和 G.729编码的语音数据冗余,则其可在即将建立的会 话中传输 G.729编码的语音数据, 并对利用 G.729编码对该语音数据进行冗余。  UE2 may establish or refresh a session with the called terminal according to the SDP message returned by UE1. In the embodiment of the present invention, when the UE1 receives the SDP packet returned by the UE2, it can be learned that the UE2 supports the G.729-encoded voice data and the G.729-encoded voice data redundancy, and the UE2 can transmit in the session to be established. G.729 encoded speech data, and the speech data is redundant using G.729 encoding.

可理解, 若 UE2支持 RFC2833编码数据及 RFC2833数据的冗余能力, 则 UE1可对在即将建立的会话中传输 G.729编码的语音数据和 RFC2833编码数据, 并同时对这两种数据进行冗余。  It can be understood that if the UE2 supports the redundancy capability of the RFC2833 encoded data and the RFC2833 data, the UE1 can transmit the G.729 encoded voice data and the RFC2833 encoded data in the session to be established, and simultaneously perform redundancy on the two data. .

上述第一会话协商消息和第二会议协商消息可以是 SIP协议消息, 或者也 可以是其它基于 SDP协议的端到端对等协议消息, 此处不作限定。  The foregoing first session negotiation message and the second conference negotiation message may be SIP protocol messages, or may be other end-to-end peer-to-peer protocol messages based on the SDP protocol, which is not limited herein.

需要说明的是, 在实际的多媒体会话的协商过程中, 上述 UE1可能还会对 接收到的 SDP报文中的除上述属性参数外的其它会话参数进行修改、 删除等操 作, 但由于该处理属于已有技术且与并不涉及本发明所要阐述的技术方案, 因 此,本发明实施例是在默认 UE1无需对接收到的 SDP报文中的其它会话参数进 行修改的情况下 (比如对会话时长、 冗余级数等参数的修改操作), 对本发明的 技术方案进行的描述。  It should be noted that, in the actual multimedia session negotiation process, the foregoing UE1 may also modify or delete other session parameters except the above attribute parameters in the received SDP message, but the processing belongs to The prior art does not involve the technical solution to be clarified by the present invention. Therefore, in the embodiment of the present invention, in the case that the default UE1 does not need to modify other session parameters in the received SDP packet (such as session duration, Description of the technical solution of the present invention by modifying the parameters such as redundant series.

由上可见, 本发明实施例提供的技术方案对现有的 RFC2198标准进行了扩 展, 使得基于 SDP协议下的报文可同时对多种媒体的冗余能力进行表述, 从而 使主叫终端和被叫终端可在建立或更新会话前对多种媒体的冗余能力同时进行 协商, 进而解决现有的仅能在会话中的对单类媒体进行冗余的问题。 下面对本发明实施例中用于实现上述多媒体会话的协商方法的一种终端进 行描述, 请参阅图 4 , 本发明实施例提供的一种终端包括: It can be seen from the above that the technical solution provided by the embodiment of the present invention expands the existing RFC2198 standard. The SDP-based message can simultaneously express the redundancy capabilities of multiple media, so that the calling terminal and the called terminal can simultaneously negotiate the redundancy capabilities of multiple media before establishing or updating the session. In addition, the existing problem of redundancy for a single type of media in a session can be solved. A terminal for implementing the foregoing method for negotiating a multimedia session in the embodiment of the present invention is described. Referring to FIG. 4, a terminal provided by the embodiment of the present invention includes:

接收单元 401 , 用于接收来自主叫终端的第一会话协商消息;  The receiving unit 401 is configured to receive a first session negotiation message from the calling terminal.

其中, 上述第一会话协商消息中的 SDP报文携带的属性参数包含至少两种 媒体的媒体参数和媒体冗余参数。  The attribute parameter carried in the SDP packet in the first session negotiation message includes media parameters and media redundancy parameters of at least two media.

选取单元 402, 用于根据本地会话能力对接收到的 SDP报文携带的属性参 数进行选取;  The selecting unit 402 is configured to select, according to the local session capability, the attribute parameter carried in the received SDP packet;

当接收单元 401接收到来自主叫终端的 SDP ^艮文时, 可触发选取单元 402 根据本地会话能力 (如支持的媒体类型、 支持的媒体编解码、 支持的媒体类型 的冗余能力及冗余编解码等)对接收到的 SDP报文携带的属性参数(如媒体参 数、 媒体冗余参数等)进行选取。  When the receiving unit 401 receives the SDP message from the autonomous calling terminal, the selecting unit 402 can be triggered according to the local session capability (such as supported media type, supported media codec, supported media type redundancy capability and redundancy). Codec, etc.) selects attribute parameters (such as media parameters, media redundancy parameters, etc.) carried in the received SDP packets.

在实际应用中, 当上述终端对媒体参数、 媒体冗余参数进行选取时, 具体 地, 选取单元 402可根据本地支持的媒体类型及媒体编解码能力, 从接收到的 SDP报文中选取相应的媒体参数(如与本地支持的媒体类型对应的媒体类型指 示参数, 与本地媒体编解码能力对应的媒体编解码指示参数); 根据本地的媒体 编解码能力和支持的媒体类型的冗余能力, 从接收到的 SDP报文中选取相应的 媒体冗余参数, 如冗余类型指示参数和冗余编解码对应的媒体编解码指示参数 等。  In an actual application, when the terminal selects the media parameter and the media redundancy parameter, the selecting unit 402 may select a corresponding SDP packet from the received SDP packet according to the locally supported media type and the media encoding and decoding capability. Media parameters (such as media type indication parameters corresponding to locally supported media types, media codec indication parameters corresponding to local media codec capabilities); according to local media codec capabilities and redundant capabilities of supported media types, Corresponding media redundancy parameters, such as a redundancy type indication parameter and a media codec indication parameter corresponding to the redundancy codec, are selected in the received SDP message.

上述第一会话协商消可以是 SIP协议消息, 或者也可以是其它基于 SDP协 议的端到端对等协议消息, 此处不作限定。  The foregoing first session negotiation may be a SIP protocol message, or may be another end-to-end peer-to-peer protocol message based on the SDP protocol, which is not limited herein.

生成单元 403 , 用于根据选取单元 402选取的属性参数, 生成新的 SDP报 文;  The generating unit 403 is configured to generate a new SDP message according to the attribute parameter selected by the selecting unit 402.

发送单元 404 , 用于将生成单元 403生成的 SDP ^文通过第二会话协商消 息发送给上述主叫终端。  The sending unit 404 is configured to send, by using the second session negotiation message, the SDP^ message generated by the generating unit 403 to the calling terminal.

上述第二会议协商消息可以是 SIP协议消息, 或者也可以是其它基于 SDP 协议的端到端对等协议消息, 此处不作限定。 需要说明的是, 本实施例的终端可以如上述方法实施例中的被叫终端, 可 以用于实现上述方法实施例中的全部技术方案, 其各个功能模块的功能可以根 据上述方法实施例中的方法具体实现, 其具体实现过程可参照上述实施例中的 相关描述, 此处不再赘述。 下面对本发明实施例中用于实现上述多媒体会话的协商方法的另一种终端 进行描述, 请参阅图 5 , 本发明实施例提供的一种终端包括: The foregoing second conference negotiation message may be a SIP protocol message, or may be another end-to-end peer-to-peer protocol message based on the SDP protocol, which is not limited herein. It should be noted that the terminal in this embodiment may be used as the called terminal in the foregoing method embodiment, and may be used to implement all the technical solutions in the foregoing method embodiments, and the functions of the respective functional modules may be in accordance with the foregoing method embodiments. The specific implementation of the method may be referred to the related description in the foregoing embodiments, and details are not described herein again. The following is a description of another terminal in the embodiment of the present invention for implementing the foregoing method for negotiating a multimedia session. Referring to FIG. 5, a terminal provided by the embodiment of the present invention includes:

发送单元 501 , 用于向被叫终端发送会话初始化协议第一会话协商消息; 其中, 上述第一会话协商消息中的会话描述协议 SDP报文携带的属性参数 包含至少两种媒体的媒体参数和媒体冗余参数; 上述媒体参数包括但不限于媒 体类型指示参数、 媒体编解码指示参数; 上述媒体冗余参数包括但不限于冗余 类型指示参数、 冗余编解码对应的媒体编解码指示参数。 其中, 上述冗余类型 指示参数、 媒体编解码指示参数的值可以是与各种媒体编解码和冗余编解码相 映射的 PT值。  The sending unit 501 is configured to send a session initiation protocol first session negotiation message to the called terminal, where the attribute parameter carried in the session description protocol SDP message in the first session negotiation message includes media parameters and media of at least two media. The media parameter includes, but is not limited to, a media type indication parameter and a media codec indication parameter. The media redundancy parameter includes, but is not limited to, a redundancy type indication parameter, and a media codec indication parameter corresponding to the redundancy codec. The value of the redundancy type indication parameter and the media codec indication parameter may be a PT value mapped to various media codecs and redundant codecs.

接收单元 502 , 用于接收上述被叫终端返回的第二会话协商消息; 会话处理单元 503 ,用于根据接收单元 502接收到的第二会话协商消息中的 SDP报文, 建立或者刷新与上述被叫终端的会话;  The receiving unit 502 is configured to receive the second session negotiation message returned by the called terminal, and the session processing unit 503 is configured to establish or refresh the SDP message according to the second session negotiation message received by the receiving unit 502. a session called a terminal;

上述第一会话协商消息和第二会议协商消息可以是 SIP协议消息, 或者也 可以是其它基于 SDP协议的端到端对等协议消息, 此处不作限定。  The foregoing first session negotiation message and the second conference negotiation message may be SIP protocol messages, or may be other end-to-end peer-to-peer protocol messages based on the SDP protocol, which is not limited herein.

会话处理单元 503可根据被叫终端返回的 SDP报文建立或者刷新与上述被 叫终端的会话, 若被叫终端返回的 SDP报文中仍然包含有两种以上媒体的媒体 冗余参数, 则上述终端可对会话处理单元 503 建立或更新的会话中传输的多种 媒体同时进行冗余。  The session processing unit 503 can establish or refresh a session with the called terminal according to the SDP message returned by the called terminal. If the SDP message returned by the called terminal still includes media redundancy parameters of two or more media, the foregoing The terminal can simultaneously perform redundancy on the plurality of media transmitted in the session established or updated by the session processing unit 503.

需要说明的是, 本实施例的终端可以如上述方法实施例中的主叫终端, 可 以用于实现上述方法实施例中的全部技术方案, 其各个功能模块的功能可以根 据上述方法实施例中的方法具体实现, 其具体实现过程可参照上述实施例中的 相关描述, 此处不再赘述。  It should be noted that the terminal in this embodiment may be used as the calling terminal in the foregoing method embodiment, and may be used to implement all the technical solutions in the foregoing method embodiments, and the functions of the various functional modules may be in accordance with the foregoing method embodiments. The specific implementation of the method may be referred to the related description in the foregoing embodiments, and details are not described herein again.

由上可见, 本发明实施例提供的技术方案对现有的 RFC2198标准进行了扩 展, 使得基于 SDP协议下的报文可同时对多种媒体的冗余能力进行表述, 从而 使主叫终端和被叫终端可在建立或更新会话前对多种媒体的冗余能力同时进行 协商, 进而解决现有的仅能在会话中的对单类媒体进行冗余的问题。 下面对本发明实施例中的多媒体会话系统进行描述, 请参阅图 6 , 本发明实 施例中的多媒体会话系统包括: It can be seen that the technical solution provided by the embodiment of the present invention extends the existing RFC2198 standard, so that the message based on the SDP protocol can simultaneously express the redundancy capability of multiple media, so that the calling terminal and the called terminal Calling a terminal to simultaneously perform redundancy on multiple media before establishing or updating a session Negotiation, which in turn solves the problem of existing redundancy in a single type of media that can only be used in a session. The multimedia session system in the embodiment of the present invention is described below. Referring to FIG. 6, the multimedia session system in the embodiment of the present invention includes:

第一终端 601和第二终端 602;  a first terminal 601 and a second terminal 602;

其中, 第一终端 601用于向第二终端 602发送第一会话协商消息, 其中, 第一会话协商消息中的 SDP报文携带的属性参数包含至少两种媒体的媒体参数 和媒体冗余参数; 接收第二终端 602返回的第二会话协商消息, 并根据接收到 的第二会话协商消息中的 SDP报文建立或者刷新与第二终端 602的会话。  The first terminal 601 is configured to send a first session negotiation message to the second terminal 602, where the attribute parameter carried in the SDP message in the first session negotiation message includes media parameters and media redundancy parameters of at least two media. The second session negotiation message returned by the second terminal 602 is received, and the session with the second terminal 602 is established or refreshed according to the received SDP message in the second session negotiation message.

在实际应用中, 当第一终端 601向第二终端 602发起会话时, 其可将预传 输的媒体数据 (可包括一种或多种媒体 )对应的媒体类型的媒体参数封装在 SDP 报文中。 其中, 上述媒体参数包括但不限于媒体类型指示参数、 媒体编解码指 示参数, 上述媒体编解码指示参数可指示一种第一终端 601支持的媒体编解码, 第一终端 601可携带多个媒体编解码指示参数, 以使上述第二终端 602在接收 到第一终端 601发送的 SDP "^文时, 获知第一终端 601所支持的媒体编解码。 进一步的, 若第一终端 601 支持上述媒体类型的冗余能力, 还可将相应的媒体 冗余参数也封装在该 SDP报文中,通过第一会话协商消息将上述 SDP报文发送 给第二终端 602。  In a practical application, when the first terminal 601 initiates a session to the second terminal 602, it may encapsulate the media parameter of the media type corresponding to the pre-transmitted media data (which may include one or more media) in the SDP message. . The media parameters include, but are not limited to, a media type indication parameter and a media codec indication parameter. The media codec indication parameter may indicate a media codec supported by the first terminal 601, and the first terminal 601 may carry multiple media. Decoding the indication parameter, so that the second terminal 602 learns the media codec supported by the first terminal 601 when receiving the SDP message sent by the first terminal 601. Further, if the first terminal 601 supports the media type The SDP packet is also encapsulated in the SDP packet, and the SDP packet is sent to the second terminal 602 by using the first session negotiation message.

其中, 第二终端 602用于接收来自第一终端 601 的第一会话协商消息, 其 中, 第一会话协商消息中的 SDP报文携带的属性参数包含至少两种媒体的媒体 冗余参数; 根据本地会话能力对接收到的 SDP报文携带的属性参数进行选取; 根据上述选取的属性参数生成新的 SDP报文;将上述生成的 SDP报文通过第二 会话协商消息发送给第一终端 601。在实际应用中,当第二终端 602对媒体参数、 媒体冗余参数进行选取时, 第二终端 602可根据本地支持的媒体类型及媒体编 解码能力, 从接收到的 SDP报文中选取相应的媒体参数(如与本地支持的媒体 类型对应的媒体类型指示参数, 与本地媒体编解码能力对应的媒体编解码指示 参数); 根据本地的媒体编解码能力和支持的媒体类型的冗余能力, 从接收到的 SDP报文中选取相应的媒体冗余参数, 如冗余类型指示参数和冗余编解码对应 的媒体编解码指示参数等。  The second terminal 602 is configured to receive the first session negotiation message from the first terminal 601, where the attribute parameter carried in the SDP message in the first session negotiation message includes media redundancy parameters of at least two media; The session capability selects the attribute parameter carried in the received SDP message; generates a new SDP message according to the selected attribute parameter; and sends the generated SDP message to the first terminal 601 by using the second session negotiation message. In a practical application, when the second terminal 602 selects the media parameter and the media redundancy parameter, the second terminal 602 may select a corresponding SDP packet from the received SDP packet according to the locally supported media type and the media encoding and decoding capability. Media parameters (such as media type indication parameters corresponding to locally supported media types, media codec indication parameters corresponding to local media codec capabilities); according to local media codec capabilities and redundant capabilities of supported media types, Corresponding media redundancy parameters, such as a redundancy type indication parameter and a media codec indication parameter corresponding to the redundancy codec, are selected in the received SDP message.

上述第一会话协商消息和第二会议协商消息可以是 SIP协议消息, 或者也 可以是其它基于 SDP协议的端到端对等协议消息, 此处不作限定。 The foregoing first session negotiation message and the second conference negotiation message may be SIP protocol messages, or It may be an end-to-end peer-to-peer protocol message based on the SDP protocol, which is not limited herein.

需要说明的是, 本实施例的第一终端 601 可以如上述方法实施例中的主叫 终端, 本实施例的第二终端 602 可以如上述方法实施例中的被叫终端, 其均可 以用于实现上述方法实施例中的全部技术方案, 其各个功能模块的功能可以根 据上述方法实施例中的方法具体实现, 其具体实现过程可参照上述实施例中的 相关描述, 此处不再赘述。  It should be noted that the first terminal 601 in this embodiment may be the calling terminal in the foregoing method embodiment, and the second terminal 602 in this embodiment may be the called terminal in the foregoing method embodiment, which may be used for All the technical solutions in the foregoing method embodiments are implemented, and the functions of the respective functional modules may be implemented according to the method in the foregoing method embodiments. For the specific implementation process, refer to the related description in the foregoing embodiments, and details are not described herein again.

由上可见, 本发明实施例提供的技术方案对现有的 RFC2198标准进行了扩 展, 使得基于 SDP协议下的报文可同时对多种媒体的冗余能力进行表述, 从而 使主叫终端和被叫终端可在建立或更新会话前对多种媒体的冗余能力同时进行 协商, 进而解决现有的仅能在会话中的对单类媒体进行冗余的问题。  It can be seen that the technical solution provided by the embodiment of the present invention extends the existing RFC2198 standard, so that the message based on the SDP protocol can simultaneously express the redundancy capability of multiple media, so that the calling terminal and the called terminal The calling terminal can negotiate the redundancy of multiple media at the same time before establishing or updating the session, thereby solving the problem that the existing single-type media can only be redundant in the session.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤是 可以通过程序来指令相关的硬件完成, 所述的程序可以存储于一种计算机可读 存储介质中, 上述提到的存储介质可以是只读存储器, 随机存储器、 磁盘或光 盘等。  A person skilled in the art can understand that all or part of the steps of implementing the above embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable storage medium, the above mentioned storage. The medium can be a read only memory, a random access memory, a magnetic or optical disk, and the like.

以上对本发明所提供的多媒体会话的协商方法、 相关设备和系统进行了详 细介绍, 对于本领域的一般技术人员, 依据本发明实施例的思想, 在具体实施 方式及应用范围上均会有改变之处, 综上, 本说明书内容不应理解为对本发明 的限制。  The method for negotiating the multimedia session provided by the present invention, the related device and the system are described in detail. For those skilled in the art, the idea of the embodiment of the present invention may be changed in the specific implementation manner and the application scope. In conclusion, the contents of this specification are not to be construed as limiting the invention.

Claims

权利要求书 Claim 1、 一种多媒体会话的协商方法, 其特征在于, 包括: A method for negotiating a multimedia session, comprising: 被叫终端接收来自主叫终端的第一会话协商消息, 所述第一会话协商消息 中的会话描述协议 SDP报文携带的属性参数包含至少两种媒体的媒体参数和媒 体冗余参数;  The called terminal receives the first session negotiation message from the calling terminal, and the attribute parameter carried in the session description protocol SDP message in the first session negotiation message includes media parameters and media redundancy parameters of at least two media. 被叫终端根据本地会话能力对所述接收到的 SDP报文携带的属性参数进行 选取;  The called terminal selects an attribute parameter carried in the received SDP packet according to the local session capability; 被叫终端根据所述选取的属性参数生成新的 SDP报文;  The called terminal generates a new SDP packet according to the selected attribute parameter; 被叫终端将所述生成的 SDP报文通过第二会话协商消息发送给所述主叫终 端。  The called terminal sends the generated SDP message to the calling terminal by using a second session negotiation message. 2、 根据权利要求 1所述的方法, 其特征在于,  2. The method of claim 1 wherein 所述被叫终端根据本地会话能力对所述接收到的 SDP报文携带的属性参数 进行选取具体为:  The called terminal selects the attribute parameter carried in the received SDP packet according to the local session capability, which is specifically: 被叫终端根据本地支持的媒体类型及媒体编解码能力, 从所述接收到的 SDP报文中选取相应的媒体参数, 所述媒体参数包括媒体类型指示参数和媒体 编解码指示参数;  The called terminal selects a corresponding media parameter from the received SDP packet according to the locally supported media type and the media codec capability, where the media parameter includes a media type indication parameter and a media codec indication parameter; 被叫终端根据本地的媒体编解码能力和支持的媒体类型的冗余能力, 从所 述接收到的 SDP报文中选取相应的媒体冗余参数, 所述媒体冗余参数包括冗余 类型指示参数和冗余编解码对应的媒体编解码指示参数。  The called terminal selects a corresponding media redundancy parameter from the received SDP message according to the local media codec capability and the redundancy capability of the supported media type, where the media redundancy parameter includes a redundancy type indication parameter. The media codec indication parameter corresponding to the redundant codec. 3、 根据权利要求 2所述的方法, 其特征在于,  3. The method of claim 2, wherein 所述媒体编解码指示参数的值具体为所述媒体编解码对应的载荷类型 PT 值;  The value of the media codec indication parameter is specifically a payload type PT value corresponding to the media codec; 和 /或,所述冗余类型指示参数的值具体为所述冗余类型对应的载荷类型 PT 值。  And/or, the value of the redundancy type indication parameter is specifically a load type PT value corresponding to the redundancy type. 4、 根据权利要求 1至 3中任一项所述的方法, 其特征在于,  4. A method according to any one of claims 1 to 3, characterized in that 所述第一会话协商消息具体为会话初始化协议 SIP消息或为基于 SDP协议 的端到端对等协议消息;  The first session negotiation message is specifically a session initiation protocol SIP message or an end-to-end peer-to-peer protocol message based on the SDP protocol; 所述第二会话协商消息具体为会话初始化协议 SIP消息或为基于 SDP协议 的端到端对等协议消息。 The second session negotiation message is specifically a session initiation protocol SIP message or an end-to-end peer-to-peer protocol message based on the SDP protocol. 5、 一种终端, 其特征在于, 包括: 5. A terminal, comprising: 接收单元, 用于接收来自主叫终端的第一会话协商消息, 所述第一会话协 商消息中的会话描述协议 SDP报文携带的属性参数包含至少两种媒体的媒体参 数和媒体冗余参数;  a receiving unit, configured to receive a first session negotiation message from the calling terminal, where the attribute parameter carried in the session description protocol SDP message in the first session negotiation message includes media parameters and media redundancy parameters of at least two media; 选取单元, 用于根据本地会话能力对所述接收到的 SDP报文携带的属性参 数进行选取;  a selecting unit, configured to select, according to a local session capability, an attribute parameter carried in the received SDP packet; 生成单元, 用于根据所述选取单元选取的属性参数, 生成新的 SDP报文; 发送单元, 用于将所述生成单元生成的 SDP报文通过第二会话协商消息发 送给所述主叫终端。  a generating unit, configured to generate a new SDP packet according to the attribute parameter selected by the selecting unit, and send, by the sending unit, the SDP packet generated by the generating unit to the calling terminal by using a second session negotiation message . 6、 根据权利要求 5所述的终端, 其特征在于,  6. The terminal of claim 5, wherein: 所述选取单元具体用于, 根据本地支持的媒体类型及媒体编解码能力, 从 所述接收到的 SDP报文中选取相应的媒体参数, 所述媒体参数包括媒体类型指 示参数和媒体编解码指示参数; 根据本地的媒体编解码能力和支持的媒体类型 的冗余能力, 从所述接收到的 SDP报文中选取相应的媒体冗余参数, 所述媒体 冗余参数包括冗余类型指示参数和冗余编解码对应的媒体编解码指示参数。  The selecting unit is specifically configured to: select, according to the locally supported media type and the media encoding and decoding capability, the corresponding media parameter from the received SDP packet, where the media parameter includes a media type indication parameter and a media codec indication And selecting a corresponding media redundancy parameter from the received SDP message according to the local media codec capability and the redundancy capability of the supported media type, where the media redundancy parameter includes a redundancy type indication parameter and The media codec indication parameter corresponding to the redundant codec. 7、 一种终端, 其特征在于, 包括:  7. A terminal, comprising: 发送单元, 用于向被叫终端发送第一会话协商消息, 所述第一会话协商消 息中的会话描述协议 SDP报文携带的属性参数包含至少两种媒体的媒体参数和 媒体冗余参数;  a sending unit, configured to send a first session negotiation message to the called terminal, where the attribute parameter carried in the SDP message in the first session negotiation message includes media parameters and media redundancy parameters of at least two media; 接收单元, 用于接收所述被叫终端返回的第二会话协商消息;  a receiving unit, configured to receive a second session negotiation message returned by the called terminal; 会话处理单元, 用于根据所述接收单元接收到的第二会话协商消息中的 SDP报文, 建立或者刷新与所述被叫终端的会话。  The session processing unit is configured to establish or refresh a session with the called terminal according to the SDP message in the second session negotiation message received by the receiving unit. 8、 根据权利要求 7所述的终端, 其特征在于, 所述会话处理单元还用于在 所述第二会话协商消息中携带两种以上媒体的媒体冗余参数时, 对在所述建立 或更新的会话中传输的多种媒体进行冗余。  The terminal according to claim 7, wherein the session processing unit is further configured to: when the second session negotiation message carries media redundancy parameters of two or more media, in the establishing or Multiple media transmitted in the updated session are redundant. 9、 一种多媒体会话系统, 其特征在于, 包括:  9. A multimedia session system, comprising: 第一终端和第二终端;  a first terminal and a second terminal; 所述第一终端用于向所述第二终端发送第一会话协商消息, 所述第一会话 协商消息中的会话描述协议 SDP报文携带的属性参数包含至少两种媒体的媒体 参数和媒体冗余参数; 接收所述第二终端返回的第二会话协商消息, 并根据所 述第二会话协商消息中的 SDP报文建立或者刷新与所述第二终端的会话; 所述第二终端用于接收来自所述第一终端的第一会话协商消息, 所述第一 会话协商消息中的 SDP报文携带的属性参数包含至少两种媒体的媒体冗余参 数; 根据本地会话能力对所述接收到的 SDP报文包含的属性参数进行选取; 根 据所述选取的属性参数生成新的 SDP报文;将所述生成的 SDP报文通过第二会 话协商消息发送给所述第一终端。 The first terminal is configured to send a first session negotiation message to the second terminal, where the attribute parameter carried in the session description protocol SDP message in the first session negotiation message includes media parameters and media redundancy of at least two media. Retrieving the second session negotiation message returned by the second terminal, and according to the The SDP message in the second session negotiation message is used to establish or refresh the session with the second terminal; the second terminal is configured to receive a first session negotiation message from the first terminal, where the first session is negotiated. The attribute parameter carried in the SDP packet in the message includes the media redundancy parameter of the at least two media; the attribute parameter included in the received SDP message is selected according to the local session capability; and the new attribute parameter is generated according to the selected attribute parameter. The SDP message is sent to the first terminal by using the second session negotiation message. 10、 根据权利要求 9所述的系统, 其特征在于,  10. The system of claim 9 wherein: 所述第一终端还用于在所述第二会话协商消息中携带两种以上媒体的媒体 冗余参数时, 对在所述建立或更新的会话中传输的多种媒体进行冗余。  The first terminal is further configured to: when the second session negotiation message carries media redundancy parameters of two or more media, perform redundancy on multiple media transmitted in the established or updated session.
PCT/CN2011/081401 2011-02-22 2011-10-27 Multimedia session negotiation method, related device and system Ceased WO2012113240A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110043386.0A CN102647402B (en) 2011-02-22 2011-02-22 A kind of machinery of consultation of Multimedia session, relevant device and system
CN201110043386.0 2011-02-22

Publications (1)

Publication Number Publication Date
WO2012113240A1 true WO2012113240A1 (en) 2012-08-30

Family

ID=46659981

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/081401 Ceased WO2012113240A1 (en) 2011-02-22 2011-10-27 Multimedia session negotiation method, related device and system

Country Status (2)

Country Link
CN (1) CN102647402B (en)
WO (1) WO2012113240A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685144A (en) * 2012-08-31 2014-03-26 中兴通讯股份有限公司 Media stream transmission method and device
CN102984493B (en) * 2012-11-21 2016-03-02 华为终端有限公司 The method of video data transmission, device and communication equipment
CN105847225B (en) * 2015-01-16 2019-02-05 中国移动通信集团公司 End-to-end encryption negotiation method and device based on IP multimedia subsystem
CN106254354B (en) * 2016-08-10 2019-04-26 东北大学 A SDP Negotiation Method for Asymmetric Media Parameters
CN111193941B (en) * 2020-01-07 2021-09-17 北京东土科技股份有限公司 Method, device and equipment for transmitting media data and storage medium
CN117149640B (en) * 2023-09-04 2024-07-26 中移互联网有限公司 Object-oriented SDP layered regularization test method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003032585A1 (en) * 2001-10-09 2003-04-17 Nokia Corporation Transcoding arrangement in a session initiation
US20060007916A1 (en) * 2004-07-09 2006-01-12 Jones Paul E Method and apparatus for interleaving text and media in a real-time transport session
CN1972305A (en) * 2006-11-06 2007-05-30 华为技术有限公司 A method and system for consultation
CN101247388A (en) * 2007-02-15 2008-08-20 华为技术有限公司 Method and system for negotiating media and method for sending media description information
CN101316385A (en) * 2007-05-30 2008-12-03 华为技术有限公司 A method for negotiating a session description protocol and related equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003032585A1 (en) * 2001-10-09 2003-04-17 Nokia Corporation Transcoding arrangement in a session initiation
US20060007916A1 (en) * 2004-07-09 2006-01-12 Jones Paul E Method and apparatus for interleaving text and media in a real-time transport session
CN1972305A (en) * 2006-11-06 2007-05-30 华为技术有限公司 A method and system for consultation
CN101247388A (en) * 2007-02-15 2008-08-20 华为技术有限公司 Method and system for negotiating media and method for sending media description information
CN101316385A (en) * 2007-05-30 2008-12-03 华为技术有限公司 A method for negotiating a session description protocol and related equipment

Also Published As

Publication number Publication date
CN102647402B (en) 2015-07-29
CN102647402A (en) 2012-08-22

Similar Documents

Publication Publication Date Title
CN112583982B (en) Call processing method and device
RU2597490C2 (en) Methods of real time communication providing pause and resumption, and related devices
CN105227418B (en) Data channel establishing method and communication equipment
US20120016998A1 (en) Refreshing a Session Initiation Protocol (SIP) Session
WO2012113240A1 (en) Multimedia session negotiation method, related device and system
US9232244B2 (en) Efficient frame forwarding in large scale real-time screen content sharing meetings
US12034776B2 (en) Communication method, communication apparatus, and communication system
US12495080B2 (en) Communication method, signaling control network element, media control network element and communication system
KR102902420B1 (en) Method and apparatus for processing immersive media
WO2025107819A1 (en) Ims-session media renegotiation method and apparatus, and communication device and storage medium
US9912623B2 (en) Systems and methods for adaptive context-aware control of multimedia communication sessions
WO2026016583A1 (en) Session processing method and apparatus, and device, storage medium and program product
WO2015135409A1 (en) Session establishment method, terminal and system
CN103634697B (en) Net the implementation method of true technology and net true equipment
CN103929436B (en) A kind of method of media negotiation repeatedly in limitation IMS network
CN116709281A (en) Audio transmission method, device, equipment, system and storage medium based on bluetooth
CN116346988A (en) Method and device for receiving incoming calls
CN105830412B (en) Session initiation handling
CN103401833A (en) Media cipher/decipher switching method and device
WO2012163126A1 (en) Multimedia ability negotiation method and device
CN108123927A (en) A kind of CDN network communication means, apparatus and system
JP6348875B2 (en) RELAY DEVICE, CALL CONTROL SYSTEM, CALL CONTROL METHOD, AND CALL CONTROL PROGRAM
CN116866478A (en) Avatar communication method, device, communication equipment and storage medium
WO2017186053A1 (en) Method and device for establishing channel between heterogeneous end-points
CN119520484A (en) Session multi-access establishment method, terminal and network

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11859277

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11859277

Country of ref document: EP

Kind code of ref document: A1