WO2007131400A1 - A method and a system for achieving presence services and the presence server - Google Patents

A method and a system for achieving presence services and the presence server Download PDF

Info

Publication number
WO2007131400A1
WO2007131400A1 PCT/CN2006/003286 CN2006003286W WO2007131400A1 WO 2007131400 A1 WO2007131400 A1 WO 2007131400A1 CN 2006003286 W CN2006003286 W CN 2006003286W WO 2007131400 A1 WO2007131400 A1 WO 2007131400A1
Authority
WO
WIPO (PCT)
Prior art keywords
subscriber
presence server
server
information
subscription
Prior art date
Application number
PCT/CN2006/003286
Other languages
French (fr)
Chinese (zh)
Inventor
Hongguang Guan
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.
Publication of WO2007131400A1 publication Critical patent/WO2007131400A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/54Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]

Definitions

  • the present invention relates to the field of network communication technologies, and in particular, to a method, a presentation server, and a system for implementing a presence service.
  • Session Initiation Protocol is an application layer control protocol for multimedia communication over IP networks. It is used to create, modify, and terminate session sessions attended by one or more participants. These include Internet multimedia conferencing, Internet telephony, distance education, and telemedicine. That is, all interactive two-way or multi-party multimedia communication activities on the Internet are collectively referred to as multimedia sessions. Members participating in the session can communicate by multicast, unicast networking, or a combination of the two. ,
  • SIP messages are encoded in text mode and fall into two categories: request messages and response messages.
  • the request message is used by the client to activate SIP messages sent to the server according to a specific operation, including INVITE, ACK, OPTIONS, BYE, SUBSCRIBE, CANCEL and REGISTER messages.
  • the response message is used to respond to the request message, indicating the success or failure status of the request.
  • Different types of response messages are distinguished by status codes. For example, a response message with a status code of 200 indicates 0K.
  • Presence is a method of obtaining presence information (such as user status, communication capability, personal reference, etc.) in real-time according to certain access criteria according to certain access criteria, and presenting it to other users.
  • presence information such as user status, communication capability, personal reference, etc.
  • the presence server includes a presence agent (Proxy Service Agent), a Proxy Server (Proxy Server), and a Controller (Controller), where the Presence Agent is used to accept and process the subscription request, generate and send an advertisement response; and the Proxy Server is used to forward the subscription request. Or the notification response; the Controller is used to control and coordinate the work between the modules, and the Presence Server is controlled whether the Presence Agent is enabled for processing or the Proxy Server is enabled for processing.
  • the presence server receives the subscription request from the subscriber in the domain.
  • the Presence Agent If the subscriber that the Controller resolves to obtain the subscription request is the user in the domain, the Presence Agent generates and sends an advertisement response message to the subscriber, and announces the The presence information of the subscriber; if the Subscriber resolves that the subscriber of the subscription request is a non-local user, the Proxy Server forwards the subscription request to the presence server in the domain where the subscriber is located.
  • the Presence Server receives a NOTIFY from another domain (a message used to notify certain events), the Control led message is forwarded by the Proxy Server.
  • Presence can support intra-domain and inter-domain. It is relatively simple in the domain. We mainly focus on the inter-domain situation.
  • FIG. 2 is a schematic diagram of a system networking for implementing a presence service.
  • In Domain A there are a presence server (Presence Server) A and users User Al and User A2.
  • In Domain B there are a presence server (Presence Server) B and a user User B.
  • FIG. 3 is a flowchart of a method for implementing a presence service in the prior art: D User Al sends a subscription request SUBSCRIBE message to Presence Server A. Requesting to subscribe to the presentation information of User B in the SUBSCRIBE message;
  • Presence Server A finds that the subscribed user is not a local user and finds that The user under Domain B forwards the SUBSCRIBE message sent by User A1 directly to Presence Server B. If Presence Server B agrees with User A's request, it responds with a response message 200 to User Al.
  • Presence Server B sends an advertisement message NOTIFY to Presence Server A, and contains the presence information of User B in the NOTFIY message.
  • Presence Server A forwards the NOTIFY message to User Al.
  • User A2 sends a SUBSCRIBE message to Presence Server A, and requests subscription of User B's presence information in the SUBSCRIBE message.
  • Presence Server A simply forwards the SUBSCRIBE message to Presence Server B. If Presence Server B agrees with User A2's request, it responds with a response message 200 to User A2.
  • Presence Server B sends the IFY to Presence Server A, and contains the presentation information of User B in the Philip FIY message.
  • Presence Server A forwards the NOTIFY message to User A2.
  • Presence Server B receives a subscription request (and it agrees) to establish a subscription session with the originator of the subscription request. Since then, because Presence Server A only forwards the subscription request, the originator of the subscription request is still subscriber. Specifically, in this example, User Al sent a subscription request to Presence Server B, and User B also sent a subscription request to Presence Server B. Therefore, Presence Server B will each according to jtb and User Al and User A2. Establish a subscription session service for User B.
  • User B can know the new presence information of User B through some methods (such as sending PUBLISH message M Presence Server B. Further, Presence Server B is based on the two established. User B subscribes to the session service and sends two notification messages NOTIFY carrying User B's new message to Presence Server A. One of the NOTIFYs is forwarded to User Al by Presence Server A, and one is forwarded to the User by Presence Server A. A2. Then, User Al and User A2 can know the new presentation information after User B is updated.
  • some methods such as sending PUBLISH message M Presence Server B.
  • Presence Server B is based on the two established. User B subscribes to the session service and sends two notification messages NOTIFY carrying User B's new message to Presence Server A. One of the NOTIFYs is forwarded to User Al by Presence Server A, and one is forwarded to the User by Presence Server A. A2. Then, User Al and User A2 can know the new presentation information after User B is updated.
  • Presence Server B After forwarding through Presence Server A, as long as Presence Server B agrees, a subscription session service is established between Presence Server B and the subscriber. Therefore, if multiple subscribers request to subscribe to the presence information of the same subscriber in the local domain, Presence Server B will establish multiple subscription session services for User B accordingly.
  • the subscription session service established between the subscribers in the domain where the Presence Server B and the Presence Server A are located must be forwarded through the Presence Server A. Therefore, there is a large number of messages between the Presence Server B and the Presence Server A for each subscription session. transfer.
  • the advertisement message (the presence information of the subscriber) that Presence Server B responds in the multiple subscription session services is generally the same, and thus the Presence Server A
  • the forwarded advertisement messages are generally the same. It can be seen that in the existing technical solutions for implementing the presence service, there is a large amount of redundant announcement message transmission between the Presence Server A and the Presence Server B. Further, if the subscriber's presence information changes, and the subscriber's new presence information is to be advertised to multiple subscribers, the instantaneous amount of messages between Presence Server B and Presence Server A will be large.
  • the technical problem solved by the present invention is to provide a method, system and a presence server for implementing a presence service, and reducing information interaction between presentation server redundancy in a presence service system.
  • An embodiment of the present invention provides a method for implementing a presence service, where the method includes: receiving, by a first presence server, a subscription request from a first subscriber in the domain, requesting subscription of subscription information of a subscriber that is not in the domain; The presence server queries to the subscriber presence information stored with the subscription subscribed by the first subscriber; the queried saved subscriber presence information is advertised to the first subscriber.
  • An embodiment of the present invention further provides a presence server, including a subscription request receiving unit, and a query unit and a presence information obtaining unit, and the subscription request receiving unit is configured to receive, Responding to the subscription request from the subscribers in the domain and parsing whether the subscriber is an out-of-domain user; the query unit is configured to query the subscription request receiving unit to parse the subscriber subscribed by the first subscriber to be a non-local user Whether to save the subscriber's presence information requested by the first subscriber; the presence information acquisition unit is configured to query the query unit
  • the saved subscriber presence information is advertised to the first subscriber through the subscription request accepting unit.
  • Embodiments of the present invention also provide a system for implementing a presence service, including at least two presence servers as described above.
  • the first presence server when the first presence server receives the subscription request from the first subscriber in the domain 0, and requests to subscribe to the presence information of the subscriber in the local domain; if the first presence server queries The retained subscriber presence information that is subscribed to by the first subscriber is saved, and the queried saved subscriber presence information is advertised to the first subscriber. It can be seen that, in the case that the first presence server has saved the subscriber presence information, even if another user subsequently subscribes to the subscriber's presence information, the first presentation server does not need to be the second. The server establishes a subscription session service for the subscriber. Therefore, with the technical solution provided by the embodiment of the present invention, there is no case where a plurality of subscription session services for the same subscriber are established in the existing presentation service implementation technical solution, and the amount of redundant messages transmitted between the servers is presented. decrease very much.
  • FIG. 1 is a schematic diagram of a specific structure of a presentation server in the prior art
  • FIG. 2 is a schematic diagram of a system networking for implementing a presence service
  • FIG. 3 is a flow chart of a method for implementing a presence service in the prior art
  • FIG. 4 is a schematic diagram of a specific structure of a presentation server according to the present invention
  • FIG. 5 is a flow chart of information interaction of a first embodiment of a present invention
  • FIG. Interaction Flowchart
  • FIG. 7 is a structural block diagram of a preferred embodiment of a presence server in the present invention.
  • the Presence Server includes the following modules: Presence Agent, Proxy Server, Watcher Agent, and Controller.
  • the Presence Agent is used to accept and process subscription requests, generate and send notification responses, and the Proxy Server is used to forward subscription requests or advertise responses.
  • Obtaining the presence information of the user in the non-local domain providing the presence information to the Presence Agent, determining whether the presence information of the subscriber in the non-local domain has been saved; the Controller is used to control and coordinate the work between the modules, and the Control Presence Server is enabled.
  • the Presence Agent processes it or processes it with the Proxy Server.
  • the Presence Server After the Presence Server receives the subscription request from the subscribers in the domain, it performs different processes according to different conditions:
  • the Controller resolves the subscribers who obtain the subscription request to be non-local users. If the Watcher Agent queries the presence information of the subscriber, the presence information is sent to the Presence Agent.
  • the Presence Agent generates and sends an advertisement response message to the subscriber, and announces the presence information of the subscriber.
  • the Presence Agent When the Controller parses the subscriber whose subscription request is the user in the domain, the Presence Agent generates and sends an advertisement response message to the subscriber to announce the presence information of the subscriber.
  • the Controller resolves the subscribers who obtain the subscription request to be non-local users. If the Watcher Agent does not query the presence information of the subscriber, the Watcher Agent sends a subscription request to the Presence Server of the domain in which the subscriber is located, requesting subscription of the presence information of the subscriber. The presence information of the subscriber is saved in a storage medium.
  • the Watcher Agent sends a subscription request to the Presence Server of the domain in which the subscriber is located, the subscription request is created by the Presence Server in the domain where the subscriber is subscribed, or the subscription request from the subscriber is forwarded.
  • the Watcher Agent sends the presence information obtained by parsing the notification response message to the Presence Agent, and the Presence Agent generates and sends the notification response message to the subscriber who issues the subscription request; otherwise, the Proxy Server forwards the notification. Response message.
  • the Presence Server includes a Watcher Agent.
  • the Watcher Agent includes at least a query unit and a presentation information acquisition unit.
  • the query unit is configured to query whether the subscribed subscription requested by the first subscriber is saved.
  • the first information is presented by the subscription request receiving unit to notify the first subscriber after the query unit successfully queries the saved subscriber presence information.
  • the saved subscriber information is not limited to being inside the present server, but may also be located externally, such as other storage servers, as long as the server storing the subscriber information can be queried and extracted by the present server.
  • the watcher agent further includes a service establishing unit, configured to create a new subscription session service between the present presence server and the second presence server after the query unit query is not successful, and The Presence Agent is informed of the subscriber's presence information. In turn, the Presence Agent responds to the subscriber.
  • the Presence Agent and the Controller can be combined to form a subscription request accepting unit.
  • the function of the subscription request receiving unit is equivalent to the Presence Agent + Controller; for example, the Watcher Agent and the Proxy 5 Server are combined.
  • Proxy Server can no longer be set up in the server.
  • Proxy Server can be better compatible with existing rendering servers (ie no Watcher).
  • the agent server and the existing presence server according to the embodiments of the present invention can implement interworking.
  • a SIP-based presentation service system as shown in FIG. 1, the system includes: at least one Presence Server, the Presence Server includes at least one user in the domain, and actually, there may be multiple Presence Servers; the at least one Presence Server Receiving and updating the presence information for the subscription of the presence service; the user subscribes to the presence service to the Presence Server; the Presence Server within the domain of the subscriber receives a subscription request from the user's presence service, requesting to subscribe to a subscriber other than the domain Presenting information, if the Presence Server in the domain of the subscriber saves the presence information of the subscriber, the Presence Server directly advertises the presence information of the respondent to the subscriber; otherwise, the Presence Server in the domain of the subscriber is in the domain of the subscriber. Presence Server sends a subscription request, which is in the domain of the subscriber
  • Presence Server sends an advertisement response to Presence in the domain of the subscriber
  • the Presence Server in the domain where the subscriber is located receives the subscription request from the Presence Server in the domain of the subscriber, or the presence information of the subscriber changes, the Presence Server in the domain where the subscriber is located advertises the presence to the Presence Server in the domain of the subscriber.
  • the subscriber's current presence information, the presence server in the subscriber's domain advertises the presence information to all subscribers subscribing to the information.
  • a subscription request is a Presence Server creation or generation in the subscriber's domain, or a subscription request from a subscriber.
  • FIG. 5 is a schematic diagram of an information interaction process of a first embodiment of a SIP-based presentation service method according to the present invention.
  • the first embodiment is still described by taking the networking situation of FIG. 1 as an example: Presence Server A and User Al, User A2 in Domain A, Presence Server B and User B in Domain B; User Al and User A2 To get the presentation information of User B.
  • the information interaction process of the first embodiment of the SIP-based presentation service method provided by the present invention includes the following steps:
  • Presence Server A finds that the subscribed user is not a local user, is
  • Presence Server A queries whether the online information of user User B is saved, and is not queried;
  • Presence Server A sends a subscription request to Presence Server B.
  • the SUBSCRIBE message requests to subscribe to the presence information of User B.
  • the SUBSCRIBE message may be Presence Server A re-created according to the received SUBSCRIBE or directly use the received SUBSCRIBE message;
  • Presence Server B uses the IFY notification response to inform Presence Server A of the presence information of User B, and Presence Server A saves the presentation information of User B.
  • Presence Server B establishes a subscription session service with the originator of the subscription request based on the subscription request, and Presence Server A simply forwards the subscription request of User Al and User A2, so the actual establishment is performed.
  • the two subscription sessions for User B are still between User Al and Presence Server B and User A2 and Presence Server B.
  • Presence Server A After Server A receives the subscription request from User Al, Presence Server A is equivalent to interrupting the subscription request (instead of simple forwarding in the prior art scheme), and then generates a new subscription request and sends it to Presence Server B.
  • the new subscription request contains the information that the subscriber is User B. Therefore, the subscription session service for User B established according to the new subscription request is between Presence Server A and Presence Server B. In other words, through the execution of steps 3 and 4, a subscription session service for User B is established between Presence Server A and Presence Server B.
  • Presence Server A sends NOTIFY to User Al to inform User B of the online status. According to the concept of subscription session business, it can be directly inferred, based on User Al
  • the subscription request sent by Presence Server A establishes a subscription session service between User A1 and Presence Server A, so when Presence Server A learns the presence information (such as online status) of User B, it will notify it.
  • User Al The subscription request sent by Presence Server A establishes a subscription session service between User A1 and Presence Server A, so when Presence Server A learns the presence information (such as online status) of User B, it will notify it.
  • User A2 sends a subscription request SUBSCRIBE message to Presence Server 5 A, which is also a request to subscribe to User B's presence information.
  • Presence Server A finds that the subscribed user is not the local user. Presence Server A queries whether the online information of user User B is saved. It can be found that Presence Server B sends NOTIFY directly to User A2 to inform User B of the presence information.
  • Presence Server B PUBLISH message
  • Presence Server B enables Presence Server B to get the latest presentation information. Presence Server B then learns from the query record that Presence Server A has sent a subscription request to it. Therefore, it sends a NOTIFY message to Presence Server A to inform User B that the presence information has changed, and then Presence Server A goes to User Al5 and User A2 respectively. Send a NOTIFY message to inform User B of the current presence information.
  • the Presence Server processes the SUBSCRIBE message according to the conventional manner, and therefore will not be described again.
  • Presence Server A saves the user B's presence information from the Presence 0 Server B for the first time, and then subscribes to User B's presence information when other users (such as User A2) subscribe to it.
  • Presence Server A first searches for the presence of User B's presence information. If there is, Presence Server A does not need to send a subscription request to Presence Server B, but directly informs the subscription request of the saved User B. Party (such as User A2).
  • Party such as User A2
  • the Presence Server A in the domain must be in the Presence of another domain.
  • Presence Server B sends multiple subscription requests, which in turn causes Presence Server B to reply to Presence Server A with multiple notification responses ( NOTIFY ) to inform User B of the presence information. That is, the first of the present invention is adopted.
  • the technical solution provided by the embodiment when multiple users request to subscribe to the presence information of the same out-of-domain user, greatly reduces the redundant message traffic between the Presence Server A and the Presence Server B compared to the existing presence service.
  • Presence Server A since multiple users in domain A subscribe to the same user in domain B (such as User B), Presence Server A only sends a subscription request to domain B, and then only between Presence Server A and Presence Server B. Based on this, a session service for subscribing to User B is established. Therefore, when the subscribed User B presentation information changes, Presence Server B simply informs Presence Server A of the User B presence information update message based on its session service for subscribing to User B.
  • Presence Server A needs to send multiple subscription requests to Presence Server B, and then establish multiple session services for subscription to User B between Presence Server A and Presence Server B. . Further, when User B presents the information change, Presence Server B forwards the User B's presence information update message through Presence Server A accordingly.
  • the Presence Server A and the Presence Server B the service needs to be refreshed for each subscription session.
  • the Presence Server A subscription session service for User B will only be established between A and Presence Server B, so the resulting total refresh traffic will be reduced.
  • the present invention provides a schematic diagram of an information interaction process for implementing a second embodiment of a presence service method.
  • the first embodiment is still described by taking the system of FIG. 1 as an example: Presence Server A and User Al, User A2 in Domain A, Presence Server B and User B in Domain B; User Al and User A2 to obtain User The presentation information of B, and the presentation information that User B wishes to provide to User Al and User A2 is different (this is also the difference from the application environment of the first embodiment).
  • This situation is also common in many existing instant messaging systems, for example, User B wishes to provide a presentation letter to User Al.
  • the information is online, and the presence information that you want to provide to User A2 is not online.
  • the purpose of reducing information traffic between Presence Servers in different domains can also be achieved. details as follows:
  • Presence Server A finds that the subscribed user is not the local user but the user under Presence Server B. Presence Server A replies to the User Al subscription request.
  • Presence Server A sends a SUBSCRIBE message to Presence Server B. Subscribe to User B's online information. A list is included in the SUBSCRIBE message to indicate which users want to obtain User B's online information, and User Al is added to the list.
  • Presence Server B sends a NOTIFY message to Presence Server A, which contains the online status of User B for User Al.
  • Presence Server A sends a NOTIFY to User Al to inform User B of the online status.
  • User A2 sends a SUBSCRIBE message to Presence Server A and requests to subscribe to User B's online status in the SUBSCRIBE message.
  • Presence Server A finds that the subscribed user is not the local user but the user under Presence Server B. Presence Server A replies to the User A2 subscription request has been accepted.
  • Presence Server A sends a SUBSCRIBE subscription refresh message to Presence Server B.
  • a list is included in the SUBSCRIBE message to indicate which users want to obtain User B's online information, and User A2 is added to the list.
  • the SUBSCRIBE refresh message is based on the session established by SUBSCRIBE in step 3, so it can be called a subscription refresh message, and is not independent of the SUBSCRIBE session established in step 3.
  • Presence Server B sends a NOTIFY message to Presence Server A, which contains the online status of User B for User A2. It can be seen that the essence of steps 8 and 9 is to refresh the existing subscription session service about User B. Presence Server A and Presence Server B are related to User B's subscription session service, which is initially established based on User A1 subscription. Thereafter, User A2 also subscribes to User B's presence information, so the existing subscription subscription service is refreshed. Specifically, the subscriber information list is refreshed, and the User A1 and User A2 are included after the refresh, and the response notification message refreshed by the Presence Server B also includes the User B presentation information for User A2.
  • Presence Server A sends a NOTIFY to User A2 to inform User B of the 15-wire status.
  • User B changes the online status. It enables Presence Server B to get a new online status by some means (such as sending a PUBLISH message).
  • Presence Server B sends an IFY message to Presence Server A.
  • the NOTIFY message User B online 0 information for users User A1 and User A2 is included.
  • Presence Server A then sends a NOTIFY message to User Al and User A2 to inform User B of the online status.
  • the Presence Server A since a list of subscription requesters is added to the SUBSCRIBE message, the Presence Server A only needs to send the presence information to the Presence Server B when there is another user in the domain A subscribing to the presence information of the User B. This 5 pre-SUBSCRIBE refresh message, and refresh the subscriber list in it to join User A2.
  • Presence Server A and Presence Server B, only a session service for subscribing to User B is established, instead of creating a plurality of session services for subscribing to User B as in the existing presence service, so it is presented in User B.
  • Information When a change occurs or is refreshed based on the session service, the message traffic between the Presence Server A and the Presence Server B is greatly reduced.
  • the first embodiment and the second embodiment of the present invention are implemented by the above-described present invention. It can be concluded that in the present invention, only one subscription session service can be established between two different domain servers with respect to the same subscribed 5 readers. .
  • the specific implementation is summarized as follows:
  • the first presence server receives a subscription request from the first subscriber in the domain, requesting subscription of the presence information of the subscribers that are not in the domain. Then, if the first presence server queries the subscriber presence information saved by the first subscriber to subscribe, the queried retained subscriber presence information is advertised to the first subscriber. If the first presentation server queries that the subscriber presence information is not saved by the first subscriber, there are two preferred implementation methods:
  • the specific process of establishing a subscription session service between the first presence server and the second presence server for the subscriber includes: the first presence server is based on receiving The first subscriber's subscription request creation generates a second subscription request, the second subscription request message includes at least subscriber information; the first presence server sends the second subscription request to the second presence server; The Presentation 5 server receives the subscriber presence information of the second presence server response.
  • the first presence server After establishing the subscription session service of the subscriber, the first presence server obtains the subscriber presence information requested by the first subscriber from the established subscription session service and saves the information; The subscriber presents information to the first subscriber. It should be noted that the first presence server will be known to be subscribed to. The presence information is stored inside or outside the present rendering server.
  • the first presence server queries the subscriber presence information that is not saved by the first subscriber, and the first presence server and the subscriber's domain are located. If there is already a subscription session service for the subscriber between the second presence servers, then the already existing subscription session service for the subscriber is refreshed, and the refreshed subscription session service is The subscriber information involved includes the first subscriber; and, in turn, the first presence server obtains the subscriber presence information requested by the first subscriber from the refreshed subscription session service, and advertises to the first subscriber.
  • the second presence server is first based on the already existing subscription session service for the subscriber.
  • the presence server advertises the new presence information of the subscriber; then, the first presence server advertises the subscriber's new presence information to the subscriber.
  • the present invention also provides a structural block diagram of a preferred embodiment of the presentation server, as shown in FIG.
  • the present embodiment presentation server includes a subscription request accepting unit 71, a query unit 72, a presence information acquiring unit 73, and a service establishing unit 74.
  • the internal structure of the presentation server will be further explained below in conjunction with the working principle of the presentation server.
  • the query unit 72 includes at least a first query subunit 721, and preferably a second query subunit 722.
  • the presentation information obtaining unit 73 includes at least a first presence information obtaining subunit 731, and preferably, a second presentation information acquiring subunit 732.
  • the subscription request accepting unit 71 is configured to receive, respond to a subscription request from a subscriber within the domain, and to resolve whether the subscriber is an out-of-domain user.
  • the query unit 72 is informed when it resolves that a subscriber subscribed to by a subscriber (referred to as a first subscriber for convenience of the description) is a non-local user.
  • the first query sub-unit 721 queries whether the first subscriber is saved. Subscribed subscribers requesting subscriptions present information. If the first query sub-unit 721 is successful, the first presence information acquisition sub-unit 731 is notified, and the first presence information acquisition sub-unit 731 notifies the queried saved subscriber presence information to the first through the subscription request acceptance unit. a subscriber; if the first query sub-unit 721 is unsuccessful, the service establishment unit 74 is informed. Thus, in this embodiment, it is not necessary to set the second query subunit and the second presence information acquisition subunit.
  • the first query sub-unit 721 queries whether the subscriber presence information requested by the first subscriber is saved. If the first query sub-unit 721 is successful, the first presence information acquisition sub-unit 731 is notified, and the first presence information acquisition sub-unit 731 notifies the queried saved subscriber presence information to the first through the subscription request acceptance unit. a subscriber; if the first query sub-unit 721 is unsuccessful, further querying, by the second query sub-unit 722, whether there is already a presence between the first presence server and the second presence server of the domain in which the subscriber is located Subscriber's subscription session business.
  • the second presence information obtaining sub-unit 732 refreshes the subscription session service already existing between the present presence server and the second presence server with respect to the subscriber.
  • the first subscriber is not included in the subscriber information involved in the subscribed session service of the subscriber before the refresh, for example, only User Al in the list of subscriber information before the refresh, and the list of subscriber information after the refresh is included. Includes User A1 and User A2.
  • the second presence information acquisition sub-unit 732 saves the subscriber presence information learned from the subscription, and notifies the first subscriber through the subscription request accepting unit; if the second query sub-unit 722 also fails the query, the service is notified A unit 74 is established.
  • the service establishing unit 74 establishes a subscription session service with respect to the subscriber between the present presence server and the second presence server, and notifies the subscriber information learned based on the service through the subscription request processing unit to the First subscriber.
  • the service establishing unit specifically includes: a second subscription request creating unit, configured to create a second subscription request according to the received subscription request of the first subscriber, where the second subscription request includes at least the subscriber information a second subscription request sending unit, configured to send the second subscription request to the second presence server; and a second subscription request response processing unit, configured to: Receiving subscriber presence information of the second presence server response.
  • the presentation service further includes an update presence information processing unit, configured to receive the new presence information of the subscriber notified from the second presence server, and notify the corresponding subscriber through the subscription request processing unit. Even if the unit does not exist, the presence server implementation of the presence service provided by the embodiment of the present invention has greatly reduced the allowable message traffic between the presence server A and the presence server B.
  • an implementation rendering service system can be constructed. Since the presentation server inside the system has been described in detail before, it will not be described here.
  • a specific presentation server structure of the present invention shown in FIG. 4 is implemented.
  • the subscription request accepting unit 71 in this embodiment is split into two parts, which are respectively implemented by the Presence Agent and the Cont ro l l er.
  • the Presence Agent receives and responds to the subscription request from the subscriber in the domain; and whether the subscriber in the subscription request received by the Presence Ag en is resolved by the Cont ro l ler to the out-of-domain user.
  • the query unit 72, the presence information acquisition unit 73, and the service establishment unit 74 can all be implemented by the Wa tcher Agent.
  • Figure 7 is a general block diagram of a preferred embodiment of the present invention, and Figure 6 can be considered a specific implementation of the presentation server architecture of Figure 7.
  • Figure 6 can be considered a specific implementation of the presentation server architecture of Figure 7.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

A method for achieving presence services in the network communication technology field includes: the first presence server receives the subscribing request requesting to subscribe the presence information of the subscribed party which is not in the same domain from the first subscriber in the same domain; if the first presence server inquires that the presence information of the subscribed party requested to be subscribed by the first subscriber is reserved, it notifies the first subscriber of the reserved presence information of the subscribed party which is inquired. A presence server and a system for achieving presence services can decrease the redundant information interaction between the presence servers largely.

Description

一种实现呈现业务的方法、 系统及一种呈现^ _务器  Method, system and rendering service for realizing rendering service
本申请要求于 2006 年 5 月 15 日提交中国专利局、 申请号为 200610060831. 3、发明名称为 "一种基于 SIP实现呈现业务的呈现服 务器、 系统及方法" 的中国专利申请的优先权, 其全部内容通过引用 结合在本申请中。  This application claims priority to Chinese Patent Application No. 200610060831. 3, which is entitled "A Presentation Server, System and Method for Presenting Services Based on SIP", which was submitted to the Chinese Patent Office on May 15, 2006. The entire contents are incorporated herein by reference.
技术领域 Technical field
本发明涉及网络通信技术领域,尤其涉及一种实现呈现业务的方 法、 呈现服务器及系统。  The present invention relates to the field of network communication technologies, and in particular, to a method, a presentation server, and a system for implementing a presence service.
背景技术 Background technique
会话启动协议 SIP ( Sess ion Ini t iat ion Protocol )是一个在 IP 网络上进行多媒体通信的应用层控制协议, 它被用来创建、 修改、 和 终结一个或多个参加者参加的会话进程。这些^ 舌包括 Internet多媒 体会议、 Internet电话、 远程教育以及远程医疗等。 即所有的因特网 上交互式两方或多方多媒体通信活动, 统称为多媒体会话。 参加会话 的成员可以通过组播方式、单播联网方式或者两者结合的方式进行通 信。 ,  Session Initiation Protocol SIP (Sessential Initiation Protocol) is an application layer control protocol for multimedia communication over IP networks. It is used to create, modify, and terminate session sessions attended by one or more participants. These include Internet multimedia conferencing, Internet telephony, distance education, and telemedicine. That is, all interactive two-way or multi-party multimedia communication activities on the Internet are collectively referred to as multimedia sessions. Members participating in the session can communicate by multicast, unicast networking, or a combination of the two. ,
SIP消息采用文本方式编码, 分为两类: 请求消息和响应消息。 请求消息用于客户端为了激活按特定操作而发给服务器的 SIP消息, 包括 INVITE, ACK, OPTIONS, BYE, SUBSCRIBE, CANCEL和 REGISTER 消息等。 响应消息用于对请求消息进行响应, 指示请求的成功或失败 状态。 不同类的响应消息由状态码来区分, 如状态码为 200的响应消 息表示 0K。  SIP messages are encoded in text mode and fall into two categories: request messages and response messages. The request message is used by the client to activate SIP messages sent to the server according to a specific operation, including INVITE, ACK, OPTIONS, BYE, SUBSCRIBE, CANCEL and REGISTER messages. The response message is used to respond to the request message, indicating the success or failure status of the request. Different types of response messages are distinguished by status codes. For example, a response message with a status code of 200 indicates 0K.
呈现服务( Presence )是以某种通信方式,按照一定的接入准则, 实时获取呈现信息(如用户状态、 通信能力、 个人参考等信息), 并 展现给其它用户的一种方法。  Presence is a method of obtaining presence information (such as user status, communication capability, personal reference, etc.) in real-time according to certain access criteria according to certain access criteria, and presenting it to other users.
目前, 随着互联网的普及, 越来越多的人喜欢通过即时通信的方 式来与别人保持联系, 这样的人群数量日益剧增。 在移动通信领域, 即时消息业务也逐渐兴起, 丰富、 完善的增值服务型即时通信业务, 开始成为通信业务市场上的一道亮丽的风景线。呈现 务在这种即时 通信中扮演着非常重要的角色。依靠呈现服务,即时通信业务能以"用 户多种状态设置" 等功能为基础(如用户设置为 "打电话中" 、 "会 议进行中" 等多种状态), 提供 "订阅他人状态信息" 等多种丰富的 增值服务, 为个人 /企业用户的办公、 会议、 通信等多领域提供高效 便捷的解决方案。 At present, with the popularity of the Internet, more and more people like to keep in touch with others through instant messaging, and the number of such people is increasing rapidly. In the field of mobile communications, instant messaging services are also emerging. The rich and perfect value-added service instant messaging services have become a beautiful landscape in the communications business market. Presenting in this instant Communication plays a very important role. Relying on the presence service, the instant messaging service can be based on functions such as "user multiple status settings" (such as the user setting "call", "meeting in progress", etc.), providing "subscription to other people's status information", etc. A variety of rich value-added services, providing efficient and convenient solutions for personal, business users in the office, conference, communications and other fields.
已有技术中用 SIP来实现 Presence功能, 呈现服务器结构如图 1 所示。呈现服务器包括 Presence Agent(呈现服务代理)、 Proxy Server (代理服务器)和 Control ler (控制器) , 其中, Presence Agent 用于接受并处理订阅请求, 生成并发送通告响应; Proxy Server用于 转发订阅请求或者通告响应; Control ler用于控制和协调模块之间的 工作, 控制所述 Presence Server是启用 Presence Agent进行处理还 是启用 Proxy Server进行处理。 呈现服务器收到来自本域内订阅者的 订阅请求,如果 Control ler解析得到所述订阅请求的被订阅者为本域 内用户, 则 Presence Agent生成并发送通告响应消息至所述订阅者, 通告所述被订阅者的呈现信息;如果 Control ler解析得到所述订阅请 求的被订阅者为非本域内用户, 则 Proxy Server转发该订阅请求至被 订阅者所在域内的呈现服务器。 Presence Server收到来自其他域的 NOTIFY (—种用于通知某些事件的消息)时, Control led巴该消息交 由 Proxy Server转发。  In the prior art, SIP is used to implement the Presence function, and the presentation server structure is as shown in FIG. The presence server includes a presence agent (Proxy Service Agent), a Proxy Server (Proxy Server), and a Controller (Controller), where the Presence Agent is used to accept and process the subscription request, generate and send an advertisement response; and the Proxy Server is used to forward the subscription request. Or the notification response; the Controller is used to control and coordinate the work between the modules, and the Presence Server is controlled whether the Presence Agent is enabled for processing or the Proxy Server is enabled for processing. The presence server receives the subscription request from the subscriber in the domain. If the subscriber that the Controller resolves to obtain the subscription request is the user in the domain, the Presence Agent generates and sends an advertisement response message to the subscriber, and announces the The presence information of the subscriber; if the Subscriber resolves that the subscriber of the subscription request is a non-local user, the Proxy Server forwards the subscription request to the presence server in the domain where the subscriber is located. When the Presence Server receives a NOTIFY from another domain (a message used to notify certain events), the Control led message is forwarded by the Proxy Server.
Presence可以支持域内和域间, 关于域内较为简单, 我们主要关 注域间的情形。 请参阅图 2, 其为实现呈现业务的系统组网示意图。 在图 2中有两个域, 分另 'J为 Domain A和 Domain B。 在 Domain A中有呈 现服务器 ( Presence Server ) A以及用户 User Al和 User A2,在 Domain B中有呈现服务器 (Presence Server ) B以及用户 User B。  Presence can support intra-domain and inter-domain. It is relatively simple in the domain. We mainly focus on the inter-domain situation. Please refer to FIG. 2, which is a schematic diagram of a system networking for implementing a presence service. There are two domains in Figure 2, and the other 'J is Domain A and Domain B. In Domain A, there are a presence server (Presence Server) A and users User Al and User A2. In Domain B, there are a presence server (Presence Server) B and a user User B.
如果 User Al和 User A2要获取 User B的呈现信息 ( presence信 息), 请结合参阅图 3, 其为已有技术中实现呈现业务的方法流程图: D User Al发送订阅请求 SUBSCRIBE消息至 Presence Server A, 在 SUBSCRIBE消息中请求订阅 User B的呈现信息;  If User A and User A2 want to obtain the presence information (presence information) of User B, please refer to FIG. 3, which is a flowchart of a method for implementing a presence service in the prior art: D User Al sends a subscription request SUBSCRIBE message to Presence Server A. Requesting to subscribe to the presentation information of User B in the SUBSCRIBE message;
2) Presence Server A发现被订阅的用户不是本域用户并发现是 Domain B下的用户 , 则把 User A1发送的订阅请求 SUBSCRIBE消息直接 转发给 Presence Server B, Presence Server B如果同意 User Al的 请求, 则回复响应消息 200给 User Al。 2) Presence Server A finds that the subscribed user is not a local user and finds that The user under Domain B forwards the SUBSCRIBE message sent by User A1 directly to Presence Server B. If Presence Server B agrees with User A's request, it responds with a response message 200 to User Al.
3) Presence Server B发送通告消息 NOTIFY至 Presence Server A, 在 NOTFIY消息中包含 User B的呈现信息。  3) Presence Server B sends an advertisement message NOTIFY to Presence Server A, and contains the presence information of User B in the NOTFIY message.
4) Presence Server A将 NOTIFY消息转发至 User Al。  4) Presence Server A forwards the NOTIFY message to User Al.
5) User A2发送订阅请求 SUBSCRIBE消息至 Presence Server A, 并在订阅请求 SUBSCRIBE消息中请求订阅 User B的呈现信息。  5) User A2 sends a SUBSCRIBE message to Presence Server A, and requests subscription of User B's presence information in the SUBSCRIBE message.
6)同理, Presence Server A把 SUBSCRIBE消息简单转发给 Presence Server B, Presence Server B如果同意 User A2的请求, 则回复响应消息 200给 User A2。 6 ) Similarly, Presence Server A simply forwards the SUBSCRIBE message to Presence Server B. If Presence Server B agrees with User A2's request, it responds with a response message 200 to User A2.
7) Presence Server B发送膽 IFY至 Presence Server A,在丽 FIY 消息中包含 User B的呈现信息。  7) Presence Server B sends the IFY to Presence Server A, and contains the presentation information of User B in the Philip FIY message.
8) Presence Server A将 NOTIFY消息转发至 User A2。  8) Presence Server A forwards the NOTIFY message to User A2.
Presence Server B收到一个订阅请求(并且其同意)便和该订 阅请求的发起者订阅者建立一个订阅会话, 由于此后, 由于 Presence Server A只是筒单转发订阅请求, 因此订阅请求的发起者仍然是订阅 者。 具体到本例而言, 此前 User Al向 Presence Server B发送了一个 订阅请求, User B也向 Presence Server B发送了一个订阅请求, 于 是, Presence Server B就会据 jtb分别和 User Al、 User A2各建立一 个关于 User B的订阅会话业务。  Presence Server B receives a subscription request (and it agrees) to establish a subscription session with the originator of the subscription request. Since then, because Presence Server A only forwards the subscription request, the originator of the subscription request is still subscriber. Specifically, in this example, User Al sent a subscription request to Presence Server B, and User B also sent a subscription request to Presence Server B. Therefore, Presence Server B will each according to jtb and User Al and User A2. Establish a subscription session service for User B.
此后, 如果 User B呈现信息发生改变(即更新) , User B会通过 某些方法(比如发送 PUBLISH消息 M Presence Server B能够知道 User B的新呈现信息。。进而, Presence Server B根据已经建立的两个 User B订阅会话业务, 向 Presence Server A发送两个携带 User B新呈信信 息的通告消息 NOTIFY, 其中一个 NOTIFY被 Presence Server A转发至 User Al , 另夕 j、一个被 Presence Server A转发至 User A2。 于是, User Al和 User A2即可获知 User B更新后的新呈现信息。  Thereafter, if the User B presentation information changes (ie, updates), User B can know the new presence information of User B through some methods (such as sending PUBLISH message M Presence Server B. Further, Presence Server B is based on the two established. User B subscribes to the session service and sends two notification messages NOTIFY carrying User B's new message to Presence Server A. One of the NOTIFYs is forwarded to User Al by Presence Server A, and one is forwarded to the User by Presence Server A. A2. Then, User Al and User A2 can know the new presentation information after User B is updated.
从上述实现呈现业务的信息交互流程可以看出,只要域 A内某个 订阅者发送一个关于 User B的订阅请求, 在通过 Presence Server A 的转发之后, 只要 Presence Server B同意, 就会在 Presence Server B和该订阅者之间建立一个订阅会话业务。 因此, 如果有多个订阅者 都请求订阅非本域内同一个被订阅者的呈现信息, 那么 Presence Server B便会据此建立多个关于 User B的订阅会话业务。 It can be seen from the above information interaction process of implementing the presentation service that as long as one of the domains A The subscriber sends a subscription request for User B. After forwarding through Presence Server A, as long as Presence Server B agrees, a subscription session service is established between Presence Server B and the subscriber. Therefore, if multiple subscribers request to subscribe to the presence information of the same subscriber in the local domain, Presence Server B will establish multiple subscription session services for User B accordingly.
又由于 Presence Server B和 Presence Server A所在域内订阅 者之间建立的订阅会话业务,必须通过 Presence Server A进行转发, 因此 Presence Server B和 Presence Server A之间针对每个订阅会 话业务都存在大量消息在传递。但是实际上, 当多个订阅会话业务中 的被订阅者相同情况下, Presence Server B在多个订阅会话业务中 响应的通告消息(被订阅者的呈现信息)一般是相同的,进而 Presence Server A转发的通告消息一般也是相同的, 由此可见, 现有实现呈 现业务的技术方案中, 在 Presence Server A和 Presence Server B 之间存在着大量冗余的通告消息传递。 进一步, 如果被订阅者的呈现 信息发生改变, 并且又要向多个订阅者通告该被订阅者的新呈现信 息, 那么在 Presence Server B和 Presence Server A之间瞬时的消 息量会艮大。  The subscription session service established between the subscribers in the domain where the Presence Server B and the Presence Server A are located must be forwarded through the Presence Server A. Therefore, there is a large number of messages between the Presence Server B and the Presence Server A for each subscription session. transfer. However, in fact, when the subscribers in the multiple subscription session services are the same, the advertisement message (the presence information of the subscriber) that Presence Server B responds in the multiple subscription session services is generally the same, and thus the Presence Server A The forwarded advertisement messages are generally the same. It can be seen that in the existing technical solutions for implementing the presence service, there is a large amount of redundant announcement message transmission between the Presence Server A and the Presence Server B. Further, if the subscriber's presence information changes, and the subscriber's new presence information is to be advertised to multiple subscribers, the instantaneous amount of messages between Presence Server B and Presence Server A will be large.
发明内容 Summary of the invention
本发明解决的技术问题是提供一种实现呈现业务的方法、系统及 一种呈现服务器, 减少呈现服务系统中呈现服务器间冗余的信息交 互。  The technical problem solved by the present invention is to provide a method, system and a presence server for implementing a presence service, and reducing information interaction between presentation server redundancy in a presence service system.
本发明的目的是通过以下技术方案实现的:  The object of the invention is achieved by the following technical solutions:
本发明实施例提供了一种实现呈现业务的方法, 所述方法包括: 第一呈现服务器收到来自本域内第一订阅者的订阅请求,请求订 阅非本域内被订阅者的呈现信息;第一呈现服务器查询到保存有第一 订阅者所请求订阅的被订阅者呈现信息;将查询到的所保存的被订阅 者呈现信息通告给第一订阅者。  An embodiment of the present invention provides a method for implementing a presence service, where the method includes: receiving, by a first presence server, a subscription request from a first subscriber in the domain, requesting subscription of subscription information of a subscriber that is not in the domain; The presence server queries to the subscriber presence information stored with the subscription subscribed by the first subscriber; the queried saved subscriber presence information is advertised to the first subscriber.
本发明实施例还提供了一种呈现服务器, 包括订阅请求受理单 元,以及查询单元和呈现信息获取单元,订阅请求受理单元用以接收、 " 响应来自本域内订阅者的订阅请求以及解析被订阅者是否为域外用 户;查询单元用以在订阅请求受理单元解析出第一订阅者所请求的被 订阅者为非本域内用户情况下,查询是否保存有第一订阅者所请求订 阅的被订阅者呈现信息; 呈现信息获取单元, 用以在查询单元查询成An embodiment of the present invention further provides a presence server, including a subscription request receiving unit, and a query unit and a presence information obtaining unit, and the subscription request receiving unit is configured to receive, Responding to the subscription request from the subscribers in the domain and parsing whether the subscriber is an out-of-domain user; the query unit is configured to query the subscription request receiving unit to parse the subscriber subscribed by the first subscriber to be a non-local user Whether to save the subscriber's presence information requested by the first subscriber; the presence information acquisition unit is configured to query the query unit
5 功后,将查询到的所保存的被订阅者呈现信息通过订阅请求受理单元 通告给第一订阅者。 After the work, the saved subscriber presence information is advertised to the first subscriber through the subscription request accepting unit.
本发明实施例还提供了一种实现呈现业务的系统,包括至少两个 如上所述的呈现服务器。  Embodiments of the present invention also provide a system for implementing a presence service, including at least two presence servers as described above.
本发明实施例提供的技术方案中, 当第一呈现服务器收到来自本 0 域内第一订阅者的订阅请求,请求订阅非本域内被订阅者的呈现信息 情况下;如果第一呈现服务器查询到保存有第一订阅者所请求订阅的 被订阅者呈现信息,则将查询到的所保存的被订阅者呈现信息通告给 第一订阅者。 由此可见, 在第一呈现服务器已经保存有被订阅者呈现 信息的情况下, 即使后续再有其他用户订阅该被订阅者的呈现信息, 5 第一呈现^ ^务器也无需再同第二呈现 务器建立一个关于该被订阅 者的订阅会话业务。 因此, 采用本发明实施例提供的技术方案, 不会 出现如现有呈现业务实现技术方案中建立多个关于同一个被订阅者 的订阅会话业务的情况, 呈现服务器之间传递的冗余消息量大大减 少。 In the technical solution provided by the embodiment of the present invention, when the first presence server receives the subscription request from the first subscriber in the domain 0, and requests to subscribe to the presence information of the subscriber in the local domain; if the first presence server queries The retained subscriber presence information that is subscribed to by the first subscriber is saved, and the queried saved subscriber presence information is advertised to the first subscriber. It can be seen that, in the case that the first presence server has saved the subscriber presence information, even if another user subsequently subscribes to the subscriber's presence information, the first presentation server does not need to be the second. The server establishes a subscription session service for the subscriber. Therefore, with the technical solution provided by the embodiment of the present invention, there is no case where a plurality of subscription session services for the same subscriber are established in the existing presentation service implementation technical solution, and the amount of redundant messages transmitted between the servers is presented. decrease very much.
0 附图说明  0 BRIEF DESCRIPTION OF THE DRAWINGS
图 1为已有技术中呈现服务器的一种具体结构示意图; 图 2为实现呈现业务的系统組网示意图;  1 is a schematic diagram of a specific structure of a presentation server in the prior art; FIG. 2 is a schematic diagram of a system networking for implementing a presence service;
图 3为已有技术中实现呈现业务的方法流程图;  3 is a flow chart of a method for implementing a presence service in the prior art;
图 4为本发明中呈现服务器的一种具体结构示意图; 5 图 5为本发明实现呈现业务方法第一实施例的信息交互流程图; 图 6为本发明实现呈现业务方法第二实施例的信息交互流程图; 图 7为本发明中呈现服务器优选实施例的结构框图。  4 is a schematic diagram of a specific structure of a presentation server according to the present invention; FIG. 5 is a flow chart of information interaction of a first embodiment of a present invention; FIG. Interaction Flowchart; FIG. 7 is a structural block diagram of a preferred embodiment of a presence server in the present invention.
具体实施方式  detailed description
' 贯穿说明书,示出的该优选实施例和示例应被看作本发明的范例 而不受限制。 Throughout the specification, the preferred embodiment and examples shown should be considered as examples of the invention. Without restrictions.
请参阅图 4 , 其为本发明呈现服务器 Presence Server的一种具体 结构示意图。 Presence Server包括如下模块: Presence Agent、 Proxy Server、 Watcher Agent和 Control ler, 其中, Presence Agent用于 接受并处理订阅请求, 生成并发送通告响应; Proxy Server用于转发 订阅请求或者通告响应; Watcher Agent用于获取非本域内用户的呈 现信息, 提供呈现信息给 Presence Agent , 判断是否已经保存有非本 域内被订阅者的呈现信息; Control ler用于控制和协调模块之间的工 作, 控制 Presence Server是启用 Presence Agent进行处理还是 Proxy Server进行处理。  Please refer to FIG. 4 , which is a schematic diagram of a specific structure of a server Presence Server according to the present invention. The Presence Server includes the following modules: Presence Agent, Proxy Server, Watcher Agent, and Controller. The Presence Agent is used to accept and process subscription requests, generate and send notification responses, and the Proxy Server is used to forward subscription requests or advertise responses. Obtaining the presence information of the user in the non-local domain, providing the presence information to the Presence Agent, determining whether the presence information of the subscriber in the non-local domain has been saved; the Controller is used to control and coordinate the work between the modules, and the Control Presence Server is enabled. The Presence Agent processes it or processes it with the Proxy Server.
Presence Server收到来自本域内订阅者的订阅请求后, 根据不 同情况执行不同的处理过程:  After the Presence Server receives the subscription request from the subscribers in the domain, it performs different processes according to different conditions:
( 1 )请求订阅非本域内被订阅者的呈现信息, Control ler解析 得到订阅请求的被订阅者为非本域内用户。 如果 Watcher Agent查询 到被订阅者的呈现信息, 则发送该呈现信息给 Presence Agent , (1) requesting to subscribe to the presence information of the subscribers in the non-local domain, and the Controller resolves the subscribers who obtain the subscription request to be non-local users. If the Watcher Agent queries the presence information of the subscriber, the presence information is sent to the Presence Agent.
Presence Agent生成并发送通告响应消息至订阅者, 通告被订阅者的 呈现信息。 The Presence Agent generates and sends an advertisement response message to the subscriber, and announces the presence information of the subscriber.
( 2 Control ler解析得到订阅请求的被订阅者为本域内用户时, 由 Presence Agent生成并发送通告响应消息至订阅者, 通告被订阅者 的呈现信息。  (2) When the Controller parses the subscriber whose subscription request is the user in the domain, the Presence Agent generates and sends an advertisement response message to the subscriber to announce the presence information of the subscriber.
( 3 )请求订阅非本域内被订阅者的呈现信息, Control ler解析 得到订阅请求的被订阅者为非本域内用户。 如果 Watcher Agent未查 询到被订阅者的呈现信息, 则 Watcher Agent向被订阅者所在域的 Presence Server发送订阅请求, 请求订阅被订阅者的呈现信息。 上 述被订阅者的呈现信息保存在存储介质中。  (3) requesting to subscribe to the presence information of the subscribers in the non-local domain, and the Controller resolves the subscribers who obtain the subscription request to be non-local users. If the Watcher Agent does not query the presence information of the subscriber, the Watcher Agent sends a subscription request to the Presence Server of the domain in which the subscriber is located, requesting subscription of the presence information of the subscriber. The presence information of the subscriber is saved in a storage medium.
Watcher Agent向被订阅者所在域的 Presence Server发送订阅请 求时, 订阅请求由订阅请求者所在域内的 Presence Server创建生成, 或者是转发来自订阅者的订阅请求。  When the Watcher Agent sends a subscription request to the Presence Server of the domain in which the subscriber is located, the subscription request is created by the Presence Server in the domain where the subscriber is subscribed, or the subscription request from the subscriber is forwarded.
Presence Server收到通告响应消息时, 如果 Control ler判断是 ί When the Presence Server receives the notification response message, if the Controller determines that it is ί
-7- 对本域内发出的订阅请求的响应, Watcher Agent将解析通告响应消 息得到的呈现信息发送给 Presence Agent , Presence Agent生成并发 送通告响应消息至发出订阅请求的订阅者; 否则, Proxy Server转发 通告响应消息。  -7- In response to the subscription request sent in the domain, the Watcher Agent sends the presence information obtained by parsing the notification response message to the Presence Agent, and the Presence Agent generates and sends the notification response message to the subscriber who issues the subscription request; otherwise, the Proxy Server forwards the notification. Response message.
5 通过上述示例的说明, 本发明实施例所述的 Presence Server包 括 Watcher Agent。 才艮据前述关于 Watcher Agent的叙述可直接推知其 内部结构, Watcher Agent至少包括查询单元和呈现信息获取单元。 其中,查询单元用以查询是否保存有第一订阅者所请求订阅的被订阅 5 The Presence Server according to the embodiment of the present invention includes a Watcher Agent. According to the foregoing description of the Watcher Agent, the internal structure can be directly inferred. The Watcher Agent includes at least a query unit and a presentation information acquisition unit. The query unit is configured to query whether the subscribed subscription requested by the first subscriber is saved.
1 者呈现信息; 呈现信息获取单元, 用以在查询单元查询成功后, 将查 0 询到的所保存的被订阅者呈现信息通过订阅请求受理单元通告给第 一订阅者。 需要说明, 所保存的被订阅者信息并不局限于在本呈现服 务器内部, 还可以位于外部, 如其他存储服务器上, 只要存储有被订 阅者信息的那个服务器可以供本呈现服务器进行查询和提取即可。优 选的, Watcher Agent还包括业务建立单元, 用以在查询单元查询未 5 成功后,在本呈现服务器和第二呈现服务器之间新建一个关于所述被 订阅者的订阅会话业务,并将基于该业务获知的被订阅者呈现信息告 知 Presence Agent;。 进而, 由 Presence Agent响应给订阅者。 The first information is presented by the subscription request receiving unit to notify the first subscriber after the query unit successfully queries the saved subscriber presence information. It should be noted that the saved subscriber information is not limited to being inside the present server, but may also be located externally, such as other storage servers, as long as the server storing the subscriber information can be queried and extracted by the present server. Just fine. Preferably, the watcher agent further includes a service establishing unit, configured to create a new subscription session service between the present presence server and the second presence server after the query unit query is not successful, and The Presence Agent is informed of the subscriber's presence information. In turn, the Presence Agent responds to the subscriber.
, 值得注意的是,本实施例提供的呈现服务器内部结构只是给出了 一种可行的具体结构划分方式, 本领域技术人员由此应该可以意识 0 到,各组成部分之间可以按照需要进行重新组合或者将某个组成部分 进行拆分,这些结构上的逻辑调整并不影响本发明呈现服务器的整体 技术方案。 例如, 可以将 Presence Agent和 Control ler合并组成一个 订阅请求受理单元, 该订阅请求受理单元实现的功能就相当于 Presence Agent + Control ler; 又例如 , 将 Watcher Agent和 Proxy 5 Server予以合并等等。  It should be noted that the internal structure of the presentation server provided in this embodiment only gives a feasible specific structure division manner, and those skilled in the art should be able to realize that the components can be re-created as needed. Combining or splitting a component, these structural logical adjustments do not affect the overall technical solution of the present invention server. For example, the Presence Agent and the Controller can be combined to form a subscription request accepting unit. The function of the subscription request receiving unit is equivalent to the Presence Agent + Controller; for example, the Watcher Agent and the Proxy 5 Server are combined.
此外还需要说明, 如果网络上的所有呈现服务器均设置有 Watcher Agent , 那么呈现服务器便不需要再做简单转发, 因此呈现 In addition, it should be noted that if all the rendering servers on the network are equipped with a Watcher Agent, the rendering server does not need to do simple forwarding, so it is presented.
' 服务器中就可以不再设置 Proxy Server。 当然, 如果保留有 Proxy Server , 则可以更好的兼容现有的呈现服务器(即没有 Watcher Agent ) , 使得本发明实施例所述的呈现服务器和现有呈现服务器可 以实现互通。 'Proxy Server can no longer be set up in the server. Of course, if Proxy Server is retained, it can be better compatible with existing rendering servers (ie no Watcher). The agent server and the existing presence server according to the embodiments of the present invention can implement interworking.
以上仅仅给出了本发明呈现服务器的一个具体实施例结构,在后 续介绍完本发明实现呈现业务的方法各实施例后,还会给出更具一般 性的本发明呈现服务器内部结构框图,并会指出所述更具一般性的结 构框图与本实施例的具体结构之间的关系。  The above is only a specific embodiment structure of the present invention server. After the embodiments of the method for implementing the present invention are introduced, a more general internal block diagram of the present invention server is also given. The relationship between the more general structural block diagram and the specific structure of this embodiment will be pointed out.
一种基于 SIP实现呈现业务的系统, 如图 1 所示, 该系统包括: 至少一个 Presence Server , Presence Server所在域内至少包括一个 用户, 实际上, 可以有多个 Presence Server; 该至少一个 Presence Server用于接受呈现服务的订阅, 提供和更新呈现信息; 用户向所述 Presence Server订阅呈现服务; 订阅者所在域内的 Presence Server 收到来自用户的呈现服务的订阅请求,请求订阅非本域内被订阅者的 呈现信息, 如果订阅者所在域内的 Presence Server保存有被订阅者 的呈现信息, Presence Server直接通告响应被订阅者的呈现信息给 订阅者; 否则, 订阅者所在域内的 Presence Server向被订阅者所在 域内的 Presence Server发送订阅请求, 被订阅者所在域内的  A SIP-based presentation service system, as shown in FIG. 1, the system includes: at least one Presence Server, the Presence Server includes at least one user in the domain, and actually, there may be multiple Presence Servers; the at least one Presence Server Receiving and updating the presence information for the subscription of the presence service; the user subscribes to the presence service to the Presence Server; the Presence Server within the domain of the subscriber receives a subscription request from the user's presence service, requesting to subscribe to a subscriber other than the domain Presenting information, if the Presence Server in the domain of the subscriber saves the presence information of the subscriber, the Presence Server directly advertises the presence information of the respondent to the subscriber; otherwise, the Presence Server in the domain of the subscriber is in the domain of the subscriber. Presence Server sends a subscription request, which is in the domain of the subscriber
Presence Server发送通告响应给订阅者所在域内的 Presence Presence Server sends an advertisement response to Presence in the domain of the subscriber
Server。 Server.
被订阅者所在域内的 Presence Server收到来自订阅者所在域内 的 Presence Server的订阅请求, 或者被订阅者的呈现信息改变, 则 被订阅者所在域内 Presence Server向订阅者所在域内 Presence Server通告所述被订阅者的当前呈现信息, 将该订阅者所在域内 Presence Server通告呈现信息给订阅该信息的所有订阅者。 订阅请 求是订阅者所在域内的 Presence Server创建生成, 或者是转发来自 订阅者的订阅请求。  If the Presence Server in the domain where the subscriber is located receives the subscription request from the Presence Server in the domain of the subscriber, or the presence information of the subscriber changes, the Presence Server in the domain where the subscriber is located advertises the presence to the Presence Server in the domain of the subscriber. The subscriber's current presence information, the presence server in the subscriber's domain advertises the presence information to all subscribers subscribing to the information. A subscription request is a Presence Server creation or generation in the subscriber's domain, or a subscription request from a subscriber.
请参阅图 5 ,其为本发明提供的一种基于 SIP实现呈现业务方法第 一实施例的信息交互过程示意图。 所述笫一实施例仍然以图 1 的组 网情况为例进行介绍: Presence Server A和 User Al、 User A2在 Domain A中, Presence Server B和 User B在 Domain B中; User Al和 User A2 要获取 User B的呈现信息。 本发明提供的一种基于 SIP实现呈现业务 方法第一实施例的信息交互过程包括以下步骤: Please refer to FIG. 5 , which is a schematic diagram of an information interaction process of a first embodiment of a SIP-based presentation service method according to the present invention. The first embodiment is still described by taking the networking situation of FIG. 1 as an example: Presence Server A and User Al, User A2 in Domain A, Presence Server B and User B in Domain B; User Al and User A2 To get the presentation information of User B. The information interaction process of the first embodiment of the SIP-based presentation service method provided by the present invention includes the following steps:
1) User Al发送订阅请求 SUBSCRIBE消息至 Presence Server A, 请求订阅 Doma in B中用户 User B的在线信息;  1) User Al sends a subscription request SUBSCRIBE message to Presence Server A, requesting to subscribe to the online information of user User B in Doma in B;
2) Presence Server A发现被订阅的用户不是本域用户, 是 2) Presence Server A finds that the subscribed user is not a local user, is
Domain B中的用户, 于是, Presence Server A查询是否保存有用户 User B的在线信息, 未查询到; The user in Domain B, then, Presence Server A queries whether the online information of user User B is saved, and is not queried;
3) Presence Server A向 Presence Server B发送订阅请求 SUBSCRIBE消息请求订阅 User B的呈现信息, 该 SUBSCRIBE消息可以是 Presence Server A根据收到的 SUBSCRIBE来重新创建或者直接用收到 的 SUBSCRIBE消息;  3) Presence Server A sends a subscription request to Presence Server B. The SUBSCRIBE message requests to subscribe to the presence information of User B. The SUBSCRIBE message may be Presence Server A re-created according to the received SUBSCRIBE or directly use the received SUBSCRIBE message;
4) Presence Server B用而 IFY通告响应向 Presence Server A 告知 User B的呈现信息, 并且 Presence Server A保存 User B的呈现 信息。  4) Presence Server B uses the IFY notification response to inform Presence Server A of the presence information of User B, and Presence Server A saves the presentation information of User B.
由于现有实现呈现业务的方法中, Presence Server B是基于订 阅请求与该订阅请求的发起者建立一个订阅会话业务, Presence Server A仅仅是简单转发 User Al和 User A2的订阅请求, 因此实际建 立的两个关于 User B的订阅会话业务还是在 User Al和 Presence Server B以及 User A2和 Presence Server B之间。  In the existing method for presenting the service, Presence Server B establishes a subscription session service with the originator of the subscription request based on the subscription request, and Presence Server A simply forwards the subscription request of User Al and User A2, so the actual establishment is performed. The two subscription sessions for User B are still between User Al and Presence Server B and User A2 and Presence Server B.
但是根据本发明上述实施例所述内容可以直接推知,在 Presence However, the content according to the above embodiment of the present invention can be directly inferred, in Presence
Server A接收到 User Al的订阅请求后, Presence Server A相当于中 断了这个订阅请求(而非现有技术方案中的简单转发), 然后据此创 建生成一个新订阅请求发送至 Presence Server B, 该新订阅请求中 包含被订阅者为 User B的信息。 所以根据该新订阅请求建立的关于 User B的订阅会话业务是在 Presence Server A和 Presence Server B 之间。 换而言之, 通过步骤 3和步骤 4的执行, 便在 Presence Server A 和 Presence Server B之间建立起一个关于 User B的订阅会话业务。 After Server A receives the subscription request from User Al, Presence Server A is equivalent to interrupting the subscription request (instead of simple forwarding in the prior art scheme), and then generates a new subscription request and sends it to Presence Server B. The new subscription request contains the information that the subscriber is User B. Therefore, the subscription session service for User B established according to the new subscription request is between Presence Server A and Presence Server B. In other words, through the execution of steps 3 and 4, a subscription session service for User B is established between Presence Server A and Presence Server B.
5) Presence Server A向 User Al发送 NOTIFY告知 User B的在 线状态。 根据订阅会话业务的概念可以直接推知, 基于 User Al向 Presence Server A发送的订阅请求, 在 User A1和 Presence Server A 之间建立了一个关于 User B的订阅会话业务,因此当 Presence Server A获知了 User B的呈现信息 (如在线状态)后就会通告给 User Al。 5) Presence Server A sends NOTIFY to User Al to inform User B of the online status. According to the concept of subscription session business, it can be directly inferred, based on User Al The subscription request sent by Presence Server A establishes a subscription session service between User A1 and Presence Server A, so when Presence Server A learns the presence information (such as online status) of User B, it will notify it. User Al.
6) User A2发送订阅请求 SUBSCRIBE消息至 Presence Server 5 A, 也是请求订阅 User B的呈现信息。  6) User A2 sends a subscription request SUBSCRIBE message to Presence Server 5 A, which is also a request to subscribe to User B's presence information.
7) Presence Server A发现被订阅的用户不是本域用户, Presence Server A查询是否保存有用户 User B的在线信息, 可以查 到, Presence Server B直接向 User A2发送 NOTIFY告知 User B的呈现 信息。 7) Presence Server A finds that the subscribed user is not the local user. Presence Server A queries whether the online information of user User B is saved. It can be found that Presence Server B sends NOTIFY directly to User A2 to inform User B of the presence information.
0 8 ) 当 User B改变呈现信息时, 它通过某些方法 (比如发送 0 8 ) When User B changes the rendering information, it passes some methods (such as sending
PUBLISH消息)使 Presence Server B能够得到最新的呈现信息。 然后, Presence Server B通过查询记录获知 Presence Server A曾经向其发 送过一条订阅请求, 于是, 向 Presence Server A发送 NOTIFY消息告 知 User B的呈现信息已改变, 进而 Presence Server A分别向 User Al5 和 User A2发送 NOTIFY消息告知 User B的当前呈现信息。  PUBLISH message) enables Presence Server B to get the latest presentation information. Presence Server B then learns from the query record that Presence Server A has sent a subscription request to it. Therefore, it sends a NOTIFY message to Presence Server A to inform User B that the presence information has changed, and then Presence Server A goes to User Al5 and User A2 respectively. Send a NOTIFY message to inform User B of the current presence information.
9 )上述实施例中, 如果被订阅用户与订阅者在同一个域内, Presence Server按照现有常规方式处理 SUBSCRIBE消息, 故不再赘 述。  9) In the above embodiment, if the subscriber is in the same domain as the subscriber, the Presence Server processes the SUBSCRIBE message according to the conventional manner, and therefore will not be described again.
' 通过上述过程可以看出 , 由于 Presence Server A在从 Presence 0 Server B第一次获知 User B的呈现信息后予以保存, 进而当有其他用 户 ( 如 User A2 )又向其订阅 User B的呈现信息时, Presence Server A会首先查找其内部是否保存有 User B的呈现信息,如果有, Presence Server A就无需再向 Presence Server B发送订阅请求, 而是直接将 保存的 User B的呈现信息告知订阅请求方 (如 User A2 ) 。 而现有基 5 于 SIP的呈现业务中, 如果多个用户 (如 User Al和 User A2 )订阅同 一个域外用户 (如 User B ) 的信息, 该域内的 Presence Server A要 向另外一个域内的 Presence Server B发送多个订阅请求, 从而也就 , 导致 Presence Server B也要向 Presence Server A回复多个通知响应 ( NOTIFY )告知多次 User B的呈现信息。 也就是说, 采用本发明第一 实施例提供的技术方案,在有多个用户都请求订阅同一个域外用户的 呈现信息时, 较现有呈现业务而言, 大大减少了 Presence Server A 和 Presence Server B之间的冗余消息流量。 Through the above process, it can be seen that Presence Server A saves the user B's presence information from the Presence 0 Server B for the first time, and then subscribes to User B's presence information when other users (such as User A2) subscribe to it. Presence Server A first searches for the presence of User B's presence information. If there is, Presence Server A does not need to send a subscription request to Presence Server B, but directly informs the subscription request of the saved User B. Party (such as User A2). In the existing SIP-based presence service, if multiple users (such as User Al and User A2) subscribe to the information of the same domain user (such as User B), the Presence Server A in the domain must be in the Presence of another domain. Server B sends multiple subscription requests, which in turn causes Presence Server B to reply to Presence Server A with multiple notification responses ( NOTIFY ) to inform User B of the presence information. That is, the first of the present invention is adopted. The technical solution provided by the embodiment, when multiple users request to subscribe to the presence information of the same out-of-domain user, greatly reduces the redundant message traffic between the Presence Server A and the Presence Server B compared to the existing presence service.
进一步, 由于域 A内多个用户都订阅域 B内的同一个用户(如 User B )情况下, Presence Server A只向域 B内发送一次订阅请求, 进而 Presence Server A和 Presence Server B之间只基于此建立一个关于 订阅 User B的会话业务。 因此, 当被订阅的 User B呈现信息改变时, Presence Server B只是根据其这一个关于订阅 User B的会话业务向 Presence Server A告知一次 User B的呈现信息更新消息即可。  Further, since multiple users in domain A subscribe to the same user in domain B (such as User B), Presence Server A only sends a subscription request to domain B, and then only between Presence Server A and Presence Server B. Based on this, a session service for subscribing to User B is established. Therefore, when the subscribed User B presentation information changes, Presence Server B simply informs Presence Server A of the User B presence information update message based on its session service for subscribing to User B.
而在现有呈现业务中, 当相同情况出现时, Presence Server A 需要向 Presence Server B发送多个订阅请求, 进而在 Presence Server A和 Presence Server B之间会建立多个关于订阅 User B的会 话业务。 进而, User B呈现信息改变时, Presence Server B就会据 此通过 Presence Server A转发多次 User B的呈现信息更新消息。  In the existing presence service, when the same situation occurs, Presence Server A needs to send multiple subscription requests to Presence Server B, and then establish multiple session services for subscription to User B between Presence Server A and Presence Server B. . Further, when User B presents the information change, Presence Server B forwards the User B's presence information update message through Presence Server A accordingly.
由此可见, 采用本发明实施例的技术方案,使得被订阅用户呈现 信息改变后, Presence Server B和 Presence Server A之间的呈现信 息更新消息流量也会大为减少, 基本不存在冗余的通告响应。  It can be seen that, by adopting the technical solution of the embodiment of the present invention, after the information presented by the subscribing user is changed, the traffic of the update information of the presence information between the Presence Server B and the Presence Server A is also greatly reduced, and there is basically no redundant notification. response.
此夕卜, Presence Server A和 Presence Server B之间需要就每个 订阅会话业务进不断刷新, 由于采用本发明实施例的技术方案, 无论 有多少本域内用户都订阅 User B的呈现信息, Presence Server A和 Presence Server B之间都只会建立的一个关于 User B的订阅会话业 务, 因此, 随之产生的总体刷新信息流量会减少。  In addition, between the Presence Server A and the Presence Server B, the service needs to be refreshed for each subscription session. The technical solution of the embodiment of the present invention, regardless of how many users in the domain subscribe to the presentation information of the User B, the Presence Server A subscription session service for User B will only be established between A and Presence Server B, so the resulting total refresh traffic will be reduced.
请参阅图 6 , 其本发明提供实现呈现业务方法第二实施例的信息 交互过程示意图。所述第一实施例仍然以图 1 的系统为例进行介绍: Presence Server A和 User Al、 User A2在 Domain A中 , Presence Server B和 User B在 Domain B中; User Al和 User A2要获取 User B的呈现信 息,并且 User B希望提供给 User Al和 User A2的呈现信息是不同的(这 也是与第一实施例应用环境的区别之处)。 这种情况在现有许多即时 通信系统中也是常有的, 例如, User B希望提供给 User Al的呈现信 息是在线, 而希望提供给 User A2的呈现信息是不在线。 采用本发明 第二实施例提供的技术方案, 在这种情况下, 同样可以到达减少不同 域内 Presence Server之间的信息流量目的。 具体如下: Referring to FIG. 6, the present invention provides a schematic diagram of an information interaction process for implementing a second embodiment of a presence service method. The first embodiment is still described by taking the system of FIG. 1 as an example: Presence Server A and User Al, User A2 in Domain A, Presence Server B and User B in Domain B; User Al and User A2 to obtain User The presentation information of B, and the presentation information that User B wishes to provide to User Al and User A2 is different (this is also the difference from the application environment of the first embodiment). This situation is also common in many existing instant messaging systems, for example, User B wishes to provide a presentation letter to User Al. The information is online, and the presence information that you want to provide to User A2 is not online. With the technical solution provided by the second embodiment of the present invention, in this case, the purpose of reducing information traffic between Presence Servers in different domains can also be achieved. details as follows:
1) User A1发送 SUBSCRIBE消息至 Presence Server A , 并在 SUBSCRIBE消息中请求订阅 User B的在线状态。  1) User A1 sends a SUBSCRIBE message to Presence Server A and requests to subscribe to User B's online status in the SUBSCRIBE message.
2) Presence Server A发现被订阅的用户不是本域用户而是 Presence Server B下的用户, Presence Server A回复 User Al 订阅请求已接受。  2) Presence Server A finds that the subscribed user is not the local user but the user under Presence Server B. Presence Server A replies to the User Al subscription request.
3) Presence Server A向 Presence Server B发送 SUBSCRIBE消息 请求订阅 User B的在线信息。 在该 SUBSCRIBE消息中包含一个 列表来指明是哪些用户要获取 User B的在线信息, 把 User Al 加入该列表中。  3) Presence Server A sends a SUBSCRIBE message to Presence Server B. Subscribe to User B's online information. A list is included in the SUBSCRIBE message to indicate which users want to obtain User B's online information, and User Al is added to the list.
4) Presence Server B向 Presence Server A发送 NOTIFY消息, 该 消息包含针对 User Al的 User B的在线状态。  4) Presence Server B sends a NOTIFY message to Presence Server A, which contains the online status of User B for User Al.
5) Presence Server A向 User Al发送 NOTIFY告知 User B的在线状 态。  5) Presence Server A sends a NOTIFY to User Al to inform User B of the online status.
6) User A2发送 SUBSCRIBE消息至 Presence Server A , 并在 SUBSCRIBE消息中请求订阅 User B的在线状态。  6) User A2 sends a SUBSCRIBE message to Presence Server A and requests to subscribe to User B's online status in the SUBSCRIBE message.
7) Presence Server A发现被订阅的用户不是本域用户而是 Presence Server B下的用户, Presence Server A回复 User A2 订阅请求已接受。  7) Presence Server A finds that the subscribed user is not the local user but the user under Presence Server B. Presence Server A replies to the User A2 subscription request has been accepted.
8) Presence Server A向 Presence Server B发送 SUBSCRIBE订阅 刷新消息。 在该 SUBSCRIBE消息中包含一个列表来指明是哪些 用户要获取 User B的在线信息, 把 User A2加入该列表中。 该 SUBSCRIBE刷新消息是基于第 3步的 SUBSCRIBE建立的会话, 故 可以称为订阅刷新消息, 并不是独立于第 3步中建立的 SUBSCRIBE会话。  8) Presence Server A sends a SUBSCRIBE subscription refresh message to Presence Server B. A list is included in the SUBSCRIBE message to indicate which users want to obtain User B's online information, and User A2 is added to the list. The SUBSCRIBE refresh message is based on the session established by SUBSCRIBE in step 3, so it can be called a subscription refresh message, and is not independent of the SUBSCRIBE session established in step 3.
9) Presence Server B向 Presence Server A发送 NOTIFY消息, 该 消息包含针对 User A2的 User B的在线状态。 可以看出步骤 8和步骤 9的实质是对已经存在的关于 User B的订阅 会话业务进行刷新。 Presence Server A和 Presence Server B之间关 于 User B的订阅会话业务, 最初是基于 User A1订阅建立的, 此后, 由于 User A2也订阅 User B的呈现信息, 因此刷新该已经存在订阅会 5 话业务。 具体而言, 刷新订阅者信息列表, 刷新前至包含 User A1 , 刷新后包括 User A1和 User A2 , 进而 Presence Server B刷新的响应 通告消息中也会包含针对 User A2而言的 User B呈现信息。 这样, 即 使 User B希望呈现给 User A1和 User A2的信息不同, 也是可以的, 例 如 User B呈现给 User A1的是忙, 呈现给 User A2的是闲。 由此可见, 10 本实施例既满足了呈现信息多样性的需求, 也同样达到在 Presence Server A和 Presence Server B之间就同一个被订阅者只建立一个订 阅会话业务, 进而大大减少了两个呈现服务器之间传递的允余信息 量。 9) Presence Server B sends a NOTIFY message to Presence Server A, which contains the online status of User B for User A2. It can be seen that the essence of steps 8 and 9 is to refresh the existing subscription session service about User B. Presence Server A and Presence Server B are related to User B's subscription session service, which is initially established based on User A1 subscription. Thereafter, User A2 also subscribes to User B's presence information, so the existing subscription subscription service is refreshed. Specifically, the subscriber information list is refreshed, and the User A1 and User A2 are included after the refresh, and the response notification message refreshed by the Presence Server B also includes the User B presentation information for User A2. In this way, even if the information that User B wishes to present to User A1 and User A2 is different, for example, User B is busy to User A1, and is free to User A2. It can be seen that 10 this embodiment not only satisfies the requirement of presenting information diversity, but also achieves only one subscription session service between the Presence Server A and the Presence Server B for the same subscriber, thereby greatly reducing two Represents the amount of allowed information passed between servers.
10) Presence Server A向 User A2发送 NOTIFY告知 User B的在 15 线状态。  10) Presence Server A sends a NOTIFY to User A2 to inform User B of the 15-wire status.
11) User B改变在线状态, 它通过某些方法(比如发送 PUBLISH消 息)使 Presence Server B能够得到新的在线状态。  11) User B changes the online status. It enables Presence Server B to get a new online status by some means (such as sending a PUBLISH message).
12) Presence Server B向 Presence Server A发送 IFY消息, 在 , 该 NOTIFY消息中包含针对用户 User A1和 User A2的 User B在线 0 信息。 然后, Presence Server A分别向 User Al和 User A2发 送 NOTIFY消息告知 User B的在线状态。  12) Presence Server B sends an IFY message to Presence Server A. In the NOTIFY message, User B online 0 information for users User A1 and User A2 is included. Presence Server A then sends a NOTIFY message to User Al and User A2 to inform User B of the online status.
从该实施例的信息交互过程可知, 由于在 SUBSCRIBE消息中添 加了一个订阅请求方的列表, 使得当域 A内再有用户订阅 User B的 呈现信息时, Presence Server A只需向 Presence Server B发送此 5 前的 SUBSCRIBE刷新消息, 并刷新其中的订阅方列表中加入 User A2 即可。  According to the information interaction process of the embodiment, since a list of subscription requesters is added to the SUBSCRIBE message, the Presence Server A only needs to send the presence information to the Presence Server B when there is another user in the domain A subscribing to the presence information of the User B. This 5 pre-SUBSCRIBE refresh message, and refresh the subscriber list in it to join User A2.
进而, Presence Server A和 Presence Server B之间仍然只是 建立了一个关于订阅 User B的会话业务, 而不是像现有呈现业务中 ' 建立多个关于订阅 User B的会话业务, 所以无论在 User B呈现信息 发生改变, 还是基于会话业务进行刷新时, 都大大减少了 Presence Server A和 Presence Server B之间的消息流量。 Furthermore, between Presence Server A and Presence Server B, only a session service for subscribing to User B is established, instead of creating a plurality of session services for subscribing to User B as in the existing presence service, so it is presented in User B. Information When a change occurs or is refreshed based on the session service, the message traffic between the Presence Server A and the Presence Server B is greatly reduced.
通过上述本发明实现呈现业务方法的第一实施例和第二实施例 ' 可以总结推知, 本发明中, 在两个不同域服务器之间关于同一个被订 5 阅者只会建立一个订阅会话业务。 具体的实施方式总结如下:  The first embodiment and the second embodiment of the present invention are implemented by the above-described present invention. It can be concluded that in the present invention, only one subscription session service can be established between two different domain servers with respect to the same subscribed 5 readers. . The specific implementation is summarized as follows:
首先, 第一呈现服务器收到来自本域内第一订阅者的订阅请求, 请求订阅非本域内被订阅者的呈现信息。 然后, 如果第一呈现服务器 查询到保存有第一订阅者所请求订阅的被订阅者呈现信息,则将查询 到的所保存的被订阅者呈现信息通告给第一订阅者。如果第一呈现服 0 务器查询到未保存有第一订阅者所请求订阅的被订阅者呈现信息,则 存在两种优选的具体实施方法:  First, the first presence server receives a subscription request from the first subscriber in the domain, requesting subscription of the presence information of the subscribers that are not in the domain. Then, if the first presence server queries the subscriber presence information saved by the first subscriber to subscribe, the queried retained subscriber presence information is advertised to the first subscriber. If the first presentation server queries that the subscriber presence information is not saved by the first subscriber, there are two preferred implementation methods:
( 1 )如果第一呈现服务器查询到未保存有第一订阅者所请求订 (1) if the first presence server queries that the first subscriber has not saved
' 阅的被订阅者呈现信息,则在所述第一呈现服务器和所述被订阅者所 在域的第二呈现服务器之间建立关于所述被订阅者的订阅会话业务; 5 ( 2 )如果第一呈现服务器查询到未保存有第一订阅者所请求订 阅的被订阅者呈现信息,并且第一呈现服务器和被订阅者所在域的第 二呈现服务器之间未存在一个关于该被订阅者的订阅会话业务;则在 所述第一呈现服务器和所述被订阅者所在域的第二呈现服务器之间 建立关于所述被订阅者的订阅会话业务。'reading the subscriber's presence information, establishing a subscription session service with respect to the subscriber between the first presence server and the second presence server of the domain in which the subscriber is located; 5 (2) if the first A presence server query does not save the subscriber presence information requested by the first subscriber, and there is no subscription for the subscriber between the first presence server and the second presence server of the domain in which the subscriber is located a session service; establishing a subscription session service with respect to the subscriber between the first presence server and a second presence server of the domain in which the subscriber is located.
0 无论是 ( 1 )还是( 2 ) , 优选的, 所述在第一呈现服务器和第二 呈现服务器之间建立一个关于该被订阅者的订阅会话业务的具体过 程包括:第一呈现服务器基于接收到的第一订阅者的订阅请求创建生 成第二订阅请求, 所述第二订阅请求消息至少包括被订阅者信息; 第 一呈现服务器将所述第二订阅请求发送至第二呈现服务器;第一呈现 5 服务器接收第二呈现服务器响应的被订阅者呈现信息。  0: (1) or (2), preferably, the specific process of establishing a subscription session service between the first presence server and the second presence server for the subscriber includes: the first presence server is based on receiving The first subscriber's subscription request creation generates a second subscription request, the second subscription request message includes at least subscriber information; the first presence server sends the second subscription request to the second presence server; The Presentation 5 server receives the subscriber presence information of the second presence server response.
建立关于所述被订阅者的订阅会话业务后,第一呈现服务器从所 述建立的该订阅会话业务中获知第一订阅者所请求订阅的被订阅者 呈现信息并予以保存;最后将上述获知的被订阅者呈现信息通告给所 述第一订阅者。 需要说明, 所述第一呈现服务器将获知的所述被订阅 者呈现信息保存在本呈现服务器内部或外部。 After establishing the subscription session service of the subscriber, the first presence server obtains the subscriber presence information requested by the first subscriber from the established subscription session service and saves the information; The subscriber presents information to the first subscriber. It should be noted that the first presence server will be known to be subscribed to. The presence information is stored inside or outside the present rendering server.
如果采用 (2 )所述的实施方式, 在第一呈现服务器查询到未保 存有第一订阅者所请求订阅的被订阅者呈现信息,并且所述第一呈现 服务器和所述被订阅者所在域的第二呈现服务器之间已经存在一个 关于该被订阅者的订阅会话业务的情况下,则刷新所述已经存在的关 于该被订阅者的订阅会话业务,所述刷新后的该订阅会话业务中涉及 的订阅者信息包括第一订阅者; 进而, 第一呈现服务器从刷新后的订 阅会话业务中获知第一订阅者所请求订阅的被订阅者呈现信息,并通 告给所述第一订阅者。  If the implementation described in (2) is adopted, the first presence server queries the subscriber presence information that is not saved by the first subscriber, and the first presence server and the subscriber's domain are located. If there is already a subscription session service for the subscriber between the second presence servers, then the already existing subscription session service for the subscriber is refreshed, and the refreshed subscription session service is The subscriber information involved includes the first subscriber; and, in turn, the first presence server obtains the subscriber presence information requested by the first subscriber from the refreshed subscription session service, and advertises to the first subscriber.
进一步, 如杲后续被订阅者的呈现信息改变, 即第二呈现服务获 知所述被订阅者的呈现信息改变;则第二呈现服务器基于已经存在的 关于该被订阅者的订阅会话业务向第一呈现服务器通告所述被订阅 者的新呈现信息; 然后, 第一呈现服务器通告所述被订阅者的新呈现 信息给订阅者。  Further, if the presence information of the subsequent subscriber is changed, that is, the second presentation service learns that the subscription information of the subscriber changes, the second presence server is first based on the already existing subscription session service for the subscriber. The presence server advertises the new presence information of the subscriber; then, the first presence server advertises the subscriber's new presence information to the subscriber.
基于与上述本发明实现呈现业务的方法同一发明构思,本发明还 提供了一种比较具有一般性的呈现服务器优选实施例结构框图,如图 7所示。 本实施例呈现服务器包括订阅请求受理单元 71、 查询单元 72、 呈现信息获取单元 73和业务建立单元 74。下面结合该呈现服务器的工 作原理, 进一步说明其内部结构。 其中, 查询单元 72至少包括第一查 询子单元 721, 优选的, 还包括第二查询子单元 722。 对应的, 呈现信 息获取单元 73至少包括第一呈现信息获取子单元 731, 优选的, 还包 括第二呈现信息获取子单元 732。  Based on the same inventive concept as the method for realizing the presentation service of the present invention described above, the present invention also provides a structural block diagram of a preferred embodiment of the presentation server, as shown in FIG. The present embodiment presentation server includes a subscription request accepting unit 71, a query unit 72, a presence information acquiring unit 73, and a service establishing unit 74. The internal structure of the presentation server will be further explained below in conjunction with the working principle of the presentation server. The query unit 72 includes at least a first query subunit 721, and preferably a second query subunit 722. Correspondingly, the presentation information obtaining unit 73 includes at least a first presence information obtaining subunit 731, and preferably, a second presentation information acquiring subunit 732.
订阅请求受理单元 71用以接收、响应来自本域内订阅者的订阅请 求以及解析被订阅者是否为域外用户。 当其解析出某个订阅者(为叙 述方便称为第一订阅者)所请求的被订阅者为非本域内用户时, 告知 查询单元 72。  The subscription request accepting unit 71 is configured to receive, respond to a subscription request from a subscriber within the domain, and to resolve whether the subscriber is an out-of-domain user. The query unit 72 is informed when it resolves that a subscriber subscribed to by a subscriber (referred to as a first subscriber for convenience of the description) is a non-local user.
进入查询单元 72后, 仍然有两种优选的实施方式, 下面分别予以 介绍:  After entering the query unit 72, there are still two preferred implementations, which are respectively described below:
( 1 )首先, 由第一查询子单元 721查询是否保存有第一订阅者所 请求订阅的被订阅者呈现信息。 如果第一查询子单元 721查询成功, 则告知第一呈现信息获取子单元 731 ,由第一呈现信息获取子单元 731 将查询到的所保存的被订阅者呈现信息通过订阅请求受理单元通告 给第一订阅者; 如果第一查询子单元 721查询不成功, 则告知业务建 立单元 74。 由此可见, 在这种实施方式下, 是不需要设置第二查询子 单元和第二呈现信息获取子单元的。 (1) First, the first query sub-unit 721 queries whether the first subscriber is saved. Subscribed subscribers requesting subscriptions present information. If the first query sub-unit 721 is successful, the first presence information acquisition sub-unit 731 is notified, and the first presence information acquisition sub-unit 731 notifies the queried saved subscriber presence information to the first through the subscription request acceptance unit. a subscriber; if the first query sub-unit 721 is unsuccessful, the service establishment unit 74 is informed. Thus, in this embodiment, it is not necessary to set the second query subunit and the second presence information acquisition subunit.
( 2 )首先, 由第一查询子单元 721查询是否保存有第一订阅者所 请求订阅的被订阅者呈现信息。 如果第一查询子单元 721查询成功, 则告知第一呈现信息获取子单元 731,由第一呈现信息获取子单元 731 将查询到的所保存的被订阅者呈现信息通过订阅请求受理单元通告 给第一订阅者; 如果第一查询子单元 721查询不成功, 则进一步通过 第二查询子单元 722查询在第一呈现服务器和被订阅者所在域的第二 呈现服务器之间是否已经存在一个关于该被订阅者的订阅会话业务。  (2) First, the first query sub-unit 721 queries whether the subscriber presence information requested by the first subscriber is saved. If the first query sub-unit 721 is successful, the first presence information acquisition sub-unit 731 is notified, and the first presence information acquisition sub-unit 731 notifies the queried saved subscriber presence information to the first through the subscription request acceptance unit. a subscriber; if the first query sub-unit 721 is unsuccessful, further querying, by the second query sub-unit 722, whether there is already a presence between the first presence server and the second presence server of the domain in which the subscriber is located Subscriber's subscription session business.
进而, 如果第二查询子单元 722查询成功, 则通过第二呈现信息 获取子单元 732刷新本呈现服务器与第二呈现服务器之间已经存在的 关于所述被订阅者的订阅会话业务。刷新前的关于所述被订阅者的订 阅会话业务中涉及的订阅者信息中不包括所述第一订阅者,例如刷新 前的订阅者信息列表中只有 User Al, 刷新后的订阅者信息列表中包 括 User A1和 User A2。 进而, 第二呈现信息获取子单元 732将从中获 知的被订阅者呈现信息予以保存,以及通过订阅请求受理单元通告给 第一订阅者; 如果第二查询子单元 722也查询不成功, 则告知业务建 立单元 74。  Further, if the second query sub-unit 722 successfully queries, the second presence information obtaining sub-unit 732 refreshes the subscription session service already existing between the present presence server and the second presence server with respect to the subscriber. The first subscriber is not included in the subscriber information involved in the subscribed session service of the subscriber before the refresh, for example, only User Al in the list of subscriber information before the refresh, and the list of subscriber information after the refresh is included. Includes User A1 and User A2. Further, the second presence information acquisition sub-unit 732 saves the subscriber presence information learned from the subscription, and notifies the first subscriber through the subscription request accepting unit; if the second query sub-unit 722 also fails the query, the service is notified A unit 74 is established.
于是,业务建立单元 74在本呈现服务器和第二呈现服务器之间建 立一个关于所述被订阅者的订阅会话业务,并将基于此业务获知的被 订阅者信息通过订阅请求处理单元通告给所述第一订阅者。 优选的, 所述业务建立单元具体包括: 第二订阅请求创建单元, 用以基于接收 到的第一订阅者的订阅请求创建生成第二订阅请求,所述第二订阅请 求至少包括被订阅者信息; 第二订阅请求发送单元, 用以将所述第二 订阅请求发送至第二呈现服务器; 第二订阅请求响应处理单元, 用以 接收第二呈现服务器响应的被订阅者呈现信息。 进一步, 优选的, 所 迷呈现服务还包括更新呈现信息处理单元,用以接收来自第二呈现服 务器通告的所述被订阅者的新呈现信息,并通过订阅请求处理单元通 告至对应的订阅者。 即使不存在这个单元, 本发明实施例提供的呈现 服务器实现的呈现服务已经大大减少了呈现服务器 A和呈现服务器 B 之间的允余消息流量了。 Then, the service establishing unit 74 establishes a subscription session service with respect to the subscriber between the present presence server and the second presence server, and notifies the subscriber information learned based on the service through the subscription request processing unit to the First subscriber. Preferably, the service establishing unit specifically includes: a second subscription request creating unit, configured to create a second subscription request according to the received subscription request of the first subscriber, where the second subscription request includes at least the subscriber information a second subscription request sending unit, configured to send the second subscription request to the second presence server; and a second subscription request response processing unit, configured to: Receiving subscriber presence information of the second presence server response. Further, preferably, the presentation service further includes an update presence information processing unit, configured to receive the new presence information of the subscriber notified from the second presence server, and notify the corresponding subscriber through the subscription request processing unit. Even if the unit does not exist, the presence server implementation of the presence service provided by the embodiment of the present invention has greatly reduced the allowable message traffic between the presence server A and the presence server B.
如果包含至少两个前述的呈现服务器就可以构成一个实现呈现 业务系统。 由于该系统内部的呈现服务器前文已经进行过详细介绍, 此处就不再赘述。  If at least two of the aforementioned rendering servers are included, an implementation rendering service system can be constructed. Since the presentation server inside the system has been described in detail before, it will not be described here.
以上介绍的本发明呈现服务器实施例结构框图,可以具体通过图 The block diagram of the embodiment of the present invention presented above is shown in the figure.
4所示的一种本发明具体呈现服务器结构予以实现。 例如, 将本实施 例中订阅请求受理单元 71拆分成两部分, 分别由 Pres ence Agent和 Cont ro l l er来实现。 具体而言, 通过 Presence Agent接收、 响应来 自本域内订阅者的订阅请求; 通过 Cont ro l l er对 Pres ence Ag en t接 收到的订阅请求中被订阅者是否为域外用户进行解析。对于查询单元 72、 呈现信息获取单元 73以及业务建立单元 74都可以通过 Wa tcher Agent来实现。 由此可以看出, 图 7是本发明优选实施例中具有一般 性的结构框图,而图 6可以认为是图 7所示呈现服务器结构的一种具 体实现。 本领域技术人员应该意识到, 无论怎样组合、 拆分或更换组 成单元的名称, 都属于本发明包含的实质范围之内。 A specific presentation server structure of the present invention shown in FIG. 4 is implemented. For example, the subscription request accepting unit 71 in this embodiment is split into two parts, which are respectively implemented by the Presence Agent and the Cont ro l l er. Specifically, the Presence Agent receives and responds to the subscription request from the subscriber in the domain; and whether the subscriber in the subscription request received by the Presence Ag en is resolved by the Cont ro l ler to the out-of-domain user. The query unit 72, the presence information acquisition unit 73, and the service establishment unit 74 can all be implemented by the Wa tcher Agent. As can be seen, Figure 7 is a general block diagram of a preferred embodiment of the present invention, and Figure 6 can be considered a specific implementation of the presentation server architecture of Figure 7. Those skilled in the art will appreciate that the names of the constituent units, regardless of how they are combined, split, or replaced, are within the spirit of the invention.
上述各实施例是用于说明和解释本发明原理的。 可以理解, 本发 明的具体实施方式不限于此。对于本领域技术人员而言, 在不脱离本 发明的实质和范围的前提下进行的各种变更和修改均涵盖在本发明 的保护范围之内。  The various embodiments described above are illustrative of the principles of the invention. It is to be understood that the specific embodiments of the present invention are not limited thereto. Various changes and modifications may be made without departing from the spirit and scope of the invention.

