[go: up one dir, main page]

CN100461774C - A way to subscribe to presence information - Google Patents

A way to subscribe to presence information Download PDF

Info

Publication number
CN100461774C
CN100461774C CNB2005100768939A CN200510076893A CN100461774C CN 100461774 C CN100461774 C CN 100461774C CN B2005100768939 A CNB2005100768939 A CN B2005100768939A CN 200510076893 A CN200510076893 A CN 200510076893A CN 100461774 C CN100461774 C CN 100461774C
Authority
CN
China
Prior art keywords
user
subscription
message
information
subscriber
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
CNB2005100768939A
Other languages
Chinese (zh)
Other versions
CN1885834A (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 CNB2005100768939A priority Critical patent/CN100461774C/en
Publication of CN1885834A publication Critical patent/CN1885834A/en
Application granted granted Critical
Publication of CN100461774C publication Critical patent/CN100461774C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

本发明公开了一种订阅存在信息的方法。应用于无线通信领域。用以解决现有技术存在当订阅失败时,即时消息和存在业务服务器不向订阅方用户发送任何消息,使得该用户无法确定订阅是否成功的问题。本发明方法包括:即时消息和存在业务服务器根据订阅方用户发送的订阅请求消息向被订阅方用户发送授权请求消息;C、被订阅方用户确认后,向即时消息和存在业务服务器发送授权确认消息;D、若即时消息和存在业务服务器收到所述授权确认消息,并表明接受订阅,则即时消息和存在业务服务器向订阅方用户发送订阅成功消息;否则,即时消息和存在业务服务器向订阅方用户发送订阅失败消息,或丢弃所述订阅失败消息,或者暂存所述订阅失败消息。

Figure 200510076893

The invention discloses a method for subscribing to presence information. Applied in the field of wireless communication. It is used to solve the problem in the prior art that when the subscription fails, the instant message and presence service server does not send any message to the subscriber user, so that the user cannot determine whether the subscription is successful. The method of the present invention includes: the instant message and presence service server sends an authorization request message to the subscriber user according to the subscription request message sent by the subscriber user; C, after being confirmed by the subscriber user, sends an authorization confirmation message to the instant message and presence service server D. If the instant message and presence service server receives the authorization confirmation message and indicates that it accepts the subscription, then the instant message and presence service server sends a subscription success message to the subscriber user; otherwise, the instant message and presence service server sends a message to the subscriber The user sends a subscription failure message, or discards the subscription failure message, or temporarily stores the subscription failure message.

Figure 200510076893

Description

一种订阅存在信息的方法 A way to subscribe to presence information

技术领域 technical field

本发明涉及无线通信领域,特别是涉及一种订阅存在信息的方法。The invention relates to the field of wireless communication, in particular to a method for subscribing presence information.

背景技术 Background technique

即时消息和存在业务(IMPS)属于一种基于存在信息(Presence)的个人对个人、个人对群组的消息类移动数据业务,其由国际标准组织OMA(Open MobileAlliance)的IMPS工作组研究并提供应用框架和规范。Instant Messaging and Presence Service (IMPS) belongs to a person-to-person and person-to-group messaging mobile data service based on presence information (Presence), which is researched and provided by the IMPS working group of the International Standards Organization OMA (Open Mobile Alliance) Application frameworks and specifications.

所述IMPS业务的注册用户可订阅其他注册用户的存在信息。所述存在信息包括:客户端设备的可用性(例如:开/关机信息、呼叫状态中)、用户状态(空闲、不空闲、会议中)、位置信息、客户端设备的能力(对语音、文本、GRPS、多媒体的支持情况);所述存在信息还包括:可检索的用户信息,例如:用户的心情(高兴、生气等)、用户的爱好(足球、钓鱼、计算、跳舞等)。因为用户的存在信息是个性化的,其中涉及某些个人信息,所以只对外公开用户认可的相关信息。A registered user of the IMPS service may subscribe to presence information of other registered users. The presence information includes: availability of the client device (for example: power on/off information, call status), user status (idle, not idle, meeting), location information, capability of the client device (for voice, text, GRPS, multimedia support); the presence information also includes: retrievable user information, such as: user's mood (happy, angry, etc.), user's hobbies (soccer, fishing, computing, dancing, etc.). Because the user's existence information is personalized and involves certain personal information, only relevant information approved by the user is disclosed to the public.

在所述IMPS业务中,用户通过订阅其他用户的存在信息,可以获得良好的用户体验。若订阅成功,则当被订阅的存在信息发生改变时,系统会自动通知订阅方用户。In the IMPS service, a user can obtain good user experience by subscribing to the presence information of other users. If the subscription is successful, the system will automatically notify the subscriber user when the subscribed existence information changes.

目前在IMPS业务系统中,订阅单用户存在信息的信令流程图,如图1所示,订阅多用户存在信息的信令流程图,如图2所示。用户A发出订阅请求,欲订阅用户B的存在信息,若订阅成功,则即时消息和存在业务服务器IMPS Server(Instant Messaging and Presence Service)向订阅方用户A发送订阅成功消息(PresenceNotification),该消息中携带已经订阅成功的存在信息的属性值,即订阅方用户A将立刻收到被订阅方用户B的存在信息。例如:用户A订阅用户B的位置信息、当前通话状态,订阅成功后服务器将自动把用户B的位置信息、当前通话状态携带于订阅成功消息中,发送给用户A。Currently, in the IMPS service system, the signaling flow chart of subscribing to the presence information of a single user is shown in FIG. 1 , and the signaling flow chart of subscribing to the presence information of multiple users is shown in FIG. 2 . User A sends a subscription request to subscribe to the presence information of user B. If the subscription is successful, the instant message and presence service server IMPS Server (Instant Messaging and Presence Service) sends a subscription success message (PresenceNotification) to subscriber user A. In the message Carry the attribute value of the existence information that has been successfully subscribed, that is, the subscriber user A will immediately receive the existence information of the subscribed user B. For example: User A subscribes to user B's location information and current call status. After the subscription is successful, the server will automatically carry user B's location information and current call status in the subscription success message and send it to user A.

但是,若订阅失败,则按照OMA标准组织的无线乡村协议(WirelessVillage),IMPS Server不发送任何消息给订阅方用户。所以订阅方用户无法获知本次订阅是否成功,更无法获知订阅失败的原因。However, if the subscription fails, according to the Wireless Village protocol (WirelessVillage) of the OMA standard organization, the IMPS Server will not send any message to the subscriber user. Therefore, the subscriber user cannot know whether the subscription is successful, let alone the reason for the subscription failure.

发明内容 Contents of the invention

本发明提供一种订阅存在信息的方法,用以解决现有技术存在当订阅失败时,即时消息和存在业务服务器IMPS Server不向订阅方用户发送任何消息,使得该用户无法确定订阅是否成功的问题。The present invention provides a method for subscribing presence information to solve the problem in the prior art that when the subscription fails, the instant message and presence service server IMPS Server does not send any message to the subscriber user, so that the user cannot determine whether the subscription is successful .

本发明进一步解决现有技术中订阅失败时订阅方用户无法获知订阅失败原因的问题。The present invention further solves the problem in the prior art that the subscriber user cannot know the cause of the subscription failure when the subscription fails.

为解决上述问题,本发明提供以下技术方案:In order to solve the above problems, the present invention provides the following technical solutions:

一种订阅存在信息的方法,包括下列步骤:A method of subscribing to presence information, comprising the steps of:

A、订阅方用户向即时消息和存在业务服务器发送订阅请求消息;A. The subscriber user sends a subscription request message to the instant message and presence service server;

B、即时消息和存在业务服务器根据所述订阅请求消息向被订阅方用户发送授权请求消息;B. The instant message and presence service server sends an authorization request message to the subscribed user according to the subscription request message;

C、被订阅方用户确认后,向即时消息和存在业务服务器发送授权确认消息;C. After being confirmed by the subscribed user, send an authorization confirmation message to the instant message and presence service server;

D、若即时消息和存在业务服务器收到所述授权确认消息,并表明接受订阅,则即时消息和存在业务服务器向订阅方用户发送订阅成功消息;否则,即时消息和存在业务服务器判断订阅方用户当前是否在线,若订阅方用户当前在线,则向订阅方用户发送订阅失败消息,所述订阅失败消息包含被订阅方用户信息,所述被订阅方用户为至少一个;若订阅方用户当前不在线,则丢弃所述订阅失败消息,或者暂存所述订阅失败消息,并在该订阅方用户再次上线时向其发送。D. If the instant message and presence service server receives the authorization confirmation message and indicates that it accepts the subscription, the instant message and presence service server sends a subscription success message to the subscriber user; otherwise, the instant message and presence service server judges the subscriber user Whether it is currently online, if the subscriber user is currently online, send a subscription failure message to the subscriber user, the subscription failure message includes the subscriber user information, and the subscriber user is at least one; if the subscriber user is not currently online , then discard the subscription failure message, or temporarily store the subscription failure message and send it to the subscriber user when he goes online again.

所述被订阅方用户是一个用户,或者多个用户。The subscribed user is one user or multiple users.

步骤D中所述订阅失败消息的格式是未携带存在信息属性的订阅成功消息的格式,或者是自定义的格式。The format of the subscription failure message in step D is the format of the subscription success message that does not carry the existence information attribute, or is a self-defined format.

在所述自定义的格式的订阅失败消息中携带订阅失败的原因信息。The reason information of the subscription failure is carried in the subscription failure message in the user-defined format.

所述订阅失败的原因信息包括:被订阅方用户响应超时,或者被订阅方用户拒绝订阅。The reason information of the subscription failure includes: the subscribed user responds overtime, or the subscribed user refuses to subscribe.

在所述订阅请求消息中携带用于定位被订阅方用户的标识信息,以及欲订阅的信息。The subscription request message carries identification information for locating the subscribed user and information to be subscribed.

在所述订阅成功消息中携带被订阅方用户的存在信息属性值。The subscribed user's presence information attribute value is carried in the subscription success message.

本发明有益效果如下:本发明方法定义了订阅失败消息的格式,并在即时消息和存在业务服务器收到被订阅方用户发来的授权确认消息,且表明拒绝订阅时,或者即时消息和存在业务服务器经过一定时长未收到被订阅方用户发来的授权确认消息时,向订阅方用户发送订阅失败消息,更可在所述订阅失败消息中携带订阅失败原因,从而使订阅方用户在订阅失败时能够及时确认订阅失败,并可获知订阅失败原因,这样可为用户带来良好的用户体验。The beneficial effects of the present invention are as follows: the method of the present invention defines the format of the subscription failure message, and when the instant message and presence service server receives the authorization confirmation message sent by the subscribed user and indicates that the subscription is rejected, or the instant message and presence service When the server does not receive the authorization confirmation message from the subscribed user after a certain period of time, it will send a subscription failure message to the subscriber user, and may also carry the reason for the subscription failure in the subscription failure message, so that the subscriber user will receive the subscription failure message when the subscription fails. The subscription failure can be confirmed in time, and the reason for the subscription failure can be known, which can bring a good user experience to the user.

附图说明 Description of drawings

图1为现有技术订阅单用户存在信息的信令流程图;FIG. 1 is a signaling flow chart of the existing information of subscription single users in the prior art;

图2为现有技术订阅多用户存在信息的信令流程图;FIG. 2 is a signaling flow chart of subscribing to multi-user presence information in the prior art;

图3为本发明方法订阅单用户存在信息的步骤流程图;Fig. 3 is a flow chart of the steps of subscribing to the existence information of single users in the method of the present invention;

图4为本发明方法订阅单用户存在信息的信令流程图;Fig. 4 is a signaling flow chart of the method of the present invention for subscribing to the presence information of a single user;

图5为本发明方法订阅多用户存在信息的步骤流程图;Fig. 5 is a flow chart of the steps of subscribing to multi-user presence information by the method of the present invention;

图6为本发明方法订阅多用户存在信息的信令流程图。Fig. 6 is a signaling flow chart of subscribing to multi-user presence information in the method of the present invention.

具体实施方式 Detailed ways

为了使订阅方用户在进行订阅操作后能够确定订阅是否成功,以及在订阅失败时获知订阅失败的原因。本发明方法定义了订阅失败消息的格式,在被订阅方用户拒绝订阅时,或者经过一定时长被订阅方用户没有响应时,向订阅方用户发送订阅失败消息,更可在所述订阅失败消息中携带订阅失败原因,从而使订阅方用户在订阅失败时能够及时确认订阅失败,并可获知订阅失败原因。本发明方法订阅单用户存在信息的流程如图3和图4所示,其具体实施步骤如下:In order to enable the subscriber user to determine whether the subscription is successful after performing the subscription operation, and to know the reason for the subscription failure when the subscription fails. The method of the present invention defines the format of the subscription failure message. When the subscribed user refuses to subscribe, or when the subscribed user does not respond after a certain period of time, the subscription failure message is sent to the subscriber user, and can be included in the subscription failure message. Carry the subscription failure reason, so that the subscriber user can confirm the subscription failure in time when the subscription fails, and can know the subscription failure reason. The process of the present invention's method of subscribing to the user's existence information is shown in Figure 3 and Figure 4, and its specific implementation steps are as follows:

S1、订阅方用户向服务器发送订阅请求消息。S1. The subscriber user sends a subscription request message to the server.

首先,订阅方用户A和被订阅方用户B均是所述IMPS业务的注册用户,否则,显然订阅方用户A不能享受此项业务,同理IMPS Server中没有被订阅方用户B的存在信息属性值的记录。First of all, both the subscriber user A and the subscribed user B are registered users of the IMPS service, otherwise, obviously the subscriber user A cannot enjoy this service, and similarly, there is no existence information attribute of the subscribed user B in the IMPS Server value records.

在满足上述前提下,当订阅方用户A欲订阅被订阅方用户B的存在信息时,用户A向IMPS Server发送订阅请求消息。在所述订阅请求消息中携带有用于定位用户B的标识信息,以及欲订阅的信息。Under the above premise, when the subscriber user A wants to subscribe to the existence information of the subscribed user B, user A sends a subscription request message to the IMPS Server. The subscription request message carries identification information for locating user B and information to be subscribed.

S2、服务器向被订阅方用户发送授权请求消息。S2. The server sends an authorization request message to the subscribed user.

IMPS Server根据用户A发来的订阅请求消息中所携带的标识信息和欲订阅信息,判断得出用户A的订阅操作是针对用户B,而且获知用户A欲订阅用户B的哪些存在信息。Based on the identification information and subscription information carried in the subscription request message sent by user A, IMPS Server judges that user A's subscription operation is for user B, and learns what existence information user A wants to subscribe to user B.

根据IMPS Server获知的上述信息,构建授权请求消息,并将所述授权请求消息发送给用户B。所述的授权请求消息中携带用户A欲订阅的存在信息和用户A的标识信息,以便用户B据此作出是否同意订阅的决定。According to the above information learned by the IMPS Server, an authorization request message is constructed, and the authorization request message is sent to user B. The authorization request message carries the existence information that user A wants to subscribe and the identification information of user A, so that user B can make a decision whether to agree to subscribe or not.

S3、被订阅方用户向服务器发送授权确认消息。S3. The subscribed user sends an authorization confirmation message to the server.

用户B根据IMPS Server发来的授权请求消息中所携带的用户A标识信息和用户A欲订阅信息,作出接受订阅,或者拒绝订阅的决定。并将该决定携带于授权确认消息中,发送给IMPS Server。User B makes a decision to accept or reject the subscription based on the identification information of user A carried in the authorization request message sent by IMPS Server and the information that user A wants to subscribe. And carry the decision in the authorization confirmation message and send it to IMPS Server.

S4、IMPS Server判断订阅是否成功,并发送订阅通知消息。S4. The IMPS Server judges whether the subscription is successful, and sends a subscription notification message.

若IMPS Server收到所述授权确认消息,并表明接受订阅,则判定订阅成功。之后,IMPS Server向用户A发送订阅成功消息,在所述订阅成功消息中携带有用户B的存在信息属性值,即用户A欲获知的相关信息。至此流程结束。If the IMPS Server receives the authorization confirmation message and indicates that it accepts the subscription, it determines that the subscription is successful. Afterwards, the IMPS Server sends a subscription success message to user A, in which the subscription success message carries the existence information attribute value of user B, that is, the relevant information that user A wants to know. So far the process is over.

若IMPS Server在发出授权请求消息后一定时长内,未收到所述授权确认消息;或者,IMPS Server收到所述授权确认消息,但表明拒绝订阅。则判定订阅失败。If the IMPS Server does not receive the authorization confirmation message within a certain period of time after sending the authorization request message; or, the IMPS Server receives the authorization confirmation message, but indicates that it refuses to subscribe. It is determined that the subscription has failed.

其后,IMPS Server判断用户A当前是否在线,若用户A当前离线,则IMPSServer有两种处理方式:Afterwards, IMPS Server judges whether user A is currently online. If user A is currently offline, IMPS Server has two processing methods:

方式一、丢弃订阅失败消息。此方式IMPS Server不暂存订阅失败消息,判断用户A离线后,直接丢弃订阅失败消息。这样虽然减轻了IMPS Server的负载,降低了IMPS Server的数据处理量,但若用户A此时离线,则收不到订阅失败消息,进而无法确认订阅是否成功,对用户体验有所影响。Method 1: Discard the subscription failure message. In this way, the IMPS Server does not temporarily store the subscription failure message, and discards the subscription failure message directly after judging that user A is offline. Although this reduces the load on the IMPS Server and reduces the data processing capacity of the IMPS Server, if User A is offline at this time, he will not receive the subscription failure message, and cannot confirm whether the subscription is successful, which will affect the user experience.

方式二、暂存订阅失败消息。此方式IMPS Server在判断用户A离线后,暂存所述订阅失败消息,并在用户A再次上线时向其发送。这样做的利弊与所述方式一相反。Method 2: Temporarily store the subscription failure message. In this way, after judging that user A is offline, the IMPS Server temporarily stores the subscription failure message, and sends it to user A when it goes online again. The pros and cons of doing so are opposite to the one described above.

若用户A当前在线,则IMPS Server向用户A发送订阅失败消息。所述订阅失败消息的格式区别于所述订阅成功消息。其格式为现有的OMA标准规范中已经定义的订阅成功消息的格式,但在所述订阅成功消息的消息体中不携带任何存在信息属性值,以示与订阅成功消息有所区别;或者,自定义所述订阅失败消息的格式。只要满足区别于所述订阅成功消息都应在本发明的保护范围之内。这样订阅方用户(用户A)在订阅失败时即可及时确认订阅失败。所述自定义格式的订阅失败消息中可携带订阅失败原因信息,所述订阅失败原因信息包括:被订阅方用户(用户B)响应超时、被订阅方用户拒绝订阅请求,或者其它导致订阅失败的原因。这样用户即可获知什么原因导致订阅失败,进而决定是否有必要再次订阅,例如:若订阅失败原因是被订阅方用户响应超时,则在网络不忙时可再次提出订阅请求。至此流程结束。If user A is currently online, the IMPS Server sends a subscription failure message to user A. The format of the subscription failure message is different from that of the subscription success message. Its format is the format of the subscription success message already defined in the existing OMA standard specification, but the message body of the subscription success message does not carry any existence information attribute value to show that it is different from the subscription success message; or, Customize the format of the subscription failure message. As long as the difference from the subscription success message is satisfied, it should be within the protection scope of the present invention. In this way, the subscriber user (user A) can confirm the subscription failure in time when the subscription fails. The subscription failure message in the self-defined format may carry subscription failure reason information, and the subscription failure reason information includes: the subscriber user (user B) responds to timeout, the subscriber user rejects the subscription request, or other causes of subscription failure reason. In this way, the user can know what caused the subscription failure, and then decide whether it is necessary to subscribe again. For example, if the reason for the subscription failure is that the subscribed user's response timed out, the subscription request can be submitted again when the network is not busy. So far the process is over.

本发明方法订阅多用户存在信息的流程如图5和图6所示。其具体实施步骤如下:The process of subscribing to multi-user presence information by the method of the present invention is shown in Fig. 5 and Fig. 6 . Its specific implementation steps are as follows:

S1、订阅方用户向服务器发送订阅请求消息。S1. The subscriber user sends a subscription request message to the server.

首先,订阅方用户A和被订阅方用户B,以及被订阅方用户C均是所述IMPS业务的注册用户。Firstly, the subscriber user A, the subscribed user B, and the subscribed user C are all registered users of the IMPS service.

在满足上述前提下,当订阅方用户A欲订阅被订阅方用户B和被订阅方用户C的存在信息时,用户A向IMPS Server发送订阅请求消息。在所述订阅请求消息中携带有用于定位用户B和用户C的标识信息,以及欲订阅的信息。Under the above premise, when the subscriber user A wants to subscribe to the existence information of the subscribed user B and the subscribed user C, user A sends a subscription request message to the IMPS Server. The subscription request message carries identification information for locating user B and user C, and information to be subscribed.

S2、服务器向被订阅方用户发送授权请求消息。S2. The server sends an authorization request message to the subscribed user.

IMPS Server根据用户A发来的订阅请求消息中所携带的标识信息和欲订阅信息,判断得出用户A的订阅操作是针对用户B和用户C,而且分别获知用户A欲订阅用户B和用户C的哪些存在信息。According to the identification information and subscription information carried in the subscription request message sent by user A, IMPS Server judges that the subscription operation of user A is for user B and user C, and learns that user A wants to subscribe user B and user C respectively Which information exists.

根据IMPS Server获知的上述信息,分别构建授权请求消息,并将相应的授权请求消息分别发送给用户B和用户C。所述的授权请求消息中携带用户A欲订阅的存在信息和用户A的标识信息,以便用户B和用户C据此作出是否同意订阅的决定。According to the above information learned by the IMPS Server, the authorization request messages are respectively constructed, and the corresponding authorization request messages are sent to user B and user C respectively. The authorization request message carries the existence information that user A wants to subscribe and the identification information of user A, so that user B and user C can decide whether to agree to subscribe or not.

S3、被订阅方用户向服务器发送授权确认消息。S3. The subscribed user sends an authorization confirmation message to the server.

用户B和用户C根据IMPS Server发来的授权请求消息中所携带的用户A标识信息和用户A欲订阅信息,作出接受订阅,或者拒绝订阅的决定。并将该决定携带于授权确认消息中,发送给IMPS Server。User B and user C make a decision to accept or reject the subscription according to the identification information of user A carried in the authorization request message sent by IMPS Server and the information that user A wants to subscribe. And carry the decision in the authorization confirmation message and send it to IMPS Server.

S4、IMPS Server判断订阅是否成功,并发送订阅通知消息。S4. The IMPS Server judges whether the subscription is successful, and sends a subscription notification message.

若IMPS Server收到用户B发来的授权确认消息,并表明接受订阅,则判定针对用户B的订阅成功。之后,IMPS Server向用户A发送针对用户B的订阅成功消息。在所述订阅成功消息中携带有用户B的存在信息属性值,即用户A欲获知的相关信息。If the IMPS Server receives the authorization confirmation message from user B and indicates that it accepts the subscription, it determines that the subscription for user B is successful. Afterwards, the IMPS Server sends a subscription success message for user B to user A. The subscription success message carries the attribute value of user B's presence information, that is, the relevant information that user A wants to know.

若IMPS Server在发出授权请求消息后一定时长内,未收到用户B的授权确认消息;或者,IMPS Server收到所述授权确认消息,但表明拒绝订阅。则判定针对用户B的订阅失败。If the IMPS Server does not receive the authorization confirmation message from user B within a certain period of time after sending the authorization request message; or, the IMPS Server receives the authorization confirmation message, but indicates that it refuses to subscribe. Then it is determined that the subscription for user B fails.

IMPS Server判断用户A当前是否在线,若用户A当前离线,则IMPS Server丢弃所述订阅失败消息,或者暂存所述订阅失败消息。The IMPS Server judges whether the user A is currently online, and if the user A is currently offline, the IMPS Server discards the subscription failure message, or temporarily stores the subscription failure message.

若用户A当前在线,则IMPS Server向用户A发送针对用户B的订阅失败消息。所述订阅失败消息的格式区别于所述订阅成功消息。其格式为现有的OMA标准规范中已经定义的订阅成功消息的格式,但在所述订阅成功消息的消息体中不携带任何存在信息属性值,以示与订阅成功消息有所区别;或者,自定义所述订阅失败消息的格式。只要满足区别于所述订阅成功消息都应在本发明的保护范围之内。这样订阅方用户在订阅失败时即可及时确认订阅失败。所述自定义格式的订阅失败消息中可携带订阅失败原因信息,所述订阅失败原因信息包括:被订阅方用户响应超时、被订阅方用户拒绝订阅请求,或者其它导致订阅失败的原因。If user A is currently online, the IMPS Server sends a subscription failure message for user B to user A. The format of the subscription failure message is different from that of the subscription success message. Its format is the format of the subscription success message already defined in the existing OMA standard specification, but the message body of the subscription success message does not carry any existence information attribute value to show that it is different from the subscription success message; or, Customize the format of the subscription failure message. As long as the difference from the subscription success message is satisfied, it should be within the protection scope of the present invention. In this way, the subscriber user can confirm the subscription failure in time when the subscription fails. The subscription failure message in the self-defined format may carry subscription failure reason information, and the subscription failure reason information includes: the subscribed user responds overtime, the subscribed user rejects the subscription request, or other reasons for subscription failure.

S5、IMPS Server判断用户A针对的所有用户是否都已处理完毕。判断得出用户C未处理完毕,则等待用户C的处理结果,并在得到用户C的处理结果后,向用户A发送针对用户C的订阅成功消息或订阅失败消息。至此流程结束。S5. The IMPS Server judges whether all the users targeted by user A have been processed. If it is judged that user C has not completed the processing, it waits for the processing result of user C, and after obtaining the processing result of user C, sends a subscription success message or subscription failure message for user A to user A. So far the process is over.

IMPS Server也可不在判定了某一个被订阅用户拒绝订阅时,立即向订阅方用户发送订阅失败消息,而是在判定了若干个被订阅用户拒绝订阅,或者在判定对各被订阅用户的处理都已结束时,将若干个订阅失败消息,或者全部订阅失败消息的相关信息包含于一条订阅通知消息中,再向订阅方用户发送。The IMPS Server may not immediately send a subscription failure message to the subscriber user when it determines that a certain subscribed user refuses to subscribe, but determines that several subscribed users refuse to subscribe, or determines that the processing of each subscribed user is not valid. When it has ended, several subscription failure messages, or related information of all subscription failure messages are included in a subscription notification message, and then sent to the subscriber user.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。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 their equivalent technologies, the present invention also intends to include these modifications and variations.

Claims (7)

1.一种订阅存在信息的方法,其特征在于,包括下列步骤:1. A method for subscribing to presence information, comprising the following steps: A、订阅方用户向即时消息和存在业务服务器发送订阅请求消息;A. The subscriber user sends a subscription request message to the instant message and presence service server; B、即时消息和存在业务服务器根据所述订阅请求消息向被订阅方用户发送授权请求消息;B. The instant message and presence service server sends an authorization request message to the subscribed user according to the subscription request message; C、被订阅方用户确认是否接受订阅,并向即时消息和存在业务服务器返回确认结果;C. The subscribed user confirms whether to accept the subscription, and returns the confirmation result to the instant message and presence service server; D、若所述确认结果表明接受订阅,即时消息和存在业务服务器则向订阅方用户发送订阅成功消息;否则,即时消息和存在业务服务器判断订阅方用户当前是否在线;若订阅方用户当前在线,则向订阅方用户发送订阅失败消息,所述订阅失败消息包含被订阅方用户信息,所述被订阅方用户为至少一个;若订阅方用户当前不在线,则丢弃所述订阅失败消息,或者暂存所述订阅失败消息,并在该订阅方用户再次上线时向其发送。D. If the confirmation result shows that the subscription is accepted, the instant message and presence service server sends a subscription success message to the subscriber user; otherwise, the instant message and presence service server judges whether the subscriber user is currently online; if the subscriber user is currently online, Then send a subscription failure message to the subscriber user, the subscription failure message includes the subscriber user information, the subscriber user is at least one; if the subscriber user is not currently online, then discard the subscription failure message, or temporarily Save the subscription failure message, and send it to the subscriber user when he goes online again. 2.如权利要求1所述的方法,其特征在于,所述被订阅方用户是一个用户,或者多个用户。2. The method according to claim 1, wherein the subscribed user is one user or multiple users. 3.如权利要求2所述的方法,其特征在于,步骤D中所述订阅失败消息的格式是未携带存在信息属性的订阅成功消息的格式,或者是自定义的格式。3. The method according to claim 2, wherein the format of the subscription failure message in step D is the format of the subscription success message that does not carry the existence information attribute, or is a self-defined format. 4.如权利要求3所述的方法,其特征在于,在所述自定义的格式的订阅失败消息中携带订阅失败的原因信息。4. The method according to claim 3, characterized in that, the reason information of subscription failure is carried in the subscription failure message in the user-defined format. 5.如权利要求4所述的方法,其特征在于,所述订阅失败的原因信息包括:被订阅方用户响应超时,或者被订阅方用户拒绝订阅。5. The method according to claim 4, wherein the reason information of the subscription failure includes: the subscribed user responds overtime, or the subscribed user refuses to subscribe. 6.如权利要求1所述的方法,其特征在于,在所述订阅请求消息中携带用于定位被订阅方用户的标识信息,以及欲订阅的信息。6. The method according to claim 1, wherein the subscription request message carries identification information for locating the subscribed user and information to be subscribed. 7.如权利要求1所述的方法,其特征在于,在所述订阅成功消息中携带被订阅方用户的存在信息属性值。7. The method according to claim 1, wherein the subscription success message carries the attribute value of the existence information of the subscribed user.
CNB2005100768939A 2005-06-20 2005-06-20 A way to subscribe to presence information Expired - Fee Related CN100461774C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100768939A CN100461774C (en) 2005-06-20 2005-06-20 A way to subscribe to presence information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100768939A CN100461774C (en) 2005-06-20 2005-06-20 A way to subscribe to presence information

Publications (2)

Publication Number Publication Date
CN1885834A CN1885834A (en) 2006-12-27
CN100461774C true CN100461774C (en) 2009-02-11

Family

ID=37583817

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100768939A Expired - Fee Related CN100461774C (en) 2005-06-20 2005-06-20 A way to subscribe to presence information

Country Status (1)

Country Link
CN (1) CN100461774C (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100525197C (en) * 2007-04-06 2009-08-05 中国科学院计算技术研究所 Subscribing, publishing and updating method for existing information
CN101321158B (en) * 2007-06-05 2013-04-17 华为技术有限公司 Method, system and apparatus for limiting business resource subscription
CN101616134B (en) * 2008-06-24 2013-06-26 华为技术有限公司 An information presentation method, system and device
CN102239498A (en) * 2008-10-06 2011-11-09 电子湾有限公司 Method and system for embedding application in WEB platform
CN105117416A (en) * 2015-07-30 2015-12-02 北京金山安全软件有限公司 Information customization method, device and terminal
CN105117419A (en) * 2015-07-30 2015-12-02 北京金山安全软件有限公司 Information customization method and device and server

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030069934A1 (en) * 2001-08-14 2003-04-10 Miguel-Angel Garcia-Martin Communication networks
US20030108000A1 (en) * 2001-12-07 2003-06-12 Telefonaktiebolaget Lm Ericsson (Pub1) Service access system and method in a telecommunications network
CN1509577A (en) * 2001-03-30 2004-06-30 ��˹��ŵ�� Presence Server in IP Multimedia
CN1526246A (en) * 2001-05-11 2004-09-01 ��˹��ŵ�� Mobile Instant Messaging and Presence Services

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1509577A (en) * 2001-03-30 2004-06-30 ��˹��ŵ�� Presence Server in IP Multimedia
CN1526246A (en) * 2001-05-11 2004-09-01 ��˹��ŵ�� Mobile Instant Messaging and Presence Services
US20030069934A1 (en) * 2001-08-14 2003-04-10 Miguel-Angel Garcia-Martin Communication networks
US20030108000A1 (en) * 2001-12-07 2003-06-12 Telefonaktiebolaget Lm Ericsson (Pub1) Service access system and method in a telecommunications network

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于SIP/SMPLE协议实现在席服务. 傅之凤,金志刚,李连朋.微处理机,第3期. 2004
基于SIP/SMPLE协议实现在席服务. 傅之凤,金志刚,李连朋.微处理机,第3期. 2004 *

Also Published As

Publication number Publication date
CN1885834A (en) 2006-12-27

Similar Documents

Publication Publication Date Title
CN101151873B (en) System and method for providing interactive communications
US8332475B2 (en) Messaging system and method
CN100461773C (en) A method for receiving instant messages
CN101895842B (en) Method, device and system for awakening offline mobile terminal
US9288240B2 (en) System and method for allowing an originating user device to use contact information in a prioritized list to contact a destination user device
CN101160875A (en) Method for sending off-line message
CN104936282A (en) Method and device for registering converged communication service
CN101115094B (en) Method for providing communication service and system and trigger device
CN101431724A (en) Method and equipment for sending messages
CN100461774C (en) A way to subscribe to presence information
CN101370159A (en) Method, device and system for identifying service
CN101686210B (en) Method and device for processing instant message report or instant message
CN106487755A (en) A kind of method and device setting up session
CN100574285C (en) A kind of system and method that utilizes presence information to handle Email
CN101330664B (en) Method, system and apparatus for realizing multimedia business
WO2003094553A1 (en) Method and device for delivering messages to mobile terminal devices in accordance with a user selectable attainability status
CN1307832C (en) A method for a communication terminal to assist a user in selecting a contact method
US20080176590A1 (en) Method and apparatus for receiving multimedia message service messages
KR100702704B1 (en) Notification system and method using messenger
TW200822651A (en) Deleting mechanism in SIP multimedia services
CN102572696A (en) Method for processing service request, apparatus and system thereof
CN114710757A (en) Information processing method, network side equipment and terminal
CN100479478C (en) Method and system for implementing service of instant message used by users on mobile virtual dedicated network
CN106559762A (en) Note double receiving method, platform and group network systems
CN101106753B (en) A method, system and device for realizing multimedia message service

Legal Events

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

Granted publication date: 20090211

Termination date: 20160620