[go: up one dir, main page]

CN101047718B - System, method and server for realizing media negotiation - Google Patents

System, method and server for realizing media negotiation Download PDF

Info

Publication number
CN101047718B
CN101047718B CN2007101015682A CN200710101568A CN101047718B CN 101047718 B CN101047718 B CN 101047718B CN 2007101015682 A CN2007101015682 A CN 2007101015682A CN 200710101568 A CN200710101568 A CN 200710101568A CN 101047718 B CN101047718 B CN 101047718B
Authority
CN
China
Prior art keywords
message body
sdp message
negotiation
media
information
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.)
Expired - Fee Related
Application number
CN2007101015682A
Other languages
Chinese (zh)
Other versions
CN101047718A (en
Inventor
石伟平
孙彧
包渊
柯善阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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
Priority to CN2007101015682A priority Critical patent/CN101047718B/en
Publication of CN101047718A publication Critical patent/CN101047718A/en
Application granted granted Critical
Publication of CN101047718B publication Critical patent/CN101047718B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

This invention discloses a method for realizing media negotiation including: a server obtains at least two negotiated SDP message bodies, each of which carries a medium message negotiating on a same network entity, and the server combines said two SDP message bodies to negotiate with the same network entity to get a negotiated SDP message body, which carries the medium message about negotiation on the same network entity. This invention also discloses a method for realizing medium negotiations and a system and servers corresponding to the two methods.

Description

实现媒体协商的系统、方法及服务器System, method and server for realizing media negotiation

技术领域technical field

本发明涉及通信领域,特别涉及两种实现媒体协商的系统、方法及服务器。The invention relates to the communication field, in particular to two systems, methods and servers for realizing media negotiation.

背景技术Background technique

在网络实体之间建立媒体通道进行媒体交换前,常需要在网络实体之间预先进行媒体协商,即根据网络实体各自媒体能力信息,协商进行媒体交换时所要求的服务质量、预留资源等。比如,会话初始协议(SIP,SessionInitiation Protocol)网络,是采用SIP消息进行初始、管理和终止各种类型的多媒体业务的网络,多媒体业务为IP电话、视频会话等业务,换句话说,SIP网络就是应用SIP消息来生成、修改和终结一个或多个SIP实体之间的多媒体会话的网络。而SIP网络中的实体,也称为SIP实体,在SIP消息中携带会话描述协议(SDP,Session Description Protocol)消息体,用以描述各SIP实体的媒体能力信息,并利用SDP协议的提供/应答(OFFER/ANSWER)机制,实现SIP实体之间的媒体协商,这里,SDP协议为一个用于描述多媒体会话的应用层协议。Before establishing a media channel between network entities for media exchange, it is often necessary to conduct media negotiation between network entities in advance, that is, to negotiate the service quality and reserved resources required for media exchange according to their respective media capability information. For example, the Session Initiation Protocol (SIP, SessionInitiation Protocol) network is a network that uses SIP messages to initiate, manage and terminate various types of multimedia services. The multimedia services are services such as IP telephony and video sessions. In other words, the SIP network is A network that applies SIP messages to create, modify and terminate multimedia sessions between one or more SIP entities. The entities in the SIP network, also known as SIP entities, carry the Session Description Protocol (SDP, Session Description Protocol) message body in the SIP message to describe the media capability information of each SIP entity, and use the provision/response of the SDP protocol The (OFFER/ANSWER) mechanism implements media negotiation between SIP entities. Here, the SDP protocol is an application layer protocol used to describe multimedia sessions.

下面仅以回铃音业务为例,具体说明目前实现媒体协商的方法,图1为现有技术中实现回铃音业务媒体协商的方法流程图,其中,回铃音应用服务器用来管理和实现回铃音业务功能,而用于主叫的用户终端a(UE a,UserEquipment a)、用于被叫的UE b和用于对回铃音业务媒体资源进行控制和处理的媒体资源服务器(MRS,Media Resource Server)为需要进行媒体协商的网络实体。如图1所示,UE a首先通过回铃音应用服务器与MRS之间进行媒体协商,实现MRS与UEa之间的媒体交换,即实现MRS向主叫进 行播放回铃音的功能;然后,在UE b接听电话的时候,UE b通过回铃音应用服务器与UE a再进行一次媒体协商,以实现UE b与UE a之间的媒体交换,即能够进行正常的通话。媒体协商通过在SIP消息中携带SDP协议的消息体实现。具体步骤如下:Only take the ring back tone service as an example below to specifically illustrate the method for realizing media negotiation at present. Fig. 1 is a flow chart of a method for realizing the media negotiation of the ring back tone service in the prior art, wherein the ring back tone application server is used to manage and implement The ring back tone service function, and the user terminal a (UE a, UserEquipment a) that is used for calling, the UE b that is used for being called and the media resource server (MRS) that is used for controlling and processing the media resource of the ring back tone service , Media Resource Server) is a network entity that needs to perform media negotiation. As shown in Figure 1, UE a first performs media negotiation between the ring-back tone application server and the MRS to realize the media exchange between the MRS and UEa, that is, to realize the function of the MRS playing the ring-back tone to the calling party; then, When UE b answers the call, UE b conducts another media negotiation with UE a through the ringback tone application server to realize media exchange between UE b and UE a, that is, a normal call can be carried out. Media negotiation is implemented by carrying the message body of the SDP protocol in the SIP message. Specific steps are as follows:

步骤101-步骤111为实现MRS与UE a之间媒体协商的过程。Step 101-step 111 is the process of realizing media negotiation between MRS and UE a.

步骤101:UE a向回铃音应用服务器发送邀请(INVITE)消息。Step 101: UE a sends an INVITE message to the RBT application server.

本步骤中,UE a作为主叫向回铃音应用服务器发送SIP请求消息中的INVITE消息,以便通过回铃音应用服务器邀请被叫UE b进行通话,这里的回铃音应用服务器为UE b所归属的回铃音应用服务器。INVITE消息携带了描述UE a的SDP1消息体,通过本步骤回铃音应用服务器获取到SDP1消息体。In this step, UE a sends the INVITE message in the SIP request message to the ring-back tone application server as the calling party, so as to invite the called UE b to talk through the ring-back tone application server, where the ring-back tone application server is UE b The assigned ringback tone application server. The INVITE message carries the SDP1 message body describing UE a, and the ringback tone application server obtains the SDP1 message body through this step.

SIP有两种类型的消息,即从客户机发到服务器的请求消息和从服务器到客户机的响应消息。其中,常用的请求消息包括:INVITE、响应确认(ACK)、临时响应确认(PRACK)、更新(UPDATE)等消息。而响应消息则包含了数字响应代码,包括临时响应和最终响应两种类型,临时响应为1XX,比如183,而最终响应为2XX、3XX,比如200OK。每条SIP消息都由起始行、SIP头和消息体构成,其中,消息体可用来描述被初始的会话,本步骤中,SIP消息中携带SDP消息体。SIP has two types of messages, the request message from the client to the server and the response message from the server to the client. Among them, commonly used request messages include: INVITE, response acknowledgment (ACK), provisional response acknowledgment (PRACK), update (UPDATE) and other messages. The response message includes a digital response code, including provisional response and final response. The provisional response is 1XX, such as 183, and the final response is 2XX, 3XX, such as 200OK. Each SIP message is composed of a start line, a SIP header and a message body, wherein the message body can be used to describe the initiated session. In this step, the SIP message carries the SDP message body.

步骤102:回铃音应用服务器向UE b转发INVITE消息。Step 102: The ring-back tone application server forwards the INVITE message to UE b.

步骤103:UE b向回铃音应用服务器发送183响应消息。Step 103: UE b sends a 183 response message to the RBT application server.

本步骤中,在183响应消息的消息体内携带描述被叫UE b的SDP2消息体。回铃音应用服务器获取到SDP2消息体。这里,183是可靠的临时响应。In this step, the SDP2 message body describing the called UE b is carried in the message body of the 183 response message. The ring back tone application server obtains the SDP2 message body. Here, 183 is a reliable provisional response.

步骤104:回铃音应用服务器向UE b发送PRACK消息。Step 104: The ring-back tone application server sends a PRACK message to UE b.

本步骤中,回铃音应用服务器在收到183响应消息之后,发送PRACK消息到被叫UE b,确认已收到被叫UE b所发送的183响应消息。In this step, after receiving the 183 response message, the ring-back tone application server sends a PRACK message to the called UE b to confirm that the 183 response message sent by the called UE b has been received.

步骤105:UE b向回铃音应用服务器发送200OK响应消息。Step 105: UE b sends a 200 OK response message to the RBT application server.

UE b发送步骤104中PRACK消息的200OK响应消息到回铃音应用服务器。UE b sends the 200 OK response message of the PRACK message in step 104 to the RBT application server.

步骤106:回铃音应用服务器向MRS发送INVITE消息。Step 106: The RBT application server sends an INVITE message to the MRS.

本步骤中,回铃音应用服务器重新创建一个新的INVITE消息发送到MRS,其中INVITE消息中携带步骤101中的SDP1消息体。In this step, the RBT application server creates a new INVITE message and sends it to the MRS, wherein the INVITE message carries the SDP1 message body in step 101 .

步骤107:MRS向回铃音应用服务器发送200OK响应消息。Step 107: The MRS sends a 200 OK response message to the RBT application server.

MRS发送步骤106中INVITE的200OK响应到回铃音应用服务器。其中200OK的消息中携带描述MRS的SDP3消息体,通过本步骤回铃音应用服务器获取到SDP3消息体。The MRS sends a 200 OK response to the INVITE in step 106 to the RBT application server. The 200 OK message carries the SDP3 message body describing the MRS, and the ring-back tone application server obtains the SDP3 message body through this step.

步骤108:回铃音应用服务器向MRS发送ACK响应消息。Step 108: The RBT application server sends an ACK response message to the MRS.

回铃音应用服务器向MRS发送对应于步骤106中200OK消息的ACK响应消息。The RBT application server sends an ACK response message corresponding to the 200 OK message in step 106 to the MRS.

步骤109:回铃音应用服务器向UE a转发183响应消息。Step 109: The ring-back tone application server forwards the 183 response message to UE a.

回铃音应用服务器向主叫UE a转发步骤103中183响应消息。并且,将步骤103中183响应消息中所携带的SDP2消息体替换为步骤107中描述MRS的SDP3消息体。The ring back tone application server forwards the 183 response message in step 103 to the calling UE a. And, replace the SDP2 message body carried in the 183 response message in step 103 with the SDP3 message body describing the MRS in step 107 .

步骤110:UE a向回铃音应用服务器发送PRACK消息。Step 110: UE a sends a PRACK message to the RBT application server.

UE a收到步骤109中的183响应之后,发送PRACK消息到回铃音应用服务器,确认已收到回铃音应用服务器所发送的183响应,该消息中包含了协商后的SDP4消息体。After receiving the 183 response in step 109, UE a sends a PRACK message to the ring-back tone application server to confirm that it has received the 183 response sent by the ring-back tone application server, and the message includes the negotiated SDP4 message body.

步骤111:回铃音应用服务器向UE a发送200OK响应消息。Step 111: the ring back tone application server sends a 200 OK response message to UE a.

步骤112:UE b向回铃音应用服务器发送180响应消息。Step 112: UE b sends a 180 response message to the RBT application server.

该180响应消息指示振铃。The 180 response message indicates ringing.

步骤113:回铃音应用服务器向UE b发送PRACK消息。Step 113: the ring-back tone application server sends a PRACK message to UE b.

如果步骤112中的180是可靠的临时响应,那么回铃音应用服务器收到步骤112中的180响应消息之后,必须对180响应消息发送PRACK消息到UE b。If 180 in the step 112 is a reliable provisional response, after the ring-back tone application server receives the 180 response message in the step 112, it must send a PRACK message to the 180 response message to UE b.

