一种点击拨号中控制会话媒体类型的方法和装置 本申请要求于 2009 年 04 月 03 日提交中国专利局、 申请号为 200910130034.1、发明名称为"一种点击拨号中控制 ^舌媒体类型的方法和装 置"的中国专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域 Method and device for controlling session media type in click-to-dial call This application claims to be submitted to the Chinese Patent Office on April 3, 2009, the application number is 200910130034.1, and the invention name is "a method for controlling the type of media in click-to-dial and The priority of the Chinese Patent Application, the entire disclosure of which is incorporated herein by reference. Technical field
本发明涉及通信技术领域, 特别涉及一种点击拨号中控制会话媒体类型 的方法和装置。 背景技术 The present invention relates to the field of communications technologies, and in particular, to a method and apparatus for controlling a session media type in click-to-dial. Background technique
下一代网络( Next generation network, NGN )给人们带来了一系列新的 业务体验。 其中在话音领域的点击拨号 (Click To Dial, CTD )就是其中的 一种新业务。 CTD允许用户通过点击的方式发起主被叫双方呼叫。 随着下一 代网络的进一步发展, 在基于互联网协议(Internet Protocol, IP ) 的多媒体 通信解决方案中, 会话媒体类型也会变得多样化, 不再仅局限于话音领域, 多媒体通讯将应运而生; 会话媒体类型可以是: 音频、 视频、 还可以是音视 频的混合, 甚至还可以是其他的媒体类型。 Next Generation Network (NGN) brings a new set of business experiences to people. Click To Dial (CTD) in the voice field is one of the new services. The CTD allows the user to initiate a call between the calling party and the called party by clicking. With the further development of next-generation networks, in the Internet Protocol (IP)-based multimedia communication solution, the type of session media will also become more diverse, no longer limited to the voice field, multimedia communication will come into being The session media type can be: audio, video, or a mix of audio and video, or even other media types.
基于会话初始化协议( Session Initiation Protocol, SIP )的点击拨号的实 现方式可以为: 控制终端向业务服务器(Application Server, AS )发送会话 请求消息, 其中携带有主被叫终端的客户端鉴权信息、 终端地址信息等; 该 会话请求消息可以经过软交换到达 AS;然后 AS执行被叫终端与主叫终端支 持的媒体类型的协商得到第一协商结果, 并将第一协商结果发送给被叫终端 和主叫终端, 主叫终端和被叫终端根据第一协商结果建立会话连接。 上述控 制终端可以是专用的终端, 也可以是环球网 (WEB ) 网页等。 The implementation of the session initiation protocol based on the Session Initiation Protocol (SIP) may be: the control terminal sends a session request message to the service server (AS), where the client authentication information of the calling and called terminals is carried, The terminal address information and the like; the session request message may arrive at the AS through the softswitch; then the AS performs the negotiation of the media type supported by the called terminal and the calling terminal to obtain the first negotiation result, and sends the first negotiation result to the called terminal and The calling terminal, the calling terminal and the called terminal establish a session connection according to the first negotiation result. The above control terminal may be a dedicated terminal or a World Wide Web (WEB) web page.
发明人在实现本发明的过程中发现: 主被叫终端会话连接的媒体类型 通过被叫终端与主叫终端的媒体能力协商决定,控制终端不能对主被叫终端 会话连接的媒体类型进行控制。 发明内容 In the process of implementing the present invention, the inventor finds: The media type of the primary and the called terminal session connection The control terminal cannot control the media type of the session connection of the calling and called terminal by the media capability negotiation of the called terminal and the calling terminal. Summary of the invention
本发明实施例要解决的技术问题是提供一种点击拨号中控制会话媒体 类型的方法和装置, 实现点击拨号中会话媒体类型的控制。 为解决上述技术问题, 本发明所提供的点击拨号中控制 ^舌媒体类型的 方法实施例可以通过以下技术方案实现:The technical problem to be solved by the embodiments of the present invention is to provide a method and apparatus for controlling a session media type in click-to-dial, and implementing control of a session media type in click-to-dial. To solve the above technical problem, the method for controlling the type of the media in the click-to-dial provided by the present invention can be implemented by the following technical solutions:
接收控制终端发送的会话请求, 所述会话请求包含指定的会话媒体类 型; Receiving a session request sent by the control terminal, where the session request includes a specified session media type;
进行所述指定的会话媒体类型与主叫终端支持的以及被叫终端支持的 会话媒体类型的协商, 得到第一协商结果, 将所述第一协商结果发送给主叫 终端与被叫终端, 以便于主叫终端与被叫终端根据所述第一协商结果建立会 话连接。 Negotiating the specified session media type with the session media type supported by the calling terminal and supported by the called terminal, obtaining a first negotiation result, and sending the first negotiation result to the calling terminal and the called terminal, so that The calling terminal and the called terminal establish a session connection according to the first negotiation result.
本发明实施例还提供了一种业务服务器, 包括: The embodiment of the invention further provides a service server, including:
请求消息接收单元, 用于接收控制终端发送的会话请求消息, 所述会话 请求包含指定的会话媒体类型; a request message receiving unit, configured to receive a session request message sent by the control terminal, where the session request includes a specified session media type;
协商单元, 用于进行所述指定的会话媒体类型与主叫终端支持的以及被 叫终端支持的会话媒体类型的协商, 得到第一协商结果; a negotiation unit, configured to perform negotiation of the specified session media type with a session media type supported by the calling terminal and supported by the called terminal, to obtain a first negotiation result;
协商结果发送单元, 用于将所述第一协商结果发送给主叫终端与被叫终 端, 以便于主叫终端与被叫终端根据所述第一协商结果建立会话连接。 The negotiation result sending unit is configured to send the first negotiation result to the calling terminal and the called terminal, so that the calling terminal and the called terminal establish a session connection according to the first negotiation result.
本发明实施例还提供了一种控制终端, 包括: The embodiment of the invention further provides a control terminal, including:
获取单元, 用于获取指定的会话媒体类型; An obtaining unit, configured to obtain a specified session media type;
请求生成单元, 用于生成包括所述指定的会话媒体类型的会话请求; 消息发送单元, 用于向业务服务器发送所述会话请求。 a request generating unit, configured to generate a session request including the specified session media type, and a message sending unit, configured to send the session request to the service server.
上述技术方案具有如下有益效果: 在控制终端给业务服务器的会话请求 消息中携带指定的会话媒体类型, 指定的会话媒体类型参与主被叫媒体类型 的协商过程, 主被叫终端会话连接的媒体类型通过媒体类型控制信息、 被叫 终端以及主叫终端的媒体协商结果决定, 从而实现对会话媒体类型的控制。 附图说明 The foregoing technical solution has the following beneficial effects: the session request message sent to the service server by the control terminal carries the specified session media type, the specified session media type participates in the negotiation process of the primary and the called media type, and the media type of the connection between the primary and the called terminal session The media type control information, the called terminal, and the media negotiation result of the calling terminal are determined, thereby implementing control of the session media type. DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面 描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。 In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图 1为本发明实施例一方法流程示意图; 1 is a schematic flow chart of a method according to an embodiment of the present invention;
图 2为本发明实施例一另一方法流程示意图; 图 3为本发明实施例二方法流程示意图;2 is a schematic flow chart of another method according to Embodiment 1 of the present invention; 3 is a schematic flowchart of a method according to Embodiment 2 of the present invention;
图 4为本发明实施例三方法流程示意图; 4 is a schematic flow chart of a method according to Embodiment 3 of the present invention;
图 5为本发明实施例四装置结构示意图; FIG. 5 is a schematic structural diagram of a device according to Embodiment 4 of the present invention; FIG.
图 6为本发明实施例四另一装置结构示意图; 6 is a schematic structural diagram of another apparatus according to Embodiment 4 of the present invention;
图 7为本发明实施例四另一装置结构示意图; 7 is a schematic structural diagram of another apparatus according to Embodiment 4 of the present invention;
图 8为本发明实施例四另一装置结构示意图; 8 is a schematic structural diagram of another apparatus according to Embodiment 4 of the present invention;
图 9为本发明实施例四另一装置结构示意图; FIG. 9 is a schematic structural diagram of another apparatus according to Embodiment 4 of the present invention; FIG.
图 10为本发明实施例五装置结构示意图; 10 is a schematic structural view of a device according to Embodiment 5 of the present invention;
图 11为本发明实施例五另一装置结构示意图; 11 is a schematic structural diagram of another apparatus according to Embodiment 5 of the present invention;
图 12为本发明实施例六系统结构示意图。 具体实施方式 FIG. 12 is a schematic structural diagram of a system according to Embodiment 6 of the present invention. detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例仅是本发明一部分实施例, 而不 是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出 创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。 The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例要解决的技术问题是提供一种点击拨号中控制会话媒体 类型的方法、 装置和系统, 实现点击拨号中会话媒体类型的控制。 The technical problem to be solved by the embodiments of the present invention is to provide a method, device and system for controlling the type of session media in click-to-dial, and to realize the control of the session media type in click-to-dial.
实施例一, 如图 1所示, 本发明实施例提供了一种点击拨号中控制会话 媒体类型的方法, 可以包括以下步骤: Embodiment 1 As shown in FIG. 1 , an embodiment of the present invention provides a method for controlling a session media type in a click-to-dial, which may include the following steps:
步骤 101 : 接收控制终端发送的会话请求; 上述会话请求包含指定的会 话媒体类型; Step 101: Receive a session request sent by the control terminal; the session request includes a specified session media type;
具体的, 业务服务器接收控制终端发送的会话请求。 指定的会话媒体类 型指使用控制终端的用户在控制终端上输入的会话媒体类型, 一般为一种。 Specifically, the service server receives a session request sent by the control terminal. The specified session media type refers to the type of session media input by the user using the control terminal on the control terminal, which is generally one.
后续实施例中, 上述会话请求包含指定的会话媒体类型的方法将以: 会 话请求以消息方式发送, 该消息的会话初始化协议头域中包含指定的会话媒 体类型, 为例进行说明, 可以理解的是指定的会话媒体类型的携带方式还可 以是其它方式, 例如短信, 即时消息等, 这并不影响本发明实施例的实现。 另外控制终端可以是专用的终端, 也可以是环球网(WEB )网页, 控制终端 的具体形式本发明实施例不做限定。 In the following embodiment, the method for the session request containing the specified session media type will be: The session request is sent by message, and the session initialization protocol header field of the message includes the specified session media type, as an example, which can be understood. The carrying mode of the specified session media type may also be other methods, such as short message, instant message, etc., which does not affect the implementation of the embodiment of the present invention. In addition, the control terminal may be a dedicated terminal, or may be a webpage of the World Wide Web (WEB). The specific form of the control terminal is not limited in the embodiment of the present invention.
步骤 102: 进行上述指定的会话媒体类型与主叫终端支持的以及被叫终 端支持的会话媒体类型的协商, 得到第一协商结果。Step 102: Perform the above specified session media type and the calling terminal support and the called terminal The negotiation of the session media type supported by the terminal obtains the first negotiation result.
所述协商结果是会话建立过程中的会话或媒体协商结果的一部分。 步骤 103: 将上述第一协商结果发送给主叫终端与被叫终端, 以便于主 叫终端与被叫终端根据上述第一协商结果建立会话连接。 The result of the negotiation is part of the result of the session or media negotiation during the session establishment process. Step 103: Send the first negotiation result to the calling terminal and the called terminal, so that the calling terminal and the called terminal establish a session connection according to the first negotiation result.
上述步骤 101到步骤 103的执行主体可以为业务服务器,执行协商的流程 可以为: 业务服务器计算指定的会话媒体类型与主叫终端支持的以及被叫方 的会话媒体类型的交集, 当该交集不为空时, 将该交集作为第一协商结果。 可以是先业务服务器计算指定的会话媒体类型与主叫终端支持的会话媒体 类型的交集, 该交集不为空时, 将该交集发送给被叫终端, 被叫终端再求上 述交集中包含的会话媒体类型与自身支持的所有媒体类型的交集, 当该交集 不为空时, 得到第一协商结果, 被叫终端再将第一协商结果发送给业务服务 器, 业务服务器确认后, 再给主被叫终端发送协商确认消息, 该协商确认消 息中包括第一协商结果。 执行协商的流程还可以为: 业务服务器向被叫终端 发送协商请求消息, 然后被叫终端发送自身支持的所有媒体类型信息给业务 服务器, 业务服务器计算上述指定的会话媒体类型、 主叫终端以及被叫终端 支持的媒体类型的交集, 当该交集不为空时, 将该交集作为第一协商结果, 然后向将上述第一协商结果发送给被叫终端和主叫终端。 只需要协商的过程 中需要使用上述指定的会话媒体类型参与协商过程, 具体的协商过程可能有 艮多种, 不影响本发明实施例的实现, 对此本发明实施不作具体限制。 若上 述交集为空,这时业务服务器可以向控制终端发送失败响应消息告知协商失 败。 若主叫终端支持的以及被叫终端支持的会话媒体类型的交集为非空, 在 上述告知协商失败的消息中还可以携带主叫终端支持的以及被叫终端支持 的会话媒体类型的交集。 然后控制终端可以根据上述交集重新发送会话请 求, 在重新发送的会话请求中指定新的会话媒体类型。 The execution body of the foregoing step 101 to step 103 may be a service server, and the process of performing negotiation may be: the service server calculates an intersection of the specified session media type and the session media type supported by the calling terminal and the called party, when the intersection is not When it is empty, the intersection is taken as the first negotiation result. The first service server may calculate an intersection of the specified session media type and the session media type supported by the calling terminal. When the intersection is not empty, the intersection is sent to the called terminal, and the called terminal requests the session included in the intersection. The intersection of the media type and all the media types supported by the media. When the intersection is not empty, the first negotiation result is obtained, and the called terminal sends the first negotiation result to the service server, and after the service server confirms, the callee is called again. The terminal sends a negotiation confirmation message, where the negotiation confirmation message includes the first negotiation result. The process of performing the negotiation may also be: the service server sends a negotiation request message to the called terminal, and then the called terminal sends all the media type information supported by the called terminal to the service server, and the service server calculates the specified session media type, the calling terminal, and the The intersection of the media types supported by the terminal is called. When the intersection is not empty, the intersection is used as the first negotiation result, and then the first negotiation result is sent to the called terminal and the calling terminal. The negotiation process is required to participate in the negotiation process by using the specified session media type. The specific negotiation process may be implemented in various ways, and the implementation of the present invention is not affected. If the intersection is empty, then the service server can send a failure response message to the control terminal to inform the negotiation failure. If the intersection of the session media types supported by the calling terminal and the called terminal is non-empty, the message indicating that the negotiation fails may also carry the intersection of the session media types supported by the calling terminal and supported by the called terminal. The control terminal can then resend the session request based on the intersection described above, specifying a new session media type in the resent session request.
上述实施方式中,在控制终端给业务服务器的会话请求消息中携带指定 的会话媒体类型, 指定的会话媒体类型参与主被叫媒体类型的协商过程, 主 被叫终端会话连接的媒体类型通过指定的会话媒体类型、被叫终端以及主叫 终端的媒体协商结果决定, 从而实现控制终端对主被叫会话媒体类型的控 制。 In the foregoing implementation manner, the session request message sent by the control terminal to the service server carries the specified session media type, and the specified session media type participates in the negotiation process of the primary and the called media type, and the media type of the connection between the primary and the called terminal session is specified. The session media type, the called terminal, and the mediation result of the calling terminal are determined, thereby implementing control of the control terminal's media type of the calling and called sessions.
进一步地, 如图 2所示, 上述步骤 105之后, 在主被叫会话过程中, 还可 以包括:Further, as shown in FIG. 2, after the foregoing step 105, during the calling and talking session, To include:
步骤 201 : 接收控制终端发送的更改信令; Step 201: Receive change signaling sent by the control terminal.
上述更改信令指定了更改的会话媒体类型。 The above change signaling specifies the changed session media type.
更改信令中更改的会话媒体类型携带方式可以以步骤 101中会话请求中 携带指定的会话媒体类型的相同方式实现, 即该消息的会话初始化协议头域 中包含指定的^舌媒体类型, 可参见实施例 3中的示例。 The change of the session media type in the change signaling may be implemented in the same manner that the session request carries the specified session media type in step 101, that is, the session initialization protocol header field of the message includes the specified media type. The example in Embodiment 3.
步骤 202: 执行会话媒体类型协商; Step 202: Perform session media type negotiation.
具体为: 计算上述指定的更改的媒体类型与主叫终端支持的以及被叫终 端支持的会话媒体类型的交集, 当所述交集为非空时, 将所述交集作为第二 协商结果; Specifically, the intersection of the media type of the specified change and the session media type supported by the calling terminal and the called terminal is calculated, and when the intersection is non-empty, the intersection is used as the second negotiation result;
上述步骤 202的协商过程可以参考上述步骤 102的协商流程,在此不再赘 述。 上述步骤 202进行协商之前还可以判断主被叫当前会话连接的媒体类型 与上述指定的更改的媒体类型是否相同, 如果相同, 那么并不需要进行更改 媒体类型的操作,所有可以结束更改的流程;若不相同,则可以执行步骤 202 和步骤 203。 For the negotiation process of the foregoing step 202, reference may be made to the negotiation process of the foregoing step 102, and details are not described herein again. Before the negotiation in the foregoing step 202, it may be determined whether the media type of the current session connection of the main called party is the same as the media type of the specified change. If the same, the operation of changing the media type is not required, and all the processes of the change may be ended; If not, step 202 and step 203 can be performed.
步骤 203: 向主叫终端与被叫终端发送第二协商结果; 以便于主叫终端 和被叫终端根据第二协商结果建立会话连接。 Step 203: Send a second negotiation result to the calling terminal and the called terminal, so that the calling terminal and the called terminal establish a session connection according to the second negotiation result.
上述实施方式的步骤 201到步骤 203的执行主体可以为业务服务器, 上述 方法实现过程中, 通过控制终端给业务服务器发送更改信令, 业务服务器执 行协商过程中使用上述更改信令中指定的更改的媒体类型参与主被叫媒体 类型的协商, 然后实现了更改媒体类型。 实施例二, 如图 3所示, 本发明实施例还提供了就实施例一的一种应用 场景, 作为实施例一的具体说明, 可以包括以下步骤: The execution body of step 201 to step 203 of the foregoing embodiment may be a service server. During the implementation of the foregoing method, the control terminal sends the change signaling to the service server, and the service server performs the negotiation process to use the change specified in the change signaling. The media type participates in the negotiation of the primary and called media types, and then implements the change of media type. Embodiment 2 As shown in FIG. 3, an embodiment of the present invention provides an application scenario of the first embodiment. As a specific description of the first embodiment, the following steps may be included:
步骤 301、 控制终端给业务服务器(Application Server, AS )发送控制 信令(info )请求, 发起话音邻域的点击拨号(Click To Dial, CTD )呼叫。 在 CTD控制终端发给 AS的 Info请求的消息体中增加携带会话媒体类型信息。 info消息头域可以为标准的会话初始化协议 ( Session Initiation Protocol, sip ) 头域, 这里不再介绍, 内容类型(Content-Type )的格式可以为文本 /可扩展 标记语言 [text/ ( Extensible Markup Language , xml ) ], info消息可以参考 如下:Step 301: The control terminal sends a control signaling (info) request to the service server (AS) to initiate a Click To Dial (CTD) call of the voice neighborhood. The session media type information is added to the message body of the Info request sent by the CTD control terminal to the AS. The info message header field can be a standard Session Initiation Protocol (SIP) header field. It is not introduced here. The content type (Content-Type) can be in the form of text/extensible markup language [text/ ( Extensible Markup Language , xml ) ], info message can refer to as follows:
<content> <content>
<command-code> 1001 </command-code> <command-code> 1001 </command-code>
<account>666000</account> <account>666000</account>
<password> 123456</password> <password> 123456</password>
<callee 1〉662001 </callee 1 > <callee 1>662001 </callee 1 >
<callee2>662002</callee2> <callee2>662002</callee2>
<t pe>l</t pe> <t pe>l</t pe>
</content> </content>
command-code: 命令码标识, 在这里 1001表示 "发起 CTD呼叫"。 account: 发起 CTD呼叫帐号。 Command-code: Command code identification, where 1001 means "initiate CTD call". Account: Initiates a CTD call account.
password: 发起 CTD呼叫帐号的密码。 Password: The password for initiating a CTD call account.
calleel : 第一被叫, 即主叫。 Calleel : The first called, the caller.
callee2: 第二被叫, 即被叫。 Callee2: The second called, called.
type: 即会话媒体类型, 此字段为本方案添加, 参数含义为: 1为音频 呼叫; 2为视频呼叫; 3为音视频混合呼叫。 Type: Name of the session media. This field is added to the scheme. The meanings of the parameters are: 1 for audio calls; 2 for video calls; 3 for audio and video hybrid calls.
步骤 302、业务服务器( AS )向主叫发起一个不带会话描述协议 ( Session Description Protocol, SDP ) 的 invite信令, 目的在于让主叫来决定建立会话 时使用的媒体类型, 主叫提供自己能够提供的最大媒体类型集合。 其中 SDP 是描述流媒体初始化参数的格式。 在媒体会话中, 传递媒体流信息, 允许会 话描述的接收者参与会话。 SDP可以包含以下信息: 1 )会话的名称和目的, 2 )会话存活时间, 3 )包含在会话中的媒体信息, 如: 媒体类型、 传输协议、 媒体格式、 多播或远端(单播)地址和端口, 4 )为接收媒体而需的信息, 5 ) 使用的带宽信息 6 )可信赖的接洽信息等。 通常所说的某媒体 SDP, 表示通 过 SDP协议描述的该媒体的各种信息。 Step 302: The service server (AS) initiates an invite signaling without a Session Description Protocol (SDP) to the calling party, so that the calling party determines the media type used when establishing the session, and the calling party provides the The largest collection of media types provided. Where SDP is the format that describes the streaming media initialization parameters. In the media session, media stream information is passed, allowing recipients of the session description to participate in the session. The SDP can contain the following information: 1) the name and purpose of the session, 2) session lifetime, 3) media information contained in the session, such as: media type, transport protocol, media format, multicast or remote (unicast) Address and port, 4) Information required to receive media, 5) Bandwidth information used 6) Trusted contact information, etc. A so-called media SDP, which refers to various information of the media described by the SDP protocol.
步骤 303、主叫收到 AS发送的不带 SDP的 invite后进行应答,在应答的 200 OK中携带 SDP,包含主叫终端的媒体能力全集。 Step 303: After receiving the invite sent by the AS without the SDP, the calling party responds, and carries the SDP in the responding 200 OK, including the media capability complete set of the calling terminal.
步骤 304、 AS把主叫的 SDP发送给媒体资源服务器用于协商。 Step 304: The AS sends the calling SDP to the media resource server for negotiation.
上述协商的过程可以为计算主叫的 SDP和媒体资源服务器的 SDP中的会 话媒体类型的交集,这个交集表示为主叫和媒体资源服务器均支持的会话媒 体类型, 若这个交集为空, 则本次协商失败,媒体资源服务器可以向 AS发送 消息告知协商失败。The negotiation process may be performed to calculate an intersection of the calling SDP and the session media type in the SDP of the media resource server, and the intersection represents a conversation medium supported by both the calling and the media resource servers. The volume type, if the intersection is empty, the negotiation fails, and the media resource server can send a message to the AS to notify the negotiation failure.
步骤 305、 媒体资源服务器(Media Resource Server, MRS )通过 200 OK 回应与主叫 SDP的协商结果。 Step 305: The Media Resource Server (MRS) responds to the negotiation result of the calling SDP by using 200 OK.
步骤 306 AS发应答信号 (ACK ) 确认与媒体资源服务器 (Medium Step 306 AS sends an acknowledgement signal (ACK) to confirm with the media resource server (Medium
Resource Server, MRS ) 的^舌协商。Resource Server, MRS).
步骤 307 AS向主叫终端发 ACK,携带主叫与 MRS的 SDP协商结果, 主叫 终端接收到 ACK后可以与 MRS建立会话。 至此, 主叫终端与 MRS建立了会 话, MRS给主叫放回铃音, 等待被叫接通。 Step 307: The AS sends an ACK to the calling terminal, and carries the SDP negotiation result between the calling party and the MRS. After receiving the ACK, the calling terminal can establish a session with the MRS. At this point, the calling terminal establishes a session with the MRS, and the MRS returns the ring tone to the calling party, waiting for the called party to be connected.
上述步骤 303到 307为执行媒体资源服务器与主叫方的媒体协商过程, 该 协商过程还可以是: 业务服务器将媒体资源服务器支持的所有媒体类型发送 给主叫方, 然后主叫方计算媒体资源服务器支持的所有媒体类型与自身支持 的所有媒体类型的交集, 该交集不为空时, 得到第一协商结果, 然后将该协 商结果发送给业务服务器, 业务服务器再给主叫方发送协商确认消息, 所述 协商确认消息中包括该协商结果。本发明实施例对媒体资源服务器与主叫方 的媒体协商过程不作限定。 The foregoing steps 303 to 307 are performed to perform a media negotiation process between the media resource server and the calling party. The negotiation process may also be: the service server sends all media types supported by the media resource server to the calling party, and then the calling party calculates the media resource. The intersection of all the media types supported by the server and all the media types supported by the server. When the intersection is not empty, the first negotiation result is obtained, and then the negotiation result is sent to the service server, and the service server sends a negotiation confirmation message to the calling party. The negotiation confirmation message includes the negotiation result. The embodiment of the present invention does not limit the media negotiation process between the media resource server and the calling party.
步骤 308 AS根据 CTD呼叫控制信令携带的指定的会话媒体类型与主叫 支持的 SDP全集进行协商, 得到一个交集。 作为邀请被叫的 SDP。 这里只进 行会话类型的协商, 不进行支持媒体的协商, 协商采用取交集的方式, 协商 的方法举例如下: Step 308: The AS negotiates with the SDP corpus supported by the calling party according to the specified session media type carried in the CTD call control signaling to obtain an intersection. As an invitation to call the SDP. In this case, only the session type negotiation is performed, and the negotiation of the support media is not performed. The negotiation adopts the method of taking the intersection. The negotiation method is as follows:
表 1 会话媒体类型协商方法 Table 1 Session media type negotiation method
举例, 如下为主叫 SDP: V=0For example, the following is called SDP: V=0
0= 0=
s=Sip Calls=Sip Call
c=IN IP4 10.75.35.79 〃地址c=IN IP4 10.75.35.79 〃 address
t=0 0t=0 0
m=audio 34642 RTP/AVP 18 4 0 8m=audio 34642 RTP/AVP 18 4 0 8
a=rtpmap:18 G729/8000a=rtpmap:18 G729/8000
a=rtpmap:4 G723/8000a=rtpmap:4 G723/8000
a=rtpmap:0 PCMU/8000a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000a=rtpmap:8 PCMA/8000
a=fintp:18 annexb=noa=fintp:18 annexb=no
m=video 34644 RTP/AVP 34 98 //媒体类型m=video 34644 RTP/AVP 34 98 //Media Type
b=AS:368b=AS:368
a=rtpmap:34 H263/90000a=rtpmap:34 H263/90000
a=rtpmap:98 MP4V-ES/90000a=rtpmap:98 MP4V-ES/90000
a=fintp:34 QCIF=1 CIF=4 MaxBR=3688a=fintp:34 QCIF=1 CIF=4 MaxBR=3688
a=fintp:98 profile-level-id=2 上述主叫 SDP与会话媒体类型为 1 ( audio )的呼叫进行协商,得到的 SDP v=0a=fintp:98 profile-level-id=2 The above-mentioned calling SDP negotiates with the call with the session media type 1 (audi), and the obtained SDP v=0
o=o=
s=Sip Calls=Sip Call
c=IN IP4 10.75.35.79c=IN IP4 10.75.35.79
t=0 0t=0 0
m=audio 34642 RTP/AVP 18 4 0 8m=audio 34642 RTP/AVP 18 4 0 8
a=rtpmap:18 G729/8000a=rtpmap:18 G729/8000
a=rtpmap:4 G723/8000a=rtpmap:4 G723/8000
a=rtpmap:0 PCMU/8000a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000 a=fintp:18 annexb=noa=rtpmap:8 PCMA/8000 a=fintp:18 annexb=no
m=video 0 RTP/AVP 34 98 m=video 0 RTP/AVP 34 98
步骤 309、 AS向被叫发送邀请(invite )消息, 邀请被叫加入呼叫, 此处 invite消息中携带步骤 308中协商得到的 SDP。 该 SDP携带了指定的会话媒体 类型与主叫支持的 SDP协商的结果; Step 309: The AS sends an invite message to the called party, inviting the called party to join the call, where the invite message carries the SDP negotiated in step 308. The SDP carries the result of the SCP negotiation between the specified session media type and the calling party support;
步骤 310、 被叫正常应答 AS发起的请求, 进行 SDP协商并应答。 这里的 SDP协商可以为: 计算上述指定的会话媒体类型与主叫支持的 SDP协商的结 果与被叫支持的 SDP的交集。 上述应答消息中可以携带被叫端协商的结果。 Step 310: The called party normally responds to the request initiated by the AS, performs SDP negotiation, and responds. The SDP negotiation here may be: calculating an intersection of the specified session media type and the SDP negotiation result supported by the calling party and the SDP supported by the called party. The response message may carry the result of the negotiation of the called end.
步骤 311、 AS回 ACK确认与被叫的对话。 至此, 被叫会话建立成功。 步骤 312、 向主叫发送重新邀请消息 (re-invite ), 携带主被叫协商过的 Step 311: The AS returns an ACK to confirm the conversation with the called party. At this point, the called session is established successfully. Step 312: Send a re-invite message to the calling party, carrying the negotiation between the calling party and the called party.
SDP给主叫SDP to the caller
步骤 313、 主叫应答, 回 200 OK; Step 313, the calling party answers, and returns 200 OK;
步骤 314、 AS回 ACK确认会话更改, 至此, 主被叫之间的会话被建立起 来了。 Step 314: The AS returns an ACK to confirm the session change. At this point, the session between the calling party and the called party is established.
上述实施方式中,在控制终端给业务服务器的 ^舌请求消息中携带指定 的会话媒体类型, 指定的会话媒体类型参与主被叫媒体类型的协商过程, 主 被叫终端会话连接的媒体类型通过指定的会话媒体类型、被叫终端以及主叫 终端的媒体协商结果决定, 从而实现对媒体类型控制。 实施例三, 如图 4所示, 本发明实施例还提供了就实施例一中更改媒体 类型的方法的一种应用场景的具体说明。 可以包括如下步骤: In the foregoing implementation manner, the control terminal sends the specified session media type to the service server, and the specified session media type participates in the negotiation process of the primary and the called media type, and the media type of the primary and the called terminal session connection is specified. The session media type, the called terminal, and the media negotiation result of the calling terminal are determined, thereby implementing media type control. Embodiment 3 As shown in FIG. 4, the embodiment of the present invention further provides a specific description of an application scenario of the method for changing a media type in Embodiment 1. It can include the following steps:
步骤 401、 在 CTD会话过程中, 控制终端发起会话更改的信令(info ) , 对指定 CTD会话类型进行修改。 由于上述控制终端可以集成在主叫终端、 被 叫终端, 还可以是第三方, 所以该会话更的信令的发起端可以是主叫终端、 被叫终端, 或第三方; 因而主叫终端、 被叫终端, 或第三方都可以对会话媒 体类型进行修改。 Step 401: During the CTD session, control the terminal to initiate a session change signaling (info), and modify the specified CTD session type. The foregoing control terminal may be integrated in the calling terminal, the called terminal, or a third party, so the originating end of the session may be a calling terminal, a called terminal, or a third party; The called terminal, or a third party can modify the session media type.
info消息头域可以为标准 SIP头域, 这里不再介绍, Content-Type可以为 text/xml, info消息可以参考如下: The info header field can be a standard SIP header field. It is not introduced here. The Content-Type can be text/xml. The info message can be referred to as follows:
<content> <content>
<command-code> 1101 </ command-code> <call-id> 12122<call-id><command-code> 1101 </ command-code> <call-id>12122<call-id>
<account>666000</account> <account>666000</account>
<password> 123456</password> <password> 123456</password>
<t pe>3</t pe> <t pe>3</t pe>
</content> </content>
command-code: 命令码标识, 在这里 1101表示 "更改会话媒体类型"。 account: 发起 CTD呼叫帐号。 Command-code: Command code identifier, where 1101 means "change session media type". Account: Initiates a CTD call account.
password: 发起 CTD呼叫帐号的密码。 Password: The password for initiating a CTD call account.
type: 即会话媒体类型, 在该命令中标识即将切换的目标会话媒体类 型, 其参数含义: 1为音频呼叫; 2为视频呼叫; 3为视频混合呼叫。 Type: Name of the session media. In this command, the target session media type to be switched is identified. The meanings of the parameters are: 1 for audio calls; 2 for video calls; 3 for video hybrid calls.
步骤 402、 AS进行会话媒体类型协商, 协商过程可以为: 首先判断, 当 前会话媒体类型与指定更改的会话媒体类型是否相同, 如果相同则不需要再 进行会话媒体类型更改, 直接向控制终端反馈更改成功的通知。 如果会话媒 体类型不相同, 则使用主叫原始 SDP与指定的会话媒体类型进行协商, 得出 协商过的 SDP。 Step 402: The AS performs session media type negotiation. The negotiation process may be: First, it is determined whether the current session media type is the same as the specified session media type. If the same, the session media type change is not required, and the change is directly reported to the control terminal. Successful notice. If the session media types are different, the calling original SDP is used to negotiate with the specified session media type to obtain the negotiated SDP.
步骤 403、 如果步骤 402中协商得出的 SDP为空, 则可以向控制终端发送 消息, 用于通知控制终端更改会话媒体类型失败。 Step 403: If the SDP negotiated in step 402 is empty, the message may be sent to the control terminal to notify the control terminal that the change of the session media type fails.
步骤 404、 如果步骤 402中协商得出的 SDP不为空, 则 AS利用步骤 402中 协商得出的 SDP向被叫发送 re-invite进行^舌更改。 Step 404: If the SDP negotiated in step 402 is not empty, the AS sends a re-invite to the called party by using the SDP negotiated in step 402.
步骤 405、 被叫应答 200 OK, 携带协商过的 SDP。 Step 405: The called party responds with 200 OK, and carries the negotiated SDP.
步骤 406、 AS发送 ACK确认。 Step 406: The AS sends an ACK confirmation.
步骤 407、 AS对步骤 405中的协商结果进行判断,如果会话媒体类型更改 成功, 则进行后续流程。 Step 407: The AS determines the negotiation result in step 405. If the session media type changes successfully, the subsequent process is performed.
步骤 408、 如果步骤 407中判断被叫侧会话媒体类型更改失败, 则通知控 制终端更改会话媒体类型失败。 Step 408: If it is determined in step 407 that the called side session media type change fails, the notification control terminal fails to change the session media type.
步骤 409、 AS利用步骤 405中协商的 SDP结果向主叫发起 re-invite, 更改 主叫侧会话媒体类型。 Step 409: The AS initiates re-invite to the calling party by using the SDP result negotiated in step 405, and changes the calling side session media type.
步骤 410、 主叫终端应答 200 OK,携带协商过的 SDP。 Step 410: The calling terminal answers 200 OK and carries the negotiated SDP.
步骤 411、 AS发送 ACK确认上述协商过的 SDP。 Step 411: The AS sends an ACK to confirm the negotiated SDP.
步骤 412、 AS向控制终端发送消息通知控制终端会话媒体类型更改成功。 上述方法实现过程中, 通过控制终端给业务服务器发送更改信令, 业务 服务器执行协商过程中使用上述更改信令中指定的更改的媒体类型参与主 被叫媒体类型的协商, 然后实现了更改媒体类型。 实施例四, 如图 5所示, 本发明实施例还提供了一种业务月良务器, 包括: 请求消息接收单元 501, 用于接收控制终端发送的会话请求消息, 上述 会话请求包含指定的会话媒体类型;Step 412: The AS sends a message to the control terminal to notify the control terminal that the session media type is successfully changed. During the implementation of the foregoing method, the control terminal sends the change signaling to the service server, and the service server performs the negotiation in the negotiation process by using the changed media type specified in the foregoing change signaling, and then implements the change of the media type. . Embodiment 4 As shown in FIG. 5, an embodiment of the present invention further provides a service server, including: a request message receiving unit 501, configured to receive a session request message sent by a control terminal, where the session request includes a specified Session media type;
具体实现可以参见对实施例一中步骤 101的相关说明及实施例二中的相 应内容。 For the specific implementation, refer to the related description of step 101 in the first embodiment and the corresponding content in the second embodiment.
协商单元 502, 用于执行上述指定的会话媒体类型与主叫终端支持的以 及被叫终端支持的会话媒体类型协商, 得到第一协商结果; The negotiating unit 502 is configured to perform the foregoing negotiation, and the session media type supported by the calling terminal and the session media type supported by the called terminal are negotiated to obtain a first negotiation result.
协商结果发送单元 503, 用于将上述第一协商结果发送给主叫终端与被 叫终端, 以便于主叫终端与被叫终端根据上述第一协商结果建立会话连接。 The negotiation result sending unit 503 is configured to send the first negotiation result to the calling terminal and the called terminal, so that the calling terminal and the called terminal establish a session connection according to the first negotiation result.
可选地, 上述协商单元 502, 具体用于计算上述指定的会话媒体类型与 主叫终端支持的以及被叫终端支持的会话媒体类型的交集, 当上述交集不为 空时, 将所述交集作为第一协商结果。 具体计算交集的方法可以参见对实施 例一中步骤 102的相关说明。 在此不赘述。 Optionally, the foregoing negotiating unit 502 is specifically configured to calculate an intersection of the specified session media type and a session media type supported by the calling terminal and supported by the called terminal, and when the intersection is not empty, the intersection is used as The first negotiation result. For a method of calculating the intersection, refer to the related description of step 102 in the first embodiment. I will not go into details here.
上述实施方式中,在控制终端给业务服务器的会话请求消息中携带指定 的会话媒体类型, 指定的会话媒体类型参与主被叫媒体类型的协商过程, 主 被叫终端会话连接的媒体类型通过指定的会话媒体类型、被叫终端以及主叫 终端的媒体协商结果决定, 从而实现对媒体类型控制。 可选地, 如图 6所示, 上述业务服务器还可以包括: In the foregoing implementation manner, the session request message sent by the control terminal to the service server carries the specified session media type, and the specified session media type participates in the negotiation process of the primary and the called media type, and the media type of the connection between the primary and the called terminal session is specified. The session media type, the called terminal, and the media negotiation result of the calling terminal are determined, thereby implementing media type control. Optionally, as shown in FIG. 6, the foregoing service server may further include:
第一失败响应单元 601, 用于当上述交集为空, 向上述控制终端发送失 败响应消息; 当主叫终端支持的会话媒体类型与被叫终端支持的会话媒体类 型的交集为非空时, 所述失败响应消息携带主叫终端支持的会话媒体类型与 被叫终端支持的会话媒体类型的交集。 The first failure response unit 601 is configured to: when the intersection is empty, send a failure response message to the control terminal; when the intersection of the session media type supported by the calling terminal and the session media type supported by the called terminal is non-empty, The failure response message carries the intersection of the session media type supported by the calling terminal and the session media type supported by the called terminal.
这样,控制终端用户在进行下一次指定就可以通过上述失败响应消息中 携带的会话媒体类型来进行指定, 提高下一次指定的成功率。 In this way, the control terminal user can specify the session media type carried in the failure response message by performing the next designation, and improve the next specified success rate.
进一步地, 如图 7所示, 上述业务服务器还可以包括: 更改信令接收单元 701, 用于在主被叫会话过程中, 接收控制终端发送 的更改信令, 上述更改信令指定了更改的会话媒体类型;Further, as shown in FIG. 7, the foregoing service server may further include: The change signaling receiving unit 701 is configured to receive, during the calling and the called session, the change signaling sent by the control terminal, where the change signaling specifies the changed session media type;
更改信令的具体内容更改的会话媒体类型的携带方式可以参见实施例 三中的示例。 For the manner in which the session media type of the change of the specific content of the signaling is changed, refer to the example in the third embodiment.
上述协商单元 502, 还用于计算所指定的更改的会话媒体类型与主叫终 端支持的以及被叫终端支持的会话媒体类型的交集, 当所述交集为非空时, 将所述交集作为第二协商结果; The negotiating unit 502 is further configured to calculate an intersection of the specified changed session media type and a session media type supported by the calling terminal and supported by the called terminal, and when the intersection is non-empty, the intersection is used as the first Second consultation result;
具体计算过程可参见步骤 202的说明实施例三中的相关部分。 For a specific calculation process, refer to the relevant part in the third embodiment of the description of the step 202.
协商结果发送单元 503, 还用于向主叫终端与被叫终端发送第二协商结 果, 以便于主叫终端与被叫终端根据第二协商结果建立会话连接。 The negotiation result sending unit 503 is further configured to send a second negotiation result to the calling terminal and the called terminal, so that the calling terminal and the called terminal establish a session connection according to the second negotiation result.
通过控制终端给业务服务器发送更改信令, 业务服务器执行协商过程中 使用上述更改信令中指定的更改的媒体类型参与主被叫媒体类型的协商, 然 后实现了更改媒体类型。 可选地, 如图 8所示, 上述业务服务器还可以包括: The control server sends the change signaling to the service server, and the service server participates in the negotiation process to participate in the negotiation of the calling and called media types by using the changed media type specified in the above change signaling, and then implements the change of the media type. Optionally, as shown in FIG. 8, the foregoing service server may further include:
第二失败响应单元 801, 所述第二失败响应单元还用于当所指定的更改 的会话媒体类型与主叫终端支持的以及被叫终端支持的会话媒体类型的交 集为空时, 向所述控制终端发送更改失败响应消息; 当主叫终端支持的会话 媒体类型与被叫终端支持的会话媒体类型的交集为非空时, 所述更改失败响 应消息携带主叫终端支持的会话媒体类型与被叫终端支持的会话媒体类型 的交集。 这样, 控制终端用户在进行下一次更改就可以通过上述失败响应消 息中携带的会话媒体类型来进行更改, 提高下一次更改的成功率。 a second failure response unit 801, wherein the second failure response unit is further configured to: when the specified changed session media type and the session media type supported by the calling terminal and the called terminal are empty, to the control The terminal sends a change failure response message; when the intersection of the session media type supported by the calling terminal and the session media type supported by the called terminal is non-empty, the change failure response message carries the session media type and the called party supported by the calling terminal. The intersection of the session media types supported by the terminal. In this way, the control terminal user can make changes through the session media type carried in the above failure response message when making the next change, and improve the success rate of the next change.
上述第一失败响应单元 601和第二失败响应单元 801的功能在具体实现 中可以通过同一个物理模块来完成, 不影响本发明实施例的实现。 进一步地, 如图 9所示, 上述业务服务器还可以包括: The functions of the first failure response unit 601 and the second failure response unit 801 may be implemented by the same physical module in a specific implementation, and do not affect the implementation of the embodiment of the present invention. Further, as shown in FIG. 9, the foregoing service server may further include:
判断单元 901, 用于判断主被叫终端当前会话连接的会话媒体类型与上 述指定的更改的会话媒体类型是否相同, 若相同, 则结束更改流程; The determining unit 901 is configured to determine whether the session media type of the current session connection of the calling and called terminal is the same as the session media type of the specified change, and if the same, the process of ending the change is ended;
上述协商单元 502,具体用于当所述判断单元 901判断主被叫终端当前会 话连接的会话媒体类型与所述指定的更改的会话媒体类型不同时,执行所述 计算所指定的更改的会话媒体类型与主叫终端支持的以及被叫终端支持的 会话媒体类型的交集。The negotiating unit 502 is specifically configured to: when the determining unit 901 determines that the session media type of the current session connection of the calling and called terminals is different from the specified changed session media type, Calculates the intersection of the specified changed session media type with the session media type supported by the calling terminal and supported by the called terminal.
上述实施终端式,在进行更媒体类型的协商之前判断更改的媒体类型与 当前媒体是否相同, 在相同的情况下可以节省协商和后续更改的流程。 实施例五, 如图 10所示, 本发明实施例还提供了一种控制终端, 包括: 获取单元 101, 用于获取指定的会话媒体类型; 上述获取指定的会话媒 体类型可以是: 用户在控制终端上输入的指定的会话媒体类型。 能够体现用 户的意愿。 In the above implementation, the terminal type determines whether the changed media type is the same as the current media before performing the negotiation of the more media type, and the process of negotiation and subsequent changes can be saved under the same situation. Embodiment 5 As shown in FIG. 10, an embodiment of the present invention further provides a control terminal, including: an obtaining unit 101, configured to acquire a specified session media type; the foregoing obtaining a specified session media type may be: The specified session media type entered on the terminal. It can reflect the wishes of users.
请求生成单元 102, 用于生成包括上述指定的会话媒体类型的会话请求; 具体的生成方式可以为: 在上述会话请求的会话初始化协议头域中加入 指定的会话媒体类型。 The request generating unit 102 is configured to generate a session request that includes the specified session media type. The specific generation manner may be: adding a specified session media type in a session initiation protocol header field of the session request.
消息发送单元 103, 用于向业务服务器发送上述会话请求。 The message sending unit 103 is configured to send the foregoing session request to the service server.
上述实施方式中, 控制终端可以为集成在主叫终端、 被叫终端中, 也可 以是第三方设备如: 网络中的服务器(例如 WEB服务器); 在控制终端给业 务服务器的会话请求消息中携带指定的会话媒体类型, 指定的会话媒体类型 参与主被叫媒体类型的协商过程, 主被叫终端会话连接的媒体类型通过指定 的会话媒体类型、 被叫终端以及主叫终端的媒体协商结果决定, 从而实现对 媒体类型控制。 进一步地, 如图 11所示 In the foregoing implementation manner, the control terminal may be integrated in the calling terminal or the called terminal, or may be a third-party device such as a server in the network (for example, a WEB server); and the control terminal carries the session request message to the service server. The specified session media type, the specified session media type participates in the negotiation process of the primary and secondary media types, and the media type of the primary and secondary terminal session connections is determined by the specified session media type, the called terminal, and the media negotiation result of the calling terminal. Thereby achieving control over the media type. Further, as shown in FIG.
上述获取单元 101, 用于获取指定的更改的媒体类型; The obtaining unit 101 is configured to acquire a media type of the specified change;
上述控制终端还可以包括: The above control terminal may further include:
更改信令编辑单元 1101, 用于编辑更改信令, 在上述更改信令的会话初 始化协议头域中加入指定的更改的媒体类型; a change signaling editing unit 1101, configured to edit the change signaling, and add the specified changed media type in the session initialization protocol header field of the change signaling;
上述消息发送单元 103, 还用于向业务服务器发送上述更改信令。 The message sending unit 103 is further configured to send the change signaling to the service server.
通过控制终端给业务服务器发送更改信令, 业务服务器执行协商过程中 使用上述更改信令中指定的更改的媒体类型参与主被叫媒体类型的协商, 然 后实现了更改媒体类型。 实施例六, 如图 12所示, 本发明实施例还提供了一种点击拨号系统, 包 括:The control terminal sends the change signaling to the service server, and the service server performs the negotiation in the negotiation process using the changed media type specified in the above change signaling, and then implements the change of the media type. Embodiment 6 As shown in FIG. 12, an embodiment of the present invention further provides a click-to-dial system, including:
控制终端 1201, 用于向业务服务器 1202发送上述会话请求消息, 上述会 话请求消息包含指定的会话媒体类型 The control terminal 1201 is configured to send the foregoing session request message to the service server 1202, where the session request message includes the specified session media type.
业务服务器 1202, 用于接收控制终端 1201发送的上述会话请求消息; 执 行上述指定的会话媒体类型与主叫终端支持的以及被叫终端支持的会话媒 体类型协商, 得到第一协商结果, 将上述第一协商结果发送给主叫终端与被 叫终端, 以便于主叫终端与被叫终端根据上述第一协商结果建立会话连接。 The service server 1202 is configured to receive the foregoing session request message sent by the control terminal 1201, perform the foregoing specified session media type, negotiate with the session media type supported by the calling terminal and supported by the called terminal, and obtain a first negotiation result, where the foregoing A negotiation result is sent to the calling terminal and the called terminal, so that the calling terminal and the called terminal establish a session connection according to the first negotiation result.
上述实施方式中,在控制终端给业务服务器的会话请求消息中携带指定 的会话媒体类型, 指定的会话媒体类型参与主被叫媒体类型的协商过程, 主 被叫终端会话连接的媒体类型通过指定的会话媒体类型、被叫终端以及主叫 终端的媒体协商结果决定, 从而实现对媒体类型控制。 进一步地, In the foregoing implementation manner, the session request message sent by the control terminal to the service server carries the specified session media type, and the specified session media type participates in the negotiation process of the primary and the called media type, and the media type of the connection between the primary and the called terminal session is specified. The session media type, the called terminal, and the media negotiation result of the calling terminal are determined, thereby implementing media type control. further,
上述控制终端 1201, 还用于向业务服务器 1202发送更改信令, 上述更改 信令指定了更改的媒体类型; The control terminal 1201 is further configured to send the change signaling to the service server 1202, where the change signaling specifies the changed media type;
上述业务服务器 1202, 还用于接收控制终端 1201发送的上述更改信令; 接收控制终端 1201发送的更改信令, 上述更改信令指定了更改的会话媒体类 型; 执行上述指定的更改的会话媒体类型与主叫终端支持的以及被叫终端支 持的会话媒体类型协商, 得到第二协商结果; 向主叫终端与被叫终端发送第 二协商结果, 以便于主叫终端与被叫终端根据第二协商结果建立会话连接。 The service server 1202 is further configured to receive the change signaling sent by the control terminal 1201; receive the change signaling sent by the control terminal 1201, where the change signaling specifies the changed session media type; and the session media type that performs the specified change specified above. Negotiating with the session media type supported by the calling terminal and supported by the called terminal, obtaining a second negotiation result; sending a second negotiation result to the calling terminal and the called terminal, so that the calling terminal and the called terminal according to the second negotiation The result is to establish a session connection.
通过控制终端给业务服务器发送更改信令, 业务服务器执行协商过程中 使用上述更改信令中指定的更改的媒体类型参与主被叫媒体类型的协商, 然 后实现了更改媒体类型。 本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步 骤是可以通过程序来指令相关的硬件完成, 所述的程序可以存储于一种计算 机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。 The control server sends the change signaling to the service server, and the service server participates in the negotiation process to participate in the negotiation of the calling and called media types by using the changed media type specified in the above change signaling, and then implements the change of the media type. A person skilled in the art can understand that all or part of the steps of implementing the above embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable storage medium, the above mentioned storage. The medium can be a read only memory, a magnetic disk or an optical disk or the like.
以上对本发明实施例所提供的一种点击拨号中控制会话媒体类型的方 法和装置进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方 式进行了阐述, 以上实施例的说明只是用于帮助理解本发明的方法及其核心 思想; 同时, 对于本领域的一般技术人员, 依据本发明的思想, 在具体实施 方式及应用范围上均会有改变之处, 综上所述, 本说明书内容不应理解为对 本发明的限制。The method and device for controlling the session media type in the click-to-dial are provided in detail in the above embodiments of the present invention. The specific examples are applied to the principle and implementation of the present invention. The description of the above embodiments is only for helping to understand the method of the present invention and its core ideas; at the same time, for those skilled in the art, according to the idea of the present invention, it will be in the specific embodiment and application range. In the above, the contents of the specification are not to be construed as limiting the invention.