Claims

权 利 要 求 Rights request
1. 一种实现呈现业务的方法, 其特征在于, 该方法包括: 第一呈现服务器收到来自本域内第一订阅者的订阅请求,请求订 阅非本域内被订阅者的呈现信息;  A method for implementing a presence service, the method comprising: the first presence server receiving a subscription request from a first subscriber in the domain, requesting to subscribe to presence information of a subscriber other than the local domain;
第一呈现服务器查询到保存有第一订阅者所请求订阅的被订阅 者呈现信息;  The first presence server queries the subscriber presence information saved with the subscription subscribed by the first subscriber;
将查询到的所保存的被订阅者呈现信息通告给第一订阅者。 The queried saved subscriber presence information is advertised to the first subscriber.
2. 根据权利要求 1所述的方法, 其特征在于, 所述方法还包括: 第一呈现服务器查询到未保存有第一订阅者所请求订阅的被订 阅者呈现信息; The method according to claim 1, wherein the method further comprises: the first presence server querying the subscribed presence information that is not saved by the first subscriber to subscribe to;
在所述第一呈现服务器和所述被订阅者所在域的第二呈现服务 器之间建立关于所述被订阅者的订阅会话业务;  Establishing a subscription session service with respect to the subscriber between the first presence server and a second presence server of the domain in which the subscriber is located;
第一呈现服务器从所述建立的该订阅会话业务中获知第一订阅 者所请求订阅的被订阅者呈现信息并予以保存;  The first presence server learns, from the established subscription session service, the subscriber's subscription information requested by the first subscriber and saves the information;
第一呈现服务器将上述获知的被订阅者呈现信息通告给所述第 一订阅者。  The first presence server advertises the learned subscriber presence information to the first subscriber.
3. 根据权利要求 2所述的方法, 其特征在于, 所述第一呈现服务 器将获知的所述被订阅者呈现信息保存在本呈现月良务器内部或外部。  The method according to claim 2, wherein the first presence server saves the learned subscriber presence information inside or outside the present presentation server.
4. 根据权利要求 2所述的方法, 其特征在于, 所述在第一呈现服 务器和第二呈现服务器之间建立关于该被订阅者的订阅会话业务的 前还包括:  The method according to claim 2, wherein before the establishing the subscription session service between the first presence server and the second presence server, the method further comprises:
确定第一呈现服务器和所述被订阅者所在域的第二呈现服务器 之间未存在一个关于该被订阅者的订阅会话业务。  Determining that there is no subscription session service for the subscriber between the first presence server and the second presence server of the domain in which the subscriber is located.
5. 根据权利要求 2所述的方法, 其特征在于, 所述在第一呈现服 务器和第二呈现服务器之间建立一个关于该被订阅者的订阅会话业 务的具体过程包括:  The method according to claim 2, wherein the specific process of establishing a subscription session service between the first presence server and the second presence server is:
第一呈现服务器基于接收到的第一订阅者的订阅请求创建生成 第二订阅请求, 所述第二订阅请求消息至少包括被订阅者信息; 第一呈现服务器将所述第二订阅请求发送至第二呈现服务器; 笫一呈现服务器接收第二呈现服务器响应的被订阅者呈现信息。 The first presence server creates a second subscription request based on the received subscription request of the first subscriber, the second subscription request message includes at least subscriber information; the first presence server sends the second subscription request to the first Second presentation server; The presence server receives the subscriber presence information of the second presence server response.
6. 根据权利要求 1所述的方法, 其特征在于, 所述方法还包括: 如果第一呈现服务器查询到未保存有第一订阅者所请求订阅的 被订阅者呈现信息 ,并且所述第一呈现服务器和所述被订阅者所在域 的第二呈现服务器之间已经存在一个关于该被订阅者的订阅会话业 务;  The method according to claim 1, wherein the method further comprises: if the first presence server queries the subscriber presence information that is not saved by the first subscriber, and the first There is already a subscription session service for the subscriber between the presence server and the second presence server of the domain in which the subscriber is located;
则刷新所述已经存在的关于该被订阅者的订阅会话业务,所述刷 新后的该订阅会话业务中涉及的订阅者信息包括第一订阅者;  And refreshing the existing subscription session service about the subscriber, where the updated subscription information involved in the subscription session service includes a first subscriber;
第一呈现服务器从刷新后的订阅会话业务中获知第一订阅者所 请求订阅的被订阅者呈现信息, 并通告给所述第一订阅者。  The first presence server learns the subscriber presence information requested by the first subscriber from the refreshed subscription session service, and notifies the first subscriber.
7. 根据权利要求 1至 6中任意一项所述的方法, 其特征在于, 所 述方法还包括:  The method according to any one of claims 1 to 6, wherein the method further comprises:
第二呈现服务获知所述被订阅者的呈现信息改变;  The second presence service learns that the presented information of the subscriber is changed;
第二呈现服务器基于已经存在的关于该被订阅者的订阅会话业 务向第一呈现服务器通告所述被订阅者的新呈现信息;  The second presence server announces the new presence information of the subscriber to the first presence server based on the already existing subscription session service for the subscriber;
第一呈现服务器通告所述被订阅者的新呈现信息给订阅者。  The first presence server advertises the subscriber's new presence information to the subscriber.
8. —种呈现服务器, 包括订阅请求受理单元, 其特征在于还包 括: 查询单元和呈现信息获取单元, 其中  8. A presentation server, comprising a subscription request receiving unit, further characterized by: a query unit and a presence information acquisition unit, wherein
订阅请求受理单元, 用以接收、 响应来自本域内订阅者的订阅请 求以及解析被订阅者是否为域外用户;  a subscription request receiving unit for receiving, responding to a subscription request from a subscriber in the domain, and parsing whether the subscriber is an out-of-domain user;
查询单元,用以在订阅请求受理单元解析出第一订阅者所请求的 被订阅者为非本域内用户情况下,查询是否保存有第一订阅者所请求 订阅的被订阅者呈现信息;  a query unit, configured to: when the subscription request receiving unit parses out that the subscriber requested by the first subscriber is a non-local user, query whether the subscriber presence information subscribed by the first subscriber is saved;
呈现信息获取单元, 用以在查询单元查询成功后, 将查询到的所 保存的被订阅者呈现信息通过订阅请求受理单元通告给第一订阅者。  And a presentation information obtaining unit, configured to, after the query unit successfully queries, the advertised retained subscriber presence information is advertised to the first subscriber by the subscription request receiving unit.
9. 根据权利要求 8所述的呈现服务器, 其特征在于, 所述查询单 元具体包括第一查询子单元,用以查询是否保存有第一订阅者所请求 订阅的被订阅者呈现信息。  The presence server according to claim 8, wherein the query unit comprises a first query sub-unit for querying whether the subscriber presence information requested by the first subscriber is saved.
10. 根据权利要求 9所述的呈现服务器, 其特征在于, 所述查询 单元还包括第二查询子单元,用以在所述第一查询子单元查询未成功 的情况下,查询在第一呈现服务器和被订阅者所在域的第二呈现服务 器之间是否已经存在一个关于该被订阅者的订阅会话业务。 10. The presence server according to claim 9, wherein the query The unit further includes a second query subunit for querying whether there is already a relationship between the first presence server and the second presence server of the domain in which the subscriber is located if the first query subunit query is unsuccessful The subscriber's subscription session service.
11. 根据权利要求 8至 10中任意一项所述的呈现服务器, 其特征 5 在于还包括:  The presence server according to any one of claims 8 to 10, characterized in that the method further comprises:
业务建立单元, 用以在查询单元查询未成功后, 在本呈现服务器 和第二呈现服务器之间新建一个关于所述被订阅者的订阅会话业务, 并将基于此业务获知的被订阅者信息通过订阅请求处理单元通告给 所述第一订阅者。 a service establishing unit, configured to: after the query unit query is unsuccessful, create a new subscription session service between the present presence server and the second presence server, and pass the subscriber information learned based on the service The subscription request processing unit advertises to the first subscriber.
0 12. 根据权利要求 11所述的呈现服务器, 其特征在于, 所述业务 建立单元具体包括: The service establishment unit according to claim 11, wherein the service establishing unit specifically includes:
第二订阅请求创建单元,用以基于接收到的第一订阅者的订阅请 求创建生成第二订阅请求, 所述第二订阅请求至少包括被订阅者信 ? . And a second subscription request creating unit, configured to create a second subscription request based on the received subscription request of the first subscriber, where the second subscription request includes at least a subscriber credit.
5 第二订阅请求发送单元,用以将所述第二订阅请求发送至第二呈 现服务器; a second subscription request sending unit, configured to send the second subscription request to the second presentation server;
笫二订阅请求响应处理单元,用以接收第二呈现服务器响应的被 订阅者呈现信息。  The second subscription request response processing unit is configured to receive the subscriber presence information of the second presence server response.
13. 根据权利要求 10所述的呈现服务器, 其特征在于, 所述呈现0 信息获取单元具体包括:  The presentation server according to claim 10, wherein the presenting the information acquisition unit comprises:
第一呈现信息获取子单元,用以在所述第一查询子单元查询成功 情况下,将查询到的所保存的被订阅者呈现信息通过订阅请求受理单 元通告给第一订阅者。 - 第二呈现信息获取子单元,用以在所述第一查询子单元查询未成5 功且笫二查询子单元查询成功的情况下,刷新本呈现艮务器与第二呈 现服务器之间已经存在的关于所述被订阅者的订阅会话业务;并将从 中获知的被订阅者呈现信息予以保存以及通过订阅请求受理单元通 告给第一订阅者。  And a first presentation information obtaining subunit, configured to notify the first subscriber by the subscribed request accepting unit by using the subscribed request receiving unit when the first query subunit query succeeds. a second presentation information acquisition subunit, configured to refresh the existing presence between the present server and the second presentation server if the first query subunit query fails and the second query subunit query succeeds Subscribing to the subscribed session service of the subscriber; and retaining the subscriber presence information learned therefrom and advertising to the first subscriber through the subscription request accepting unit.
,  ,
14. 根据权利要求 8或 9或 10或 13所述的呈现服务器,其特征在于 还包括: 14. A presentation server according to claim 8 or 9 or 10 or 13 wherein Also includes:
业务建立单元, 用以在查询单元查询未成功后, 在本呈现服务器 和第二呈现服务器之间新建一个关于所述被订阅者的订阅会话业务, 并将基于此业务获知的被订阅者信息通过订阅请求处理单元通告给 5 所述第一订阅者; 以及  a service establishing unit, configured to: after the query unit query is unsuccessful, create a new subscription session service between the present presence server and the second presence server, and pass the subscriber information learned based on the service a subscription request processing unit notifying 5 the first subscriber; and
更新呈现信息处理单元,用以接收来自第二呈现服务器通告的所 述被订阅者的新呈现信息,并通过订阅请求处理单元通告至对应的订 阅者。  The update presentation information processing unit is configured to receive the new presence information of the subscribers notified from the second presence server and to notify the corresponding subscribers by the subscription request processing unit.
15. 根据权利要求 8或 9或 10或 13所述的呈现服务器, 其特征在0 于, 所述订阅请求受理单元具体包括:  The presence server according to claim 8 or 9 or 10 or 13, wherein the subscription request receiving unit specifically includes:
呈现代理 Presence Agent , 用以接收、 响应来自本域内订阅者的 订阅请求;  Presenting a proxy Presence Agent for receiving and responding to a subscription request from a subscriber within the domain;
控制器 Control ler , 用以对 Presence Agent接收到的订阅请求中 ' 被订阅者是否为域外用户进行解析。 The controller Control ler is used to analyze whether the subscriber is an out-of-domain user in the subscription request received by the Presence Agent.
5 16. 根据权利要求 15所述的呈现服务器, 其特征在于, 所述查询 单元和呈现信息获取单元设置于同一模块内部。 The presentation server according to claim 15, wherein the query unit and the presence information acquisition unit are disposed inside the same module.
17. 一种实现呈现业务的系统, 其特征在于, 包括至少两个如权 利要求 8或 9或 10或 13所述的呈现服务器。 0  17. A system for implementing a presence service, comprising at least two presentation servers as claimed in claim 8 or 9 or 10 or 13. 0
5 5
PCT/CN2006/003286 2006-05-15 2006-12-05 A method and a system for achieving presence services and the presence server WO2007131400A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CNA2006100608313A CN101043394A (en) 2006-05-15 2006-05-15 Exposure server, system and method for realizing SIP based exposure service
CN200610060831.3 2006-05-15