步骤114:UE b向回铃音应用服务器发送200OK响应消息。Step 114: UE b sends a 200 OK response message to the RBT application server.

步骤115:回铃音应用服务器向UE a转发180响应消息。Step 115: The ring-back tone application server forwards a 180 response message to UE a.

步骤116:UE a向回铃音应用服务器发送PRACK消息。Step 116: UE a sends a PRACK message to the RBT application server.

如果步骤115中的180响应消息是可靠的临时响应,那么UE a收到步骤115中的180之后,必须对180发送PRACK到回铃音应用服务器。If the 180 response message in the step 115 is a reliable provisional response, after UE a receives the 180 in the step 115, it must send a PRACK to the ring-back tone application server for the 180.

步骤117:回铃音应用服务器向UE a发送200OK响应消息。Step 117: The ring back tone application server sends a 200 OK response message to UE a.

步骤118:回铃音应用服务器向MRS发送公告(INFO)消息。Step 118: The RBT application server sends an announcement (INFO) message to the MRS.

回铃音应用服务器发送INFO消息到MRS,指示MRS开始播放回铃音。INFO信息中携带了所播放回铃音的具体信息。The RBT application server sends an INFO message to the MRS, instructing the MRS to start playing the RBT. The INFO information carries the specific information of the ring back tone played.

步骤119:MRS向回铃音应用服务器发送200OK响应消息。Step 119: The MRS sends a 200 OK response message to the RBT application server.

MRS收到步骤118中的INFO消息后,开始播放回铃音,并向回铃音应用服务器发送INFO消息的200OK响应。After receiving the INFO message in step 118, the MRS starts to play the ring back tone, and sends a 200 OK response to the INFO message to the ring back tone application server.

步骤120-步骤126为实现UE b与UE a之间媒体协商的过程。Step 120-step 126 is the process of realizing media negotiation between UE b and UE a.

步骤120:UE b向回铃音应用服务器发送200OK响应消息。Step 120: UE b sends a 200 OK response message to the RBT application server.

UE b接听电话,发送步骤102中INVITE消息的200OK响应到回铃音应用服务器。UE b answers the call, and sends a 200 OK response to the INVITE message in step 102 to the ringback tone application server.

步骤121:回铃音应用服务器向UE a发送UPDATE消息。Step 121: The ring-back tone application server sends an UPDATE message to UE a.

回铃音应用服务器收到步骤119中的200OK响应消息之后,发送UPDATE消息给UE a,其中包含了步骤103中183响应消息中所携带的描述UE b的SDP2消息体。After the ring-back tone application server receives the 200OK response message in step 119, it sends an UPDATE message to UE a, which includes the SDP2 message body describing UE b carried in the 183 response message in step 103.

步骤122:UE a向回铃音应用服务器发送200OK响应消息。Step 122: UE a sends a 200 OK response message to the RBT application server.

UE a收到步骤121所述的UPDATE消息之后,发送200OK响应消息到回铃音应用服务器。该消息中包含了协商后的SDP5消息体。After receiving the UPDATE message described in step 121, UE a sends a 200 OK response message to the ring-back tone application server. The message includes the negotiated SDP5 message body.

步骤123:回铃音应用服务器向MRS发送BYE消息。Step 123: The RBT application server sends a BYE message to the MRS.

回铃音应用服务器发送BYE消息到MRS,结束与MRS的会话,并且MRS停止回铃音的播放。The RBT application server sends a BYE message to the MRS to end the session with the MRS, and the MRS stops playing the RBT.

步骤124:回铃音应用服务器向UE a转发200OK响应消息。Step 124: The ring-back tone application server forwards a 200 OK response message to UE a.

回铃音应用服务器转发步骤120中的200OK响应消息到UE a。The ring back tone application server forwards the 200 OK response message in step 120 to UE a.

步骤125:MRS向回铃音应用服务器发送200OK响应消息。Step 125: The MRS sends a 200 OK response message to the RBT application server.

MRS收到步骤123所述的BYE消息后,停止回铃音的播放,并且发送200OK响应到回铃音应用服务器。After receiving the BYE message in step 123, the MRS stops playing the ring back tone, and sends a 200 OK response to the ring back tone application server.

步骤126:UE a向回铃音应用服务器发送ACK消息。Step 126: UE a sends an ACK message to the RBT application server.

UE a向回铃音应用服务器发送针对步骤124中200OK响应消息的ACK消息。UE a sends an ACK message for the 200 OK response message in step 124 to the ring back tone application server.

步骤127:回铃音应用服务器向UE b发送ACK消息。Step 127: The ring-back tone application server sends an ACK message to UE b.

回铃音应用服务器向UE b发送针对步骤119中200OK响应消息的ACK消息。本步骤后,UE a和UE b开始通话。The ring back tone application server sends an ACK message for the 200 OK response message in step 119 to UE b. After this step, UE a and UE b start talking.

步骤128:UE a通过回铃音应用服务器向UE b发送BYE消息。Step 128: UE a sends a BYE message to UE b through the RBT application server.

UE a通过回铃音应用服务器向UE b发送BYE消息,以结束UE a和UE b间的通话。UE a sends a BYE message to UE b through the ringback tone application server to end the call between UE a and UE b.

步骤129:UE b通过回铃音应用服务器向UE a发送200OK响应消息。Step 129: UE b sends a 200 OK response message to UE a through the RBT application server.

可以看出,在建立回铃音业务过程中,即使UE b、MRS对相同的SIP实体UE a进行媒体协商,UE a也必须分别通过服务器向UE b和MRS发送用于媒体协商的媒体信息,也就是说,当多个网络实体对同一个网络实体进行协商时,只能由多个网络实体分别通过服务器与同一个网络实体进行媒体协商。It can be seen that in the process of establishing the ring back tone service, even if UE b and MRS perform media negotiation on the same SIP entity UE a, UE a must send media information for media negotiation to UE b and MRS respectively through the server. That is to say, when multiple network entities negotiate with the same network entity, the multiple network entities can only perform media negotiation with the same network entity through the server respectively.

同样,当相同的SIP实体对多个网络进行媒体协商时,也需要通过服务器由同一个网络实体分别与多个网络实体进行媒体协商。Similarly, when the same SIP entity performs media negotiation for multiple networks, the same network entity also needs to perform media negotiation with multiple network entities through the server.

因此,采用目前实现媒体协商的方法,只能在单个网络实体间进行媒体协商,即进行一次媒体协商,得到一个网络实体和一个网络实体间的媒体协商结果,还不能够实现一方对多方以及多方对一方的媒体协商。Therefore, using the current method for media negotiation, only a single network entity can perform media negotiation, that is, conduct a media negotiation to obtain a media negotiation result between a network entity and a network entity, and it is still not possible to implement one-to-many and multi-party Media consultations on one side.

发明内容Contents of the invention

有鉴于此,本发明实施例在于提供一种实现媒体协商的方法,该方法能 够实现多方对一方的媒体协商。In view of this, the embodiment of the present invention provides a method for realizing media negotiation, which can realize multi-party to one-party media negotiation.

本发明实施例在于提供一种实现媒体协商的方法,该方法能够实现一方对多方的媒体协商。An embodiment of the present invention provides a method for realizing media negotiation, which can realize one-to-many-party media negotiation.

本发明实施例在于提供一种实现媒体协商的系统,该系统能够实现多方对一方的媒体协商。An embodiment of the present invention provides a system for realizing media negotiation, and the system can realize multi-party-to-one media negotiation.

本发明实施例在于提供一种实现媒体协商的系统,该系统能够实现一方对多方的媒体协商。An embodiment of the present invention provides a system for realizing media negotiation, and the system can realize one-to-many-party media negotiation.

本发明实施例在于提供一种实现媒体协商的服务器,该服务器能够实现多方对一方的媒体协商。An embodiment of the present invention provides a server for realizing media negotiation, and the server can realize multi-party-to-one media negotiation.

本发明实施例在于提供一种实现媒体协商的服务器,该服务器能够实现一方对多方的媒体协商。An embodiment of the present invention provides a server for realizing media negotiation, and the server can realize one-to-many-party media negotiation.

为达到上述目的,本发明实施例的技术方案具体是这样实现的:In order to achieve the above purpose, the technical solutions of the embodiments of the present invention are specifically implemented as follows:

一种实现媒体协商的方法,该方法包括:A method for implementing media negotiation, the method comprising:

服务器获取至少两个协商的会话描述协议SDP消息体,每个所述协商的SDP消息体携带对同一个网络实体进行协商的媒体信息,所述协商的SDP消息体由媒体信息描述部分、定时信息描述部分和会话信息描述部分组成;The server acquires at least two negotiated Session Description Protocol SDP message bodies, each of the negotiated SDP message bodies carries media information negotiated with the same network entity, and the negotiated SDP message bodies consist of a media information description part, timing information The description part and the session information description part are composed;

服务器合并所述至少两个协商的SDP消息体,合并所述至少两个协商的SDP消息体包括:连接每个协商的SDP消息体的媒体信息描述部分,产生定时信息描述部分和会话信息描述部分;通过合并的SDP消息体与所述同一个网络实体进行媒体协商,得到协商后的SDP消息体,所述协商后的SDP消息体携带对所述同一个网络实体协商后的媒体信息;根据合并所述协商的SDP消息体的方式,分解所述协商后的SDP消息体;根据获取所述协商的SDP消息体的方式,发送分解的SDP消息体。The server merges the at least two negotiated SDP message bodies, and merging the at least two negotiated SDP message bodies includes: connecting the media information description part of each negotiated SDP message body, generating a timing information description part and a session information description part ; carry out media negotiation with the same network entity through the merged SDP message body, obtain the negotiated SDP message body, and the negotiated SDP message body carries the media information negotiated to the same network entity; according to the merged Decomposing the negotiated SDP message body according to the negotiated manner of the SDP message body; sending the decomposed SDP message body according to the manner of obtaining the negotiated SDP message body.

一种实现媒体协商的方法,该方法包括:A method for implementing media negotiation, the method comprising:

服务器获取一个协商的会话描述协议SDP消息体,所述协商的SDP消息体携带对至少两个网络实体进行协商的媒体信息,所述协商的SDP消息体由媒体信息描述部分、定时信息描述部分和会话信息描述部分组成;The server obtains a negotiated Session Description Protocol SDP message body, the negotiated SDP message body carries media information negotiated for at least two network entities, and the negotiated SDP message body consists of a media information description part, a timing information description part and The session information description part consists of;

服务器分解所述协商的SDP消息体,所述分解所述协商的SDP消息体包括:从所述协商的SDP消息体中提取出每个分解的SDP消息体中的媒体信息描述部分,将所述协商的SDP消息体中的定时信息描述部分和会话信息描述部分作为每个分解的SDP消息体中的定时信息描述部分和会话信息描述部分;The server decomposes the negotiated SDP message body, the decomposing the negotiated SDP message body includes: extracting the media information description part in each decomposed SDP message body from the negotiated SDP message body, and converting the The timing information description part and session information description part in the negotiated SDP message body are used as the timing information description part and session information description part in each decomposed SDP message body;

通过至少两个分解的SDP消息体与所述至少两个网络实体进行媒体协商,得到至少两个协商后的SDP消息体,每个所述协商后的SDP消息体携带对所述至少两个网络实体中的一个网络实体协商后的媒体信息;Perform media negotiation with the at least two network entities through at least two decomposed SDP message bodies to obtain at least two negotiated SDP message bodies, and each of the negotiated SDP message bodies carries information about the at least two networks media information negotiated by one of the network entities;

服务器按照分解所述协商的SDP消息体的方式,合并所述至少两个协商后的SDP消息体,根据获取所述协商的SDP消息体的方式,发送合并后的SDP消息体。The server merges the at least two negotiated SDP message bodies according to the manner of decomposing the negotiated SDP message bodies, and sends the merged SDP message bodies according to the manner of obtaining the negotiated SDP message bodies.

