CN101123647B - A communication method, system and service control function entity - Google Patents

A communication method, system and service control function entity Download PDF

Info

Publication number
CN101123647B
CN101123647B CN200710153905.2A CN200710153905A CN101123647B CN 101123647 B CN101123647 B CN 101123647B CN 200710153905 A CN200710153905 A CN 200710153905A CN 101123647 B CN101123647 B CN 101123647B
Authority
CN
China
Prior art keywords
terminal
media stream
playing
service control
calling terminal
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
CN200710153905.2A
Other languages
Chinese (zh)
Other versions
CN101123647A (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 CN200710153905.2A priority Critical patent/CN101123647B/en
Publication of CN101123647A publication Critical patent/CN101123647A/en
Priority to PCT/CN2008/072232 priority patent/WO2009033401A1/en
Application granted granted Critical
Publication of CN101123647B publication Critical patent/CN101123647B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1069Session establishment or de-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1101Session protocols
    • H04L65/1104Session initiation protocol [SIP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The present invention discloses a method for communication, which comprises the steps as follows: a calling terminal sends a call request to business control functional entity, and the call request contains a calling terminal identification and a called terminal identification; according to the calling terminal identification and the called terminal identification, the business control functional entity determines a terminal with ability of playing media stream and obtain the address of media stream subscribed by the terminal; the terminal with ability of playing media stream according to the address of the media stream obtains and plays the media stream subscribed by the terminal. The application efficiency of the terminal is improved through the present invention, and the user experiences well. The present invention also discloses a communication system and a business control functional entity.

Description

一种通信方法、系统和业务控制功能实体A communication method, system and service control functional entity

技术领域technical field

本发明涉及通信领域,尤其涉及一种通信方法、系统和业务控制功能实体。The present invention relates to the communication field, in particular to a communication method, system and service control functional entity.

背景技术Background technique

会话发起协议(Session Initiation Protocol,SIP)是下一代网络(NextGeneration Net,NGN)中的重要协议,越来越得到通信业界的重视。开发SIP的目的是为了解决因特网协议(Internet Protocol,IP)网中的信令控制,并同软交换进行通信,提供跨越因特网(Internet)的高级电话业务。Session Initiation Protocol (Session Initiation Protocol, SIP) is an important protocol in the next generation network (NextGeneration Net, NGN), and it is getting more and more attention from the communication industry. The purpose of developing SIP is to solve the signaling control in the Internet Protocol (Internet Protocol, IP) network, communicate with the soft switch, and provide advanced telephone services across the Internet (Internet).

电信网络中存在大量的公共电话交换网(Public Switched Telephone Network,PSTN)用户,随着电信的发展,使用SIP视频电话的用户也越来越多,PSTN终端与SIP可视电话终端之间,或SIP可视电话终端与SIP可视电话终端之间的通话连接之前,SIP可视电话终端的屏幕都是处于闲置状态;在通话连接成功后若进行的是非视频通话,则SIP可视电话终端的屏幕仍然是处于闲置状态,在这些处于闲置的时间可视电话终端的功能没有得到充分的应用,使用户感受较差。There are a large number of Public Switched Telephone Network (PSTN) users in the telecommunications network. With the development of telecommunications, more and more users use SIP video phones. Between PSTN terminals and SIP video phone terminals, or Before the call connection between the SIP videophone terminal and the SIP videophone terminal, the screen of the SIP videophone terminal is in an idle state; The screen is still in an idle state, and the functions of the videophone terminal are not fully utilized during these idle times, which makes the user experience poor.

发明内容Contents of the invention

本发明实施例提供一种通信方法、系统和业务控制功能实体,以解决现有技术中存在的在利用具有播放媒体流能力的终端未进行视频通话时,屏幕处于闲置状态,使用户体验较差的问题。Embodiments of the present invention provide a communication method, system, and service control functional entity to solve the problem in the prior art that when a terminal capable of playing media streams is not used for a video call, the screen is in an idle state, resulting in poor user experience The problem.

一种通信方法,该方法包括:A method of communication, the method comprising:

主叫终端向业务控制功能实体发起呼叫请求,该呼叫请求中包含主叫终端标识和被叫终端标识;The calling terminal initiates a call request to the service control functional entity, and the call request includes the identification of the calling terminal and the identification of the called terminal;

业务控制功能实体将该呼叫请求接续到被叫终端,建立主叫终端和被叫终端之间的通话连接;The service control function entity connects the call request to the called terminal, and establishes a call connection between the calling terminal and the called terminal;

业务控制功能实体根据所述主叫终端标识和被叫终端标识确定具有播放媒体流能力的终端,并获取该具有播放媒体流能力的终端订阅的媒体流的地址;The service control function entity determines a terminal capable of playing media streams according to the calling terminal identifier and called terminal identifier, and obtains the address of the media stream subscribed by the terminal capable of playing media streams;

所述具有播放媒体流能力的终端根据所述媒体流的地址获取并播放该终端订阅的媒体流。The terminal capable of playing media streams acquires and plays the media streams subscribed by the terminal according to the addresses of the media streams.

一种通信系统,该系统包括主叫终端、被叫终端和业务控制功能实体,其中,A communication system, the system includes a calling terminal, a called terminal and a service control function entity, wherein,

所述主叫终端,用于向所述业务控制功能实体发起呼叫请求,该呼叫请求中包含主叫终端标识和被叫终端标识,若该主叫终端具有播放媒体流的能力,则根据所述业务控制功能实体获取的媒体流的地址播放该主叫终端订阅的媒体流;The calling terminal is configured to initiate a call request to the service control functional entity, the call request includes the identification of the calling terminal and the identification of the called terminal, and if the calling terminal has the ability to play media streams, then according to the The address of the media stream obtained by the service control functional entity plays the media stream subscribed by the calling terminal;

所述业务控制功能实体,用于将该呼叫请求接续到被叫终端,建立主叫终端和被叫终端之间的通话连接,以及根据所述呼叫请求中的主叫终端标识和被叫终端标识确定具有播放媒体流能力的终端,并获取该具有播放媒体流能力的终端订阅的媒体流的地址;The service control function entity is used to connect the call request to the called terminal, establish a call connection between the calling terminal and the called terminal, and Determine a terminal capable of playing media streams, and obtain the address of the media stream subscribed to by the terminal capable of playing media streams;

所述被叫终端,用于若该被叫终端具有播放媒体流的能力,则根据所述业务控制功能实体获取的媒体流的地址播放该被叫终端订阅的媒体流。The called terminal is configured to play the media stream subscribed by the called terminal according to the address of the media stream obtained by the service control function entity if the called terminal has the capability of playing media streams.

一种业务控制功能实体,该业务控制功能实体包括:A service control functional entity, the service control functional entity includes:

接收模块,用于接收主叫终端发送的呼叫请求,该呼叫请求中包含主叫终端标识和被叫终端标识;The receiving module is used to receive the call request sent by the calling terminal, and the call request includes the identification of the calling terminal and the identification of the called terminal;

将该呼叫请求接续到被叫终端,建立主叫终端和被叫终端之间的通话连接的模块;A module for connecting the call request to the called terminal and establishing a call connection between the calling terminal and the called terminal;

终端能力确定模块,用于确定所述主叫终端标识和被叫终端标识对应的终端是否具有播放媒体流的能力;A terminal capability determination module, configured to determine whether the terminal corresponding to the calling terminal identifier and the called terminal identifier has the ability to play media streams;

获取模块,用于当所述主叫终端标识和被叫终端标识对应的终端具有播放媒体流能力时,获取所述终端订阅的媒体流的地址。An acquisition module, configured to acquire the address of the media stream subscribed by the terminal when the terminals corresponding to the calling terminal ID and the called terminal ID have the capability of playing media streams.

本发明实施例中,当具有播放媒体流能力的终端摘机后处于未进行视频通话的状态时,该终端播放预先订阅的媒体流数据,提高了终端的应用效率,使用户体验较好。In the embodiment of the present invention, when a terminal capable of playing media streams is off-hook and in a state of not having a video call, the terminal plays pre-subscribed media stream data, which improves the application efficiency of the terminal and makes user experience better.

附图说明Description of drawings

图1(a)和图1(b)为本发明实施例一中通信系统的结构示意图;FIG. 1(a) and FIG. 1(b) are schematic structural diagrams of a communication system in Embodiment 1 of the present invention;

图2为本发明实施例二中通信过程的步骤流程示意图;FIG. 2 is a schematic flowchart of the steps of the communication process in Embodiment 2 of the present invention;

图3为本发明实施例三中通信过程的信令流程示意图;FIG. 3 is a schematic diagram of a signaling flow of a communication process in Embodiment 3 of the present invention;

图4为本发明实施例四中通信过程的信令流程示意图;FIG. 4 is a schematic diagram of a signaling flow of a communication process in Embodiment 4 of the present invention;

图5为本发明实施例五中通信过程的信令流程示意图;FIG. 5 is a schematic diagram of a signaling flow of a communication process in Embodiment 5 of the present invention;

图6为本发明实施例六中通信过程的信令流程示意图;FIG. 6 is a schematic diagram of a signaling flow of a communication process in Embodiment 6 of the present invention;

图7为本发明实施例七中,在主叫终端和被叫终端之间建立通话后实现多媒体彩视业务的信令流程示意图;FIG. 7 is a schematic diagram of a signaling flow for implementing a multimedia color TV service after a call is established between a calling terminal and a called terminal in Embodiment 7 of the present invention;

图8为本发明实施例八中通信过程的信令流程示意图;FIG. 8 is a schematic diagram of a signaling flow of a communication process in Embodiment 8 of the present invention;

图9为本发明实施例九中通信过程的信令流程示意图;FIG. 9 is a schematic diagram of a signaling flow of a communication process in Embodiment 9 of the present invention;

图10为本发明实施例十中通信过程的信令流程示意图;FIG. 10 is a schematic diagram of a signaling flow of a communication process in Embodiment 10 of the present invention;

图11为本发明实施例十一中通信过程的信令流程示意图;FIG. 11 is a schematic diagram of a signaling flow of a communication process in Embodiment 11 of the present invention;

图12(a)和图12(b)为本发明实施例十二中,主叫终端和被叫终端都为融合终端时通信过程的信令流程示意图;FIG. 12(a) and FIG. 12(b) are schematic diagrams of the signaling flow of the communication process when both the calling terminal and the called terminal are converged terminals in Embodiment 12 of the present invention;

图13为本发明实施例十三中业务控制功能实体结构示意图。FIG. 13 is a schematic diagram of a structure of a service control function entity in Embodiment 13 of the present invention.

具体实施方式Detailed ways

为了实现本发明目的,本发明实施例中,在未进行视频通话时,利用具有媒体流播放能力的终端来播放预设的媒体流数据。In order to achieve the purpose of the present invention, in the embodiment of the present invention, when the video call is not in progress, a terminal capable of playing media streams is used to play preset media stream data.

所谓具有播放媒体流能力的终端包括但不限于:SIP可视电话终端、H.323可视电话终端和融合终端。融合终端的概念为:普通PSTN话机和可视电话的话机(SIP可视电话话机)融合在一起的一种终端,其物理实体是一个,而内部逻辑分成PSTN话机和视频话机,内部可以设置非对称数字用户线(Asymmetric Digital Subscriber Line,ADSL)接口和网口。The so-called terminals capable of playing media streams include, but are not limited to: SIP videophone terminals, H.323 videophone terminals and fusion terminals. The concept of a converged terminal is: a terminal that integrates an ordinary PSTN phone and a video phone (SIP video phone). Its physical entity is one, and its internal logic is divided into a PSTN phone and a video phone. Symmetrical Digital Subscriber Line (Asymmetric Digital Subscriber Line, ADSL) interface and network port.

下面结合说明书附图详细描述本发明。The present invention will be described in detail below in conjunction with the accompanying drawings.

如图1(a)和图1(b)所示,为本发明实施例一中通信系统,该系统包括主叫终端11、被叫终端12和业务控制功能实体13,其中,主叫终端11用于向所述业务控制功能实体13发起呼叫请求,该呼叫请求中包含主叫终端标识和/或被叫终端标识,若主叫终端11自身具有播放媒体流的能力,则播放所述业务控制功能实体13获取的主叫终端11订阅的媒体流的地址对应的媒体流;业务控制功能实体13用于根据所述呼叫请求中的主叫终端标识和/或被叫终端标识确定具有播放媒体流能力的终端,并获取该终端订阅的媒体流的地址;被叫终端12用于若自身具有播放媒体流的能力,则播放所述业务控制功能实体13获取的自身订阅的媒体流的地址对应的媒体流。As shown in Figure 1(a) and Figure 1(b), it is a communication system in Embodiment 1 of the present invention, the system includes a calling terminal 11, a called terminal 12 and a service control function entity 13, wherein the calling terminal 11 It is used to initiate a call request to the service control functional entity 13, the call request includes the identification of the calling terminal and/or the identification of the called terminal, and if the calling terminal 11 itself has the ability to play media streams, then play the service control function entity 13. The media stream corresponding to the address of the media stream subscribed by the calling terminal 11 acquired by the functional entity 13; the service control functional entity 13 is used to determine the media stream that has the media stream to play according to the calling terminal identifier and/or called terminal identifier in the call request. capable terminal, and acquire the address of the media stream subscribed by the terminal; the called terminal 12 is used to play the address corresponding to the address of the media stream subscribed by the service control function entity 13 if it has the ability to play the media stream. media stream.

在本发明实施例中所描述的通信系统除了进行通话连接之外,还可以在未进行视频通话时(通话连接建立之前或进行非视频连接)实现多媒体彩视业务。In the communication system described in the embodiment of the present invention, in addition to the call connection, the multimedia color TV service can also be realized when the video call is not in progress (before the call connection is established or a non-video connection is performed).

另外,所述系统还包括应用服务器14,用于查询出所述业务控制功能实体13确定的具有播放媒体流能力的终端订阅的媒体流的地址,并将该地址返回给所述业务控制功能实体13。In addition, the system also includes an application server 14, which is used to query the address of the media stream subscribed by the terminal capable of playing media stream determined by the service control function entity 13, and return the address to the service control function entity 13.

为了方便用户使用本系统,在本实施例中还需要统计具有播放媒体流的能力的主、被叫终端播放媒体流的时间,包括但不限以下两种情况:In order to facilitate users to use this system, in this embodiment, it is also necessary to count the time of playing media streams of the calling and called terminals with the ability to play media streams, including but not limited to the following two situations:

1、如图1(a)所示,所述系统还包括计时器15,用于在具有播放媒体流的能力的所述终端开始播放媒体流时启动计时器,在停止播放媒体流时停止计时器,最终统计播放时长。1. As shown in Figure 1(a), the system also includes a timer 15, which is used to start the timer when the terminal with the ability to play the media stream starts to play the media stream, and stops timing when the media stream is stopped. device, and finally count the playing time.

2、如图1(b)所示,具有播放媒体流的能力的所述终端,用于在启动或停止播放媒体流时将播放状态发送给业务控制功能实体13;业务控制功能实体13用于将所述播放状态转发给应用服务器14;应用服务器14用于根据启动播放事件和停止播放事件统计播放时长。2. As shown in Figure 1(b), the terminal having the ability to play media streams is used to send the playback status to the service control functional entity 13 when starting or stopping playing the media stream; the service control functional entity 13 is used to The playing state is forwarded to the application server 14; the application server 14 is used to count the playing duration according to the start playing event and the stop playing event.

另外,还可以将计时器15和应用服务器14结合在一起,执行统计播放时长的操作。In addition, the timer 15 and the application server 14 can also be combined to perform the operation of counting the playing time.

在本发明实施例的系统和后续所描述的方法中,都可以应用于SIP协议或H.323协议等。Both the system in the embodiment of the present invention and the method described later can be applied to the SIP protocol or the H.323 protocol.

下面结合具体实施例详细描述本发明方法。The method of the present invention will be described in detail below in conjunction with specific examples.

主叫终端或被叫终端中的一个或两个具有播放媒体流数据的能力。如图2所示,为本发明实施例二中通信方法步骤流程示意图,从图中可以看出,本实施例主要包括以下步骤:One or both of the calling terminal or the called terminal has the capability of playing media stream data. As shown in FIG. 2, it is a schematic flow chart of the steps of the communication method in Embodiment 2 of the present invention. It can be seen from the figure that this embodiment mainly includes the following steps:

步骤201:主叫终端通过业务控制功能实体发起呼叫请求,该呼叫请求中包含了主叫终端标识和/或被叫终端标识。Step 201: The calling terminal initiates a call request through the service control function entity, and the call request includes the calling terminal identifier and/or the called terminal identifier.

在呼叫开始时主叫终端首先发起呼叫请求,该呼叫请求中除了包含主叫终端标识和/或被叫终端标识之外,还可以包含了其他正常呼叫时需要的信息。When the call starts, the calling terminal first initiates a call request, and the call request may include other information required for a normal call in addition to the calling terminal ID and/or the called terminal ID.

业务控制功能实体包括但不限于:SIP服务器(SIP Server),H.323服务器(H.323 Server)。Service control functional entities include but are not limited to: SIP server (SIP Server), H.323 server (H.323 Server).

步骤202:业务控制功能实体根据主、被叫终端标识分别判断主、被叫终端是否具有播放媒体流的能力,若具有,则执行步骤203,若都不具有,则进行正常的通话连接。Step 202: The service control function entity judges whether the calling terminal and the called terminal have the ability to play media streams according to the identifiers of the calling terminal and the called terminal. If yes, perform step 203. If not, proceed to normal call connection.

在本实施例中,普通的PSTN电话终端只进行正常的通话,并不具有播放媒体流数据的能力,因此业务控制功能实体可以根据接收到的终端标识从归属签约用户服务器(Home Subscriber Server,HSS)确定主、被叫终端中哪一个或两个具有播放媒体流数据的能力。In this embodiment, an ordinary PSTN telephone terminal only performs normal calls and does not have the ability to play media stream data. Therefore, the service control function entity can send a message from the Home Subscriber Server (HSS) according to the received terminal identifier. ) to determine which one or both of the calling terminal and the called terminal have the ability to play media stream data.

步骤203:业务控制功能实体从应用服务器(Application Server,AS)处获取具有播放媒体流数据能力的主叫终端和/或被叫终端订阅的媒体流地址。Step 203: The service control functional entity acquires the media stream address subscribed by the calling terminal and/or the called terminal that has the capability of playing media stream data from the Application Server (AS).

所述媒体流地址包括但不限于:媒体流数据的统一资源定位符(UniversalResource Locator,URL)。The media stream address includes but not limited to: a uniform resource locator (Universal Resource Locator, URL) of media stream data.

AS包括但不限于:策略服务器。AS includes but not limited to: policy server.

步骤204:业务控制功能实体将获取的媒体流地址返回给所述主叫终端和/或被叫终端。Step 204: The service control function entity returns the acquired media stream address to the calling terminal and/or the called terminal.

若主叫终端具有播放媒体流的能力,可以预先订制希望播放的媒体流,或由电信运行商为终端订制媒体流数据,则建立主叫终端标识与媒体流地址的对应关系。当业务控制功能实体根据主叫终端的属性确定主叫终端具有播放媒体流的能力时,从AS中查询出对应的媒体流地址,并返回给主叫终端。判断被叫终端的能力并返回媒体流地址的过程类似。If the calling terminal has the ability to play media streams, the desired media streams can be pre-ordered, or the telecommunications operator can order media stream data for the terminal, then establish the corresponding relationship between the calling terminal ID and the media stream address. When the service control function entity determines that the calling terminal has the ability to play media streams according to the attributes of the calling terminal, it queries the corresponding media stream address from the AS and returns it to the calling terminal. The process of judging the capability of the called terminal and returning the media stream address is similar.

步骤205:具有播放媒体流能力的主叫终端和/或被叫终端播放所述媒体流地址对应的媒体流。Step 205: The calling terminal and/or the called terminal capable of playing the media stream plays the media stream corresponding to the media stream address.

具有播放媒体流能力的主叫终端和/或被叫终端接收到所述媒体流地之后,根据该地址连接到媒体流服务器,并播放从媒体流服务器处获得的媒体流。After receiving the media stream, the calling terminal and/or the called terminal capable of playing the media stream connects to the media stream server according to the address, and plays the media stream obtained from the media stream server.

在本发明实施例中所描述的通信方法除了进行通话连接之外,还可以在未进行视频通话时(通话连接建立之前或进行非视频连接)实现多媒体彩视业务。In the communication method described in the embodiment of the present invention, in addition to the call connection, the multimedia color TV service can also be realized when the video call is not in progress (before the call connection is established or a non-video connection is performed).

本发明实施例二中还包括业务控制功能实体将呼叫请求接续到被叫终端的步骤,该步骤可以应用在步骤201与步骤202之间,也可以应用在步骤203和步骤205之间。Embodiment 2 of the present invention also includes the step of the service control functional entity connecting the call request to the called terminal, and this step can be applied between step 201 and step 202, or between step 203 and step 205.

在呼叫接续之前,利用SIP可视电话终端播放音、视频数据时,根据主被叫终端的种类存在多种情况,下面针对不同的情况分别进行描述。Before the call is connected, when the SIP videophone terminal is used to play audio and video data, there are many situations depending on the types of the calling and called terminals, and the different situations will be described below.

如图3所示,为本发明实施例三中在通信过程中实现多媒体彩视业务的信令流程示意图,在本实施例三中,设定业务控制功能实体为SIP Server,主叫终端为SIP可视电话终端,媒体流地址为URL,本实施例三主要包括以下步骤:As shown in Figure 3, it is a schematic diagram of the signaling process for realizing the multimedia color TV service in the communication process in the third embodiment of the present invention. In the third embodiment, the service control function entity is set as SIP Server, and the calling terminal is SIP The videophone terminal, the media stream address is URL, and the third embodiment mainly includes the following steps:

步骤301:主叫终端摘机,将摘机事件上报给SIP Server。Step 301: The calling terminal goes off-hook, and reports the off-hook event to the SIP Server.

设定主叫终端与SIP Server之间订阅了终端状态上报事件,当主叫终端摘机时,主叫终端用户状态上报给SIP Server,即将摘机事件上报给SIP Server。在本实施例中,可以将上报的终端用户状态看作是呼叫请求,上报的信息包含主叫终端标识和主叫终端的状态信息。Set the calling terminal and the SIP Server to subscribe to the terminal status reporting event. When the calling terminal goes off-hook, the calling terminal user status will be reported to the SIP Server, and the off-hook event will be reported to the SIP Server. In this embodiment, the reported terminal user status can be regarded as a call request, and the reported information includes the calling terminal identifier and the calling terminal status information.

步骤302:SIP Server从策略服务器处获得主叫终端对应的媒体流的URL地址。Step 302: The SIP Server obtains the URL address of the media stream corresponding to the calling terminal from the policy server.

在本实施例中,由于主叫终端是SIP可视电话终端,则当主叫终端摘机时,SIP Server将为主叫终端查询需要播放的媒体流的URL地址,以便主叫终端在未进行视频通话时播放媒体流。In this embodiment, since the calling terminal is a SIP videophone terminal, when the calling terminal goes off-hook, the SIP Server will query the URL address of the media stream to be played for the calling terminal, so that the calling terminal will Play media stream during video call.

策略服务器根据预先设定的方式获取主叫终端需要播放的媒体流的URL地址,包括但不限于:The policy server obtains the URL address of the media stream that the calling terminal needs to play according to a preset method, including but not limited to:

主叫终端预先订阅了媒体流(视频短片或视频广告信息等),并建立了主叫终端标识与媒体流URL的对应关系,SIP Server将主叫终端标识发送给策略服务器,策略服务器根据已建立的主叫终端标识与媒体流URL的对应关系查找出所述URL,并返回给SIP Server。The calling terminal pre-subscribes the media stream (video clip or video advertisement information, etc.), and establishes the corresponding relationship between the calling terminal ID and the media stream URL, and the SIP Server sends the calling terminal ID to the policy server, and the policy server The corresponding relationship between the calling terminal identifier and the media stream URL is found to find out the URL and return it to the SIP Server.

步骤303:SIP Server将接收到的URL发送给主叫终端,则主叫终端播放所述URL对应的媒体流。Step 303: The SIP Server sends the received URL to the calling terminal, and the calling terminal plays the media stream corresponding to the URL.

主叫终端根据所述URL从流媒体服务器处获取该URL对应的媒体流,并向用户播放该媒体流。The calling terminal obtains the media stream corresponding to the URL from the streaming media server according to the URL, and plays the media stream to the user.

在本实施例三中,只要终端与SIP Server之间订阅了终端状态上报事件,则只要终端摘机且未进行视频通话时,都可以通过终端向用户播放设定的音视频数据。In the third embodiment, as long as the terminal status reporting event is subscribed between the terminal and the SIP Server, the set audio and video data can be played to the user through the terminal as long as the terminal is off-hook and no video call is in progress.

如图4所示,为本发明实施例四中在通信过程中的信令流程示意图,在本实施例四中,设定主叫终端为PSTN终端,被叫终端为SIP可视电话终端,当主叫终端在听回铃音且被叫终端在振铃时,被叫终端播放媒体流数据。此过程包括:As shown in Figure 4, it is a schematic diagram of the signaling flow in the communication process in Embodiment 4 of the present invention. In Embodiment 4, the calling terminal is set to be a PSTN terminal, and the called terminal is a SIP videophone terminal. When the calling terminal is listening to the ring back tone and the called terminal is ringing, the called terminal plays the media stream data. This process includes:

步骤401:主叫终端通过SIP Server发起呼叫请求。Step 401: The calling terminal initiates a call request through the SIP Server.

主叫终端将呼叫请求发送给SIP Server,该呼叫请求中包含主叫终端标识和被叫终端标识。The calling terminal sends a call request to the SIP Server, and the call request includes the identification of the calling terminal and the identification of the called terminal.

在本实施例中是以SIP消息为例来说明实现彩视业务的,因此,所述呼叫请求可以为邀请消息(SIP INVITE)。In this embodiment, a SIP message is taken as an example to illustrate the realization of the color TV service, therefore, the call request may be an invitation message (SIP INVITE).

步骤402:SIP Server确定被叫终端具有播放媒体流的能力。Step 402: The SIP Server determines that the called terminal has the ability to play media streams.

SIP Server根据接收到的呼叫请求中的主叫终端标识和被叫终端标识确定主叫终端为PSTN终端,被叫终端为SIP可视电话终端。The SIP Server determines that the calling terminal is a PSTN terminal and the called terminal is a SIP videophone terminal according to the calling terminal ID and called terminal ID in the received call request.

步骤403:SIP Server从策略服务器处获取被叫终端对应的媒体流地址。Step 403: The SIP Server acquires the media stream address corresponding to the called terminal from the policy server.

策略服务器根据被叫终端标识查找出订阅的媒体流的地址,并返回给SIPServer。The policy server finds out the address of the subscribed media stream according to the identifier of the called terminal, and returns it to the SIPServer.

步骤404:SIP Server将所述呼叫请求发送到被叫终端,将呼叫接续。Step 404: The SIP Server sends the call request to the called terminal, and connects the call.

SIP Server接收到返回的媒体流地址后,将主叫终端和被叫终端之间的呼叫接续:向被叫终端发送呼叫请求,并接收被叫终端返回的SIP 180响应。After receiving the returned media stream address, the SIP Server connects the call between the calling terminal and the called terminal: sends a call request to the called terminal, and receives the SIP 180 response returned by the called terminal.

此时,主叫终端听到回铃音,被叫终端开始振铃。At this time, the calling terminal hears the ring back tone, and the called terminal starts ringing.

步骤405:SIP Server将媒体流地址发送被叫终端,被叫终端根据该媒体流地址播放对应的媒体流。Step 405: The SIP Server sends the media stream address to the called terminal, and the called terminal plays the corresponding media stream according to the media stream address.

与实施例四类似地,当主叫终端为SIP可视电话终端,被叫终端为PSTN终端时,同样可以利用主叫终端播放预先设定的媒体流,如图5所示,为本发明实施例五中通信过程的信令流程示意图,与实施例四中不同的是:SIP Server判断出主叫终端具有播放媒体流的能力,将从策略服务器中获取的媒体流地址发送给主叫终端,由主叫终端根据媒体流地址从流媒体服务器处获取并播放媒体流。Similar to Embodiment 4, when the calling terminal is a SIP videophone terminal and the called terminal is a PSTN terminal, the calling terminal can also be used to play a preset media stream, as shown in FIG. 5 , which is an embodiment of the present invention. The signaling flow diagram of the communication process in Example 5 is different from that in Embodiment 4 in that: the SIP Server determines that the calling terminal has the ability to play media streams, and sends the media stream address obtained from the policy server to the calling terminal, The calling terminal acquires and plays the media stream from the stream media server according to the address of the media stream.

当主叫终端和被叫终端都具有播放媒体流的能力时(如都是SIP可视电话终端),则可以按照本发明实施例六对应的图6所示的信令流程示意图来实现通信过程。SIP Server确定主叫终端和被叫终端都是SIP可视电话终端,则从策略服务器中分别查询这两个终端对应的媒体流的地址,主叫终端在听到回铃音后,和被叫终端在振铃后,分别根据媒体流的地址从流媒体服务器中获取并播放媒体流。When both the calling terminal and the called terminal have the ability to play media streams (for example, both are SIP videophone terminals), the communication process can be implemented according to the signaling flow diagram shown in Figure 6 corresponding to Embodiment 6 of the present invention . The SIP Server determines that both the calling terminal and the called terminal are SIP videophone terminals, and then queries the addresses of the media streams corresponding to the two terminals from the policy server. After the calling terminal hears the ringback tone, After the terminal rings, it obtains and plays the media stream from the streaming media server according to the address of the media stream respectively.

在实施例三、四、五、和六都是在主叫终端和被叫终端之间未通话时实现彩视业务的过程,后续实施例七、八和九中是在主叫终端和被叫终端之间的通话建立后实现彩视业务的过程。Embodiments three, four, five, and six are the process of realizing the color TV service when there is no call between the calling terminal and the called terminal; The process of realizing the color TV service after the call between the terminals is established.

如图7所示,为本发明实施例七中,在主叫终端和被叫终端之间建立通话后实现彩视业务的过程,在本实施例中,设定主叫终端为PSTN终端,被叫终端为SIP可视电话终端,包括:As shown in Fig. 7, it is the process of implementing the color TV service after establishing a call between the calling terminal and the called terminal in Embodiment 7 of the present invention. In this embodiment, the calling terminal is set as a PSTN terminal, and the called terminal is set The calling terminal is a SIP videophone terminal, including:

步骤701:主叫终端向SIP Server发送呼叫请求,SIP Server将该呼叫请求接续到被叫终端,建立主叫终端和被叫终端之间的通话连接。Step 701: The calling terminal sends a call request to the SIP Server, and the SIP Server connects the call request to the called terminal, and establishes a call connection between the calling terminal and the called terminal.

所述呼叫请求中包含了主叫终端标识和被叫终端标识,SIP Server接收到呼叫请求后,根据被叫终端标识将呼叫接续到被叫终端:SIP Server将SIPINVITE发送到被叫终端,并接收被叫终端返回的SIP 180响应消息,此时主叫终端听见回铃音,被叫终端振铃。被叫终端摘机时,向SIP Server发送SIP 200响应消息,SIP Server将应答响应消息(SIP ACK)返回至被叫终端后,主、被叫终端之间开始通话。The call request includes the calling terminal identifier and the called terminal identifier. After receiving the call request, the SIP Server connects the call to the called terminal according to the called terminal identifier: the SIP Server sends the SIP INVITE to the called terminal, and receives The SIP 180 response message returned by the called terminal, at this time, the calling terminal hears the ringback tone, and the called terminal rings. When the called terminal goes off-hook, it sends a SIP 200 response message to the SIP Server, and the SIP Server returns the response message (SIP ACK) to the called terminal, and the calling and called terminals start talking.

步骤702:SIP Server从策略服务器中获取被叫终端对应的媒体流的地址。Step 702: The SIP Server acquires the address of the media stream corresponding to the called terminal from the policy server.

SIP Server根据被叫终端标识确定被叫终端为SIP可视电话终端,则由策略服务器查询出为被叫终端定制的媒体流的地址。The SIP Server determines that the called terminal is a SIP videophone terminal according to the called terminal identifier, and then the policy server queries the address of the media stream customized for the called terminal.

步骤703:被叫终端接收到媒体流地址后,播放该媒体流地址对应的媒体流。Step 703: After receiving the media stream address, the called terminal plays the media stream corresponding to the media stream address.

实施例八是以主叫终端为SIP可视电话、被叫终端为PSTN终端为例的,与实施例七的基本过程类似,区别在于:在主叫终端和被叫终端建立连接之后,SIP Server从策略服务器处查询出为主叫终端订阅的媒体流的地址,由主叫终端根据所述媒体流的地址从流媒体服务器处获取并播放对应的媒体流,如图8所示。Embodiment 8 is an example where the calling terminal is a SIP videophone and the called terminal is a PSTN terminal. The basic process is similar to that of Embodiment 7. The difference is that after the connection between the calling terminal and the called terminal is established, the SIP Server Query the address of the media stream subscribed to the calling terminal from the policy server, and the calling terminal obtains and plays the corresponding media stream from the streaming server according to the address of the media stream, as shown in FIG. 8 .

在实施例九中,设定主叫终端和被叫终端都为SIP可视电话终端,本实施例可以看作实施例七和实施例八的结合,如图9所示,在主被叫终端建立呼叫连接之后,SIP Server从策略服务器处分别获取为主叫终端和被叫终端定制的媒体流的地址,则主叫终端和被叫终端分别根据媒体流的地址从流媒体服务器处获取并播放媒体流。In Embodiment 9, both the calling terminal and the called terminal are set to be SIP videophone terminals. This embodiment can be regarded as a combination of Embodiment 7 and Embodiment 8. As shown in FIG. After the call connection is established, the SIP Server obtains the addresses of the media streams customized for the calling terminal and the called terminal respectively from the policy server, and the calling terminal and the called terminal respectively obtain and play them from the streaming media server according to the addresses of the media streams. media stream.

在本发明实施例中,可以统计主被叫终端播放媒体流的时长,并将该时长信息返回给用户。统计时长的方式但不限于:在终端开始播放媒体流时启动计时器,在停止播放媒体流时停止计时器,根据计时器获取播放时长;具有播放媒体流能力的终端与SIP Server之间订阅终端状态上报事件,当终端开始或停止播放媒体流时可以通过SIP等消息将播放状态发送给SIP Server,SIP Server将该播放状态传递给AS,AS根据启动播放事件和停止播放事件统计出播放时长。In the embodiment of the present invention, the duration of playing the media stream by the calling and called terminals can be counted, and the duration information can be returned to the user. The method of counting the duration is not limited to: start the timer when the terminal starts playing the media stream, stop the timer when it stops playing the media stream, and obtain the playback duration according to the timer; subscribe the terminal between the terminal capable of playing the media stream and the SIP Server Status report event, when the terminal starts or stops playing the media stream, it can send the playback status to the SIP Server through SIP and other messages, and the SIP Server passes the playback status to the AS, and the AS counts the playback time according to the start playback event and stop playback event.

在实施例三至实施例九中,主、被叫终端都是属于同一个SIP Server,在本发明实施例中,主、被叫终端也可以分别属于不同的SIP Server。如图10所示,为本发明实施例十中信令流程示意图,主叫终端和被叫终端分别属于不同的SIP Server。在图中1001标识的虚线框中表示被叫终端在振铃时播放媒体流的过程;图中1002标识的虚线框中表示主叫终端在听回铃音时播放媒体流的过程;图中1003标识的虚线框表示主叫终端和被叫终端进行非视频通话时播放媒体流的过程。在本实施例的图10中,是应用服务器将被叫终端订阅的媒体流的地址返回给为被叫终端提供服务的SIP Server,也可以由为主叫终端提供服务的SIP Server转发该地址。In Embodiment 3 to Embodiment 9, both the calling terminal and the called terminal belong to the same SIP Server, and in the embodiments of the present invention, the calling terminal and the called terminal may also belong to different SIP Servers respectively. As shown in FIG. 10 , which is a schematic diagram of the signaling flow in Embodiment 10 of the present invention, the calling terminal and the called terminal belong to different SIP Servers respectively. In the dotted line frame of 1001 mark among the figure, represent the process that the called terminal plays the media stream when ringing; In the figure 1002 mark, represent the process of the calling terminal playing the media stream when listening to the ringback tone; 1003 in the figure The marked dotted box indicates the process of playing media streams when the calling terminal and the called terminal make a non-video call. In Figure 10 of this embodiment, the application server returns the address of the media stream subscribed by the called terminal to the SIP Server that provides services for the called terminal, or the address may be forwarded by the SIP Server that provides services for the calling terminal.

实施例三至实施例六的彩视业务的实现是在主被叫终端之间未建立呼叫连接时,实施例七至实施例十的彩视业务的实现是在主被叫终端之间建立非视频呼叫连接后,在本发明实施例中,包括但不限于:将呼叫连接建立之前的过程和呼叫连接建立之后的过程结合在一起实现彩视业务。如图11所示,为本发明实施例十一的信令流程示意图,在本实施例中,主、被叫终端都为SIP可视电话终端,业务控制功能实体为归属域服务器节点(S-CSCF),在通话连接之前,分别播放订阅的媒体流,在进行非视频通话之后,主、被叫终端仍然播放订阅的媒体流。该步骤包括:The realization of the color TV service in Embodiment 3 to Embodiment 6 is when no call connection is established between the calling and called terminals, and the realization of the color TV service in Embodiment 7 to Embodiment 10 is to establish an After the video call is connected, in the embodiment of the present invention, it includes but is not limited to: combining the process before and after the call connection establishment to realize the color TV service. As shown in FIG. 11 , it is a schematic diagram of the signaling flow of Embodiment 11 of the present invention. In this embodiment, both the calling terminal and the called terminal are SIP videophone terminals, and the service control functional entity is a home domain server node (S- CSCF), before the call is connected, play the subscribed media stream respectively, after the non-video call, the calling terminal and the called terminal still play the subscribed media stream. This step includes:

步骤1101:主叫终端通过S-CSCF发起呼叫请求,该呼叫请求中可以包含主、被叫终端的标识。Step 1101: The calling terminal initiates a call request through the S-CSCF, and the call request may include identifications of the calling terminal and the called terminal.

当主叫终端摘机后即可发起所述呼叫请求,该呼叫请求可以是INVITE消息,通过代理节点(P-CSCF)发送到S-CSCF,S-CSCF确定主被叫终端具有播放媒体流的能力,则将呼叫请求转发到应用服务器。After the calling terminal goes off-hook, the call request can be initiated. The call request can be an INVITE message, which is sent to the S-CSCF through the proxy node (P-CSCF), and the S-CSCF determines that the calling and called terminals have the ability to play media streams. capability, the call request is forwarded to the application server.

步骤1102:S-CSCF从应用服务器处获得主、被叫终端分别对应的媒体流地址。Step 1102: The S-CSCF obtains the media stream addresses respectively corresponding to the calling terminal and the called terminal from the application server.

应用服务器根据主、被叫终端标识查询出订阅的媒体流的地址,并将该地址通过INVITE返回给S-CSCF。The application server queries the address of the subscribed media stream according to the identification of the calling terminal and the called terminal, and returns the address to the S-CSCF through the INVITE.

步骤1103:S-CSCF将所述呼叫请求发送到被叫终端,将呼叫接续。Step 1103: the S-CSCF sends the call request to the called terminal, and connects the call.

为主叫终端提供服务的S-CSCF将呼叫请求通过为被叫终端提供服务的S-CSCF转发到被叫终端,被叫侧返回180响应消息后,主叫终端处于听回铃音状态,被叫用户处于振铃状态。The S-CSCF that provides services for the calling terminal forwards the call request to the called terminal through the S-CSCF that provides services for the called terminal. After the called side returns a 180 response message, the calling terminal is in the state of listening to the ringback tone, and The caller is in the ringing state.

步骤1104:S-CSCF将媒体流地址发送到主、被叫终端侧,主、被叫终端获取所述地址对应的媒体流,并播放。Step 1104: The S-CSCF sends the media stream address to the calling terminal and the called terminal side, and the calling terminal and the called terminal obtain and play the media stream corresponding to the address.

为主叫终端提供服务的S-CSCF将从应用服务器处获得的媒体流地址分别通过P-CSCF和为被叫终端提供服务的S-CSCF发送给主叫终端和被叫终端,主、被叫终端根据所述地址从流媒体服务器处获取对应的媒体流,并向用户播放。The S-CSCF that provides services for the calling terminal sends the media stream address obtained from the application server to the calling terminal and the called terminal respectively through the P-CSCF and the S-CSCF that provides services for the called terminal. The terminal acquires the corresponding media stream from the stream media server according to the address, and plays it to the user.

在本实施例中,也可以由应用服务器将所述地址发送给主、被叫终端。In this embodiment, the application server may also send the address to the calling terminal and the called terminal.

步骤1105:被叫终端摘机,通话连接建立。Step 1105: The called terminal picks up the phone, and the call connection is established.

在此步骤中,应用服务器可以根据主、被叫终端的标识再次查询主、被叫终端订阅的媒体流地址(主、被叫终端可以在不同的时间订阅不同的媒体流)。In this step, the application server can query the address of the media stream subscribed by the calling terminal and the called terminal again according to the identifiers of the calling terminal and the called terminal (the calling terminal and the called terminal can subscribe to different media streams at different times).

步骤1106:应用服务器将所述地址发送给主、被叫终端,主、被叫终端根据所述地址获得对应的媒体流,并播放。Step 1106: the application server sends the address to the calling terminal and the called terminal, and the calling terminal and the called terminal obtain and play the corresponding media stream according to the address.

若在步骤1105中,应用服务器未再次查询媒体流地址,则此步骤中根据步骤1104中获得的地址播放媒体流。If in step 1105, the application server does not query the media stream address again, then in this step, the media stream is played according to the address obtained in step 1104.

在实施例二至实施例十一中,都是以SIP协议作为数据传输的协议,且具有播放媒体流能力的终端为SIP可视电话终端,在本发明实施例十二中,设定具有播放媒体流能力的终端融合终端,主叫终端和被叫终端都为融合终端,通信流程如图12(a)和图12(b)所示,图12(a)表示主叫终端和被叫终端之间未建立通话连接时实现彩视业务流程,包括:In Embodiment 2 to Embodiment 11, all use the SIP protocol as the protocol for data transmission, and the terminal with the ability to play media streams is a SIP videophone terminal. In Embodiment 12 of the present invention, it is set to have the ability to play The terminal fusion terminal with media streaming capabilities, the calling terminal and the called terminal are both fusion terminals, the communication process is shown in Figure 12(a) and Figure 12(b), and Figure 12(a) shows the calling terminal and called terminal Realize the color TV business process when no call connection is established between them, including:

步骤1201:主叫终端中的PSTN终端通过SIP Server向被叫终端中的PSTN终端发起呼叫请求,该呼叫请求中包含主叫终端标识和被叫终端标识。Step 1201: The PSTN terminal in the calling terminal initiates a call request to the PSTN terminal in the called terminal through the SIP Server, and the call request includes the identification of the calling terminal and the identification of the called terminal.

主叫终端中的PSTN通过正常方式向被叫终端中的PSTN发起请求。The PSTN in the calling terminal initiates a request to the PSTN in the called terminal in a normal manner.

主叫终端中的PSTN终端将该呼叫请求通过初始地址消息(IAM)发送至为主叫终端提供服务的SIP Server A,SIP ServerA将该呼叫请求通过INVITE消息转发至为被叫终端提供服务的SIP ServerB,SIP ServerB将该呼叫请求再次通过IAM发送被叫终端的PSTN终端。被叫终端中的PSTN终端将应答响应消息原路返回至PSTN终端。The PSTN terminal in the calling terminal sends the call request to SIP Server A that provides services for the calling terminal through an initial address message (IAM), and SIP Server A forwards the call request to the SIP server that provides services for the called terminal through an INVITE message. ServerB, SIP ServerB sends the call request to the PSTN terminal of the called terminal through the IAM again. The PSTN terminal among the called terminals returns the reply response message to the PSTN terminal through the original path.

步骤1202:SIP Server确定主被叫终端具有播放媒体流的能力从策略服务器处查询主被叫终端定制的媒体流的地址。Step 1202: The SIP Server determines that the calling and called terminals have the ability to play media streams and inquires from the policy server the addresses of the media streams customized by the calling and called terminals.

SIP Server从策略服务器处获取媒体流的地址可以通过信息(INFO)消息携带需要的信息(如被叫终端标识、主叫终端标识和呼叫信息等)。The SIP Server obtains the address of the media stream from the policy server and can carry the required information (such as the called terminal identifier, the calling terminal identifier, and call information, etc.) through the information (INFO) message.

步骤1203:策略服务器将查询出的媒体流地址分别返回给为主、被终端提供服务的SIP Server。Step 1203: The policy server returns the queried media stream addresses to the SIP Servers that provide services for the main terminal and the terminal respectively.

在本实施例中,可以通过200响应消息携带返回的媒体流地址。In this embodiment, the 200 response message may carry the returned media stream address.

步骤1204:SIP Server分别将媒体流地址返回给主、被叫终端中SIP终端。Step 1204: The SIP Server returns the media stream address to the SIP terminal in the calling terminal and the called terminal respectively.

设定主叫终端对应的媒体流地址为URL A1,被叫终端对应的媒体流地址为URL B1,则SIP Server利用INFO消息将URL A1返回给主叫终端中的SIP终端,将URL B1返回给被叫终端中SIP终端。Set the media stream address corresponding to the calling terminal as URL A1, and the media stream address corresponding to the called terminal as URL B1, then the SIP Server uses the INFO message to return URL A1 to the SIP terminal in the calling terminal, and returns URL B1 to the SIP terminal in the calling terminal. SIP terminal in the called terminal.

步骤1205:主、被叫终端分别接受到媒体流地址获取并播放媒体流。Step 1205: The calling terminal and the called terminal respectively receive the acquisition of the media stream address and play the media stream.

主、被终端向为自身提供服务的SIP Server返回200响应消息。The master terminal and the slave terminal return a 200 response message to the SIP Server that provides services for itself.

通过步骤1201至1205,实现了在主、被叫终端建立通话之前的彩视业务,如图12(b)所示,为主、被叫终端之间建立通话后的彩视业务,包括:Through steps 1201 to 1205, the color TV service before the call is established between the calling terminal and the called terminal is realized. As shown in Figure 12(b), the color TV service after the call is established between the calling terminal and the called terminal includes:

步骤1206:主、被叫终端之间建立正常通话连接。Step 1206: A normal call connection is established between the calling terminal and the called terminal.

被叫终端摘机,将信息通过应答消息(ANM)发送给为被叫终端提供服务器的SIP Server,该SIP Server将该信息通过200消息转发至为主叫终端提供服务器的SIP Server,该SIP Server将该信息通过ANM消息发送给主叫终端的PSTN终端,并将ACK消息返回给为被叫终端提供服务的SIP Server。The called terminal picks up the hook, and sends the information to the SIP Server that provides the server for the called terminal through an answer message (ANM), and the SIP Server forwards the information to the SIP Server that provides the server for the calling terminal through a 200 message. Send this information to the PSTN terminal of the calling terminal through the ANM message, and return the ACK message to the SIP Server that provides services for the called terminal.

步骤1207至步骤1210与前述步骤1202至1205类似。Steps 1207 to 1210 are similar to the aforementioned steps 1202 to 1205 .

步骤1211:主叫终端的SIP终端将携带播放时长的INFO消息通过为自身提供服务的SIP Server转发至策略服务器。Step 1211: The SIP terminal of the calling terminal forwards the INFO message carrying the playback duration to the policy server through the SIP Server that provides services for itself.

被叫终端返回播放时长的过程类似,被叫终端的SIP终端也将携带播放时长的INFO消息通过为自身提供服务的SIP Server转发至策略服务器。The process of the called terminal returning the playback duration is similar, and the SIP terminal of the called terminal also forwards the INFO message carrying the playback duration to the policy server through the SIP Server that provides services for itself.

策略服务器通过相同的路径返回200响应消息。The policy server returns a 200 response message via the same path.

根据实施例二至实施例十二的方案可知:需要主叫终端和被叫终端中的一个或两个具有播放媒体流的能力,对于终端本身的类型并不限制,可以是SIP终端、H.323终端或融合终端或分离终端,因此,通信过程可以是不同类型终端之间的通信,不限于前述实施例描述的情况。According to the solutions of Embodiment 2 to Embodiment 12, it can be seen that one or both of the calling terminal and the called terminal must have the ability to play media streams, and there is no limitation on the type of the terminal itself, which can be a SIP terminal, H. 323 terminals or integrated terminals or separated terminals, therefore, the communication process may be communication between different types of terminals, and is not limited to the situation described in the foregoing embodiments.

在SIP服务器向策略服务器要求查询媒体流地址时,信息可以通过INFO、MESSAGE等消息发送;策略服务器将获取的媒体流的地址通过200、INFO、MESSAGE等消息返回给SIP服务器。When the SIP server requests the policy server to query the address of the media stream, the information can be sent by messages such as INFO and MESSAGE; the policy server returns the address of the obtained media stream to the SIP server by messages such as 200, INFO and MESSAGE.

根据前面的系统及方法的描述,本发明实施例十三还提供一种业务控制功能实体,如图13所示,该业务控制功能实体包括接收模块21、终端能力确定模块22和获取模块23,其中,接收模块21用于接收终端发送的呼叫请求,该呼叫请求中包含终端标识;终端能力确定模块22用于确定所述终端标识对应的终端是否具有播放媒体流的能力;获取模块23用于当所述终端标识对应的终端具有播放媒体流能力时,获取所述终端订阅的媒体流的地址。According to the description of the above system and method, Embodiment 13 of the present invention also provides a service control functional entity. As shown in FIG. 13 , the service control functional entity includes a receiving module 21, a terminal capability determining module 22 and an acquiring module 23, Wherein, the receiving module 21 is used to receive the call request sent by the terminal, and the call request includes the terminal identification; the terminal capability determining module 22 is used to determine whether the terminal corresponding to the terminal identification has the ability to play media streams; the obtaining module 23 is used to When the terminal identified by the terminal is capable of playing media streams, the address of the media stream subscribed by the terminal is acquired.

所述业务控制功能实体还包括发送模块24,用于将所述媒体流的地址返回给具有播放媒体流能力的所述终端。在本实施例中,发送模块24可以将所述媒体流地址携带在INFO消息中发送给终端。The service control function entity also includes a sending module 24, configured to return the address of the media stream to the terminal capable of playing the media stream. In this embodiment, the sending module 24 may carry the media stream address in the INFO message and send it to the terminal.

在本发明实施例所述描述的系统、方法和业务控制功能实体中,主、被叫终端与SIP Server之间需要实现信令传输,若在SIP协议中,则以SIP消息为载体传输需要的信息,若在H.323协议中,则以H.323消息为载体传输需要的信息。以SIP协议为例,SIP消息一般支持TEL URI/SIP URI,而由于本实施例中,SIP消息需要携带媒体流服务器中媒体流的RTSP URI或HTTP URL,因此需要扩展SIP消息中的统一资源标识(URI)地址,使SIP消息也支持RTSPURI或HTTP URL。接口信息如表1所示:In the system, method, and service control functional entity described in the embodiments of the present invention, signaling transmission needs to be realized between the calling terminal and the called terminal and the SIP Server. If it is in the SIP protocol, the SIP message is used as the carrier to transmit the required If the information is in the H.323 protocol, the required information is transmitted with the H.323 message as the carrier. Taking the SIP protocol as an example, SIP messages generally support TEL URI/SIP URI, and because in this embodiment, the SIP message needs to carry the RTSP URI or HTTP URL of the media stream in the media stream server, it is therefore necessary to expand the uniform resource identifier in the SIP message (URI) address, so that SIP messages also support RTSPURI or HTTP URL. The interface information is shown in Table 1:

表1Table 1

其中,INFO消息为传送的消息格式,cmd命令字表示需要执行的动作,如:cmd为4001表示在主、被叫终端在为进行视频通话时,具有播放媒体流能力的终端播放订阅的媒体流。Among them, the INFO message is the message format to be transmitted, and the cmd command word indicates the action to be executed, such as: cmd is 4001, which means that when the calling terminal and the called terminal are not making a video call, the terminal with the ability to play the media stream plays the subscribed media stream .

<linkuri>表示媒体流的地址,地址类型可以是HTTP URL或者RTSPURL,当地址类型为HTTP URL时,终端链接到对应的网站上;地址类型为RTSP URL时,终端链接到对应的流媒体服务器。<linkuri> indicates the address of the media stream. The address type can be HTTP URL or RTSPURL. When the address type is HTTP URL, the terminal links to the corresponding website; when the address type is RTSP URL, the terminal links to the corresponding streaming media server.

<cont>表示linkuri链接的附加说明。<cont> indicates additional description of the linkuri link.

<event>表示终端启动、停止、暂停播放媒体流的状态事件。<event> indicates the status event of the terminal starting, stopping, and pausing the media stream.

<autolink>表示终端连接方式,可以手动方式也可以自动方式。如:autolink为2时表示终端在收到消息后终端自动连接到流媒体服务器,终端不需要任何操作。<autolink> indicates the terminal connection method, which can be manual or automatic. For example: when autolink is 2, it means that the terminal automatically connects to the streaming media server after receiving the message, and the terminal does not need any operation.

同样SIP Server与应用服务器之间也需要实现信令传输,若在SIP协议中,则以SIP消息为载体传输需要的信息,若在H.323协议中,则以H.323消息为载体传输需要的信息。以SIP协议为例,SIP消息一般支持TEL URI/SIP URI,而由于本实施例中,SIP消息需要携带媒体流服务器中媒体流的RTSP URI或HTTP URL,因此需要扩展SIP消息中的URI地址,使SIP消息也支持RTSP URI或HTTP URL。接口信息如表2所示:Similarly, signaling transmission needs to be realized between the SIP Server and the application server. If it is in the SIP protocol, the required information is transmitted using the SIP message as the carrier. If it is in the H.323 protocol, the H.323 message is used as the carrier to transmit the required information. Information. Taking the SIP protocol as an example, the SIP message generally supports TEL URI/SIP URI, and because in this embodiment, the SIP message needs to carry the RTSP URI or the HTTP URL of the media stream in the media stream server, it is therefore necessary to expand the URI address in the SIP message, Enable SIP messages to also support RTSP URI or HTTP URL. The interface information is shown in Table 2:

Figure GSB00000458596100151
Figure GSB00000458596100151

Figure GSB00000458596100161
Figure GSB00000458596100161

表2Table 2

表1和表2是INFO消息的接口信息,如表3所示,为200消息的接口信息。Table 1 and Table 2 are the interface information of the INFO message, as shown in Table 3, it is the interface information of the 200 message.

Figure GSB00000458596100162
Figure GSB00000458596100162

表3table 3

其中,cmd、linkuri、cont、event、autolink Tag参数同软交换和终端接口含义。Among them, cmd, linkuri, cont, event, and autolink Tag parameters have the same meaning as softswitch and terminal interface.

<callee>表示被叫终端标识,<caller>表示主叫终端标识;<callinfo>表示正常呼叫时信息。<callee> indicates the ID of the called terminal, <caller> indicates the ID of the calling terminal; <callinfo> indicates information during a normal call.

通过本发明所述的方法、系统和业务控制功能实体在主、被叫终端未进行视频通话时,播放预先订阅的媒体流数据,使得用户同时可以获得更多的信息,体验较好。Through the method, system and service control functional entity of the present invention, when the calling terminal and the called terminal are not in a video call, the pre-subscribed media stream data is played, so that the user can obtain more information at the same time, and the experience is better.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and equivalent technologies thereof, the present invention also intends to include these modifications and variations.

Claims (11)

1.一种通信方法,其特征在于,该方法包括:1. A communication method, characterized in that the method comprises: 主叫终端向业务控制功能实体发起呼叫请求,该呼叫请求中包含主叫终端标识和被叫终端标识;The calling terminal initiates a call request to the service control functional entity, and the call request includes the identification of the calling terminal and the identification of the called terminal; 业务控制功能实体将该呼叫请求接续到被叫终端,建立主叫终端和被叫终端之间的通话连接;The service control function entity connects the call request to the called terminal, and establishes a call connection between the calling terminal and the called terminal; 业务控制功能实体根据所述主叫终端标识和被叫终端标识确定具有播放媒体流能力的终端,并获取该具有播放媒体流能力的终端订阅的媒体流的地址;The service control function entity determines a terminal capable of playing media streams according to the calling terminal identifier and called terminal identifier, and obtains the address of the media stream subscribed by the terminal capable of playing media streams; 所述具有播放媒体流能力的终端根据所述媒体流的地址获取并播放该终端订阅的媒体流。The terminal capable of playing media streams acquires and plays the media streams subscribed by the terminal according to the addresses of the media streams. 2.如权利要求1所述的方法,其特征在于,所述业务控制功能实体从应用服务器处获取具有播放媒体流能力的终端订阅的媒体流的地址。2. The method according to claim 1, wherein the service control function entity obtains the address of the media stream subscribed by the terminal capable of playing the media stream from the application server. 3.如权利要求1所述的方法,其特征在于,所述方法还包括:3. The method of claim 1, further comprising: 在具有播放媒体流的能力的所述终端开始播放媒体流时启动计时器,在停止播放媒体流时停止计时器,根据计时器获取播放时长;或Start the timer when the terminal capable of playing the media stream starts to play the media stream, stop the timer when the media stream stops playing, and obtain the playing duration according to the timer; or 具有播放媒体流的能力的所述终端启动或停止播放媒体流时将播放状态通过业务控制功能实体发送给应用服务器,该应用服务器根据启动播放事件和停止播放事件统计出播放时长。When the terminal capable of playing the media stream starts or stops playing the media stream, the playback status is sent to the application server through the service control function entity, and the application server counts the playback duration according to the start playback event and the stop playback event. 4.一种通信系统,其特征在于,该系统包括主叫终端、被叫终端和业务控制功能实体,其中,4. A communication system, characterized in that the system includes a calling terminal, a called terminal and a service control functional entity, wherein, 所述主叫终端,用于向所述业务控制功能实体发起呼叫请求,该呼叫请求中包含主叫终端标识和被叫终端标识,若该主叫终端具有播放媒体流的能力,则根据所述业务控制功能实体获取的媒体流的地址播放该主叫终端订阅的媒体流;The calling terminal is configured to initiate a call request to the service control functional entity, the call request includes the identification of the calling terminal and the identification of the called terminal, and if the calling terminal has the ability to play media streams, then according to the The address of the media stream obtained by the service control functional entity plays the media stream subscribed by the calling terminal; 所述业务控制功能实体,用于将该呼叫请求接续到被叫终端,建立主叫终端和被叫终端之间的通话连接,以及根据所述呼叫请求中的主叫终端标识和被叫终端标识确定具有播放媒体流能力的终端,并获取该具有播放媒体流能力的终端订阅的媒体流的地址;The service control function entity is used to connect the call request to the called terminal, establish a call connection between the calling terminal and the called terminal, and Determine a terminal capable of playing media streams, and obtain the address of the media stream subscribed to by the terminal capable of playing media streams; 所述被叫终端,用于若该被叫终端具有播放媒体流的能力,则根据所述业务控制功能实体获取的媒体流的地址播放该被叫终端订阅的媒体流。The called terminal is configured to play the media stream subscribed by the called terminal according to the address of the media stream obtained by the service control function entity if the called terminal has the capability of playing media streams. 5.如权利要求4所述的系统,其特征在于,所述系统还包括:5. The system of claim 4, further comprising: 应用服务器,用于查询出所述业务控制功能实体确定的具有播放媒体流能力的终端订阅的媒体流的地址,并将该地址返回给所述业务控制功能实体。The application server is configured to query the address of the media stream subscribed by the terminal capable of playing media stream determined by the service control functional entity, and return the address to the service control functional entity. 6.如权利要求4所述的系统,其特征在于,所述系统应用会话发起协议或H.323协议。6. The system according to claim 4, wherein the system applies a session initiation protocol or an H.323 protocol. 7.如权利要求5所述的系统,其特征在于,7. The system of claim 5, wherein: 具有播放媒体流的能力的所述终端,用于在启动或停止播放媒体流时将播放状态通过业务控制功能实体发送给应用服务器,该应用服务器根据启动播放事件和停止播放事件统计播放时长;The terminal having the capability of playing the media stream is used to send the playback status to the application server through the service control functional entity when starting or stopping the playback of the media stream, and the application server counts the playback duration according to the start playback event and the stop playback event; 或,所述系统还包括计时器,用于在具有播放媒体流的能力的所述终端开始播放媒体流时启动计时器,在停止播放媒体流时停止计时器,统计播放时长。Or, the system further includes a timer, which is used to start the timer when the terminal capable of playing the media stream starts to play the media stream, stop the timer when the media stream stops playing, and count the playing time. 8.如权利要求4所述的系统,其特征在于,所述具有播放媒体流的能力的终端包括:会话发起协议可视电话终端、H.323可视电话终端或融合终端。8 . The system according to claim 4 , wherein the terminals capable of playing media streams include: Session Initiation Protocol videophone terminals, H.323 videophone terminals or fusion terminals. 9.一种业务控制功能实体,其特征在于,该业务控制功能实体包括:9. A service control functional entity, characterized in that the service control functional entity includes: 接收模块,用于接收主叫终端发送的呼叫请求,该呼叫请求中包含主叫终端标识和被叫终端标识;The receiving module is used to receive the call request sent by the calling terminal, and the call request includes the identification of the calling terminal and the identification of the called terminal; 将该呼叫请求接续到被叫终端,建立主叫终端和被叫终端之间的通话连接的模块;A module for connecting the call request to the called terminal and establishing a call connection between the calling terminal and the called terminal; 终端能力确定模块,用于确定所述主叫终端标识和被叫终端标识对应的终端是否具有播放媒体流的能力;A terminal capability determination module, configured to determine whether the terminal corresponding to the calling terminal identifier and the called terminal identifier has the ability to play media streams; 获取模块,用于当所述主叫终端标识和被叫终端标识对应的终端具有播放媒体流能力时,获取所述终端订阅的媒体流的地址。An acquisition module, configured to acquire the address of the media stream subscribed by the terminal when the terminals corresponding to the calling terminal ID and the called terminal ID have the capability of playing media streams. 10.如权利要求9所述的业务控制功能实体,其特征在于,所述业务控制功能实体还包括:10. The service control functional entity according to claim 9, wherein the service control functional entity further comprises: 发送模块,用于将所述媒体流的地址返回给具有播放媒体流能力的所述终端。A sending module, configured to return the address of the media stream to the terminal capable of playing the media stream. 11.如权利要求10所述的业务控制功能实体,其特征在于,所述发送模块,用于将携带所述媒体流地址的的信息INFO消息发送给所述终端。11. The service control function entity according to claim 10, wherein the sending module is configured to send the information INFO message carrying the media stream address to the terminal.
CN200710153905.2A 2007-09-13 2007-09-13 A communication method, system and service control function entity Expired - Fee Related CN101123647B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN200710153905.2A CN101123647B (en) 2007-09-13 2007-09-13 A communication method, system and service control function entity
PCT/CN2008/072232 WO2009033401A1 (en) 2007-09-13 2008-09-02 A communication method, system and service controlling function entity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710153905.2A CN101123647B (en) 2007-09-13 2007-09-13 A communication method, system and service control function entity

Publications (2)

Publication Number Publication Date
CN101123647A CN101123647A (en) 2008-02-13
CN101123647B true CN101123647B (en) 2011-07-27

Family

ID=39085822

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710153905.2A Expired - Fee Related CN101123647B (en) 2007-09-13 2007-09-13 A communication method, system and service control function entity

Country Status (2)

Country Link
CN (1) CN101123647B (en)
WO (1) WO2009033401A1 (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101123647B (en) * 2007-09-13 2011-07-27 华为技术有限公司 A communication method, system and service control function entity
CN101651991B (en) * 2009-08-27 2012-04-04 华为技术有限公司 Call control method and call control device
CN102148955A (en) * 2011-03-21 2011-08-10 中兴通讯股份有限公司 Method and system for playing multimedia information in videophone process
CN102833597B (en) * 2012-07-04 2016-03-30 合一网络技术(北京)有限公司 A kind of Internet video distribution flow amount control system of Corpus--based Method and method
WO2014036683A1 (en) * 2012-09-04 2014-03-13 华为终端有限公司 Media playback method, control point and terminal
CN103024535A (en) * 2012-12-25 2013-04-03 北京奇虎科技有限公司 Video playing method, server and video playing system
CN104836783B (en) * 2014-06-04 2018-10-30 腾讯科技(北京)有限公司 The method, apparatus and system of data transmission
CN113966011B (en) * 2020-07-03 2025-02-18 中国移动通信有限公司研究院 Call establishment method, device, equipment and storage medium
CN115695381A (en) * 2021-07-30 2023-02-03 中兴通讯股份有限公司 Communication method, signaling control network element, media control network element and communication system
CN115883929B (en) * 2021-09-28 2024-08-02 聚好看科技股份有限公司 Video playing duration reporting method and display device
CN118802853B (en) * 2024-06-03 2026-01-06 中国移动通信有限公司研究院 Methods, devices, equipment, storage media, and software products for the fusion of media streaming and voice calls.

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1625194A (en) * 2003-12-04 2005-06-08 华为技术有限公司 System and method for realizing colour ringback sound service
CN1744629A (en) * 2004-09-02 2006-03-08 惠州Tcl移动通信有限公司 Method for realizing calling subscriber to listen to self-made ring back sound
CN1968333A (en) * 2006-11-24 2007-05-23 华为技术有限公司 Ringing system, apparatus and method, and media resource server
CN1972338A (en) * 2005-11-23 2007-05-30 苏成春 Color background ring-back/incoming call display system and method
CN1997094A (en) * 2006-12-22 2007-07-11 华为技术有限公司 Method for color ringtone and system, and device for providing color ringtone
EP1819125A1 (en) * 2006-02-10 2007-08-15 Siemens S.p.A. Method and apparatus to deliver precustomized business card multimedia contents through IMS based PLMNs for improving the existing calling line identification service
CN101031004A (en) * 2006-02-28 2007-09-05 华为技术有限公司 Method for realizing on-hook triggering service
CN101035161A (en) * 2006-03-09 2007-09-12 中兴通讯股份有限公司 Method for using the intelligent visual terminal to realize the image color ring

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020176559A1 (en) * 2001-05-24 2002-11-28 Adamek John Gerard Multimedia for calls on hold
US7269415B2 (en) * 2003-12-09 2007-09-11 Lucent Technologies Inc. Playing one or more videos at one or more mobile phones while one or more phone calls associated with the one or more mobile phones are on hold
FR2866510B1 (en) * 2004-02-13 2006-05-05 Gemplus Card Int METHOD AND SYSTEM FOR IDENTIFYING AND CONFIGURING DEVICES IN A WIRELESS COMMUNICATIONS NETWORK
CN100417298C (en) * 2005-11-09 2008-09-03 华为技术有限公司 A mobile communication control method and mobile communication system
CN100446587C (en) * 2006-08-14 2008-12-24 华为技术有限公司 A system and method for realizing multimedia ring back tone service
CN101123647B (en) * 2007-09-13 2011-07-27 华为技术有限公司 A communication method, system and service control function entity

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1625194A (en) * 2003-12-04 2005-06-08 华为技术有限公司 System and method for realizing colour ringback sound service
CN1744629A (en) * 2004-09-02 2006-03-08 惠州Tcl移动通信有限公司 Method for realizing calling subscriber to listen to self-made ring back sound
CN1972338A (en) * 2005-11-23 2007-05-30 苏成春 Color background ring-back/incoming call display system and method
EP1819125A1 (en) * 2006-02-10 2007-08-15 Siemens S.p.A. Method and apparatus to deliver precustomized business card multimedia contents through IMS based PLMNs for improving the existing calling line identification service
CN101031004A (en) * 2006-02-28 2007-09-05 华为技术有限公司 Method for realizing on-hook triggering service
CN101035161A (en) * 2006-03-09 2007-09-12 中兴通讯股份有限公司 Method for using the intelligent visual terminal to realize the image color ring
CN1968333A (en) * 2006-11-24 2007-05-23 华为技术有限公司 Ringing system, apparatus and method, and media resource server
CN1997094A (en) * 2006-12-22 2007-07-11 华为技术有限公司 Method for color ringtone and system, and device for providing color ringtone

Also Published As

Publication number Publication date
CN101123647A (en) 2008-02-13
WO2009033401A1 (en) 2009-03-19

Similar Documents

Publication Publication Date Title
CN101123647B (en) A communication method, system and service control function entity
KR101548140B1 (en) Method and system for selective call forwarding based on media attributes in telecommunication network
KR101230939B1 (en) Method and apparatus for providing multimedia ringback services to mobile user devices in pre-mis networks
CN101340629B (en) A method, system and device for realizing multimedia ring back tone service
KR101274322B1 (en) Method and apparatus for providing interactive media during communication in channel-based media telecommunication protocols
US20070201635A1 (en) System and method for implementing multimedia calling line identification presentation service
US20080273671A1 (en) Method, system and application server for preventing crosstalk of color ring back tone
CN101222680A (en) Early media broadcast implementing method, communication terminal and application server
US8908853B2 (en) Method and device for displaying information
CN102077559A (en) Method and network unit for realizing customized video service in IMS network
CN101106594A (en) System, method and terminal for identifying caller
WO2009089797A1 (en) Method for implementing color ringback tone and/or multimedia ringback tone service and producing early-media sdp request
KR20050067913A (en) System and its method for multimedia ring back service using session initiation protocol
CN102571819B (en) A kind of method and server realizing Multimedia Ring Back Tone service
CN100550753C (en) Method, terminal and system that a kind of multimedia messages transmits
CN101080086B (en) Implementation system and method of color image service
CN101001185A (en) Specification processing method of multimedia call
CN101166162B (en) A way to deliver business events
CN101997837B (en) Color image playing method and device
KR101208119B1 (en) System and method for video communication service based on sip using smart card
CN101800948B (en) Method, device and system for implementing call deflection service
KR100963010B1 (en) SIP-based video call service system using smart card and method thereof
CN101202788A (en) Method for Playing Colored Ringing Tone Using Early Media Technology
CN100499708C (en) Method for playing individualized ring back tone for calling terminal in low speed
WO2008017189A1 (en) System and method for realizing colorful ring back tone service in 3g ip multimedia subsystem network

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

Granted publication date: 20110727

CF01 Termination of patent right due to non-payment of annual fee