Publications (1)

Publication Number Publication Date
WO2007131400A1 true WO2007131400A1 (en) 2007-11-22

Family

ID=38693523

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2006/003286 WO2007131400A1 (en) 2006-05-15 2006-12-05 A method and a system for achieving presence services and the presence server

Country Status (2)

Country Link
CN (1) CN101043394A (en)
WO (1) WO2007131400A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104579914A (en) * 2013-10-17 2015-04-29 中兴通讯股份有限公司 Method and device for subscribing to state for system
CN105791369B (en) * 2014-12-26 2020-11-06 中兴通讯股份有限公司 User state synchronization method, device and server

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040255302A1 (en) * 2003-06-10 2004-12-16 Nokia Corporation Systems and methods for content and service registration, query and subscription, and notification across local service discovery domains
US20050262198A1 (en) * 2002-10-09 2005-11-24 Nokia Corporation Communication system
US20060064473A1 (en) * 2004-09-21 2006-03-23 Utstarcom, Inc. Method and apparatus to facilitate inter-domain presence services

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050262198A1 (en) * 2002-10-09 2005-11-24 Nokia Corporation Communication system
US20040255302A1 (en) * 2003-06-10 2004-12-16 Nokia Corporation Systems and methods for content and service registration, query and subscription, and notification across local service discovery domains
US20060064473A1 (en) * 2004-09-21 2006-03-23 Utstarcom, Inc. Method and apparatus to facilitate inter-domain presence services