一种实现媒体协商的系统,该系统包括:服务器和第一网络实体;A system for realizing media negotiation, the system includes: a server and a first network entity;

所述的服务器,用于获取至少两个协商的会话描述协议SDP消息体,每个所述协商的SDP消息体携带对所述第一网络实体进行协商的媒体信息,所述协商的SDP消息体由媒体信息描述部分、定时信息描述部分和会话信息描述部分组成;连接每个协商的SDP消息体的媒体信息描述部分;产生定时信息描述部分和会话信息描述部分以合并所述至少两个协商的SDP消息体,通过合并的SDP消息体与所述第一网络实体进行媒体协商,得到协商后的SDP消息体,所述协商后的SDP消息体携带对所述第一网络实体协商后的媒体信息;根据合并所述协商的SDP消息体的方式,分解所述协商后的SDP消息体;根据获取所述协商的SDP消息体的方式,发送分解的SDP消息体;The server is configured to obtain at least two negotiated Session Description Protocol SDP message bodies, each of the negotiated SDP message bodies carries media information negotiated with the first network entity, and the negotiated SDP message bodies Consisting of a media information description part, a timing information description part and a session information description part; connecting the media information description part of each negotiated SDP message body; generating a timing information description part and a session information description part to merge the at least two negotiated SDP message body, performing media negotiation with the first network entity through the merged SDP message body to obtain a negotiated SDP message body, where the negotiated SDP message body carries media information negotiated for the first network entity ; Decomposing the negotiated SDP message body according to the method of merging the negotiated SDP message body; sending the decomposed SDP message body according to the method of obtaining the negotiated SDP message body;

所述第一网络实体,用于与服务器进行媒体协商。The first network entity is configured to perform media negotiation with the server.

一种实现媒体协商的系统,该系统包括:服务器和至少两个网络实体;A system for realizing media negotiation, the system includes: a server and at least two network entities;

所述的服务器,用于获取一个会话描述协议SDP消息体,所述SDP消息体携带对至少两个网络实体进行协商的媒体信息,所述协商的SDP消息体由媒体信息描述部分、定时信息描述部分和会话信息描述部分组成;从所述协商的SDP消息体中提取出每个分解的SDP消息体中的媒体信息描述部分,将所述协 商的SDP消息体中的定时信息描述部分和会话信息描述部分作为每个分解的SDP消息体中的定时信息描述部分和会话信息描述部分以分解所述SDP消息体;通过至少两个分解的SDP消息体与所述至少两个网络实体进行媒体协商,得到至少两个协商后的SDP消息体,所述协商后的SDP消息体携带与所述至少两个网络实体中的一个网络实体协商后的媒体信息;按照分解所述协商的SDP消息体的方式,合并所述至少两个协商后的SDP消息体,根据获取所述协商的SDP消息体的方式,发送合并后的SDP消息体;The server is configured to obtain a Session Description Protocol SDP message body, the SDP message body carries media information for negotiation between at least two network entities, and the negotiated SDP message body is described by a media information description part and timing information part and a session information description part; extract the media information description part in each decomposed SDP message body from the SDP message body of the negotiation, and combine the timing information description part and the session information part in the SDP message body of the negotiation The information description part is used as the timing information description part and the session information description part in each decomposed SDP message body to decompose the SDP message body; perform media negotiation with the at least two network entities through at least two decomposed SDP message bodies , obtaining at least two negotiated SDP message bodies, where the negotiated SDP message bodies carry media information negotiated with one of the at least two network entities; according to decomposing the negotiated SDP message bodies way, merging the at least two negotiated SDP message bodies, and sending the merged SDP message body according to the manner of obtaining the negotiated SDP message bodies;

所述的至少两个网络实体,用于与服务器进行媒体协商。The at least two network entities are used for media negotiation with the server.

一种实现媒体协商的服务器,该服务器包括:获取模块、合并模块、协商模块和分解模块;A server for realizing media negotiation, the server includes: an acquisition module, a combination module, a negotiation module and a decomposition module;

所述的获取模块,用于获取至少两个协商的会话描述协议SDP消息体,每个所述SDP消息体携带对同一个网络实体进行协商的媒体信息,所述协商的SDP消息体由媒体信息描述部分、定时信息描述部分和会话信息描述部分组成,将所述至少两个协商的SDP消息体发送到合并模块;The acquiring module is configured to acquire at least two negotiated Session Description Protocol SDP message bodies, each of the SDP message bodies carries media information negotiated with the same network entity, and the negotiated SDP message bodies consist of media information A description part, a timing information description part and a session information description part are composed, and the at least two negotiated SDP message bodies are sent to the merging module;

所述的合并模块,用于连接每个协商的SDP消息体的媒体信息描述部分,产生定时信息描述部分和会话信息描述部分以合并接收到的至少两个协商的SDP消息体,将合并的SDP消息体发送到协商模块;The merging module is used to connect the media information description part of each negotiated SDP message body, generate a timing information description part and a session information description part to merge at least two negotiated SDP message bodies received, and combine the SDP message body The message body is sent to the negotiation module;

所述的协商模块,用于通过接收到的合并的SDP消息体与所述同一个网络实体进行协商,得到协商后的SDP消息体,所述协商后的SDP消息体携带对所述同一个网络实体协商后的媒体信息;The negotiation module is configured to negotiate with the same network entity through the received merged SDP message body to obtain a negotiated SDP message body, and the negotiated SDP message body carries information about the same network entity. Media information negotiated by the entity;

所述的分解模块,用于根据合并所述协商的SDP消息体的方式,分解所述协商后的SDP消息体,根据获取所述协商的SDP消息体的方式,发送分解的SDP消息体。The decomposing module is configured to decompose the negotiated SDP message body according to the manner of merging the negotiated SDP message bodies, and send the decomposed SDP message body according to the manner of obtaining the negotiated SDP message body.

一种实现媒体协商的服务器,该服务器包括:获取模块、分解模块、协商模块和合并模块;A server for realizing media negotiation, the server includes: an acquisition module, a decomposition module, a negotiation module and a combination module;

所述的获取模块,用于获取一个协商的会话描述协议SDP消息体,所述协商的SDP消息体携带对至少两个网络实体进行协商的媒体信息,所述协商的 SDP消息体由媒体信息描述部分、定时信息描述部分和会话信息描述部分组成,将所述协商的SDP消息体发送到分解模块;The obtaining module is used to obtain a negotiated Session Description Protocol SDP message body, the negotiated SDP message body carries media information for at least two network entities to be negotiated, and the negotiated SDP message body is described by the media information part, a timing information description part and a session information description part, and send the negotiated SDP message body to the decomposition module;

所述的分解模块,用于从所述协商的SDP消息体中提取出每个分解的SDP消息体中的媒体信息描述部分,将所述协商的SDP消息体中的定时信息描述部分和会话信息描述部分作为每个分解的SDP消息体中的定时信息描述部分和会话信息描述部分以分解接收到的所述协商的SDP消息体,将分解得到的至少两个分解的SDP消息体发送到协商模块;The decomposing module is used to extract the media information description part in each decomposed SDP message body from the negotiated SDP message body, and combine the timing information description part and session information in the negotiated SDP message body The description part is used as the timing information description part and the session information description part in each decomposed SDP message body to decompose the received SDP message body of the negotiation, and send the decomposed at least two decomposed SDP message bodies to the negotiation module ;

所述的协商模块,用于通过接收到的至少两个分解的SDP消息体与所述至少两个网络实体进行媒体协商,得到至少两个协商后的SDP消息体,每个所述协商后的SDP消息体携带对所述至少两个网络实体中的一个网络实体协商后的媒体信息;The negotiation module is configured to perform media negotiation with the at least two network entities through the received at least two decomposed SDP message bodies to obtain at least two negotiated SDP message bodies, and each of the negotiated SDP message bodies The SDP message body carries media information negotiated for one of the at least two network entities;

所述的合并模块,用于按照分解所述协商的SDP消息体的方式,合并所述至少两个协商后的SDP消息体,根据获取所述协商的SDP消息体的方式,发送合并后的SDP消息体。The merging module is configured to merge the at least two negotiated SDP message bodies according to the manner of decomposing the negotiated SDP message bodies, and send the merged SDP according to the manner of obtaining the negotiated SDP message bodies message body.

由上述技术方案可见,本发明实施例提供的实现媒体协商的方法系统和服务器,通过服务器分解或合并SDP消息体,并利用分解或合并后的SDP消息体进行媒体协商,从而使得服务器能够作为一方对多个网络实体进行协商或作为多方与同一个网络实体进行媒体协商,实现了一方对多方或多方对一方的媒体协商。It can be seen from the above technical solutions that the method system and server for implementing media negotiation provided by the embodiments of the present invention decompose or merge the SDP message body through the server, and use the decomposed or merged SDP message body to perform media negotiation, so that the server can act as a party Negotiate with multiple network entities or perform media negotiation with the same network entity as multiple parties, realizing one-to-many or many-to-one media negotiation.

附图说明Description of drawings

图1为现有技术中实现回铃音业务媒体协商的方法流程图。FIG. 1 is a flow chart of a method for realizing media negotiation of a ring back tone service in the prior art.

图2为本发明第一个实施例中提供的实现媒体协商的系统示意图。Fig. 2 is a schematic diagram of a system for implementing media negotiation provided in the first embodiment of the present invention.

图3为本发明第二个实施例中提供的实现媒体协商的系统示意图。Fig. 3 is a schematic diagram of a system for realizing media negotiation provided in the second embodiment of the present invention.

图4为本发明第三个实施例中提供的实现媒体协商方法示意图。Fig. 4 is a schematic diagram of a method for implementing media negotiation provided in a third embodiment of the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案及优点更加清楚明白,以下参照附图并举实施例,对本发明作进一步详细说明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and examples.

以下的本发明实施例中,服务器可以作为多方与同一个网络实体进行协商,也可以作为一方与多个网络实体进行协商。In the following embodiments of the present invention, the server can negotiate with the same network entity as multiple parties, or can negotiate with multiple network entities as one party.

在服务器作为多方与同一个网络实体进行协商时,服务器获取至少两个协商的会话描述协议SDP消息体,每个所述协商的SDP消息体携带对同一个网络实体进行协商的媒体信息;服务器合并所述至少两个协商的SDP消息体;通过合并的SDP消息体与所述同一个网络实体进行媒体协商,得到协商后的SDP消息体,所述协商后的SDP消息体携带对所述同一个网络实体协商后的媒体信息。When the server negotiates with the same network entity as multiple parties, the server obtains at least two negotiated Session Description Protocol SDP message bodies, and each of the negotiated SDP message bodies carries the media information negotiated for the same network entity; the server merges The at least two negotiated SDP message bodies; performing media negotiation with the same network entity through the merged SDP message body to obtain a negotiated SDP message body, the negotiated SDP message body carrying the same Media information negotiated by network entities.

在服务器作为一方与多个网络实体进行协商时,服务器获取一个协商的SDP消息体,所述协商的SDP消息体携带对至少两个网络实体进行协商的媒体信息;服务器分解所述协商的SDP消息体;通过至少两个分解的SDP消息体与所述至少两个网络实体进行媒体协商,得到至少两个协商后的SDP消息体,每个所述协商后的SDP消息体携带对所述至少两个网络实体中的至少一个网络实体协商后的媒体信息。以下举三个具体实施例对本发明进行详细说明:When the server acts as a party to negotiate with multiple network entities, the server obtains a negotiated SDP message body, and the negotiated SDP message body carries media information negotiated with at least two network entities; the server decomposes the negotiated SDP message body; performing media negotiation with the at least two network entities through at least two decomposed SDP message bodies to obtain at least two negotiated SDP message bodies, and each of the negotiated SDP message bodies carries a pair of the at least two Media information negotiated by at least one of the network entities. Give three specific examples below and describe the present invention in detail:

实施例一:Embodiment one:

图2为本发明第一个实施例中提供的实现媒体协商的系统示意图。本发明第一个实施例给出了实现一方对多方媒体协商的系统,该系统包括:服务器和第一网络实体;Fig. 2 is a schematic diagram of a system for implementing media negotiation provided in the first embodiment of the present invention. The first embodiment of the present invention provides a system for realizing one-to-multi-party media negotiation, and the system includes: a server and a first network entity;

服务器获取至少两个协商的SDP消息体,每个协商的SDP消息体都携带了对第一网络实体进行协商的媒体信息,合并获取的至少两个协商的SDP消息体得到合并的SDP消息体,并通过合并的SDP消息体与第一网络实体进行媒体协商,得到协商后的SDP消息体,该协商后的SDP消息体携带对第一网 络实体协商后的媒体信息;而第一网络实体则用于与服务器进行媒体协商。The server obtains at least two negotiated SDP message bodies, each negotiated SDP message body carries media information negotiated with the first network entity, and merges the obtained at least two negotiated SDP message bodies to obtain a merged SDP message body, And carry out media negotiation with the first network entity through the SDP message body of merging, obtain the SDP message body after negotiation, the SDP message body after this negotiation carries the media information after negotiating to the first network entity; And the first network entity then Used for media negotiation with the server.

参见图2,本实施例为同下面的实施例加以区别,将服务器表示为作为多方的服务器第一单元210,并且本实施例中,作为一方的网络实体为SIP网络中的用户代理(UA,User Agent),表示为UA X230。Referring to Fig. 2, the present embodiment is different from the following embodiments, and the server is represented as the first unit 210 of the server as multiple parties, and in the present embodiment, the network entity as one party is a user agent (UA, UA, User Agent), denoted as UA X230.

本实施例中假设服务器第一单元210获取协商的SDP消息体,即来自UA1、UA2......UAm的SDPx1、SDPx2......SDPxn消息体,服务器第一单元210将获取的SDPx1、SDPx2......SDPxn消息体合并成SDP X消息体,并利用SDP X消息体与同一个网络实体UA X230进行协商,得到协商后的SDP消息体,即SDP Y消息体。In this embodiment, it is assumed that the first server unit 210 obtains the negotiated SDP message body, that is, the SDPx1, SDPx2...SDPxn message body from UA1, UA2...UAm, and the first server unit 210 will obtain The SDPx1, SDPx2...SDPxn message bodies are combined into the SDP X message body, and the SDP X message body is used to negotiate with the same network entity UA X230 to obtain the negotiated SDP message body, that is, the SDP Y message body.

本实施例中服务器第一单元210可以根据合并SDP X消息体的方法,将SDP Y消息体分解为SDPy1、SDPy2......SDPyn,在必要时,根据获取所述协商的SDP消息体的方式,发送分解得到的SDPy1、SDPy2......SDPyn中的任意一个或全部到相应的网络实体UA1、UA2......UAm。如图2中所示,服务器第一单元210包括获取模块211、合并模块212和协商模块213;In this embodiment, the first unit 210 of the server can decompose the SDP Y message body into SDPy1, SDPy2...SDPyn according to the method of merging the SDP X message body, and when necessary, obtain the negotiated SDP message body Send any one or all of the decomposed SDPy1, SDPy2...SDPyn to the corresponding network entities UA1, UA2...UAm. As shown in Figure 2, the server first unit 210 includes an acquisition module 211, a combination module 212 and a negotiation module 213;

获取模块211获取协商的SDP消息体,即SDPx1、SDPx2......SDPxn消息体,每个协商的SDP消息体携带对UA X230进行协商的媒体信息,将获取的SDPx1、SDPx2......SDPxn消息体发送到合并模块;The obtaining module 211 obtains the negotiated SDP message body, that is, SDPx1, SDPx2...SDPxn message body, each negotiated SDP message body carries the media information negotiated with UA X230, and the acquired SDPx1, SDPx2... ... the SDPxn message body is sent to the merge module;

合并模块212合并接收到的SDPx1、SDPx2......SDPxn消息体,将合并的SDP消息体,即SDP X消息体发送到协商模块213;Merging module 212 merges the SDPx1, SDPx2...SDPxn message body that receives, and the SDP message body of merging, that is, the SDP X message body is sent to the negotiation module 213;

协商模块213利用接收到合并的SDP消息体与UA X230进行协商,得到协商后的SDP消息体,即SDP Y消息体,SDP Y消息体携带对UA X230协商后的媒体信息。The negotiation module 213 negotiates with the UA X230 using the received merged SDP message body to obtain the negotiated SDP message body, that is, the SDP Y message body, and the SDP Y message body carries the media information negotiated by the UA X230.

服务器第一单元210还可以包括:分解模块214;The first server unit 210 may also include: a decomposition module 214;

分解模块214根据合并SDPx1、SDPx2......SDPxn的消息体的方式,分解协商后的SDPy1、SDPy2......SDPyn消息体,根据获取SDPx1、SDPx2......SDPxn消息体的方式,发送分解的SDP消息体SDPy1、SDPy2......SDPyn中的任意一个或全部到相应的网络实体220。The decomposing module 214 decomposes the negotiated SDPy1, SDPy2...SDPyn message bodies according to the method of merging the message bodies of SDPx1, SDPx2...SDPxn, and obtains SDPx1, SDPx2...SDPxn Any one or all of the decomposed SDP message bodies SDPy1 , SDPy2 . . . SDPyn are sent to the corresponding network entity 220 in a message body manner.

本实施例中的UA实体,可以是终端、媒体资源服务器、代理服务器等网络实体。当然,本实施例中的m和n可以相等也可以不相等,比如,具有两种网络功能的网络实体能够向服务器发送两个协商的SDP消息体,这时m不等于n。The UA entity in this embodiment may be a network entity such as a terminal, a media resource server, and a proxy server. Of course, m and n in this embodiment may or may not be equal. For example, a network entity with two network functions can send two negotiated SDP message bodies to the server, and m is not equal to n at this time.

由上述实施例可见,本发明实施例中的服务器第一单元通过合并来自至少两个网络实体的SDP消息体,并利用合并的SDP消息体与同一个网络实体进行协商,可以同时得到多个网络实体与同一个网络实体的协商结果,并且可以避免同一个网络实体多次通过服务器与另一方的网络实体进行交互,能够改善媒体丢失的问题,提高用户体验。It can be seen from the above embodiments that the first unit of the server in the embodiment of the present invention can obtain multiple network The negotiation result between the entity and the same network entity can prevent the same network entity from interacting with the other party's network entity through the server multiple times, which can improve the problem of media loss and improve user experience.

实施例二:Embodiment two:

图3为本发明第二个实施例中提供的实现媒体协商的系统示意图。本发明第二个实施例提供的是实现一方对多方系统,参见图3,该系统包括:服务器和至少两个网络实体;Fig. 3 is a schematic diagram of a system for realizing media negotiation provided in the second embodiment of the present invention. The second embodiment of the present invention provides a one-to-many system. Referring to FIG. 3, the system includes: a server and at least two network entities;

服务器获取一个协商的SDP消息体,该协商的SDP消息体携带对至少两个网络实体进行协商的媒体信息,服务器分解获取的SDP消息体,得到至少两个分解的SDP消息体,并利用至少两个分解的SDP消息体与至少两个网络实体进行媒体协商,得到至少两个协商后的SDP消息体,每个协商后的SDP消息体携带对所述至少两个网络实体中的一个网络实体协商后的媒体信息;至少两个网络实体,用于与服务器进行媒体协商。The server obtains a negotiated SDP message body, the negotiated SDP message body carries media information for negotiation between at least two network entities, the server decomposes the obtained SDP message body, obtains at least two decomposed SDP message bodies, and uses at least two A decomposed SDP message body performs media negotiation with at least two network entities to obtain at least two negotiated SDP message bodies, and each negotiated SDP message body carries a negotiation for one network entity in the at least two network entities The following media information; at least two network entities are used for media negotiation with the server.

参见图3,本实施例中为区别于第一个实施例中的服务器,将服务器表示为作为一方的服务器第二单元310,并且作为多方的至少两个网络实体为SIP网络中的m个UA实体,表示为UA1320、UA2320......UAm320;Referring to Fig. 3, in order to distinguish it from the server in the first embodiment in this embodiment, the server is represented as the server second unit 310 as one party, and at least two network entities as multiple parties are m UAs in the SIP network Entities, expressed as UA1320, UA2320...UAm320;

本实施例中,服务器第二单元310获取协商的SDP消息体为来自UA X330的SDP U消息体,该消息体中携带了对UA1320、UA2320......UAm320网络实体进行协商的媒体信息,将SDP U消息体分解为SDPu1、SDPu2......SDPun,利用服务器利用SDPu1、SDPu2......SDPun与UA1320、UA2320......UAm320进行协商,得到协商后的SDPv1、SDPv2......SDPvn。In this embodiment, the SDP message body obtained by the server second unit 310 for negotiation is the SDP U message body from UA X330, which carries the media information negotiated by UA1320, UA2320 ... UAm320 network entities , decompose the SDP U message body into SDPu1, SDPu2...SDPun, use the server to negotiate with UA1320, UA2320...UAm320 using SDPu1, SDPu2...SDPun, and get the negotiated SDPv1, SDPv2...SDPvn.

图3中的UAX330,可以在服务器第二单元310合并SDPu1、SDPu2......SDPun消息体后;在必要时,将合并的SDP消息体发送到UA X330。如图3中所示,服务器第二单元310还包括:获取模块311、分解模块312和协商模块313;UAX330 in Fig. 3, after server second unit 310 merges SDPu1, SDPu2...SDPun message body; When necessary, send the merged SDP message body to UA X330. As shown in Figure 3, the second server unit 310 also includes: an acquisition module 311, a decomposition module 312 and a negotiation module 313;

获取模块311获取一个协商的SDP消息体即SDP U消息体,SDP U消息体携带对UA1320、UA2320......UAm320进行协商的媒体信息,将SDP U消息体发送到分解模块312;Obtaining module 311 obtains a negotiated SDP message body, that is, SDP U message body, and SDP U message body carries media information negotiated to UA1320, UA2320...UAm320, and SDP U message body is sent to decomposition module 312;

分解模块312分解接收到的SDP U消息体,将分解得到的SDPu1、SDPu2......SDPun消息体发送到协商模块313;The decomposing module 312 decomposes the received SDPu message body, and the SDPu1, SDPu2...SDPun message body obtained by decomposing is sent to the negotiation module 313;

协商模块313,利用接收到的SDPu1、SDPu2......SDPun消息体与UA1320、UA2320......UAm320中的至少两个网络实体进行媒体协商,得到至少两个协商后的SDP消息体,SDPv1、SDPv2......SDPvn消息体,每个协商后的SDP消息体携带对所述UA1320、UA2320......UAm320中的至少一个网络实体协商后的媒体信息。The negotiation module 313 performs media negotiation with at least two network entities in UA1320, UA2320...UAm320 by using the received SDPu1, SDPu2...SDPun message body, and obtains at least two negotiated SDP Message body, SDPv1, SDPv2...SDPvn message body, each negotiated SDP message body carries media information negotiated for at least one network entity in the UA1320, UA2320...UAm320.

服务器第二单元310还可以包括:合并模块314;The second server unit 310 may also include: a merging module 314;

合并模块314按照分解所述协商的SDP消息体的方式,合并SDPv1、SDPv2......SDPvn消息体,并根据获取所述协商的SDP消息体的方式,将得到的合并的SDP消息体SDP V消息体发送到同一个网络实体UA X330。The merging module 314 merges the SDPv1, SDPv2...SDPvn message bodies according to the method of decomposing the negotiated SDP message body, and according to the method of obtaining the negotiated SDP message body, the obtained merged SDP message body The SDP V message body is sent to the same network entity UA X330.

