



技术领域technical field
本发明涉及通信技术领域,尤其涉及一种给多设备环境中的用户提供信息的方法和装置。The invention relates to the field of communication technology, in particular to a method and device for providing information to users in a multi-device environment.
背景技术Background technique
近年来,出现了各种在用户之间传送数据、语音、视频等媒体信息的通信技术,电信网运营商和互联网服务提供商也随之提供了各种新型、多样的应用和业务,以吸引用户。In recent years, various communication technologies for transmitting data, voice, video and other media information between users have emerged, and telecom network operators and Internet service providers have also provided various new and diverse applications and services to attract users. user.
呈现业务是以某种通信方式,按照一定的接入准则,实时获取某个用户的呈现信息(如用户状态、通信能力等)并展现给其它用户的一种方法。由于呈现业务在个人通信技术特别是即时通信中扮演着非常重要的角色,受到业界极大重视。呈现业务可以使用户订阅他人当前状态信息和状态变化信息,从而为个人/企业用户的办公、会议、通信等多领域提供高效便捷的解决方案。因此,呈现业务正在得到越来越广泛的应用。Presence service is a method of acquiring a user's presence information (such as user status, communication capability, etc.) in real time according to a certain access criterion in a certain communication mode and presenting it to other users. Since the presence service plays a very important role in personal communication technology, especially instant messaging, it has received great attention from the industry. The presence service enables users to subscribe to other people's current status information and status change information, thereby providing efficient and convenient solutions for individual/enterprise users in multiple fields such as office, meeting, and communication. Therefore, the presentation service is being applied more and more widely.
SIP(Session Initiation Protocol,会话初始化协议)是一种应用控制(信令)协议,用于在IP网络上建立、修改或者终止多媒体会话或呼叫。目前的大多数呈现业务规范都是基于SIP/IP核心网实现的。SIP (Session Initiation Protocol, Session Initiation Protocol) is an application control (signaling) protocol for establishing, modifying or terminating multimedia sessions or calls on an IP network. Most of the current presentation service specifications are implemented based on the SIP/IP core network.
当前,为一个呈现业务用户的地址绑定多个设备,并为每个设备提供一个全局可路由的GRUU(终端设备标识符),该GRUU为设备在网络层的地址标识。用户利用该多个设备进行业务通信逐渐成为个人通信技术的一个发展方向和重要需求。Currently, multiple devices are bound to one presence service user's address, and a globally routable GRUU (terminal device identifier) is provided for each device, and the GRUU is the address identifier of the device at the network layer. It has gradually become a development direction and an important requirement of personal communication technology for users to use the multiple devices for business communication.
在呈现业务中,如果呈现业务用户的地址绑定了多个设备,该用户常常希望其在某设备上订阅的呈现信息同时也呈现到其他设备上,即通过一次订阅使其所有设备都可以获得所订阅的呈现信息。In the presence service, if the address of the presence service user is bound to multiple devices, the user often hopes that the presence information subscribed on one device will also be presented on other devices at the same time, that is, all devices can obtain it through one subscription Subscribed presence information.
现有技术中的一种呈现业务用户在单设备环境下订阅呈现信息的方法的处理流程如图1所示,具体处理过程如下:The processing flow of a method in the prior art for a presence service user to subscribe to presence information in a single-device environment is shown in FIG. 1 , and the specific processing process is as follows:
呈现业务系统中主要包含呈现源、观察者、呈现服务器等网络实体。其中,呈现源为呈现业务提供呈现信息;观察者用于订阅一个或多个呈现源的呈现信息;呈现服务器负责接收、存储和分发呈现信息,以及分发观察者订阅的呈现信息。The presence service system mainly includes network entities such as presence sources, observers, and presence servers. Among them, the presence source provides presence information for the presence service; the watcher is used to subscribe to the presence information of one or more presence sources; the presence server is responsible for receiving, storing and distributing the presence information, and distributing the presence information subscribed by the watcher.
首先,呈现源使用SIP PUBLISH(发布)请求将自己的呈现信息发布到呈现服务器,然后,观察者使用SIP SUBSC RIBE(订阅)请求向呈现服务器订阅一个或多个呈现源的呈现信息,最后,呈现服务器构造SIP NOTIFY(通知)消息,该SIP NOTIFY消息的消息体为PIDF(呈现信息数据格式,Presence Information Data Format)或RIDF(丰富的呈现信息数据,RichPresence Extensions to the Presence Information Data)等格式的呈现信息数据,然后,将该SIP NOTIFY消息发送给观察者。First, the presence source uses the SIP PUBLISH (publish) request to publish its own presence information to the presence server. Then, the observer uses the SIP SUBSC RIBE (subscribe) request to subscribe the presence information of one or more presence sources to the presence server. Finally, the presence The server constructs a SIP NOTIFY (notification) message, and the message body of the SIP NOTIFY message is a presentation in a format such as PIDF (Presence Information Data Format) or RIDF (Rich Presence Extensions to the Presence Information Data) Information data, then, send the SIP NOTIFY message to the observer.
当呈现源中的呈现信息发生变化时,使用SIP PUBLISH请求将全部或部分呈现信息发布到呈现服务器,呈现服务器也将使用NOTIFY请求将全部或变化的呈现信息通知给观察者。When the presence information in the presence source changes, use the SIP PUBLISH request to publish all or part of the presence information to the presence server, and the presence server will also use the NOTIFY request to notify the observer of all or the changed presence information.
基于上述图1所示的处理流程,现有技术中的一种呈现业务用户在多设备环境下订阅呈现信息的方法的处理流程如图2所示,具体处理过程如下:Based on the processing flow shown in Figure 1 above, the processing flow of a method in the prior art for a presentation service user to subscribe to presentation information in a multi-device environment is shown in Figure 2, and the specific processing process is as follows:
当呈现业务的用户拥有多个注册到呈现业务的设备(1#、2#、...、X#)时,When the user of the presence service owns multiple devices (1#, 2#, ..., X#) registered to the presence service,
该用户按照上述图1所示的处理流程在每个设备(1#、2#、...、X#)上分别向呈现服务器发起订阅请求,即每个设备都扮演观察者的角色,呈现服务器分别向每个设备发送SIP NOTIFY消息,从而使得每个设备都可以获取呈现源提供的呈现信息。The user initiates a subscription request to the presence server on each device (1#, 2#, ..., X#) according to the processing flow shown in Figure 1 above, that is, each device plays the role of an observer, and the presence server Send a SIP NOTIFY message to each device separately, so that each device can obtain the presence information provided by the presence source.
在实现本发明过程中,发明人发现上述现有技术中的一种呈现业务用户在多设备环境下订阅呈现信息的方法至少存在如下问题:In the process of implementing the present invention, the inventor found that a method in the above-mentioned prior art for a presence service user to subscribe to presence information in a multi-device environment has at least the following problems:
为了使各个设备都获得呈现信息,用户需要在多个设备上分别向呈现服务器订阅同一呈现源的呈现信息,这将增加用户本身发起订阅请求的次数,不符合用户的现实需求,也将使得用户的各个设备不能同时获得相同的呈现信息及其变化,还增加了呈现服务器维护订阅/通知流程和事务的负担。In order for each device to obtain presence information, the user needs to subscribe to the presence server on multiple devices for the presence information of the same presence source, which will increase the number of subscription requests initiated by the user itself, which does not meet the user's actual needs Each device cannot obtain the same presence information and its changes at the same time, and also increases the burden on the presence server to maintain subscription/notification processes and transactions.
发明内容Contents of the invention
本发明实施例提供了一种给多设备环境中的用户提供信息的方法和装置,从而可以解决现有技术中用户需要在多个设备上分别向呈现服务器发送订阅请求的问题。Embodiments of the present invention provide a method and device for providing information to users in a multi-device environment, thereby solving the problem in the prior art that users need to send subscription requests to the presence server on multiple devices.
一种给多设备环境中的用户提供信息的方法,包括:A method of providing information to a user in a multi-device environment, comprising:
呈现服务器获取用户设备所订阅的订阅信息,所述呈现服务器获取所述用户设备对应的用户,从其本地存储的用户注册信息中或者通过核心网获取所述用户的注册信息,所述呈现服务器根据所述注册信息判断所述用户是否对应于注册了呈现业务的其它用户设备,如果是,则获取该其它用户设备信息;The presence server obtains the subscription information subscribed by the user equipment, the presence server obtains the user corresponding to the user equipment, and obtains the registration information of the user from its locally stored user registration information or through the core network, and the presence server obtains the registration information of the user according to The registration information determines whether the user corresponds to other user equipment registered with the presence service, and if so, acquires information about the other user equipment;
所述呈现服务器向所述用户设备和其它用户设备分别发送所述订阅信息。The presence server sends the subscription information to the user equipment and other user equipment respectively.
一种给多设备环境中的用户提供信息的装置,包括:An apparatus for providing information to a user in a multi-device environment, comprising:
订阅信息获取模块,用于获取用户设备所订阅的订阅信息;A subscription information acquisition module, configured to acquire subscription information subscribed by the user equipment;
用户设备信息获取模块,用于获取和所述用户设备绑定到同一个用户的其它用户设备信息;A user equipment information acquisition module, configured to acquire other user equipment information bound to the same user as the user equipment;
订阅信息发送模块,用于向所述用户设备和其它用户设备分别发送所述订阅信息;A subscription information sending module, configured to send the subscription information to the user equipment and other user equipment respectively;
所述用户设备信息获取模块包括:The user equipment information acquisition module includes:
呈现用户设备信息获取模块,用于获取所述用户设备对应的用户,从其本地存储的用户注册信息中或者通过核心网获取所述用户的注册信息,根据所述注册信息判断所述用户是否对应于注册了呈现业务的其它用户设备,如果是,则获取该其它用户设备信息。Presenting a user equipment information acquisition module, configured to acquire the user corresponding to the user equipment, acquire the registration information of the user from the user registration information stored locally or through the core network, and judge whether the user corresponds to the user according to the registration information. For other user equipment registered with the presence service, if so, acquire the information of the other user equipment.
由上述本发明实施例提供的技术方案可以看出,本发明实施例通过在获取了用户设备所订阅的订阅信息,主动获取和所述用户设备绑定到同一个用户地址的其它用户设备信息,从而可以实现当用户的某个设备订阅了订阅信息后,该用户绑定的其它设备也可以得到上述订阅信息,有效、快速地在多设备环境下通过一次订阅请求实现订阅信息的分发。It can be seen from the technical solutions provided by the above-mentioned embodiments of the present invention that the embodiments of the present invention proactively obtain information about other user equipment bound to the same user address as the user equipment after obtaining the subscription information subscribed by the user equipment, In this way, when a certain device of the user subscribes to the subscription information, other devices bound to the user can also obtain the subscription information, and effectively and quickly distribute the subscription information through a subscription request in a multi-device environment.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without any creative effort.
图1为现有技术中的一种呈现业务用户在单设备环境下订阅呈现信息的方法的处理流程图;FIG. 1 is a processing flow chart of a method in the prior art for a presence service user to subscribe to presence information in a single-device environment;
图2为现有技术中的一种呈现业务用户在多设备环境下订阅呈现信息的方法的处理流程图;FIG. 2 is a processing flow chart of a method in the prior art for a presence service user to subscribe to presence information in a multi-device environment;
图3本发明实施例一提供的一种呈现服务器给用户实现呈现业务的方法的处理流程图;FIG. 3 is a processing flowchart of a method for a presence server to provide a user with a presence service provided by Embodiment 1 of the present invention;
图4为本发明实施例二提供的多设备环境下的呈现业务用户订阅呈现信息的处理流程图;FIG. 4 is a flowchart of the process of subscribing presence information by a presence service user in a multi-device environment according to Embodiment 2 of the present invention;
图5为本发明实施例提供的给多设备环境中的用户提供信息的装置的具体实现结构图。Fig. 5 is a specific implementation structural diagram of an apparatus for providing information to users in a multi-device environment provided by an embodiment of the present invention.
具体实施方式Detailed ways
在本发明实施例中,在获取了用户设备所订阅的订阅信息后,获取和所述用户设备绑定到同一个用户地址的其它用户设备信息。然后,向所述用户设备和其它用户设备分别发送所述订阅信息。In the embodiment of the present invention, after the subscription information subscribed by the user equipment is acquired, other user equipment information bound to the same user address as the user equipment is acquired. Then, send the subscription information to the user equipment and other user equipment respectively.
进一步地,当所述订阅信息为呈现业务中的呈现信息时,呈现服务器接收用户设备发送的呈现信息的订阅请求,从相应的呈现源获取并保存呈现信息;或者,呈现源在其呈现信息发生变化时,发布更新的呈现信息或者全部呈现信息到呈现服务器,呈现服务器接收并保存所述呈现源发送的呈现信息,并且确定订阅所述呈现源的呈现信息的用户设备。Further, when the subscription information is the presence information in the presence service, the presence server receives the presence information subscription request sent by the user equipment, acquires and saves the presence information from the corresponding presence source; or, the presence source When changing, publish the updated presence information or all the presence information to the presence server, and the presence server receives and saves the presence information sent by the presence source, and determines the user equipment subscribing to the presence information of the presence source.
进一步地,呈现服务器获取所述用户设备所绑定的用户,从其本地存储的用户注册信息中或者通过核心网获取所述用户的注册信息,呈现服务器根据所述注册信息判断所述用户是否绑定了注册了呈现业务的其它用户设备,如果是,则获取该其它用户设备信息。Further, the presence server obtains the user bound to the user equipment, obtains the registration information of the user from its locally stored user registration information or through the core network, and judges whether the user is bound to the user according to the registration information. Other user equipment registered with the presence service is determined, and if yes, the other user equipment information is acquired.
所述呈现服务器分别向所述用户设备和各个指定用户设备发送携带所述呈现信息的消息。The presence server sends messages carrying the presence information to the user equipment and each designated user equipment respectively.
进一步地,当呈现服务器和用户设备之间通过SIP协议进行通信时,呈现服务器向所述用户设备发送携带所述呈现信息的通知NOTIFY请求,分别向各个指定用户设备发送携带所述呈现信息的消息MESSAGE请求,在该MESSAGE请求的头域中携带多设备环境下的呈现信息的指示信息。Further, when the presence server and the user equipment communicate through the SIP protocol, the presence server sends a NOTIFY request carrying the presence information to the user equipment, and sends a message carrying the presence information to each designated user equipment respectively. In the MESSAGE request, the header field of the MESSAGE request carries indication information of presence information in a multi-device environment.
本发明实施例所述方法和装置可以应用于在多设备环境下使用订阅/通知机制的各种应用场景,该应用场景包括:呈现业务,以及其它订阅相关业务,如会议订阅,媒体娱乐节目订阅等通过SUBSC RIBE/NOTIFY消息对实现的业务,在多设备环境下都可以通过该方法实现。The method and device described in the embodiments of the present invention can be applied to various application scenarios using the subscription/notification mechanism in a multi-device environment, and the application scenarios include: presence services, and other subscription-related services, such as conference subscriptions, media entertainment program subscriptions Services that are realized through the SUBSC RIBE/NOTIFY message pair can be realized through this method in a multi-device environment.
下面以呈现业务为例,来描述本发明实施例所述方法和装置。The following takes the presentation service as an example to describe the method and device in the embodiments of the present invention.
为便于对本发明实施例的理解,下面将结合附图以几个具体实施例为例做进一步的解释说明,且各个实施例并不构成对本发明实施例的限定。In order to facilitate the understanding of the embodiments of the present invention, several specific embodiments will be taken as examples for further explanation below in conjunction with the accompanying drawings, and each embodiment does not constitute a limitation to the embodiments of the present invention.
实施例一Embodiment one
该实施例一提供的一种呈现服务器给用户实现呈现业务的方法的处理流程如图3所示,包括如下处理步骤:The processing flow of a method for a presence server to provide a user with a presence service provided by Embodiment 1 is shown in FIG. 3 , including the following processing steps:
步骤31、呈现服务器收到某个呈现业务用户发送的订阅某个或某组呈现源的呈现信息的订阅请求。Step 31: The presence server receives a subscription request for subscribing to presence information of a certain presence source or a certain group of presence sources sent by a certain presence service user.
步骤32、呈现服务器根据订阅请求中携带的用户地址判断该用户是否为多设备环境。Step 32, the presence server judges whether the user is in a multi-device environment according to the user address carried in the subscription request.
在实际应用中,呈现服务器可以根据订阅请求中携带的用户地址,查询本地保存的用户注册信息获取该呈现业务用户的注册信息;如果呈现服务器本地没有保存用户注册信息,则可以向SIP/IP核心网订阅和获取该呈现业务用户的注册事件包,以获取该呈现业务用户的注册信息。In practical applications, the presence server can query the locally saved user registration information to obtain the registration information of the presence service user according to the user address carried in the subscription request; The network subscribes to and obtains the registration event package of the presence service user, so as to obtain the registration information of the presence service user.
上述呈现业务用户的注册信息中包含用户地址、用户标识和该用户绑定的各个设备的相关信息等,上述设备的相关信息包含设备的gruu参数,gruu参数中包含设备的标识和该设备所绑定的用户的标识。如果一个用户绑定了多个设备,则该用户的注册信息中包含多个gruu参数。The registration information of the above presence service user includes the user address, user ID and related information of each device bound to the user, etc. The related information of the above device includes the gruu parameter of the device, and the gruu parameter includes the device ID and The ID of the given user. If a user is bound to multiple devices, the user's registration information contains multiple gruu parameters.
呈现服务器根据该呈现业务用户的注册信息判断该呈现业务用户的用户地址是否绑定了多个注册了呈现业务的设备,如果上述用户地址没有与多个设备绑定,或者与多个设备绑定但仅有一个设备注册了呈现业务,则执行步骤33;如果上述用户地址绑定了多个注册了呈现业务的设备,则执行步骤34。The presence server judges whether the user address of the presence service user is bound to multiple devices registered with the presence service according to the registration information of the presence service user. If the above user address is not bound to multiple devices, or is bound to multiple devices But only one device has registered the presence service, then perform step 33; if the above user address is bound to multiple devices registered for the presence service, then perform step 34.
步骤33、确定该呈现业务用户为单设备环境下的呈现业务用户,按照现有技术的正常流程构造包含呈现信息的NOTIFY请求,并发送给该呈现业务用户。Step 33: Determine that the presence service user is a presence service user in a single-device environment, construct a NOTIFY request containing presence information according to the normal flow of the prior art, and send it to the presence service user.
步骤34、确定该呈现业务用户为多设备环境下的呈现业务用户。呈现服务器基于业务运营商策略、各接收设备能力集、用户设置集等现有策略,从上述用户地址绑定的多个注册了呈现业务的设备中选择部分或全部设备,作为接收呈现信息的接收设备,所述接收呈现消息的接收设备即其他设备。Step 34: Determine that the presence service user is a presence service user in a multi-device environment. The presence server selects some or all of the devices from the multiple devices registered with the presence service bound to the above user address based on the existing policies such as the service operator's policy, the capability set of each receiving device, and the user setting set, as the receiving device for receiving the presence information. device, the receiving device that receives the presence message is another device.
如果呈现服务器默认向上述用户地址绑定的所有设备发送呈现信息,则可以不执行该步骤。If the presence server sends presence information to all devices bound to the user address by default, this step may not be performed.
步骤35、为发起订阅请求的设备构造和发送包含呈现信息的NOTIFY请求;为其他选定设备构造和发送包含呈现信息的非NOTIFY请求消息。Step 35: Construct and send a NOTIFY request containing presence information for the device that initiates the subscription request; construct and send a non-NOTIFY request message containing presence information for other selected devices.
呈现服务器为上述发送订阅请求的设备构造PIDF或RIDF等格式的呈现信息数据文档,并给该设备发送包含上述呈现信息数据文档的通知消息。The presence server constructs a presence information data file in a format such as PIDF or RIDF for the device sending the subscription request, and sends a notification message containing the presence information data file to the device.
呈现服务器还根据上述呈现业务用户的注册信息获取上述接收设备的gruu参数,根据该gruu参数从其本地保存的设备注册信息或者来自SIP/IP核心网的注册信息事件通知中,获取上述接收设备的设备地址。The presence server also obtains the gruu parameter of the above-mentioned receiving device according to the registration information of the above-mentioned presence service user, and obtains the gruu parameter of the above-mentioned receiving device from the device registration information stored locally or the registration information event notification from the SIP/IP core network according to the gru parameter. device address.
之后,呈现服务器根据上述确定的每个接收设备的地址,构造和发送包含呈现信息数据文档的非NOTIFY请求消息(比如MESSAGE请求消息),并在该非NOTIFY请求消息中包含扩展的Content-Type头域,该头域中包含指示“多设备环境”的参数。Afterwards, the presence server constructs and sends a non-NOTIFY request message (such as a MESSAGE request message) containing the presence information data document according to the address of each receiving device determined above, and includes an extended Content-Type header in the non-NOTIFY request message field, which contains parameters indicating "multi-device environment".
呈现业务用户的各个设备将收到的NOTIFY请求或非NOTIFY请求中所携带的呈现信息解析到相应的用户界面,或者存储到本地的呈现信息文档。Each device of the presence service user parses the presence information carried in the received NOTIFY request or non-NOTIFY request to a corresponding user interface, or stores it in a local presence information file.
该实施例实现了呈现服务器收到某个呈现业务用户发送的呈现信息的订阅请求后,该呈现业务用户绑定的所有注册了呈现业务的设备可以同时得到被订阅的呈现信息,从而有效、快速地在多设备环境下通过一次订阅请求实现呈现业务。This embodiment realizes that after the presence server receives a presence information subscription request sent by a certain presence service user, all the devices registered with the presence service bound to the presence service user can simultaneously obtain the subscribed presence information, thereby effectively and quickly In a multi-device environment, the presentation service can be realized through one subscription request.
实施例二Embodiment two
在该实施例中,在呈现业务用户A的用户地址上绑定了两个注册了呈现业务的设备1#、X#,即呈现业务用户A拥有多设备环境,并且每个设备都可以作为观察者。In this embodiment, two devices 1# and X# registered with the presence service are bound to the user address of the presence service user A, that is, the presence service user A has a multi-device environment, and each device can be used as an observer .
该实施例提供的多设备环境下的呈现业务用户订阅呈现信息的处理流程如图4所示,包括如下处理步骤:The processing flow of the presence service user subscribing to presence information in the multi-device environment provided by this embodiment is shown in FIG. 4 , including the following processing steps:
步骤41:呈现源B发布呈现信息到呈现服务器。Step 41: the presence source B publishes the presence information to the presence server.
步骤42:呈现服务器对该呈现信息进行处理,并返回200OK应答消息给呈现源B。Step 42: the presence server processes the presence information, and returns a 200 OK response message to the presence source B.
步骤43:用户A在其设备1#上构造一个订阅请求,并将该订阅请求发送到呈现服务器,以订阅呈现源B的呈现信息。Step 43: User A constructs a subscription request on his device 1#, and sends the subscription request to the presence server to subscribe to the presence information of the presence source B.
步骤44:呈现服务器接收来自用户A的设备1#的上述订阅请求,呈现服务器决定接受该订阅请求,向用户A的设备1#返回200OK应答消息。Step 44: The presence server receives the subscription request from user A's device 1#, the presence server decides to accept the subscription request, and returns a 200 OK response message to user A's device 1#.
步骤45:呈现服务器根据用户A的用户地址,查询本地保存的用户注册信息获取用户A的注册信息,如果呈现服务器本地没有保存用户注册信息,则向SIP/IP核心网订阅和获取该用户A的注册事件包,以获取用户A的注册信息。Step 45: According to the user address of user A, the presence server queries the locally stored user registration information to obtain the registration information of user A. If the presence server does not store the user registration information locally, it subscribes to the SIP/IP core network and obtains the user A's registration information. Register the event package to obtain the registration information of user A.
呈现服务器根据用户A的注册信息判断用户A的用户地址是否绑定了多个注册了呈现业务的设备。The presence server judges whether the user address of user A is bound to multiple devices registered with the presence service according to the registration information of user A.
如果用户A的用户地址没有与多个设备绑定,或者与多个设备绑定但仅有一个设备订阅了呈现业务,则确定用户A为单设备环境下的用户,按照现有技术的正常流程为该用户A构造包含呈现源B的呈现信息的NOTIFY请求。If user A's user address is not bound to multiple devices, or is bound to multiple devices but only one device subscribes to the presence service, then determine that user A is a user in a single-device environment, and follow the normal process of the prior art A NOTIFY request containing the presence information of the presence source B is constructed for the user A.
如果用户A的用户地址与多个注册了呈现业务的设备进行绑定,则确定用户A为多设备环境下的用户。呈现服务器根据订阅请求中的Contact头域获取上述设备1#的设备标识,并为设备1#构造并发送包含呈现源B的呈现信息的NOTIFY请求。If the user address of user A is bound to multiple devices registered with the presence service, it is determined that user A is a user in a multi-device environment. The presence server obtains the device identifier of the above-mentioned device 1# according to the Contact header field in the subscription request, and constructs and sends a NOTIFY request containing the presence information of the presence source B for device 1#.
然后,呈现服务器根据上述用户A的注册信息,获取用户A绑定的其他设备的gruu参数,根据该gruu参数从其本地保存的设备注册信息或者来自SIP/IP核心网的注册信息事件通知中,获取每个其他设备的设备地址。Then, the presence server obtains the gruu parameters of other devices bound to user A according to the above registration information of user A, and according to the gruu parameters, from the device registration information saved locally or from the registration information event notification from the SIP/IP core network, Get the device address of every other device.
呈现服务器为每个其他设备构造包含呈现源B的呈现信息的MESSAGE请求。该MESSAGE请求中包含Content-Type头域,其头域值为“application/pidf+xml”、“application/rlmi+xml”、“application/pidf-partial+xml”或“application/watcherinfo+xml”等等描述呈现信息的MIME类型,其中,“application/pidf+xml”为PIDF格式的呈现信息,“application/rlmi+xml”为RIDF格式的呈现信息,“application/pidf-partial+xml”为部分PIDF格式的呈现信息(即只包含变化部分的呈现信息,而非全部的呈现信息),“application/watcherinfo+xml”为观察者信息格式的呈现信息。上述Content-Type头域中还携带“purpose=multi-deVices”参数及参数值,以指示MESSAGE请求所携带的消息体为“多设备环境用途的呈现信息”。The presence server constructs a MESSAGE request containing the presence information of the presence source B for each other device. The MESSAGE request contains the Content-Type header field, and its header field value is "application/pidf+xml", "application/rlmi+xml", "application/pidf-partial+xml" or "application/watcherinfo+xml", etc. Describe the MIME type of the presentation information, among which, "application/pidf+xml" is the presentation information in PIDF format, "application/rlmi+xml" is the presentation information in RIDF format, and "application/pidf-partial+xml" is the partial PIDF The presentation information in format (that is, the presentation information that only contains the changed part, but not all the presentation information), "application/watcherinfo+xml" is the presentation information in the watcher information format. The above-mentioned Content-Type header field also carries the "purpose=multi-deVices" parameter and parameter value to indicate that the message body carried in the MESSAGE request is "presentation information for multi-device environment use".
由于MESSAGE请求为SIP信令请求,其携带的消息体不能过长,因此,当呈现信息数据量过大时,可以将所应携带的消息体进行分段,然后封装到多个MESSAGE请求中。Since the MESSAGE request is a SIP signaling request, the message body it carries cannot be too long. Therefore, when the data volume of the presence information is too large, the message body that should be carried can be segmented and then encapsulated into multiple MESSAGE requests.
步骤46:呈现服务器将构造好的NOTIFY请求发送到设备1#。Step 46: The presence server sends the constructed NOTIFY request to device 1#.
步骤47:设备1#向呈现服务器返回对NOTIFY请求的200OK应答消息。Step 47: Device 1# returns a 200 OK response message to the NOTIFY request to the presence server.
步骤48:呈现服务器将构造好的上述MESSAGE请求发送到用户A的其它设备,设备X#。Step 48: The presence server sends the constructed MESSAGE request to another device of user A, device X#.
步骤49:设备X#收到上述MESSAGE请求后,检查MESSAGE请求中的Content-Type头域及头域值,如果包含上述描述呈现信息的MIME类型和“purpose=multi-devices”参数,则认为此MESSAGE请求中所携带的消息体为多设备环境用途的呈现信息数据,并将该MESSAGE请求中所携带的消息体存储到相应的呈现信息文档或解析到相应的用户界面。Step 49: After receiving the above MESSAGE request, device X# checks the Content-Type header field and the header field value in the MESSAGE request. If it contains the above MIME type describing the presentation information and the "purpose=multi-devices" parameter, consider this MESSAGE The message body carried in the request is the presence information data for the multi-device environment, and the message body carried in the MESSAGE request is stored in the corresponding presence information document or parsed into the corresponding user interface.
设备X#向呈现服务器返回对MESSAGE请求的应答。Device X# returns a response to the MESSAGE request to the presence server.
步骤410:呈现源B在其呈现信息发生变化时,发布更新的呈现信息或者全部呈现信息到呈现服务器。Step 410: When the presence information of the presence source B changes, publish the updated presence information or all the presence information to the presence server.
步骤411:呈现服务器返回200OK应答消息给呈现源B。Step 411: the presence server returns a 200 OK response message to the presence source B.
步骤412:呈现服务器查找出先前订阅了呈现源B的呈现信息的呈现业务用户(或其某个设备,例如此实施例中的设备1#),根据该用户的用户地址判断该用户是否拥有多设备环境,如果是,则给该用户的发送了订阅请求的设备(设备1#)构造包含呈现源B的呈现信息的NOTIFY请求,给该用户的其它设备构造包含呈现源B的呈现信息的上述MESSAGE请求。Step 412: The presence server finds out the presence service user (or a certain device thereof, such as device 1# in this embodiment) that previously subscribed to the presence information of the presence source B, and judges whether the user has multiple Device environment, if yes, construct a NOTIFY request containing the presence information of the presence source B to the user's device (device 1#) that has sent the subscription request, and construct the above-mentioned notification containing the presence information of the presence source B to other devices of the user MESSAGE request.
上述NOTIFY请求和MESSAGE请求中所携带的呈现信息可以是完整的呈现信息,也可以是变化部分的呈现信息。The presence information carried in the above NOTIFY request and the MESSAGE request may be complete presence information or changed part of the presence information.
步骤413:呈现服务器将上述NOTIFY请求发送到设备1#。Step 413: the presence server sends the above NOTIFY request to device 1#.
步骤414:设备1#向呈现服务器返回对NOTIFY请求的200OK应答消息。Step 414: Device 1# returns a 200 OK response message to the NOTIFY request to the presence server.
步骤415:呈现服务器将上述MESSAGE请求发送到用户A的其它设备,比如,设备X#。Step 415: the presence server sends the above MESSAGE request to other devices of user A, for example, device X#.
步骤416:设备X#收到上述MESSAGE请求后,检查MESSAGE请求中的Content-Type头域及头域值,如果包含上述描述呈现信息的MIME类型和“purpose=multi-devices”参数,则认为此MESSAGE请求中所携带的消息体为多设备环境用途的呈现信息数据,并将该MESSAGE请求中所携带的消息体存储到相应的呈现信息文档或解析到相应的用户界面。Step 416: After receiving the above MESSAGE request, device X# checks the Content-Type header field and the header field value in the MESSAGE request, and if it contains the above MIME type describing the presentation information and the "purpose=multi-devices" parameter, consider this MESSAGE The message body carried in the request is the presence information data for the multi-device environment, and the message body carried in the MESSAGE request is stored in the corresponding presence information document or parsed into the corresponding user interface.
设备X#向呈现服务器返回对MESSAGE请求的应答。Device X# returns a response to the MESSAGE request to the presence server.
该实施例实现了当用户订阅的呈现信息发生变化时,呈现服务器构造NOTIFY请求或非NOTIFY请求以携带全部或变化部分的呈现信息,实现对用户的接收设备上的呈现信息进行更新。This embodiment realizes that when the presence information subscribed by the user changes, the presence server constructs a NOTIFY request or a non-NOTIFY request to carry all or changed part of the presence information, so as to update the presence information on the user's receiving device.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the programs can be stored in a computer-readable storage medium. During execution, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM), etc.
本发明实施例给多设备环境中的用户提供信息的装置,其具体实现结构如图5所示,具体可以包括:The embodiment of the present invention provides an apparatus for providing information to users in a multi-device environment. Its specific implementation structure is shown in FIG. 5 , and may specifically include:
订阅信息获取模块51,用于获取用户设备所订阅的订阅信息;A subscription information acquisition module 51, configured to acquire subscription information subscribed by the user equipment;
用户设备信息获取模块52,用户获取和所述用户设备绑定到同一个用户地址的其它用户设备信息;User equipment information acquisition module 52, the user acquires other user equipment information bound to the same user address as the user equipment;
订阅信息发送模块53,用于向所述用户设备和其它用户设备分别发送所述订阅信息。A subscription information sending module 53, configured to send the subscription information to the user equipment and other user equipments respectively.
当所述订阅信息为呈现业务中的呈现信息时,When the subscription information is presence information in a presence service,
所述订阅信息获取模块51可以包括:The subscription information acquisition module 51 may include:
呈现信息获取模块511,用于接收用户设备发送的呈现信息的订阅请求,从订阅请求对应的的呈现源获取呈现信息;或者,接收呈现源在其呈现信息发生变化时,发送过来的更新的呈现信息或者全部呈现信息,并且确定订阅所述呈现源的呈现信息的用户设备。The presence information acquisition module 511 is configured to receive a subscription request for presence information sent by the user equipment, and obtain presence information from the presence source corresponding to the subscription request; or receive an updated presence information sent by the presence source when the presence information changes. information or all presence information, and determine user equipment subscribing to the presence information of the presence source.
所述用户设备信息获取模块52可以包括:The user equipment information acquisition module 52 may include:
呈现用户设备信息获取模块521,用于获取所述用户设备对应的用户,从其本地存储的用户注册信息中或者通过核心网获取所述用户的注册信息,根据所述注册信息判断所述用户是否对应于注册了呈现业务的其它用户设备,如果是,则获取该其它用户设备信息。Presentation user equipment information acquisition module 521, configured to acquire the user corresponding to the user equipment, acquire the registration information of the user from its locally stored user registration information or through the core network, and judge whether the user is Corresponding to other user equipment registered with the presence service, if so, acquiring information about the other user equipment.
所述订阅信息发送模块53可以包括:The subscription information sending module 53 may include:
呈现信息发送模块531,用于根据设备选择策略,从所述其它用户设备中选择接收呈现信息的指定用户设备,分别向所述用户设备和各个接收呈现信息的其他用户设备发送携带所述呈现信息的消息。The presence information sending module 531 is configured to select a specified user equipment receiving presence information from the other user equipments according to a device selection policy, and send a message carrying the presence information to the user equipment and each other user equipment receiving presence information respectively. news.
所述装置可以为呈现服务器,或者,设置在呈现服务器中。The device may be a presence server, or be set in the presence server.
综上所述,本发明实施例可以在呈现业务用户处于多设备环境下时,当该呈现业务用户从某个设备订阅了某个或某组呈现源的呈现信息时,该呈现业务用户绑定的其它注册了呈现业务的设备可以同时得到被订阅的呈现信息以及后续更新的呈现信息,从而有效、快速地在多设备环境下通过一次订阅请求实现呈现业务,完善了呈现业务中与多设备环境相关的功能,丰富了用户体验。To sum up, in the embodiment of the present invention, when the presence service user is in a multi-device environment, when the presence service user subscribes to the presence information of a certain presence source or a certain group of presence sources from a certain device, the presence service user binds Other devices registered with the presence service can obtain the subscribed presence information and the subsequent updated presence information at the same time, so as to effectively and quickly realize the presence service through a subscription request in a multi-device environment, and improve the relationship between the presence service and the multi-device environment Related functions enrich the user experience.
以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。The above is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed in the present invention can easily think of changes or Replacement should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2008102223564ACN101677302B (en) | 2008-09-17 | 2008-09-17 | Method and apparatus for providing information to users in a multi-device environment |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2008102223564ACN101677302B (en) | 2008-09-17 | 2008-09-17 | Method and apparatus for providing information to users in a multi-device environment |
| Publication Number | Publication Date |
|---|---|
| CN101677302A CN101677302A (en) | 2010-03-24 |
| CN101677302Btrue CN101677302B (en) | 2012-04-18 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN2008102223564AExpired - Fee RelatedCN101677302B (en) | 2008-09-17 | 2008-09-17 | Method and apparatus for providing information to users in a multi-device environment |
| Country | Link |
|---|---|
| CN (1) | CN101677302B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102685606B (en)* | 2011-03-18 | 2016-05-25 | 华为终端有限公司 | The method and system that in IPTV, business is watched |
| CN104426956B (en)* | 2013-08-28 | 2018-10-12 | 华为技术有限公司 | A kind of SOT state of termination method for subscribing, apparatus and system |
| CN109412850B (en)* | 2018-10-25 | 2022-02-11 | 新华三技术有限公司合肥分公司 | Message subscription control method and device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1859509A (en)* | 2006-01-24 | 2006-11-08 | 华为技术有限公司 | Method for transfering information presentation before call and user device paging method |
| CN101119582A (en)* | 2006-07-31 | 2008-02-06 | 华为技术有限公司 | Method and system for subscribing to mobile service |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1859509A (en)* | 2006-01-24 | 2006-11-08 | 华为技术有限公司 | Method for transfering information presentation before call and user device paging method |
| CN101119582A (en)* | 2006-07-31 | 2008-02-06 | 华为技术有限公司 | Method and system for subscribing to mobile service |
| Publication number | Publication date |
|---|---|
| CN101677302A (en) | 2010-03-24 |
| Publication | Publication Date | Title |
|---|---|---|
| CA2571413C (en) | Method, system and computer program to enable querying of resources in a certain context by definition of sip event package | |
| US7634564B2 (en) | Systems and methods for invoking a service from a plurality of event servers in a network | |
| CN101355797B (en) | Method for obtaining user terminal equipment information and communication service function entity | |
| US8655984B2 (en) | Content aggregation service for mobile environment | |
| JP5080479B2 (en) | Group communication in communication systems | |
| US8234410B2 (en) | Subscriber driven media agnostic content delivery across networks | |
| JP4299242B2 (en) | Update presence information | |
| US20200404031A1 (en) | System and method for providing a media communication conversation service | |
| US20130282820A1 (en) | Method and System for an Optimized Multimedia Communications System | |
| US20110264777A1 (en) | Communications device and method | |
| CN101939965B (en) | Method and apparatus for authorizing the provisioning of indirect content associated with a presentity of a presence service | |
| CN105282730B (en) | Terminal communications status acquisition methods and system and application server in IMS network | |
| EP2068524A1 (en) | A method and a system for acquiring the transmission path of the sip message | |
| CN101159910B (en) | Synchronous present state method and cluster server and terminal for implementing the method | |
| CN101677302B (en) | Method and apparatus for providing information to users in a multi-device environment | |
| CN102209313A (en) | Presence information subscribing method and system, resource list server and presence server | |
| KR101268895B1 (en) | Method and apparatus for controlling presence information of the user terminal in communication network | |
| US9692845B2 (en) | Permanent presence for polite block and confirm | |
| CN101686237B (en) | Method and device for providing user with session participated by equipment of user | |
| WO2007131400A1 (en) | A method and a system for achieving presence services and the presence server | |
| KR20050016989A (en) | Updating presence information | |
| HK1099855B (en) | Method, system and computer program to enable querying of resources in a certain context by defining a sip event package |
| 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 | ||
| ASS | Succession or assignment of patent right | Owner name:BEIJING ZHIXUN HUOBAN TECHNOLOGY CO., LTD. Free format text:FORMER OWNER: HUAWEI TECHNOLOGY CO., LTD. Effective date:20150811 | |
| C41 | Transfer of patent application or patent right or utility model | ||
| TR01 | Transfer of patent right | Effective date of registration:20150811 Address after:100193 Beijing City, northeast of Haidian District, South Road, No. 29, building 3, room 4, room 4516 Patentee after:BEIJING ZHIXUN PARTNER TECHNOLOGY CO.,LTD. Address before:518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen Patentee before:HUAWEI TECHNOLOGIES Co.,Ltd. | |
| TR01 | Transfer of patent right | Effective date of registration:20181227 Address after:100080 Beijing Haidian District Haidian Street 27 8 Building 4 Floor A East Side Patentee after:BEIJING MOQIU TECHNOLOGY CO.,LTD. Address before:100193 room 4, 4 building, 3 building, 29 Northeast Road, Haidian District, Beijing. Patentee before:BEIJING ZHIXUN PARTNER TECHNOLOGY CO.,LTD. | |
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right | Effective date of registration:20201210 Address after:No.2, Chenguang Road, science and education entrepreneurship Park, Lianyungang City, Jiangsu Province 222000 Patentee after:LIANYUNGANG RESEARCH INSTITUTE OF NANJING University OF SCIENCE AND TECHNOLOGY Address before:100080 Beijing Haidian District Haidian Street 27 8 Building 4 Floor A East Side Patentee before:BEIJING MOQIU TECHNOLOGY Co.,Ltd. | |
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right | Effective date of registration:20210414 Address after:226200 No.59, group 6, Wudong village, Donghai Town, Qidong City, Nantong City, Jiangsu Province Patentee after:Qidong Haimei Agricultural Technology Development Co.,Ltd. Address before:No.2, Chenguang Road, science and education entrepreneurship Park, Lianyungang City, Jiangsu Province 222000 Patentee before:LIANYUNGANG RESEARCH INSTITUTE OF NANJING University OF SCIENCE AND TECHNOLOGY | |
| TR01 | Transfer of patent right | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee | Granted publication date:20120418 Termination date:20210917 |