Also Published As

Publication number Publication date
CN101043394A (en) 2007-09-26

Similar Documents

Publication Publication Date Title
US7418509B2 (en) Method and apparatus for a distributed server tree
US7843857B2 (en) System for providing context-aware service and method thereof
US7711810B2 (en) Distributed services based on presence technology
JP4215645B2 (en) Service access and conference system and method in communication network
US20080270553A1 (en) Method and System for Instant Notification of Communication Block Information
US8452852B2 (en) System and method for providing an information service to distribute real-time information to users via a presence system
US7536481B2 (en) Method and system for re-synchronizing end points when an intermediary detects that the end points may be unsynchronized
US20090204673A1 (en) Method, system and apparatus for performing multi-party communications and method for publishing event state
US20030041101A1 (en) Presence watcher proxy
US9426108B2 (en) Method for storing conversation upon user's request in CPM system, and system thereof
WO2009012664A1 (en) Method for obtaining device information of a user terminal and communication service function entity thereof
RU2477014C2 (en) Method of group annunciation in message exchange service based on session initiation protocol "sip"
JP2006094488A (en) Reduction of storage requirement relating to routing information
WO2010135876A1 (en) System and method for implementing electronic whiteboard conference based on ip multimedia subsystem architecture
WO2010040301A1 (en) Method, device, gateway and agent for pushing message to multiple terminals
TW201006289A (en) Method, user equipment and software product for media stream transfer between devices
US7606904B2 (en) Sending inter-server notifications using an out-of-band communications protocol
US20100125744A1 (en) Method and system for providing presence service
US20180018652A1 (en) Messaging transaction application
US20120166562A1 (en) System and method for routing session initiation protocol conversation
WO2009012724A1 (en) A method and device for communication interconnection
CN108400965B (en) Multimedia conference integrated communication system and method
WO2011120369A1 (en) Method, system, resource list server and presence server for subscribing presence information
CN101635672B (en) Device and method for realizing convergence service session in group mode
WO2007095814A1 (en) A method and system for obtaining the session capability of the session participant in the multi-party communication system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 06817954

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 06817954

Country of ref document: EP

Kind code of ref document: A1