本实施例中的UA实体,可以是终端、媒体资源服务器、代理服务器等网络实体。本实施例中的m和n同样可以相等也可以不相等。The UA entity in this embodiment may be a network entity such as a terminal, a media resource server, and a proxy server. In this embodiment, m and n may also be equal or unequal.

由上述实施例可见,本发明实施例中的服务器第二单元通过分解来自同一个网络实体的SDP消息体,并利用分解的SDP消息体与至少一个网络实体进行协商,可以避免同一个网络实体多次通过服务器与另一方的网络实体进行交互,能够改善媒体丢失的问题,提高用户体验。It can be seen from the above embodiments that the second unit of the server in the embodiment of the present invention can avoid multiple SDP messages from the same network entity by decomposing the SDP message body and using the decomposed SDP message body to negotiate with at least one network entity. Interacting with the network entity of the other party through the server for the first time can improve the problem of media loss and improve user experience.

实施例三:Embodiment three:

图4为本发明第三个实施例中提供的实现媒体协商方法示意图。本实施例以回铃音业务为例,由于本实施例中的服务器既作为多方进行协商也作为 一方进行协商,因而图4中的回铃音应用服务器包括第一个实施例中的服务器第一单元和第二个实施例中的服务器第二单元,具体步骤说明如下:Fig. 4 is a schematic diagram of a method for implementing media negotiation provided in a third embodiment of the present invention. The present embodiment takes the ring-back tone service as an example, because the server in the present embodiment both negotiates as a multi-party and also negotiates as a party, so the ring-back tone application server in Fig. 4 includes the server first in the first embodiment. unit and the server second unit in the second embodiment, the specific steps are as follows:

步骤401-步骤413为服务器作为多方与UE a进行媒体协商的过程。Step 401-step 413 is the process that the server performs media negotiation with UE a as multiple parties.

步骤401:UE a向回铃音应用服务器发送INVITE消息。Step 401: UE a sends an INVITE message to the RBT application server.

本实施例中,UE a作为主叫向回铃音应用服务器发送SIP协议的INVITE消息,以便通过回铃音应用服务器邀请被叫UE b进行通话请求,这里的回铃音应用服务器为UE b所归属的回铃音应用服务器。INVITE消息的消息体内携带了描述UE a的SDP1消息体,本实施例中,SDP1的内容如下:In this embodiment, UE a sends an INVITE message of the SIP protocol to the ring-back tone application server as the calling party, so that the called UE b is invited to make a call request through the ring-back tone application server, where the ring-back tone application server is provided by UE b The assigned ringback tone application server. The message body of the INVITE message carries the SDP1 message body describing UE a. In this embodiment, the content of SDP1 is as follows:

v=0v=0

o=APP1.0 10000 10000 IN IP4 10.164.104.58o=APP1.0 10000 10000 IN IP4 10.164.104.58

s=-s=-

c=IN IP4 10.164.104.58c=IN IP4 10.164.104.58

t=00t=00

m=audio 10500 RTP/AVP 97m=audio 10500 RTP/AVP 97

a=curr:qos local nonea=curr:qos local none

a=curr:qos remote nonea=curr:qos remote none

a=des:qos optional local sendrecva=des:qos optional local sendrecv

a=des:qos optional remote sendrecva=des:qos optional remote sendrecv

a=rtpmap:97 AMR/8000a=rtpmap:97 AMR/8000

a=fmtp:97 octet-align=1a=fmtp:97 octet-align=1

a=sendrecva=sendrecv

m=video 10510 RTP/AVP 34m=video 10510 RTP/AVP 34

b=AS:512b=AS:512

a=curr:qos local nonea=curr:qos local none

a=curr:qos remote nonea=curr:qos remote none

a=des:qos optional local sendrecva=des:qos optional local sendrecv

a=des:qos optional remote sendrecva=des:qos optional remote sendrecv

a=rtpmap:34 H263/90000a=rtpmap:34 H263/90000

a=fmtp:34 QCIF=1 CIF=4 MaxBR=3200a=fmtp:34 QCIF=1 CIF=4 MaxBR=3200

a=sendrecva=sendrecv

本实施例中,携带在SDP1消息体中的媒体信息包括UE a用于协商的音频媒体和视频媒体的媒体信息,每个媒体信息由一个m行和m行下面描述该媒体的所有属性行a行组成。In this embodiment, the media information carried in the SDP1 message body includes the media information of the audio media and video media used by UE a for negotiation, and each media information consists of an m line and the following m lines describe all attribute lines a of the media line composition.

通常,SDP消息体包括三级信息描述部分,分别是会话信息描述部分、定时信息描述部分和媒体信息描述部分。其中,v行到c行为会话信息描述部分,其中的o行属于会话信息描述部分,表示SDP协商发起者的信息和会话的标志符,包括6个参数,依次为用户名称、会话ID,会话版本、网络类型,地址类型、会话创建地址的描述信息;t行为定时信息描述部分,而以下部分为媒体信息描述部分,其中m行属于媒体信息描述部分,表示媒体描述信息,包括4个参数,依次表示为媒体类型、端口号、传输协议、具体媒体格式的描述信息;c行可以会话信息和媒体信息部分出现,表示连接信息,包括3个参数,依次为网络类型,地址类型和连接地址描述信息。本实施例中,c行出现在会话信息描述部分。Usually, the SDP message body includes three levels of information description parts, namely session information description part, timing information description part and media information description part. Among them, line v to c are the part of the session information description, and the line o belongs to the part of the session information description, indicating the information of the initiator of the SDP negotiation and the identifier of the session, including 6 parameters, which are user name, session ID, and session version in sequence , network type, address type, description information of the session creation address; the t line is the timing information description part, and the following part is the media information description part, wherein the m line belongs to the media information description part, indicating the media description information, including 4 parameters, followed by Expressed as media type, port number, transmission protocol, and description information of specific media formats; line c can appear in session information and media information, indicating connection information, including 3 parameters, followed by network type, address type, and connection address description information . In this embodiment, line c appears in the session information description part.

步骤402:回铃音应用服务器向UE b转发INVITE消息。Step 402: The RBT application server forwards the INVITE message to UE b.

本实施例中,回铃音应用服务器向UE b转发INVITE消息,该消息携带了描述UE a的SDP1消息体。In this embodiment, the ring-back tone application server forwards the INVITE message to UE b, and the message carries the SDP1 message body describing UE a.

步骤403:UE b向回铃音应用服务器发送183响应消息。Step 403: UE b sends a 183 response message to the RBT application server.

在UE b收到回铃音应用服务器转发的INVITE消息后,向回铃音应用服务器发送183响应消息。这里,183是可靠的临时响应。在183响应消息携带了描述UE b的SDP2消息体,本实施例中,SDP2的内容如下:After receiving the INVITE message forwarded by the ring-back tone application server, UE b sends a 183 response message to the ring-back tone application server. Here, 183 is a reliable provisional response. The 183 response message carries the SDP2 message body describing UE b. In this embodiment, the content of SDP2 is as follows:

v=0v=0

o=APP1.020004 20004 IN IP4 10.164.104.99o=APP1.020004 20004 IN IP4 10.164.104.99

s=-s=-

c=IN IP4 10.164.104.99c=IN IP4 10.164.104.99

t=00t=00

m=audio 10600RTP/AVP 97m=audio 10600RTP/AVP 97

a=curr :qos local nonea=curr :qos local none

a=curr:qos remote nonea=curr:qos remote none

a=des:qos optional local sendrecva=des:qos optional local sendrecv

a=des:qos optional remote sendrecva=des:qos optional remote sendrecv

a=rtpmap:97 AMR/8000a=rtpmap:97 AMR/8000

a=fmtp:97 octet-align=1a=fmtp:97 octet-align=1

a=sendrecva=sendrecv

m=video 10610 RTP/AVP 34m=video 10610 RTP/AVP 34

b=AS:512b=AS:512

a=curr:qos local nonea=curr:qos local none

a=curr:qos remote nonea=curr:qos remote none

a=des:qos optional local sendrecva=des:qos optional local sendrecv

a=des:qos optional remote sendrecva=des:qos optional remote sendrecv

a=rtpmap:34 H263/90000a=rtpmap:34 H263/90000

a=fmtp:34 QCIF=1 CIF=4 MaxBR=3200a=fmtp:34 QCIF=1 CIF=4 MaxBR=3200

a=sendrecva=sendrecv

本实施例中,携带在SDP2消息体中的媒体信息包括UE b用于协商的音频媒体和视频媒体的媒体信息,即SDP2消息体中的m行和相应媒体的所有属性行a行信息。In this embodiment, the media information carried in the SDP2 message body includes the media information of the audio media and video media used by UE b for negotiation, that is, the m line in the SDP2 message body and all attribute line a line information of the corresponding media.

步骤404:回铃音应用服务器向UE a转发183响应消息。Step 404: The ring-back tone application server forwards the 183 response message to UE a.

本实施例中,在183响应消息携带了描述UE b的SDP2消息体。In this embodiment, the 183 response message carries the SDP2 message body describing UE b.

步骤405:UE a向回铃音应用服务器发送PRACK消息。Step 405: UE a sends a PRACK message to the RBT application server.

本实施例中,在UE a收到183响应后,发送PRACK消息到回铃音应用服务器,本步骤用于进行再次协商,并在PRACK消息中,携带用于协商的SDP3消息体,如果不需要再次协商可以不携带SDP3消息体。本实施例假设没有再次协商。In this embodiment, after UE a receives the 183 response, it sends a PRACK message to the ringback tone application server. This step is used for renegotiation, and in the PRACK message, it carries the SDP3 message body used for negotiation. If no The renegotiation may not carry the SDP3 message body. This embodiment assumes that there is no renegotiation.

步骤406:回铃音应用服务器向UE b转发PRACK消息。Step 406: The ring-back tone application server forwards the PRACK message to UE b.

步骤407:UE b向回铃音应用服务器发送200OK响应消息。Step 407: UE b sends a 200 OK response message to the RBT application server.

本实施例中,UE b收到PRACK消息后,发送200OK响应到回铃音应用服务器。如果在步骤405中PRACK消息中携带了用于再次协商的SDP3消息体,则在本步骤中的200OK响应中相应携带协商后的SDP4。本实施例中由于没有再次协商,因而没有SDP4消息体。In this embodiment, after UE b receives the PRACK message, it sends a 200 OK response to the ringback tone application server. If the SDP3 message body for renegotiation is carried in the PRACK message in step 405, then the negotiated SDP4 is correspondingly carried in the 200 OK response in this step. In this embodiment, since there is no re-negotiation, there is no SDP4 message body.

步骤408:回铃音应用服务器向UE a转发200OK响应消息。Step 408: The RBT application server forwards the 200 OK response message to UE a.

步骤409:回铃音应用服务器向MRS发送INVITE消息。Step 409: The RBT application server sends an INVITE message to the MRS.

本实施例中,回铃音应用服务器重新创建一个新的INVITE消息,该消息中不携带SDP信息。In this embodiment, the RBT application server recreates a new INVITE message, which does not carry SDP information.

步骤410:MRS向回铃音应用服务器发送200OK响应消息。Step 410: The MRS sends a 200 OK response message to the RBT application server.

本实施例中,在MRS收到步骤409中的INVITE消息之后,发送200OK响应到回铃音应用服务器。该响应中携带描述自己的SDP5消息体,本实施例中,SDP5的内容如下:In this embodiment, after the MRS receives the INVITE message in step 409, it sends a 200 OK response to the RBT application server. Carry the SDP5 message body describing oneself in this response, in the present embodiment, the content of SDP5 is as follows:

v=0v=0

o=-4654229 4654229 IN IP4ims_mpco=-4654229 4654229 IN IP4ims_mpc

s=media server sessions = media server session

c=IN IP4 10.164.71.233c=IN IP4 10.164.71.233

t=00t=00

m=audio 36060 RTP/AVP 97m=audio 36060 RTP/AVP 97

a=rtpmap:97 AMR/8000a=rtpmap:97 AMR/8000

a=fmtp:97 octet-align=1;mode-set=0,1,2,3,4,5,6,7a=fmtp:97 octet-align=1; mode-set=0, 1, 2, 3, 4, 5, 6, 7

a=sendonlya=sendonly

m=video 32840 RTP/AVP 34m=video 32840 RTP/AVP 34

b=AS:384b=AS:384

a=rtpmap:34 H263/90000a=rtpmap:34 H263/90000

a=fmtp:34 CIF=4a=fmtp:34 CIF=4

a=sendonlya=sendonly

本实施例中,携带在SDP5消息体中的媒体信息包括MRS用于协商的音频媒体和视频媒体的媒体信息,即SDP5消息体中的m行和相应媒体的所 有属性行a行信息。In this embodiment, the media information carried in the SDP5 message body includes the media information of the audio media and video media used by the MRS for negotiation, that is, the m line in the SDP5 message body and the information of all attribute lines a of the corresponding media.

步骤411:回铃音应用服务器向UE a发送UPDATE消息。Step 411: The ring-back tone application server sends an UPDATE message to UE a.

回铃音应用服务器收到步骤410中的200OK响应之后,发送UPDATE消息到UE a,UPDATE消息中携带SDP6消息体,SDP6为步骤403中的SDP2和步骤410中的SDP5进行合并后得到的,如果在步骤407中PRACK消息中携带SDP4消息体,则SDP6为步骤407中的SDP4和步骤410中的SDP5进行合并后得到的。合并方法为:如果连接信息c行在会话信息描述部分出现,那么每个媒体信息描述部分中的m行都会使用这个c行,即将c行复制到媒体信息描述部分,本实施例中将c行复制到m行的下面一行,如果m行有自己的c行,那么就采用自己的c行。After the ring-back tone application server receives the 200OK response in step 410, it sends an UPDATE message to UE a, and the UPDATE message carries the SDP6 message body, and SDP6 is obtained after merging SDP2 in step 403 and SDP5 in step 410, if In step 407, the PRACK message carries the SDP4 message body, and then SDP6 is obtained by combining SDP4 in step 407 and SDP5 in step 410. The merging method is as follows: if the connection information c line appears in the session information description part, then the m lines in each media information description part will use this c line, that is, the c line will be copied to the media information description part, and the c line will be used in this embodiment Copy it to the line below line m, if line m has its own line c, then use its own line c.

本实施例中c行在会话信息描述部分出现,并且,由于SDP2消息体为第二次协商,而SDP5消息体为第一次协商,在对SDP2和SDP5消息体合并时,需要将SDP5消息体中的媒体信息描述部分连接到SDP2消息体的,媒体信息描述部分的后面,并增加存储的第一次协商时SDP2消息体的会话版本号。具体合并方法为:将SDP5中的c行分别放到每个m行中,然后将SDP5中的媒体信息描述部分中的每个媒体的详细信息,即一个m行和描述该媒体的所有属性行,放到SDP2消息体媒体信息描述部分的后面,并将存储的SDP2消息体中的o行中的会话版本号增加1,表示是对SDP2消息体修改得到的。In this embodiment, line c appears in the session information description part, and since the SDP2 message body is the second negotiation, and the SDP5 message body is the first negotiation, when merging the SDP2 and SDP5 message bodies, the SDP5 message body needs to be The media information description part in is connected to the end of the media information description part of the SDP2 message body, and the session version number of the SDP2 message body stored at the time of the first negotiation is added. The specific merging method is: put the c line in SDP5 into each m line respectively, and then put the detailed information of each media in the media information description part in SDP5, that is, one m line and all attribute lines describing the media , put it behind the media information description part of the SDP2 message body, and increase the session version number in the o line in the stored SDP2 message body by 1, indicating that it is obtained by modifying the SDP2 message body.

这时根据本实施例中的SDP2和SDP5消息体内容,得到合并后的SDP6消息体的内容如下:At this time, according to the SDP2 and SDP5 message body content in the present embodiment, the content of the SDP6 message body after the merger is obtained as follows:

v=0v=0

o=APP1.0 20004 20005 IN IP4 10.164.104.99o=APP1.0 20004 20005 IN IP4 10.164.104.99

s=-s=-

t=00t=00

m=audio 10600 RTP/AVP 97m=audio 10600 RTP/AVP 97

c=IN IP4 10164.104.99c=IN IP4 10164.104.99

a=curr:qos local nonea=curr:qos local none

a=curr:qos remote nonea=curr:qos remote none

a=des:qos optional local sendrecva=des:qos optional local sendrecv

a=des:qos optional remote sendrecva=des:qos optional remote sendrecv

a=rtpmap:97 AMR/8000a=rtpmap:97 AMR/8000

a=fmtp:97 octet-align=1a=fmtp:97 octet-align=1

a=sendrecva=sendrecv

m=video 10610 RTP/AVP 34m=video 10610 RTP/AVP 34

c=IN IP4 10.164.104.99c=IN IP4 10.164.104.99

b=AS:512b=AS:512

a=curr:qos local nonea=curr:qos local none

a=curr:qos remote nonea=curr:qos remote none

a=des:qos optional local sendrecva=des:qos optional local sendrecv

a=des:qos optional remote sendrecva=des:qos optional remote sendrecv

a=rtpmap:34 H263/90000a=rtpmap:34 H263/90000

a=fmtp:34 QCIF=1 CIF=4 MaxBR=3200a=fmtp:34 QCIF=1 CIF=4 MaxBR=3200

a=sendrecva=sendrecv

m=audio 36060 RTP/AVP 97m=audio 36060 RTP/AVP 97

c=IN IP4 10.164.71.233c=IN IP4 10.164.71.233

a=rtpmap:97 AMR/8000a=rtpmap:97 AMR/8000

a=fmtp:97 octet-align=1;mode-set=0,1,2,3,4,5,6,7a=fmtp:97 octet-align=1; mode-set=0, 1, 2, 3, 4, 5, 6, 7

a=sendonlya=sendonly

m=video 32840 RTP/AVP 34m=video 32840 RTP/AVP 34

c=IN IP4 10.164.71.233c=IN IP4 10.164.71.233

b=AS:384b=AS:384

a=rtpmap:34 H263/90000a=rtpmap:34 H263/90000

a=fmtp:34 CIF=4a=fmtp:34 CIF=4

a=sendonlya=sendonly

本实施例中,携带在SDP6消息体中的媒体信息包括MRS用于协商的音频媒体和视频媒体的媒体信息和UE b用于协商的音频媒体和视频媒体的 媒体信息,即前面两个媒体信息对应于UE b用于协商的媒体信息,而后面两个媒体信息对应于MRS用于协商的媒体信息。In this embodiment, the media information carried in the SDP6 message body includes the media information of the audio media and video media used by MRS for negotiation and the media information of audio media and video media used by UE b for negotiation, that is, the first two media information Corresponds to the media information used by UE b for negotiation, and the latter two media information corresponds to the media information used by MRS for negotiation.

如果本实施例中的SDP2和SDP5消息体的协商次数相同,如果是都是第一次协商则任意顺序连接SDP2和SD5消息体。如果曾进行协商过,则用曾经使用过的顺序连接SDP2和SD5消息体。If the times of negotiation of the SDP2 and SDP5 message bodies in this embodiment are the same, if it is the first negotiation, the SDP2 and SD5 message bodies are connected in any order. If negotiated, the SDP2 and SD5 message bodies are concatenated in the order that was used.

如果本实施例采用的再次协商得到了SDP4消息体,则本步骤应改为由SDP4和SDP5消息进行合并。If the SDP4 message body is obtained through re-negotiation in this embodiment, then this step should be changed to merge the SDP4 and SDP5 messages.

步骤412:UE a向回铃音应用服务器发送200OK响应消息。Step 412: UE a sends a 200 OK response message to the RBT application server.

本实施例中,UE a在收到步骤411中的UPDATE消息后,发送200OK响应到回铃音应用服务器,其中携带了协商后的SDP7消息体。具体地说,SDP7是UE a对于SDP6所做出的应答,也就是在UE a和UE b协商结果的基础上,还增加了UE a和MRS协商的结果,本实施列中,SDP7的内容如下:In this embodiment, after receiving the UPDATE message in step 411, UE a sends a 200 OK response to the ring-back tone application server, which carries the negotiated SDP7 message body. Specifically, SDP7 is the response made by UE a to SDP6, that is, on the basis of the negotiation result between UE a and UE b, the result of negotiation between UE a and MRS is also added. In this embodiment, the content of SDP7 is as follows :

v=0v=0

o=APP1.0 10000 10001 IN IP4 10.164.104.58o=APP1.0 10000 10001 IN IP4 10.164.104.58

s=-s=-

c=IN IP4 10.164.104.58c=IN IP4 10.164.104.58

t=00t=00

m=audio 10500 RTP/AVP 97m=audio 10500 RTP/AVP 97

a=curr:qos local nonea=curr:qos local none

a=curr:qos remote nonea=curr:qos remote none

a=des:qos optional local sendrecva=des:qos optional local sendrecv

a=des:qos optional remote sendrecva=des:qos optional remote sendrecv

a=rtpmap:97 AMR/8000a=rtpmap:97 AMR/8000

a=fmtp:97 octet-align=1a=fmtp:97 octet-align=1

a=sendrecva=sendrecv

m=video 10510 RTP/AVP 34m=video 10510 RTP/AVP 34

b=AS:512b=AS:512

a=curr:qos local nonea=curr:qos local none

a=curr:qos remote nonea=curr:qos remote none

a=des:qos optional local sendrecva=des:qos optional local sendrecv

a=des:qos optional remote sendrecva=des:qos optional remote sendrecv

a=rtpmap:34 H263/90000a=rtpmap:34 H263/90000

a=fmtp:34 QCIF=1 CIF=4 MaxBR=3200a=fmtp:34 QCIF=1 CIF=4 MaxBR=3200

a=sendrecva=sendrecv

m=audio 10600 RTP/AVP 97m=audio 10600 RTP/AVP 97

a=rtpmap:97 AMR/8000a=rtpmap:97 AMR/8000

a=fmtp:97 octet-align=1;mode-set=0,1,2,3,4,5,6,7a=fmtp:97 octet-align=1; mode-set=0, 1, 2, 3, 4, 5, 6, 7

a=sendonlya=sendonly

m=video 10610 RTP/AVP 34m=video 10610 RTP/AVP 34

b=AS:384b=AS:384

a=rtpmap:34 H263/90000a=rtpmap:34 H263/90000

a=fmtp:34 CIF=4a=fmtp:34 CIF=4

a=sendonlya=sendonly

本实施例中,携带在SDP7消息体中的媒体信息包括UE a和UE b协商后的音频媒体和视频媒体的媒体信息和UE a和MRS协商后的音频媒体和视频媒体的媒体信息,即前面两个媒体信息对应于UE a和UE b协商后的媒体信息,而后面两个媒体信息对应于UE a和MRS协商后的媒体信息。In this embodiment, the media information carried in the SDP7 message body includes media information of audio media and video media after negotiation between UE a and UE b and media information of audio media and video media after negotiation between UE a and MRS, that is, the preceding The two media information correspond to the media information negotiated between UE a and UE b, and the latter two media information correspond to the media information negotiated between UE a and MRS.

步骤413:回铃音应用服务器向MRS发送ACK消息。Step 413: The RBT application server sends an ACK message to the MRS.

本实施例中,回铃音应用服务器在收到步骤412中200OK响应后,对该响应消息中所携带的SDP7进行分解,本实施例中,回铃音应用服务器根据合并方法,将SDP7中对应与SDP5的媒体资源信息提取出来,作为SDP8。并在回铃音应用服务器向MRS发送ACK消息中携带SDP8消息体。该ACK消息为针对步骤410中200OK响应消息的确认消息。由于SDP的提供和应答模式是一一对应的关系,因此SDP8即为对应与SDP7中SDP5部分的应答,本实施例中,SDP8的内容如下:In this embodiment, after receiving the 200 OK response in step 412, the ring-back tone application server decomposes the SDP7 carried in the response message. In this embodiment, the ring-back tone application server decomposes the corresponding The media resource information related to SDP5 is extracted as SDP8. And the SDP8 message body is carried in the ACK message sent by the ring back tone application server to the MRS. The ACK message is an acknowledgment message for the 200 OK response message in step 410 . Since the provision of SDP and the response mode are in a one-to-one relationship, SDP8 is the response corresponding to the SDP5 part in SDP7. In this embodiment, the content of SDP8 is as follows:

v=0v=0

o=APP1.0 10000 10001 IN IP4 10.164.104.58o=APP1.0 10000 10001 IN IP4 10.164.104.58

s=-s=-

c=IN IP4 10.164.104.58c=IN IP4 10.164.104.58

t=00t=00

m=audio 10600 RTP/AVP 97m=audio 10600 RTP/AVP 97

a=rtpmap:97 AMR/8000a=rtpmap:97 AMR/8000

a=fmtp:97 octet-align=1;mode-set=0,1,2,3,4,5,6,7a=fmtp:97 octet-align=1; mode-set=0, 1, 2, 3, 4, 5, 6, 7

a=sendonlya=sendonly

m=video 10610 RTP/AVP 34m=video 10610 RTP/AVP 34

b=AS:384b=AS:384

a=rtpmap:34 H263/90000a=rtpmap:34 H263/90000

a=fmtp:34 CIF=4a=fmtp:34 CIF=4

a=sendonlya=sendonly

在必要时,也可以采用相同的方法提取出对应于UE b的协商后的媒体信息。When necessary, the same method can also be used to extract the negotiated media information corresponding to UE b.

步骤414到步骤420是资源预留的过程,该过程为可选过程,该过程服务器作为一方与UE b和MRS进行媒体协商。Steps 414 to 420 are the process of resource reservation, which is an optional process. In this process, the server performs media negotiation with UE b and MRS as a party.

步骤414:UE a向回铃音应用服务器发送UPDATE消息。Step 414: UE a sends an UPDATE message to the RBT application server.

本实施例中,UE a发送包含资源预留成功信息的UPDATE消息到回铃音应用服务器,该资源预留成功信息包含在SDP9消息体中。In this embodiment, UE a sends an UPDATE message including resource reservation success information to the ring back tone application server, and the resource reservation success information is included in the SDP9 message body.

步骤415:回铃音应用服务器向UE b发送UPDATE消息。Step 415: The ring-back tone application server sends an UPDATE message to UE b.

本实施例中,回铃音应用服务器收到UPDATE消息后,将SDP9消息体根据合并的方法分解为2个部分,分别是:描述UE b的SDP10和描述MRS的SDP11。回铃音应用服务器发送UPDATE消息到UE b,该UPDATE消息中携带SDP10消息体。分解的方法为:从SDP9消息体中提取出SDP10和SDP11消息体中的媒体信息描述部分;将SDP9消息体中的定时信息描述部分和会话信息描述部分作为SDP10和SDP11消息体中的定时信息描述部分和会话信息描述部分。提取方法是:根据合并SDP消息体时对媒体信息 描述部分采用的连接顺序,进行提取。In this embodiment, after the ring-back tone application server receives the UPDATE message, the SDP9 message body is decomposed into two parts according to the method of merging, which are respectively: SDP10 describing UE b and SDP11 describing MRS. The ringback tone application server sends an UPDATE message to UE b, and the UPDATE message carries the SDP10 message body. The decomposition method is: extract the media information description part in the SDP10 and SDP11 message body from the SDP9 message body; use the timing information description part and the session information description part in the SDP9 message body as the timing information description in the SDP10 and SDP11 message body section and the session information description section. The extraction method is: extract according to the connection sequence adopted for the media information description part when merging the SDP message body.

步骤416:回铃音应用服务器向MRS发送再次邀请(REINVITE)消息。Step 416: The RBT application server sends a REINVITE message to the MRS.

本实施例中,回铃音应用服务器发送REINVITE消息到MRS,REINVITE携带了步骤415中的SDP11消息体。In this embodiment, the RBT application server sends a REINVITE message to the MRS, and the REINVITE carries the SDP11 message body in step 415 .

步骤417:MRS向回铃音应用服务器发送200OK响应消息。Step 417: The MRS sends a 200 OK response message to the RBT application server.

本实施例中,MRS收到REINVITE消息后,发送200OK响应到回铃音应用服务器。其中,该消息中携带了包含MRS的资源预留信息的SDP12消息体。In this embodiment, after receiving the REINVITE message, the MRS sends a 200 OK response to the RBT application server. Wherein, the message carries the SDP12 message body including the resource reservation information of the MRS.

步骤418:回铃音应用服务器向MRS发送ACK消息。Step 418: The RBT application server sends an ACK message to the MRS.

本实施例中,回铃音应用服务器收到200OK响应消息后,发送ACK消息到MRS。In this embodiment, after receiving the 200 OK response message, the RBT application server sends an ACK message to the MRS.

步骤419:UE b向回铃音应用服务器发送200OK响应消息。Step 419: UE b sends a 200 OK response message to the RBT application server.

本实施例中,UE b收到步骤415中的UPDATE消息后,发送200OK响应到回铃音应用服务器,其中,该200OK响应消息中携带了包含UE b的资源预留信息的SDP13消息体。In this embodiment, after UE b receives the UPDATE message in step 415, it sends a 200 OK response to the ring-back tone application server, wherein the 200 OK response message carries the SDP13 message body containing the resource reservation information of UE b.

步骤420:回铃音应用服务器向UE a发送200OK响应消息。Step 420: The ring back tone application server sends a 200 OK response message to UE a.

本实施例中,回铃音应用服务器按照步骤11中的合并方法将SDP13和SDP12合并成SDP14,并在向UE a发送的针对步骤14中UPDATE消息的200OK响应消息中,携带包含资源预留信息的SDP14消息体。In this embodiment, the ring-back tone application server merges SDP13 and SDP12 into SDP14 according to the merging method in step 11, and carries resource reservation information in the 200 OK response message to the UPDATE message in step 14 sent to UE a The SDP14 message body.

步骤421-步骤439为媒体交换过程。Step 421-step 439 is the process of media exchange.

步骤421-步骤428与现有技术中的步骤112-119相同,这里不一一赘述。Steps 421 to 428 are the same as steps 112 to 119 in the prior art, and will not be repeated here.

步骤429:UE b向回铃音应用服务器发送200OK响应消息。Step 429: UE b sends a 200 OK response message to the RBT application server.

本实施例中,在UE b接受会话后,发送针对步骤2中INVITE消息的200OK响应到回铃音应用服务器。In this embodiment, after UE b accepts the session, it sends a 200 OK response to the INVITE message in step 2 to the ringback tone application server.

步骤430:回铃音应用服务器转发200OK响应消息到UE a。Step 430: The RBT application server forwards the 200 OK response message to UE a.

步骤431:回铃音应用服务器向MRS发送BYE消息。Step 431: The RBT application server sends a BYE message to the MRS.

本实施例中,回铃音应用服务器发送BYE消息到MRS,结束回铃音的 播放。In this embodiment, the ring-back tone application server sends a BYE message to the MRS to end the playback of the ring-back tone.

步骤432:MRS向回铃音应用服务器发送200OK响应消息。Step 432: The MRS sends a 200 OK response message to the RBT application server.

步骤433:UE a向回铃音应用服务器发送ACK消息。Step 433: UE a sends an ACK message to the RBT application server.

步骤434回铃音应用服务器向UE b转发ACK消息。Step 434: The ring-back tone application server forwards the ACK message to UE b.

步骤435回铃音应用服务器向UE a发送REINVITE消息。Step 435: The RBT application server sends a REINVITE message to UE a.

本实施例中,回铃音应用服务器发送REINVITE消息到UE a,该消息中携带SDP15消息体,SDP15的作用是来关闭UE a和MRS之间的媒体连接,也就是,将UE a和MRS之间的m行的端口置为0。In this embodiment, the ring-back tone application server sends a REINVITE message to UE a, and the message carries an SDP15 message body. The function of SDP15 is to close the media connection between UE a and MRS, that is, connect UE a and MRS The ports of the m rows between are set to 0.

步骤436:UE a向回铃音应用服务器发送200OK 响应消息。Step 436: UE a sends a 200 OK response message to the RBT application server.

本实施例中,UE a收到REINVITE消息后,发送200OK响应消息到回铃音应用服务器,其中携带SDP16消息体。SDP16中对应于MRS的媒体端口置为0。In this embodiment, after receiving the REINVITE message, UE a sends a 200 OK response message to the ring-back tone application server, which carries the SDP16 message body. The media port corresponding to the MRS in SDP16 is set to 0.

步骤437:回铃音应用服务器向UE a发送ACK消息。Step 437: The ring-back tone application server sends an ACK message to UE a.

本实施例中,回铃音应用服务器收到步骤436中的200OK响应消息后,发送ACK消息到UE a。In this embodiment, after receiving the 200 OK response message in step 436, the ring-back tone application server sends an ACK message to UE a.

步骤438步骤439与现有技术中的步骤128-129相同,这里不一一赘述。Step 438 and step 439 are the same as steps 128-129 in the prior art, and will not be repeated here.

由上述实施例可见,本发明实施例在建立回铃音业务过程中,由于UE a和MRS、UE b媒体协商是同时进行的,因而避免了现有技术中当UE b接听通话时,由于UE a和UE b没有建立媒体连接,而造成的媒体丢失问题,能够提高用户体验。It can be seen from the above-mentioned embodiments that in the embodiment of the present invention, in the process of setting up the ring back tone service, because the media negotiation between UE a, MRS, and UE b is carried out at the same time, it avoids that when UE b answers the call in the prior art, due to UE A and UE b do not establish a media connection, resulting in media loss, which can improve user experience.

本发明实施例中合并SDP消息体的方法还可以为:在针对每个SDP消息体中的媒体信息描述部分连接顺序后,设置相应的媒体属性标记,则在分解SDP消息体时,根据设置的媒体属性标记提取出每个分解的SDP消息体。The method for merging the SDP message body in the embodiment of the present invention can also be: after describing the partial connection sequence for the media information in each SDP message body, set the corresponding media attribute mark, then when decomposing the SDP message body, according to the set Media attribute tags are extracted from each disassembled SDP message body.

本发明实施例适用于采用SDP消息体进行协商的通信领域。The embodiment of the present invention is applicable to the communication field where the SDP message body is used for negotiation.

以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims (13)

1. a method that realizes media negotiation is characterized in that, this method comprises:
Server obtains Session Description Protocol SDP message body of at least two negotiations, the SDP message body of each described negotiation is carried the media information that same network entity is held consultation, and the SDP message body of described negotiation is described part, timing information description part and session information description part by media information and formed;
Server merges SDP message body of described at least two negotiations, and the SDP message body that merges described at least two negotiations comprises: the media information that connects the SDP message body of each negotiation is described part, produces timing information description part and session information and describes part; Carry out media negotiation by SDP message body and the described same network entity that merges, SDP message body after obtaining consulting, the SDP message body after the described negotiation is carried the media information after the described same network entity negotiation;
Server is according to the mode of the SDP message body that merges described negotiation, decomposes SDP message body after the described negotiation; According to the mode of the SDP message body of obtaining described negotiation, send SDP message body that decomposes.
2. the method for realization media negotiation according to claim 1 is characterized in that, the media information of the SDP message body of described each negotiation of connection is described part and comprised:
The media information that connects the SDP message body of each negotiation of consulting for the first time with random order is described part, and/or part is described with the media information that the order of connection that once adopted connects the SDP message body of each negotiation with identical negotiation number of times, and/or to consult the descending of number of times, the media information that connects the SDP message body of each negotiation is described part.
3. the method for realization media negotiation according to claim 1, it is characterized in that, described connection media information further comprises before describing part: the link information that the SDP message body session information that will appear at each negotiation is described part copies to the media information of the SDP message body of each negotiation and describes part.
4. according to the method for claim 1,2 or 3 described realization media negotiations, it is characterized in that described generation timing information describes part and session information description part comprises:
Determine that link information occurs in session information description part, if the negotiation number of times difference of the SDP message body of two negotiations, number increase by 1 of session version in the SDP message body that the negotiation number of times of storage is more, and after deleting the link information of session information description part in this SDP message body, part is described as the session information of the SDP message body that merges; If the negotiation number of times of the SDP message body of two negotiations is identical, if all be to consult for the first time, then random order connects SDP message body of two negotiations, if once held consultation, then uses SDP message body of used two negotiations that are linked in sequence once;
Describe part when identical at the timing information of the SDP of two negotiations message body, the timing information that this is identical is described part and is described part as the timing information of the SDP message body that merges.
5. the method for realization media negotiation according to claim 1 is characterized in that, described method of carrying out media negotiation by the SDP message body and the described same network entity of merging comprises:
Server sends SDP message body that merges to described same network entity;
Server obtains SDP message body after the negotiation that described same network entity sends, and the SDP message body after the described negotiation is carried the media information after the negotiation that described same network entity produces according to the SDP message body that merges.
6. the method for realization media negotiation according to claim 1 is characterized in that, the SDP message body after the described negotiation is described part, timing information description part and session information description part by media information and formed;
SDP message body after the described negotiation of described decomposition comprises: when merging the SDP message body of described at least two negotiations, the media information that connects in the SDP message body of each negotiation is described the order of connection that part is adopted, the media information that extracts the SDP message body after described negotiation in the SDP message body of each decomposition is described part, perhaps describe the medium property mark of the part order of connection according to what be provided with at each media information, the media information that extracts in the SDP message body of each decomposition is described part; Timing information in the SDP message body after the described negotiation is described part and session information describe that part is described partly as the timing information in the SDP message body of each decomposition and session information is described part.
7. a method that realizes media negotiation is characterized in that, this method comprises:
Server obtains Session Description Protocol SDP message body of a negotiation, the SDP message body of described negotiation is carried the media information that at least two network entities are held consultation, and the SDP message body of described negotiation is described part, timing information description part and session information description part by media information and formed;
Server decomposes SDP message body of described negotiation, the SDP message body of the described negotiation of described decomposition comprises: the media information that extracts from the SDP message body of described negotiation in the SDP message body of each decomposition is described part, the timing information in the SDP message body of described negotiation is described part and session information describe that part is described partly as the timing information in the SDP message body of each decomposition and session information is described part;
SDP message body and described at least two network entities by at least two decomposition carry out media negotiation, obtain SDP message body after at least two negotiations, the media information after the SDP message body after each described negotiation is carried a network entity in described at least two network entities consulted;
Server is according to the mode of the SDP message body of decomposing described negotiation, merges SDP message body after described at least two negotiations, according to the mode of the SDP message body of obtaining described negotiation, sends SDP message body after the merging.
8. the method for realization media negotiation according to claim 7, it is characterized in that, the described media information that extracts is described part and is comprised: when producing the SDP message body of consulting, each media information is described the order of connection that part is adopted, perhaps describe the medium property mark of the part order of connection according to what be provided with at each media information, the media information that extracts in the SDP message body of each decomposition is described part.
9. the method for realization media negotiation according to claim 7 is characterized in that, described method of carrying out media negotiation by SDP message body and described at least two network entities of at least two decomposition comprises:
Server sends SDP message body of at least two decomposition at least to described two network entities;
Server obtains SDP message body after at least two negotiations that described at least two network entities send, and the SDP message body after each described negotiation is carried the media information after the negotiation that a network entity in described at least two network entities produces according to the SDP message body of decomposing.
10. a system that realizes media negotiation is characterized in that, this system comprises: the server and first network entity;
Described server, be used to obtain Session Description Protocol SDP message body of at least two negotiations, the SDP message body of each described negotiation is carried the media information that described first network entity is held consultation, and the SDP message body of described negotiation is described part, timing information description part and session information description part by media information and formed; The media information that connects the SDP message body of each negotiation is described part; Produce timing information description part and session information and describe part to merge SDP message body of described at least two negotiations, carry out media negotiation by SDP message body and described first network entity that merges, SDP message body after obtaining consulting, the SDP message body after the described negotiation is carried the media information after described first network entity negotiation; According to the mode of the SDP message body that merges described negotiation, decompose SDP message body after the described negotiation; According to the mode of the SDP message body of obtaining described negotiation, send SDP message body that decomposes;
Described first network entity is used for carrying out media negotiation with server.
11. a system that realizes media negotiation is characterized in that, this system comprises: server and at least two network entities;
Described server, be used to obtain Session Description Protocol SDP message body, described SDP message body is carried the media information that at least two network entities are held consultation, and the SDP message body of described negotiation is described part, timing information description part and session information description part by media information and formed; The media information that extracts from the SDP message body of described negotiation in the SDP message body of each decomposition is described part, the timing information in the SDP message body of described negotiation is described part and session information describe part and describe part and session information description partly to decompose described SDP message body as the timing information in the SDP message body of each decomposition; SDP message body and described at least two network entities by at least two decomposition carry out media negotiation, obtain SDP message body after at least two negotiations, the SDP message body after the described negotiation carry with described at least two network entities in the media information of a network entity after consulting; According to the mode of the SDP message body of decomposing described negotiation, merges SDP message body after described at least two negotiations, according to the mode of the SDP message body of obtaining described negotiation, send SDP message body after the merging;
Described at least two network entities are used for carrying out media negotiation with server.
12. a server of realizing media negotiation is characterized in that, this server comprises: acquisition module, merging module, negotiation module and decomposing module;
Described acquisition module, be used to obtain Session Description Protocol SDP message body of at least two negotiations, each described SDP message body is carried the media information that same network entity is held consultation, the SDP message body of described negotiation is described part, timing information by media information and is described part and session information and describe part and form, and the SDP message body of described at least two negotiations is sent to the merging module;
Described merging module, the media information that is used to connect the SDP message body of each negotiation is described part, produce timing information and describe SDP message body that part and session information are described at least two negotiations that part receives with merging, the SDP message body of merging is sent to negotiation module;
Described negotiation module, be used for holding consultation by the SDP message body and the described same network entity of the merging that receives, SDP message body after obtaining consulting, the SDP message body after the described negotiation is carried the media information after the described same network entity negotiation;
Described decomposing module is used for the mode according to the SDP message body that merges described negotiation, decomposes SDP message body after the described negotiation, according to the mode of the SDP message body of obtaining described negotiation, sends SDP message body that decomposes.
13. a server of realizing media negotiation is characterized in that, this server comprises: acquisition module, decomposing module, negotiation module and merging module;
Described acquisition module, be used to obtain Session Description Protocol SDP message body of a negotiation, the SDP message body of described negotiation is carried the media information that at least two network entities are held consultation, the SDP message body of described negotiation is described part, timing information by media information and is described part and session information and describe part and form, and the SDP message body of described negotiation is sent to decomposing module;
Described decomposing module, be used for describing part from the media information that the SDP message body of described negotiation extracts the SDP message body of each decomposition, timing information in the SDP message body of described negotiation is described part and session information describe part and describe SDP message body of the described negotiation that part and session information description partly receive with decomposition as the timing information in the SDP message body of each decomposition, the SDP message body of at least two decomposition that decomposition is obtained sends to negotiation module;
Described negotiation module, be used for carrying out media negotiation by SDP message body and described at least two network entities of at least two decomposition receiving, obtain SDP message body after at least two negotiations, the media information after the SDP message body after each described negotiation is carried a network entity in described at least two network entities consulted;
Described merging module is used for the mode according to the SDP message body of decomposing described negotiation, merges SDP message body after described at least two negotiations, according to the mode of the SDP message body of obtaining described negotiation, sends SDP message body after the merging.
CN2007101015682A 2007-04-30 2007-04-30 System, method and server for realizing media negotiation Expired - Fee Related CN101047718B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101015682A CN101047718B (en) 2007-04-30 2007-04-30 System, method and server for realizing media negotiation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101015682A CN101047718B (en) 2007-04-30 2007-04-30 System, method and server for realizing media negotiation

Publications (2)

Publication Number Publication Date
CN101047718A CN101047718A (en) 2007-10-03
CN101047718B true CN101047718B (en) 2011-07-06

Family

ID=38771927

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101015682A Expired - Fee Related CN101047718B (en) 2007-04-30 2007-04-30 System, method and server for realizing media negotiation

Country Status (1)

Country Link
CN (1) CN101047718B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108270720B (en) * 2016-12-30 2021-01-26 展讯通信(上海)有限公司 Media negotiation method and device in multi-pass call and multi-pass terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003065680A1 (en) * 2002-01-31 2003-08-07 Telefonaktiebolaget Lm Ericsson (Publ) Method for providing multiple sdp media flows in a single pop context
WO2006011770A1 (en) * 2004-07-30 2006-02-02 Samsung Electronics Co., Ltd Method and system for merging multiple push-to-talk over cellular phone
CN1816134A (en) * 2005-02-06 2006-08-09 中兴通讯股份有限公司 Multi-spot video conference system and media processing method
CN1852358A (en) * 2005-07-01 2006-10-25 华为技术有限公司 A method for controlling multiple forwarding and dialing of services

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003065680A1 (en) * 2002-01-31 2003-08-07 Telefonaktiebolaget Lm Ericsson (Publ) Method for providing multiple sdp media flows in a single pop context
WO2006011770A1 (en) * 2004-07-30 2006-02-02 Samsung Electronics Co., Ltd Method and system for merging multiple push-to-talk over cellular phone
CN1816134A (en) * 2005-02-06 2006-08-09 中兴通讯股份有限公司 Multi-spot video conference system and media processing method
CN1852358A (en) * 2005-07-01 2006-10-25 华为技术有限公司 A method for controlling multiple forwarding and dialing of services

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
M. Handley.SDP: Session Description Protocol.RFC2327.1998,1-42. *

Also Published As

Publication number Publication date
CN101047718A (en) 2007-10-03

Similar Documents

Publication Publication Date Title
JP5363461B2 (en) Group call function inquiry
CN101502076B (en) Interworking with media fallback
CN101360091B (en) Apparatus, system and method realizing session initial protocol terminal conference accessing
CN101087442A (en) Method and system for terminal and content share
CN110650260B (en) System and method for intercommunication of network terminal audio internal and external networks
CN101227272A (en) A method and system for obtaining media stream protection key
WO2007068206A1 (en) A method and network entity for operating the session capability information
CN100550753C (en) A method, terminal and system for transmitting multimedia information
Melanchuk An architectural framework for media server control
CN101369906B (en) Conference service implementing method and apparatus
CN101026614B (en) Media type parameter negotiation method
CN101005402B (en) Information reporting method for SIP user agent service switching
CN101557603B (en) Method, device and system for lawful monitoring
CN101110790A (en) method of establishing a session
CN101047718B (en) System, method and server for realizing media negotiation
CN101883443B (en) Method and device for realizing SIP session transfer
CN101247386B (en) Media stream capturing method, system and device
CN101764896B (en) Method, device and system for adding or removing conference participants in a multi-party conference
CN101686138B (en) Method, device and system for realizing tripartite conference
US20090207988A1 (en) Method and system for telecommunication sessions using only initial signal messages
CN101459572B (en) A method and device for realizing associated media flow in IP packet network
CN101741871B (en) Method and system for isolating or reconnecting ISDN subscriber in session and access node
CN101686137A (en) Implement method, device and system of conference service
KR100785792B1 (en) Method and system for providing service on SIP-based Internet telephony system
CN101742005A (en) A method, system and network device for realizing conference segmentation service

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110706