WO2015135358A1 - Method for processing instant message, message server, terminal, and system - Google Patents

Method for processing instant message, message server, terminal, and system Download PDF

Info

Publication number
WO2015135358A1
WO2015135358A1 PCT/CN2014/094513 CN2014094513W WO2015135358A1 WO 2015135358 A1 WO2015135358 A1 WO 2015135358A1 CN 2014094513 W CN2014094513 W CN 2014094513W WO 2015135358 A1 WO2015135358 A1 WO 2015135358A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
message
subscription
instant message
service
Prior art date
Application number
PCT/CN2014/094513
Other languages
French (fr)
Chinese (zh)
Inventor
周日明
贾红粉
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2015135358A1 publication Critical patent/WO2015135358A1/en

Links

Images

Classifications

    • 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]
    • H04L51/046Interoperability with other network applications or services
    • 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/21Monitoring or handling of messages
    • H04L51/214Monitoring or handling of messages using selective forwarding

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method, a message server, a terminal, and a system for processing an instant message.
  • IM Instant Messenger
  • the message server configures the login mode of multiple terminals, and binds the accounts of multiple terminals to the same user.
  • the user uses one of the terminals to send an IM message or other users to the terminal.
  • the message server sends the IM message to other terminals of the user according to the binding relationship.
  • the manner of synchronously accessing content in the prior art also exposes the following problem: in the prior art, the management personnel need to bind the accounts of multiple terminals to the same user before the implementation can be achieved. The bound terminal sends an IM message. Otherwise, the IM message cannot be sent later.
  • This solution increases the extra workload of the administrator and makes the binding of the prior art solution rigid and inflexible, which is not conducive to the solution. popular.
  • the embodiment of the invention provides a method for processing an instant message, a message server, a terminal and a system, and solves the problem that the binding method of the prior art solution is rigid and inflexible, which is not conducive to the popularization of the solution.
  • an embodiment of the present invention provides a method for processing an instant message, where the method include:
  • the first terminal Receiving, by the first terminal, a first subscription message that is subscribed by the first terminal to the service of the second terminal, where the first subscription message includes a first service subscription rule, and the first service subscription rule includes the Identification information of the first terminal and identification information of the second terminal;
  • the message server performs the copy processing on the instant message when receiving the instant message that the second terminal communicates with the third terminal according to the identifier information of the second terminal;
  • the message server sends the copied instant message to the first terminal according to the identifier information of the first terminal.
  • the message server before receiving, by the first terminal, the first subscription message that the first terminal subscribes to the service of the second terminal, includes:
  • the message server After receiving the first subscription message that the first terminal sends the service of the second terminal to the second terminal, the message server further includes:
  • the message server determines that the first terminal is a terminal that is authorized to subscribe to the second terminal service;
  • the copying the instant message specifically includes:
  • the message server performs a copy process on the instant message when determining that the second terminal authorizes the first terminal to subscribe to the service of the second terminal according to the authorization rule.
  • the first service subscription rule further includes indication information for indicating an instant message that is subscribed to or received by the second terminal;
  • the message server receives the service of the first terminal and the second terminal sent by the first terminal After the first subscription message of the line subscription, it also includes:
  • the copying the instant message specifically includes:
  • the message server determines that the first terminal subscribes to the instant message sent by the second terminal, the message server performs a copy process on the instant message sent by the second terminal to the third terminal;
  • the message server determines that the first terminal subscribes to the instant message received by the second terminal, the message server performs a copy process on the instant message sent by the third terminal received by the second terminal.
  • the method further includes:
  • the message server Receiving, by the message server, a second subscription message that is sent by the storage device to subscribe to the service of the terminal that is received by the message server, where the second subscription message includes a second service subscription rule, the second service
  • the subscription rule includes the identification information of the terminal subscribed by the storage device and the identification information of the storage device;
  • the message server performs the copy processing on the instant message when receiving the instant message that the terminal communicates with another terminal according to the identifier information of the terminal;
  • the message server sends the copied instant message to the storage device, so that the storage device stores the copied instant message.
  • an embodiment of the present invention provides a method for processing an instant message, where the method includes:
  • the first terminal generates a subscription message for the first terminal to subscribe to the service of the second terminal;
  • the subscription message further includes indication information for indicating an instant message that is subscribed to or received by the second terminal;
  • the indication information is used to enable the message server to determine that the first terminal subscribes to an instant message sent by the second terminal or an instant message received by the second terminal;
  • Receiving, by the first terminal, the instant message that the second terminal communicates with the third terminal that is received by the message server that is sent by the message server according to the subscription message includes:
  • the first terminal receives an instant message received by the second terminal that is received by the message server that is sent by the message server according to the indication information.
  • an embodiment of the present invention provides a message server, where the message server includes:
  • a receiving unit configured to receive a first subscription message that is sent by the first terminal to subscribe to a service of the second terminal, where the first subscription message includes a first service subscription rule, and the first service subscription rule Including the identification information of the first terminal and the identification information of the second terminal, and transmitting the identification information of the first terminal to the sending unit, and transmitting the identification information of the second terminal to the copying unit;
  • a copying unit configured to receive, by the receiving unit, identifier information of the second terminal, according to the identifier information of the second terminal, when receiving an instant message that the second terminal communicates with the third terminal, The instant message is copied;
  • a sending unit configured to receive the identifier information of the first terminal from the receiving unit, and send the copied instant message to the first terminal according to the identifier information of the first terminal.
  • the receiving unit is further configured to receive a subscription authorization message sent by the second terminal, where the subscription authorization message includes an authorization rule, where the authorization rule includes being authorized to subscribe to the Identification information of the terminal of the second terminal service and the identification letter of the second terminal interest;
  • the message server further includes: a determining unit, configured to determine whether the identifier information of the first terminal is included in the identifier information of the terminal included in the authorization rule;
  • a first determining unit configured to: if the identifier information of the first terminal is included in the identifier information of the terminal, determine that the first terminal is a terminal that is authorized to subscribe to the second terminal service;
  • the copying unit is configured to perform a copy process on the instant message when determining that the second terminal authorizes the first terminal to subscribe to the service of the second terminal according to the service authorization rule.
  • the first service subscription rule received by the receiving unit further includes indication information for indicating an instant message that is subscribed to or received by the second terminal;
  • the message server further includes: a second determining unit, configured to determine, according to the indication information, that the first terminal subscribes to an instant message sent by the second terminal or an instant message received by the second terminal;
  • the copying unit is specifically configured to: when the second determining unit determines that the first terminal subscribes to an instant message sent by the second terminal, send the second terminal to the third terminal The message is copied;
  • the second determining unit determines that the first terminal subscribes to the instant message received by the second terminal, the instant message sent by the third terminal received by the second terminal is copied.
  • the receiving unit is further configured to: receive, by the storage device, a second subscription message that the storage device subscribes to a service of the terminal in the message server, where the second subscription message is
  • the second service subscription rule includes: the identifier information of the terminal subscribed by the storage device and the identifier information of the storage device;
  • the copying unit is further configured to: when receiving the instant message that the terminal communicates with another terminal, according to the identifier information of the terminal, performing the copy processing on the instant message;
  • the sending unit is further configured to: according to the identifier information of the storage device, to the storage device
  • the copied instant message is sent to cause the storage device to store the copied instant message.
  • an embodiment of the present invention provides a terminal, where the terminal includes:
  • a subscription unit configured to generate a subscription message for the first terminal to subscribe to the service of the second terminal, and transmit the subscription message to the sending unit;
  • a sending unit configured to receive the subscription message from the subscription unit, and send the subscription message to a message server;
  • a receiving unit configured to receive an instant message that the second server receives communication with the third terminal that is received by the message server that is sent by the message server according to the subscription message.
  • the subscription message generated by the subscribing unit further includes indication information for indicating an instant message that is subscribed to or received by the first terminal;
  • the indication information is used to enable the message server to determine that the terminal subscribes to an instant message sent by the first terminal or an instant message received by the first terminal;
  • the receiving unit is specifically configured to: receive an instant message sent by the first terminal that is sent by the message server according to the indication information, or
  • the embodiment of the present invention further provides a system for processing an instant message, the system comprising: the message server according to the third aspect, and the terminal according to the fourth aspect.
  • the system further includes: a subscribed terminal, where the subscribed terminal is specifically a terminal that is subscribed to by the terminal.
  • the message server determines, according to the first service subscription rule sent by the first terminal, the first terminal to subscribe to the service of the second terminal, And receiving an instant message when the second terminal communicates with the third terminal, processing the instant message, and sending the copied instant message to the first terminal. Because the message server copies and sends the instant message, the binding method of the prior art solution is solved. Board, inflexible, is not conducive to the popularity of the program. The solution provided by the invention reduces the extra workload of the administrator, so that the message server can no longer flexibly process the instant message according to the binding of the manager.
  • FIG. 1 is a flowchart of a method for processing an instant message according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of a method for processing an instant message according to Embodiment 2 of the present invention
  • FIG. 3 is a schematic structural diagram of a message server according to Embodiment 3 of the present invention.
  • FIG. 4 is a schematic structural diagram of another message server according to Embodiment 3 of the present invention.
  • FIG. 5 is a schematic structural diagram of still another message server according to Embodiment 3 of the present invention.
  • FIG. 6 is a schematic structural diagram of a terminal according to Embodiment 4 of the present invention.
  • FIG. 7 is a schematic structural diagram of a message server hardware according to Embodiment 5 of the present invention.
  • FIG. 8 is a schematic structural diagram of a terminal hardware according to Embodiment 6 of the present invention.
  • FIG. 9 is a schematic diagram of a system for processing an instant message according to Embodiment 7 of the present invention.
  • FIG. 1 is a flowchart of a method for processing an instant message according to Embodiment 1 of the present invention.
  • the implementation entity is a message server. As shown in FIG. 1, the embodiment specifically includes the following steps:
  • Step 110 The message server receives a first subscription message that is sent by the first terminal to subscribe to the service of the second terminal by the first terminal, where the first subscription message includes a first service subscription rule, and the first service subscription rule The identifier information of the first terminal and the identifier information of the second terminal are included.
  • the first terminal when the first terminal is ready to subscribe to the service of the second terminal, the first terminal sends a first subscription message to the message server, where the first subscription message includes a first service subscription rule, and the first service subscription rule includes Identification information of a terminal and identification information of the second terminal.
  • the message server receives the first subscription message, and determines that the first terminal subscribes to the service of the second terminal according to the identifier information of the first terminal and the identifier information of the second terminal.
  • the first service subscription rule is carried in the first subscription message in the format of the message.
  • the first service subscription rule includes, in addition to the identifier information of the first terminal and the second terminal, indication information for indicating an instant message that is subscribed to or received by the second terminal.
  • +865516001031 is the number of the subscribed user terminal, that is, the second terminal; +865516001030 is the number of the user terminal of the subscription service, that is, the first terminal.
  • the indication information is specifically a register-user-service-rule, which is a root element, and the indication information can be implemented by subscribing to the service type information, and one or more subscriptions can be associated with the root element. Types of.
  • the subscription time information is further included, for example, 3600.
  • the time information is used to stipulate the effective time of the subscription service. When the time for the first terminal to subscribe to the service exceeds the valid time, the subscription is invalid.
  • the subscription terminal information is further included, and the subscription designation terminal information does not limit the number of designated terminals.
  • pair-useruri sip:ppp@im.x.com/ allows multiple simultaneous subscriptions to be specified.
  • the message server determines that the first terminal subscribes to the service of the designated terminal, and receives the instant message of the designated terminal; otherwise, the message server determines that the first terminal will Receive instant messages from all terminals.
  • the first terminal and the second terminal may be specifically a PC, a smart phone, a PAD, and the like.
  • the number of the first terminal and the second terminal is at least one.
  • the first terminal and the second terminal may also be terminals belonging to the same user or terminals belonging to different users.
  • the first terminal subscribes to the service of the second terminal.
  • the message server further determines, according to the indication information, that the first terminal subscribes to the instant message sent by the second terminal or is received by the second terminal. The steps of instant messaging.
  • Step 120 The message server performs copy processing on the instant message when the second terminal sends or receives an instant message according to the identifier information of the second terminal.
  • the message server obtains the identifier information of the second terminal from the first service subscription rule, determines that the first terminal subscribes to the service of the second terminal, and the message server copies the instant message when the second terminal sends or receives the instant message. deal with.
  • the instant message specifically includes text, or graphics, or multimedia information.
  • the message server copies the instant message when receiving the instant message that the second terminal communicates with the third terminal.
  • the specific treatment includes:
  • the message server determines that the first terminal subscribes to the instant message sent by the second terminal, the message server performs a copy process on the instant message sent by the second terminal to the third terminal;
  • the message server determines that the first terminal subscribes to the instant message received by the second terminal, the message server performs a copy process on the instant message sent by the third terminal received by the second terminal.
  • the message server determines that the first terminal subscribes to the instant message sent by the second terminal, the message server performs a copy process on the instant message sent by the second terminal to the third terminal; if the message server determines that the first terminal subscribes to The instant message received by the second terminal, the message server performs the copy processing on the instant message sent by the third terminal received by the second terminal; if the message server determines that the first terminal subscribes to the instant message sent and received by the second terminal, the message The server performs copy processing on the instant message sent and received by the second terminal and the third terminal;
  • Step 130 The message server sends the copied instant message to the first terminal according to the identifier information of the first terminal.
  • the message server obtains the identifier information of the first terminal from the first service subscription rule, and sends the copied instant message to the first terminal according to the first identifier information. That is, the message server The instant message of the second terminal of the subscribed service is sent to the first terminal of the subscription service, so that the message server does not bind the account of the multiple terminal to the user, and the content obtained by the multiple terminals can be synchronously provided.
  • the method further includes: receiving, by the message server, a subscription authorization message sent by the second terminal, by using the message, the message server may be configured to determine the authorized terminal, and when the authorized terminal sends the subscription message, Sending an instant message to the authorized terminal to the authorized terminal.
  • the message server is no longer bound to the account of multiple terminals, and the content obtained by the multiple terminals can be synchronized. Specific steps are as follows:
  • the message server receives a subscription authorization message sent by the second terminal, where the subscription authorization message includes an authorization rule, where the authorization rule includes identifier information of the terminal that is authorized to subscribe to the second terminal service, and an identifier of the second terminal. Information for causing the message server to determine a terminal authorized by the second terminal.
  • the second terminal when the second terminal wants the terminal to subscribe to the service of the second terminal, the second terminal sends a subscription authorization message to the message server, where the subscription authorization message includes an authorization rule, and the authorization rule includes being authorized to subscribe to the second terminal.
  • the subscription authorization message includes an authorization rule
  • the authorization rule includes being authorized to subscribe to the second terminal.
  • +865516001031 is the number of the authorized user terminal, that is, the terminal; +865516001030 is the number of the user terminal having the authorization authority, that is, the second terminal.
  • the indication information is also included, and the indication information is the same as the indication information described in the foregoing step 110, and is not repeated here.
  • the subscription time information, the subscription designated terminal information, and the like are also included, and the subscription time information and the subscription designated terminal information are also the same as the subscription time information and the subscription designated terminal information described in step 110. No longer repeat.
  • the following steps are also included:
  • the message server determines that the first terminal is a terminal that is authorized to subscribe to the second terminal service.
  • the message server determines, according to the authorization rule, that after the terminal is authorized by the second terminal to subscribe to the terminal of the second terminal service, when the message server receives the first subscription message sent by the first terminal, the message server obtains the first subscription message. a service subscription rule, and obtaining the identifier information of the first terminal and the identifier information of the second terminal from the first service subscription rule, and the message server determines whether the identifier information of the first terminal is included in the identifier information of the terminal included in the authorization rule. If the identification information of the first terminal is included in the identification information of the terminal, the message server determines that the first terminal is a terminal that is authorized to subscribe to the second terminal service.
  • the message server performs the copy processing on the instant message when determining that the second terminal authorizes the first terminal to subscribe to the service of the second terminal according to the authorization rule.
  • the method further includes: sending, by the message server, a notification message to the first terminal, by using the step, the first terminal is configured to confirm that the service of the second terminal has been subscribed, and When the second terminal sends or receives an instant message, it receives an instant message sent or received by the second terminal.
  • Specific steps are as follows:
  • the message server sends a notification message to the first terminal, where the notification message is used to confirm that the first terminal has subscribed to the service of the second terminal.
  • the message server After the message server determines, according to the first service subscription rule or the authorization rule, the first terminal that subscribes to the service of the second terminal, the message server generates and sends a notification message to the first terminal, where the notification message is used to enable The first terminal confirms that the service of the second terminal has been subscribed.
  • the embodiment of the present invention further includes: the message server sends, according to the second subscription message sent by the storage device, the instant message of the terminal in the subscribed message server to the storage device, that is, the message server copies the instant message of the terminal and then transfers Save to the storage device, through this step, you can achieve
  • the message server sends, according to the second subscription message sent by the storage device, the instant message of the terminal in the subscribed message server to the storage device, that is, the message server copies the instant message of the terminal and then transfers Save to the storage device, through this step, you can achieve
  • the flexible customization of instant messaging also enables flexible storage of instant messages. Specific steps are as follows:
  • the message server Receiving, by the message server, a second subscription message that is sent by the storage device to subscribe to the service of the terminal that is received by the message server, where the second subscription message includes a second service subscription rule, the second service
  • the subscription rule includes the identification information of the terminal subscribed by the storage device and the identification information of the storage device;
  • the message server performs the copy processing on the instant message when receiving the instant message that the terminal communicates with another terminal according to the identifier information of the terminal;
  • the message server sends the copied instant message to the storage device, so that the storage device stores the copied instant message.
  • the storage device survives the second subscription message, the second subscription message includes a second service subscription rule, and the second service subscription rule includes the identifier information of the terminal subscribed by the storage device and the identifier information of the storage device, where the terminal Specifically, the terminal corresponding to the instant message received by the message server.
  • the message server receives the second subscription message, obtains the second subscription rule from the second subscription message, and obtains the identity information of the terminal from the second subscription rule, and determines that the storage device subscribes to the service of the terminal.
  • the message server when the message server receives the instant message that the terminal communicates with another terminal, the message server performs the copy processing on the instant message.
  • the message server sends the copied instant message to the storage device according to the identification information of the storage device, so that the storage device stores the copied instant message.
  • the storage device may further perform capacity expansion processing, and the newly added storage device may also send a second subscription message to the message server, and the message server may further add the copied instant message according to the preset distribution rule.
  • the storage device is sent.
  • the distribution rules are specifically preset by the message server, and the instant messages of different terminals are separately stored in different storage devices.
  • the message server no longer sends the copied instant message to the storage device.
  • the method further includes: the step of authenticating, by the message server, the received subscription message.
  • the message server processes the subscribed message through authentication, and does not perform subsequent processing on the subscribed message that has not passed the authentication.
  • the message server sends an authentication message to the first terminal, and the first terminal determines that the message server performs authentication processing on the first subscription message.
  • the first terminal sends the authentication data to the message server, where the authentication data is specifically data that proves the legitimacy of the first subscription message.
  • the message server identifies, according to the received authentication data, whether the first subscription message is a legitimate subscription message.
  • the message server sends an acknowledgement message to the first terminal to inform the first terminal that the first subscription message sent by the first terminal is authenticated, and the message server continues to perform the subsequent steps.
  • the embodiment of the present invention further includes the step of the message server receiving the unsubscribe message sent by the first terminal. Through this step, the first terminal can be no longer subscribed to the instant message of the second terminal.
  • the first terminal sends an unsubscribe message to the message server.
  • the message server determines, according to the unsubscribe message, that the first terminal does not subscribe to the second terminal service.
  • the message server determines, according to the first service subscription rule sent by the first terminal, that the first terminal subscribes to the service of the second terminal, and receives the second terminal.
  • the instant message communicates with the third terminal, the instant message is processed, and the copied instant message is sent to the first terminal. Because the message server copies and sends the instant message, the problem that the binding method of the prior art solution is rigid and inflexible is unfavorable, which is not conducive to the popularization of the solution.
  • the solution provided by the invention reduces the extra workload of the administrator, so that the message server can no longer flexibly process the instant message according to the binding of the manager.
  • a user has multiple terminals (for example, a PC, a PAD, or a mobile phone).
  • the user can subscribe to the service of the terminal by using other terminals, for example, subscribing to the message received by the terminal.
  • the supervisor travels, and the secretary wants to process the daily work.
  • the supervisor uses the first terminal to set an authorization rule and authorizes the secretary to subscribe to the service of the first terminal.
  • the secretary uses the second terminal to subscribe to the service of the first terminal.
  • the secretary uses the second terminal to subscribe to the message received by the first terminal, and when the terminal of the other client sends an instant message to the first terminal used by the supervisor, the secretary uses the The second terminal receives the instant message and processes the instant message.
  • the supervisor can still obtain the progress of the instant message processing by using the first terminal; in scenario 3, a company provides a hotline number to the user, and the hotline number is the customer service phone number of the company, and multiple customer service personnel subscribe to the hotline number by using the agent used.
  • the received instant message when the user terminal sends an instant message to the customer service phone, the agent uses the agent to receive the instant message and processes the instant message; in scenario 4, the system administrator uses the terminal to subscribe to the agent service of a customer service agent. For example, the system administrator uses the message received and sent by the terminal agent.
  • the agent used by the customer service agent sends an instant message to the external terminal, or the agent used by the customer service personnel receives the instant message sent by the external terminal
  • the system administrator can use the terminal.
  • Receiving the instant message so that the system administrator checks the service quality of the customer service personnel according to the received instant message; in the classroom 5, the teacher uses the first terminal to use the instant message service, and the plurality of students use the second terminal to subscribe to the teacher.
  • First terminal business such as students
  • the teacher terminal subscription using the first message sent by the second terminal when the first terminal sends an instant message to a second terminal, the second terminal may be synchronized students receiving instant messages, answer in interaction.
  • FIG. 2 is a flowchart of a method for processing an instant message according to the second embodiment of the present invention. terminal. As shown in FIG. 2, the embodiment specifically includes the following steps:
  • Step 210 The first terminal generates a subscription message for the first terminal to subscribe to the service of the second terminal.
  • the first terminal when the first terminal is ready to subscribe to the service of the second terminal, the first terminal generates a subscription message for subscribing to the service of the second terminal.
  • the subscription message includes a service subscription rule, and the service subscription rule includes identifier information of the first terminal and identifier information of the second terminal.
  • Step 220 The first terminal sends the subscription message to a message server.
  • Step 230 The first terminal receives an instant message that is sent by the message server that is sent by the message server according to the subscription message, and the second terminal communicates with the third terminal.
  • the message server obtains the identifier information of the second terminal from the service subscription rule, and determines that the first terminal subscribes to the service of the second terminal, and the message server performs the copy processing on the instant message when the second terminal sends or receives the instant message.
  • the message server sends the copied instant message to the first terminal according to the identifier information of the first terminal.
  • the subscription message further includes indication information for indicating an instant message that is subscribed to or received by the second terminal;
  • the indication information is used to enable the message server to determine whether the first terminal subscribes to an instant message sent by the second terminal or an instant message received by the second terminal;
  • Receiving, by the first terminal, the instant message that the second terminal communicates with the third terminal that is received by the message server that is sent by the message server according to the subscription message includes:
  • the first terminal receives the instant message sent by the second terminal received by the message server sent by the message server according to the indication information, or the first terminal receives the instant message received by the second terminal received by the message server sent by the message server according to the indication information.
  • the message server determines, according to the service subscription rule sent by the first terminal, that the first terminal subscribes to the service of the second terminal, and receives the second terminal and the second terminal.
  • the instant message is processed, and the copied instant message is sent to the first terminal.
  • the binding method of the prior art solution is rigid and inflexible, which is not conducive to the solution. And the problem.
  • the solution provided by the invention reduces the extra workload of the administrator, so that the message server can no longer flexibly process the instant message according to the binding of the manager.
  • the embodiment of the present invention further provides a message server, and the implementation structure thereof is as shown in FIG. 3, and is used to implement the method for processing an instant message in the foregoing embodiment of the present invention.
  • the message server includes the following units: a receiving unit 310, a copy unit 320, and a transmitting unit 330.
  • the receiving unit 310 of the message server is configured to receive, by the first terminal, a first subscription message that is subscribed by the first terminal to a service of the second terminal, where the first subscription message includes a first service subscription rule.
  • the first service subscription rule includes the identifier information of the first terminal and the identifier information of the second terminal, and transmits the identifier information of the first terminal to the sending unit, and transmits the identifier information of the second terminal to the copy unit.
  • the copying unit 320 is configured to receive the identifier information of the second terminal from the receiving unit, and according to the identifier information of the second terminal, when receiving the instant message that the second terminal communicates with the third terminal, Copying the instant message;
  • the sending unit 330 is configured to receive the identifier information of the first terminal from the receiving unit, and send the copied instant message to the first terminal according to the identifier information of the first terminal.
  • the receiving order 310 is further configured to receive a subscription authorization message sent by the second terminal, where the subscription authorization message includes an authorization rule, where the authorization rule includes identifier information of a terminal that is authorized to subscribe to the second terminal service, and Identification information of the second terminal.
  • the message server further includes: a determining unit 410, configured to determine whether the identifier information of the first terminal is included in the identifier information of the terminal included in the authorization rule;
  • the first determining unit 420 is configured to: if the identifier information of the first terminal is included in the identifier information of the terminal, determine that the first terminal is a terminal that is authorized to subscribe to the second terminal service;
  • the copying unit 320 is configured to: when determining, according to the service authorization rule, that the second terminal authorizes the first terminal to subscribe to the service of the second terminal, Processing.
  • the first service subscription rule received by the receiving unit 310 further includes indication information for indicating an instant message subscribed to or received by the second terminal;
  • the message server further includes: a second determining unit 510, configured to determine, according to the indication information, that the first terminal subscribes to an instant message sent by the second terminal, or The instant message received by the second terminal;
  • the copying unit 320 is specifically configured to send the second terminal to the third terminal when the second determining unit 510 determines that the first terminal subscribes to an instant message sent by the second terminal.
  • Instant messaging for copy processing
  • the second determining unit 510 determines that the first terminal subscribes to the instant message received by the second terminal, the instant message sent by the third terminal received by the second terminal is copied.
  • the receiving unit 310 is further configured to receive, by the storage device, a second subscription message that the storage device subscribes to a service of the terminal in the message server, where the second subscription message includes a second service subscription rule, where The second service subscription rule includes the identifier information of the terminal subscribed by the storage device and the identifier information of the storage device;
  • the copying unit 320 is further configured to: when receiving an instant message that the terminal communicates with another terminal according to the identifier information of the terminal, perform the copy processing on the instant message;
  • the sending unit 330 is further configured to send the copied instant message to the storage device according to the identifier information of the storage device, so that the storage device stores the copied instant message.
  • the message server determines, according to the first service subscription rule sent by the first terminal, that the first terminal subscribes to the service of the second terminal, and receives the second terminal and the third terminal.
  • the terminal performs an instant message for communication
  • the instant message is processed, and the copied instant message is sent to the first terminal.
  • the binding method of the prior art solution is rigid and inflexible, which is not conducive to the popularization of the solution. problem.
  • the solution provided by the invention reduces the extra workload of the administrator, so that the message server can no longer flexibly process the instant message according to the binding of the manager.
  • the embodiment of the present invention further provides a terminal device, and the implementation structure thereof is as shown in FIG. 6 for implementing the method for processing an instant message in the foregoing embodiment of the present invention.
  • the terminal includes the following units: a subscription unit 610, a sending unit 620, and a receiving unit 630.
  • the terminal includes a subscription unit 610, configured to generate a subscription message for the first terminal to subscribe to the service of the second terminal, and transmit the subscription message to the sending unit.
  • the sending unit 620 is configured to receive the subscription message from the subscription unit, and send the subscription message to a message server;
  • the receiving unit 630 is configured to receive an instant message that is sent by the message server that is sent by the message server according to the subscription message, and the second terminal communicates with the third terminal.
  • the subscription message generated by the subscribing unit 610 further includes indication information for indicating an instant message subscribed to or received by the second terminal;
  • the indication information is used to enable the message server to determine that the terminal subscribes to an instant message sent by the first terminal or an instant message received by the first terminal;
  • the receiving unit 630 is specifically configured to receive, by the message server, the instant message sent by the first terminal that is sent by the message server according to the indication information, or
  • the message server determines, according to the service subscription rule sent by the terminal, the terminal to subscribe to the service of the first terminal, and when receiving the instant message that the first terminal communicates with the second terminal, The instant message is processed to send the copied instant message to the terminal. Because the message server copies and sends the instant message, the problem that the binding method of the prior art solution is rigid and inflexible is unfavorable, which is not conducive to the popularization of the solution.
  • the solution provided by the invention reduces the extra workload of the manager, so that the message server is no longer based on the binding of the manager. Flexible handling of instant messages
  • the message server provided by the third embodiment of the present invention may be implemented as follows to implement the method for processing an instant message in the foregoing embodiment of the present invention.
  • the message server includes: a network interface 710. , processor 720 and memory 730.
  • System bus 740 is used to connect network interface 710, processor 720, and memory 730.
  • the network interface 710 is configured to perform interaction communication with the first terminal and the second terminal.
  • Memory 730 can be a persistent storage, such as a hard drive and flash memory, and memory 730 is used to store applications that include instructions for enabling processor 720 to access and execute the following instructions:
  • the first terminal Receiving, by the first terminal, a first subscription message that the first terminal subscribes to the service of the second terminal, where the first subscription message includes a first service subscription rule, and the first service subscription rule includes the first Identification information of the terminal and identification information of the second terminal;
  • the application stored by the memory 730 further includes instructions that can be used to cause the processor 720 to perform the following process:
  • the subscription authorization message includes an authorization rule, where the authorization rule includes identifier information of a terminal that is authorized to subscribe to the second terminal service, and identifier information of the second terminal;
  • the application stored by the memory 730 further includes instructions that can be used to cause the processor 720 to perform the following process:
  • the identifier information of the first terminal is included in the identifier information of the terminal, determining that the first terminal is a terminal that is authorized to subscribe to the second terminal service;
  • the application stored by the memory 730 can be used to cause the processor 720 to execute an instruction to perform the copy processing process of the instant message when receiving the instant message that the second terminal communicates with the third terminal. Instructions for performing the following procedures:
  • the authorization rule when it is determined that the second terminal authorizes the first terminal to subscribe to the service of the second terminal, the instant message is copied.
  • the first service subscription rule further includes indication information for indicating an instant message subscribed to or received by the second terminal;
  • the application stored by the memory 730 further includes instructions that can be used to cause the processor 720 to perform the following process:
  • the application stored by the memory 730 can be used to cause the processor 720 to execute an instruction to perform the copy processing process of the instant message when receiving the instant message that the second terminal communicates with the third terminal. Instructions for performing the following procedures:
  • the instant message sent by the third terminal received by the second terminal is copied.
  • the application stored by the memory 730 further includes instructions that can be used to cause the processor 720 to perform the following process:
  • the second subscription message includes a second service subscription rule
  • the second service subscription rule includes the The identification information of the terminal subscribed by the storage device and the identification information of the storage device
  • the instant message is copied and processed
  • the message server determines, according to the first service subscription rule sent by the first terminal, that the first terminal subscribes to the service of the second terminal, and receives the second terminal and the third terminal.
  • the terminal performs an instant message for communication
  • the instant message is processed, and the copied instant message is sent to the first terminal.
  • the message server copies and sends the instant message, the problem that the binding method of the prior art solution is rigid and inflexible is unfavorable, which is not conducive to the popularization of the solution.
  • the solution provided by the invention reduces the extra workload of the administrator, so that the message server can no longer flexibly process the instant message according to the binding of the manager.
  • the terminal provided by the fourth embodiment of the present invention may be implemented as follows.
  • the method for processing an instant message in the foregoing embodiment of the present invention is implemented.
  • the terminal includes: a network interface 810, and processing. 820 and memory 830.
  • System bus 840 is used to connect network interface 810, processor 820, and memory 830.
  • the network interface 810 is for interactive communication with a message server.
  • Memory 830 can be a persistent storage, such as a hard drive and flash memory, and memory 830 is used to store applications, which include instructions that can be used to cause processor 820 to access and execute the following instructions:
  • the subscription message further includes indication information for indicating an instant message subscribed to or received by the first terminal;
  • the indication information is used to enable the message server to determine that the terminal subscribes to an instant message sent by the first terminal or an instant message received by the first terminal;
  • the application stored by the memory 830 can be used to cause the processor 820 to perform communication with the second terminal received by the message server that is received by the message server according to the subscription message.
  • the instructions of the instant messaging process are specifically instructions that perform the following process:
  • the message server determines, according to the service subscription rule sent by the terminal, the terminal to subscribe to the service of the first terminal, and when receiving the instant message that the first terminal communicates with the second terminal, The instant message is processed to send the copied instant message to the terminal. Because the message server copies and sends the instant message, the problem that the binding method of the prior art solution is rigid and inflexible is unfavorable, which is not conducive to the popularization of the solution.
  • the solution provided by the invention reduces the extra workload of the administrator, so that the message server can no longer flexibly process the instant message according to the binding of the manager.
  • the seventh embodiment of the present invention further provides a system for processing an instant message.
  • the system includes a message server provided by Embodiment 3 of the present invention and a terminal provided by Embodiment 4 of the present invention;
  • the system includes: the message server provided in Embodiment 5 of the present invention and the terminal provided in Embodiment 6 of the present invention.
  • the system further includes: a subscribed terminal, where the subscribed terminal is specifically a terminal that is subscribed to by the terminal.
  • the terminal and the subscribed terminal may be specifically a PC, a smart phone, and a PAD. and many more.
  • the message server determines, according to the first service subscription rule sent by the terminal, the terminal subscribes to the service of the subscribed terminal, and receives the subscribed terminal and another terminal.
  • the instant message is processed to send the copied instant message to the terminal. Because the message server copies and sends the instant message, the problem that the binding method of the prior art solution is rigid and inflexible is unfavorable, which is not conducive to the popularization of the solution.
  • the solution provided by the invention reduces the extra workload of the administrator, so that the message server can no longer flexibly process the instant message according to the binding of the manager.
  • the steps of a method or algorithm described in connection with the embodiments disclosed herein can be implemented in hardware, a software module executed by a processor, or a combination of both.
  • the software module can be placed in random access memory (RAM), memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or technical field. Any other form of storage medium known.

Landscapes

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

Abstract

Embodiments of the present invention relate to a method for processing an instant message, a message server, a terminal, and a system. The method comprises: a message server receiving a first subscription message transmitted by a first terminal and used for subscribing to a service of a second terminal by the first terminal, the first subscription message comprising a first service subscription rule, and the first service subscription rule comprising identifier information of the first terminal and identifier information of the second terminal; and the message server duplicating the instant message according to the identifier information of the second terminal when the message server receives an instant message for which the second terminal communicates with a third terminal; and the message server sending the duplicated instant message to the first terminal according to the identifier information of the first terminal.

Description

处理即时消息的方法、消息服务器、终端与系统Method for processing instant message, message server, terminal and system
本申请要求于2014年3月12日提交中国专利局、申请号为201410091088.2、发明名称为“处理即时消息的方法、消息服务器、终端与系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to Chinese Patent Application No. 201410091088.2, entitled "Method for Processing Instant Messaging, Message Server, Terminal and System", filed on March 12, 2014, the entire contents of which are hereby incorporated by reference. Combined in this application.
技术领域Technical field
本发明涉及通讯技术领域,尤其涉及一种处理即时消息的方法、消息服务器、终端与系统。The present invention relates to the field of communications technologies, and in particular, to a method, a message server, a terminal, and a system for processing an instant message.
背景技术Background technique
随着智能终端的快速发展与普及,用户同时使用多个终端访问应用(例如,即时通讯(Instant Messenger,简称:IM))的现象变得越来越普遍,例如,用户希望多个终端能同时对IM应用进行访问,并在多个终端上获得一致的IM内容。With the rapid development and popularization of smart terminals, it is becoming more and more common for users to use multiple terminals to access applications (for example, Instant Messenger (IM)). For example, users want multiple terminals to simultaneously Access IM applications and get consistent IM content across multiple endpoints.
在现有技术的方案中,消息服务器通过对多个终端的登录方式进行配置,将多个终端的账号与同一个用户进行绑定,当用户使用其中一个终端发送IM消息或其他用户向该终端发送IM消息时,消息服务器根据绑定关系向该用户的其它终端发送该IM消息。但是,现有技术中同步访问内容的方式也暴露出以下问题:现有技术中的技术方案,需管理人员在先将多个终端的账号与同一个用户进行绑定后,才可实现向多个绑定的终端发送IM消息,否则,无法在后续进行IM消息的发送,这种方案增加了管理人员额外的工作量,也使得现有技术方案绑定方式死板、不灵活,不利于方案的普及。In the prior art solution, the message server configures the login mode of multiple terminals, and binds the accounts of multiple terminals to the same user. When the user uses one of the terminals to send an IM message or other users to the terminal. When sending an IM message, the message server sends the IM message to other terminals of the user according to the binding relationship. However, the manner of synchronously accessing content in the prior art also exposes the following problem: in the prior art, the management personnel need to bind the accounts of multiple terminals to the same user before the implementation can be achieved. The bound terminal sends an IM message. Otherwise, the IM message cannot be sent later. This solution increases the extra workload of the administrator and makes the binding of the prior art solution rigid and inflexible, which is not conducive to the solution. popular.
发明内容Summary of the invention
本发明实施例提供了一种处理即时消息的方法、消息服务器、终端与系统,解决了现有技术方案绑定方式死板、不灵活,不利于方案的普及的问题。The embodiment of the invention provides a method for processing an instant message, a message server, a terminal and a system, and solves the problem that the binding method of the prior art solution is rigid and inflexible, which is not conducive to the popularization of the solution.
在第一方面,本发明实施例提供了一种处理即时消息的方法,所述方法 包括:In a first aspect, an embodiment of the present invention provides a method for processing an instant message, where the method include:
消息服务器接收第一终端发送的所述第一终端对第二终端的业务进行订阅的第一订阅消息,所述第一订阅消息包括第一业务订阅规则,所述第一业务订阅规则包括所述第一终端的标识信息和所述第二终端的标识信息;Receiving, by the first terminal, a first subscription message that is subscribed by the first terminal to the service of the second terminal, where the first subscription message includes a first service subscription rule, and the first service subscription rule includes the Identification information of the first terminal and identification information of the second terminal;
根据所述第二终端的标识信息,所述消息服务器在接收到所述第二终端与第三终端进行通信的即时消息时,将所述即时消息进行复制处理;And the message server performs the copy processing on the instant message when receiving the instant message that the second terminal communicates with the third terminal according to the identifier information of the second terminal;
根据所述第一终端的标识信息,所述消息服务器向所述第一终端发送复制的所述即时消息。And the message server sends the copied instant message to the first terminal according to the identifier information of the first terminal.
在第一种可能的实现方式中,所述消息服务器接收第一终端发送的所述第一终端对第二终端的业务进行订阅的第一订阅消息之前包括:In a first possible implementation manner, the message server, before receiving, by the first terminal, the first subscription message that the first terminal subscribes to the service of the second terminal, includes:
所述消息服务器接收所述第二终端发送的订阅授权消息,所述订阅授权消息包括授权规则,所述授权规则包括被授权订阅所述第二终端业务的终端的标识信息和所述第二终端的标识信息;Receiving, by the message server, a subscription authorization message sent by the second terminal, where the subscription authorization message includes an authorization rule, where the authorization rule includes identifier information of a terminal authorized to subscribe to the second terminal service, and the second terminal Identification information;
所述消息服务器接收第一终端发送的所述第一终端对第二终端的业务进行订阅的第一订阅消息之后还包括:After receiving the first subscription message that the first terminal sends the service of the second terminal to the second terminal, the message server further includes:
所述消息服务器判断所述第一终端的标识信息是否包含在所述授权规则中包括的所述终端的标识信息中;Determining, by the message server, the identifier information of the first terminal in the identifier information of the terminal included in the authorization rule;
如果所述第一终端的标识信息包含在所述终端的标识信息中,则所述消息服务器确定所述第一终端为被授权订阅所述第二终端业务的终端;If the identifier information of the first terminal is included in the identifier information of the terminal, the message server determines that the first terminal is a terminal that is authorized to subscribe to the second terminal service;
所述消息服务器在接收到所述第二终端与第三终端进行通信的即时消息时将所述即时消息进行复制处理具体包括:When the message server receives the instant message that the second terminal communicates with the third terminal, the copying the instant message specifically includes:
根据所述授权规则,所述消息服务器在确定所述第二终端授权所述第一终端订阅所述第二终端的业务时,对所述即时消息进行复制处理。And the message server performs a copy process on the instant message when determining that the second terminal authorizes the first terminal to subscribe to the service of the second terminal according to the authorization rule.
在第二种可能的实现方式中,所述第一业务订阅规则还包括用于指示订阅所述第二终端发送或是接收的即时消息的指示信息;In a second possible implementation, the first service subscription rule further includes indication information for indicating an instant message that is subscribed to or received by the second terminal;
所述消息服务器接收第一终端发送的所述第一终端对第二终端的业务进 行订阅的第一订阅消息之后还包括:The message server receives the service of the first terminal and the second terminal sent by the first terminal After the first subscription message of the line subscription, it also includes:
根据所述指示信息,所述消息服务器确定所述第一终端订阅的是所述第二终端发送的即时消息或是所述第二终端接收的即时消息;Determining, according to the indication information, that the first terminal subscribes to an instant message sent by the second terminal or an instant message received by the second terminal;
所述消息服务器在接收到所述第二终端与第三终端进行通信的即时消息时将所述即时消息进行复制处理具体包括:When the message server receives the instant message that the second terminal communicates with the third terminal, the copying the instant message specifically includes:
如果所述消息服务器确定所述第一终端订阅的是所述第二终端发送的即时消息,则所述消息服务器将所述第二终端向所述第三终端发送的即时消息进行复制处理;If the message server determines that the first terminal subscribes to the instant message sent by the second terminal, the message server performs a copy process on the instant message sent by the second terminal to the third terminal;
如果所述消息服务器确定所述第一终端订阅的是所述第二终端接收的即时消息,则所述消息服务器将所述第二终端接收的所述第三终端发送的即时消息进行复制处理。If the message server determines that the first terminal subscribes to the instant message received by the second terminal, the message server performs a copy process on the instant message sent by the third terminal received by the second terminal.
在第三种可能的实现方式中,所述方法还包括:In a third possible implementation manner, the method further includes:
所述消息服务器接收存储设备发送的所述存储设备对所述消息服务器接收到的终端的业务进行订阅的第二订阅消息,所述第二订阅消息包括第二业务订阅规则,所述第二业务订阅规则包括所述存储设备订阅的终端的标识信息和所述存储设备的标识信息;Receiving, by the message server, a second subscription message that is sent by the storage device to subscribe to the service of the terminal that is received by the message server, where the second subscription message includes a second service subscription rule, the second service The subscription rule includes the identification information of the terminal subscribed by the storage device and the identification information of the storage device;
根据所述终端的标识信息,所述消息服务器在接收到所述终端与另一终端进行通信的即时消息时,将所述即时消息进行复制处理;And the message server performs the copy processing on the instant message when receiving the instant message that the terminal communicates with another terminal according to the identifier information of the terminal;
根据所述存储设备的标识信息,所述消息服务器向所述存储设备发送复制的所述即时消息,以使得所述存储设备将复制的所述即时消息进行存储。And according to the identifier information of the storage device, the message server sends the copied instant message to the storage device, so that the storage device stores the copied instant message.
在第二方面,本发明实施例提供了一种处理即时消息的方法,所述方法包括:In a second aspect, an embodiment of the present invention provides a method for processing an instant message, where the method includes:
第一终端生成用于所述第一终端对第二终端的业务进行订阅的订阅消息;The first terminal generates a subscription message for the first terminal to subscribe to the service of the second terminal;
所述第一终端向消息服务器发送所述订阅消息;Sending, by the first terminal, the subscription message to a message server;
所述第一终端接收所述消息服务器根据所述订阅消息发送的所述消息服 务器所接收的所述第二终端与第三终端进行通信的即时消息。Receiving, by the first terminal, the message service sent by the message server according to the subscription message An instant message that the second terminal receives communication with the third terminal.
在第一种可能的实现方式中,所述订阅消息还包括用于指示订阅所述第二终端发送或是接收的即时消息的指示信息;In a first possible implementation, the subscription message further includes indication information for indicating an instant message that is subscribed to or received by the second terminal;
所述指示信息用于使所述消息服务器确定所述第一终端订阅的是所述第二终端发送的即时消息或是所述第二终端接收的即时消息;The indication information is used to enable the message server to determine that the first terminal subscribes to an instant message sent by the second terminal or an instant message received by the second terminal;
所述第一终端接收所述消息服务器根据所述订阅消息发送的所述消息服务器所接收的所述第二终端与第三终端进行通信的即时消息具体包括:Receiving, by the first terminal, the instant message that the second terminal communicates with the third terminal that is received by the message server that is sent by the message server according to the subscription message includes:
所述第一终端接收所述消息服务器根据所述指示信息发送的所述消息服务器所接收的所述第二终端发送的即时消息,或者;Receiving, by the first terminal, an instant message sent by the second terminal that is sent by the message server according to the indication information, or
所述第一终端接收所述消息服务器根据所述指示信息发送的所述消息服务器所接收的所述第二终端接收的即时消息。The first terminal receives an instant message received by the second terminal that is received by the message server that is sent by the message server according to the indication information.
在第三方面,本发明实施例提供了一种消息服务器,所述消息服务器包括:In a third aspect, an embodiment of the present invention provides a message server, where the message server includes:
接收单元,用于接收第一终端发送的所述第一终端对第二终端的业务进行订阅的第一订阅消息,所述第一订阅消息包括第一业务订阅规则,所述第一业务订阅规则包括第一终端的标识信息和所述第二终端的标识信息,并将所述第一终端的标识信息传输至发送单元,将第二终端的标识信息传输至复制单元;a receiving unit, configured to receive a first subscription message that is sent by the first terminal to subscribe to a service of the second terminal, where the first subscription message includes a first service subscription rule, and the first service subscription rule Including the identification information of the first terminal and the identification information of the second terminal, and transmitting the identification information of the first terminal to the sending unit, and transmitting the identification information of the second terminal to the copying unit;
复制单元,用于从所述接收单元接收所述第二终端的标识信息,根据所述第二终端的标识信息,在接收到所述第二终端与第三终端进行通信的即时消息时,将所述即时消息进行复制处理;a copying unit, configured to receive, by the receiving unit, identifier information of the second terminal, according to the identifier information of the second terminal, when receiving an instant message that the second terminal communicates with the third terminal, The instant message is copied;
发送单元,用于从所述接收单元接收所述第一终端的标识信息,根据所述第一终端的标识信息,向所述第一终端发送复制的所述即时消息。And a sending unit, configured to receive the identifier information of the first terminal from the receiving unit, and send the copied instant message to the first terminal according to the identifier information of the first terminal.
在第一种可能的实现方式中,所述接收单元还用于,接收所述第二终端发送的订阅授权消息,所述订阅授权消息包括授权规则,所述授权规则包括被授权订阅所述第二终端业务的终端的标识信息和所述第二终端的标识信 息;In a first possible implementation, the receiving unit is further configured to receive a subscription authorization message sent by the second terminal, where the subscription authorization message includes an authorization rule, where the authorization rule includes being authorized to subscribe to the Identification information of the terminal of the second terminal service and the identification letter of the second terminal interest;
所述消息服务器还包括:判断单元,用于判断所述第一终端的标识信息是否包含在所述授权规则中包括的所述终端的标识信息中;The message server further includes: a determining unit, configured to determine whether the identifier information of the first terminal is included in the identifier information of the terminal included in the authorization rule;
第一确定单元,用于如果所述第一终端的标识信息包含在所述终端的标识信息中,则确定所述第一终端为被授权订阅所述第二终端业务的终端;a first determining unit, configured to: if the identifier information of the first terminal is included in the identifier information of the terminal, determine that the first terminal is a terminal that is authorized to subscribe to the second terminal service;
所述复制单元具体用于,根据所述业务授权规则,在确定所述第二终端授权所述第一终端订阅所述第二终端的业务时,对所述即时消息进行复制处理。The copying unit is configured to perform a copy process on the instant message when determining that the second terminal authorizes the first terminal to subscribe to the service of the second terminal according to the service authorization rule.
在第二种可能的实现方式中,所述接收单元接收的所述第一业务订阅规则还包括用于指示订阅所述第二终端发送或是接收的即时消息的指示信息;In a second possible implementation, the first service subscription rule received by the receiving unit further includes indication information for indicating an instant message that is subscribed to or received by the second terminal;
所述消息服务器还包括:第二确定单元,用于根据所述指示信息,确定所述第一终端订阅的是所述第二终端发送的即时消息或是所述第二终端接收的即时消息;The message server further includes: a second determining unit, configured to determine, according to the indication information, that the first terminal subscribes to an instant message sent by the second terminal or an instant message received by the second terminal;
所述复制单元具体用于,在所述第二确定单元确定所述第一终端订阅的是所述第二终端发送的即时消息时,将所述第二终端向所述第三终端发送的即时消息进行复制处理;The copying unit is specifically configured to: when the second determining unit determines that the first terminal subscribes to an instant message sent by the second terminal, send the second terminal to the third terminal The message is copied;
在所述第二确定单元确定所述第一终端订阅的是所述第二终端接收的即时消息时,将所述第二终端接收的所述第三终端发送的即时消息进行复制处理。When the second determining unit determines that the first terminal subscribes to the instant message received by the second terminal, the instant message sent by the third terminal received by the second terminal is copied.
在第三种可能的实现方式中,所述接收单元还用于,接收存储设备发送的所述存储设备对所述消息服务器中终端的业务进行订阅的第二订阅消息,所述第二订阅消息包括第二业务订阅规则,所述第二业务订阅规则包括所述存储设备订阅的终端的标识信息和所述存储设备的标识信息;In a third possible implementation manner, the receiving unit is further configured to: receive, by the storage device, a second subscription message that the storage device subscribes to a service of the terminal in the message server, where the second subscription message is The second service subscription rule includes: the identifier information of the terminal subscribed by the storage device and the identifier information of the storage device;
所述复制单元还用于,根据所述终端的标识信息,在接收到所述终端与另一终端进行通信的即时消息时,将所述即时消息进行复制处理;The copying unit is further configured to: when receiving the instant message that the terminal communicates with another terminal, according to the identifier information of the terminal, performing the copy processing on the instant message;
所述发送单元还用于,根据所述存储设备的标识信息,向所述存储设备 发送复制的所述即时消息,以使得所述存储设备将复制的所述即时消息进行存储。The sending unit is further configured to: according to the identifier information of the storage device, to the storage device The copied instant message is sent to cause the storage device to store the copied instant message.
在第四方面,本发明实施例提供了一种终端,所述终端包括:In a fourth aspect, an embodiment of the present invention provides a terminal, where the terminal includes:
订阅单元,用于生成用于所述第一终端对第二终端的业务进行订阅的订阅消息,并将所述订阅消息传输至发送单元;a subscription unit, configured to generate a subscription message for the first terminal to subscribe to the service of the second terminal, and transmit the subscription message to the sending unit;
发送单元,用于从所述订阅单元接收所述订阅消息,并向消息服务器发送所述订阅消息;a sending unit, configured to receive the subscription message from the subscription unit, and send the subscription message to a message server;
接收单元,用于接收所述消息服务器根据所述订阅消息发送的所述消息服务器所接收的所述第二终端与第三终端进行通信的即时消息。And a receiving unit, configured to receive an instant message that the second server receives communication with the third terminal that is received by the message server that is sent by the message server according to the subscription message.
在第一种可能的实现方式中,所述订阅单元生成的所述订阅消息还包括用于指示订阅所述第一终端发送或是接收的即时消息的指示信息;In a first possible implementation manner, the subscription message generated by the subscribing unit further includes indication information for indicating an instant message that is subscribed to or received by the first terminal;
所述指示信息用于使所述消息服务器确定所述终端订阅的是所述第一终端发送的即时消息或是所述第一终端接收的即时消息;The indication information is used to enable the message server to determine that the terminal subscribes to an instant message sent by the first terminal or an instant message received by the first terminal;
所述接收单元具体用于,接收所述消息服务器根据所述指示信息发送的所述消息服务器所接收的所述第一终端发送的即时消息,或者;The receiving unit is specifically configured to: receive an instant message sent by the first terminal that is sent by the message server according to the indication information, or
接收所述消息服务器根据所述指示信息发送的所述消息服务器所接收的所述第一终端接收的即时消息。Receiving an instant message received by the first terminal received by the message server sent by the message server according to the indication information.
在第五方面,本发明实施例还提供了一种处理即时消息的系统,所述系统包括:如第三方面所述的消息服务器和如第四方面所述的终端。In a fifth aspect, the embodiment of the present invention further provides a system for processing an instant message, the system comprising: the message server according to the third aspect, and the terminal according to the fourth aspect.
在第一种可能的实现方式中,所述系统还包括:被订阅终端,所述被订阅终端具体为被所述终端进行业务订阅的终端。In a first possible implementation, the system further includes: a subscribed terminal, where the subscribed terminal is specifically a terminal that is subscribed to by the terminal.
因此,通过应用本发明实施例提供的处理即时消息的方法、消息服务器、终端与系统,消息服务器根据第一终端发送的第一业务订阅规则,确定第一终端对第二终端的业务进行订阅,并在接收到第二终端与第三终端进行通信的即时消息时,将即时消息进行处理,向第一终端发送复制的即时消息。由于消息服务器将即时消息进行复制后发送,解决了现有技术方案绑定方式死 板、不灵活,不利于方案的普及的问题。本发明提供的方案,减少了管理人员额外的工作量,使得消息服务器不再根据管理人员的绑定,可灵活地对即时消息进行处理。Therefore, by applying the method for processing an instant message, the message server, the terminal, and the system provided by the embodiment of the present invention, the message server determines, according to the first service subscription rule sent by the first terminal, the first terminal to subscribe to the service of the second terminal, And receiving an instant message when the second terminal communicates with the third terminal, processing the instant message, and sending the copied instant message to the first terminal. Because the message server copies and sends the instant message, the binding method of the prior art solution is solved. Board, inflexible, is not conducive to the popularity of the program. The solution provided by the invention reduces the extra workload of the administrator, so that the message server can no longer flexibly process the instant message according to the binding of the manager.
附图说明DRAWINGS
图1为本发明实施例一提供的处理即时消息的方法流程图;1 is a flowchart of a method for processing an instant message according to Embodiment 1 of the present invention;
图2为本发明实施例二提供的处理即时消息的方法流程图;2 is a flowchart of a method for processing an instant message according to Embodiment 2 of the present invention;
图3为本发明实施例三提供的一种消息服务器结构示意图;3 is a schematic structural diagram of a message server according to Embodiment 3 of the present invention;
图4为本发明实施例三提供的另一种消息服务器结构示意图;4 is a schematic structural diagram of another message server according to Embodiment 3 of the present invention;
图5为本发明实施例三提供的再一种消息服务器结构示意图;FIG. 5 is a schematic structural diagram of still another message server according to Embodiment 3 of the present invention; FIG.
图6为本发明实施例四提供的终端结构示意图;FIG. 6 is a schematic structural diagram of a terminal according to Embodiment 4 of the present invention; FIG.
图7为本发明实施例五提供的消息服务器硬件结构示意图;FIG. 7 is a schematic structural diagram of a message server hardware according to Embodiment 5 of the present invention; FIG.
图8为本发明实施例六提供的终端硬件结构示意图;8 is a schematic structural diagram of a terminal hardware according to Embodiment 6 of the present invention;
图9为本发明实施例七提供的处理即时消息的系统示意图。FIG. 9 is a schematic diagram of a system for processing an instant message according to Embodiment 7 of the present invention.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
为便于对本发明实施例的理解,下面将结合附图以具体实施例做进一步的解释说明,实施例并不构成对本发明实施例的限定。In order to facilitate the understanding of the embodiments of the present invention, the embodiments of the present invention are not to be construed as limiting.
实施例一Embodiment 1
下面以图1为例详细说明本发明实施例一提供的处理即时消息的方法,图1为本发明实施例一提供的处理即时消息的方法流程图,在本发明实施例 中实施主体为消息服务器。如图1所示,该实施例具体包括以下步骤:The method for processing an instant message according to the first embodiment of the present invention is described in detail with reference to FIG. 1 . FIG. 1 is a flowchart of a method for processing an instant message according to Embodiment 1 of the present invention. The implementation entity is a message server. As shown in FIG. 1, the embodiment specifically includes the following steps:
步骤110、消息服务器接收第一终端发送的所述第一终端对第二终端的业务进行订阅的第一订阅消息,所述第一订阅消息包括第一业务订阅规则,所述第一业务订阅规则包括第一终端的标识信息和所述第二终端的标识信息。Step 110: The message server receives a first subscription message that is sent by the first terminal to subscribe to the service of the second terminal by the first terminal, where the first subscription message includes a first service subscription rule, and the first service subscription rule The identifier information of the first terminal and the identifier information of the second terminal are included.
具体地,当第一终端准备订阅第二终端的业务时,第一终端向消息服务器发送第一订阅消息,所述第一订阅消息包括第一业务订阅规则,所述第一业务订阅规则包括第一终端的标识信息和第二终端的标识信息。Specifically, when the first terminal is ready to subscribe to the service of the second terminal, the first terminal sends a first subscription message to the message server, where the first subscription message includes a first service subscription rule, and the first service subscription rule includes Identification information of a terminal and identification information of the second terminal.
消息服务器接收第一订阅消息,根据包括的第一终端的标识信息和第二终端的标识信息,确定第一终端对第二终端的业务进行订阅。The message server receives the first subscription message, and determines that the first terminal subscribes to the service of the second terminal according to the identifier information of the first terminal and the identifier information of the second terminal.
进一步地,在本发明实施例中,第一业务订阅规则以报文的格式携带在第一订阅消息中。其中,第一业务订阅规则除了包括第一终端、第二终端的标识信息以外,还包括用于指示订阅第二终端发送或是接收的即时消息的指示信息。Further, in the embodiment of the present invention, the first service subscription rule is carried in the first subscription message in the format of the message. The first service subscription rule includes, in addition to the identifier information of the first terminal and the second terminal, indication information for indicating an instant message that is subscribed to or received by the second terminal.
如下述报文体所示。As shown in the following message body.
Figure PCTCN2014094513-appb-000001
Figure PCTCN2014094513-appb-000001
Figure PCTCN2014094513-appb-000002
Figure PCTCN2014094513-appb-000002
例如,在上述报文体中,+865516001031为被订阅的用户终端的号码,也就是第二终端;+865516001030为订阅业务的用户终端的号码,也即是第一终端。For example, in the above message body, +865516001031 is the number of the subscribed user terminal, that is, the second terminal; +865516001030 is the number of the user terminal of the subscription service, that is, the first terminal.
在上述报文体中,所述指示信息具体为register-user-service-rule,其为一个根元素,指示信息可通过订阅业务类型信息实现,在该根元素下面可以关联1个或多个订阅的类型。进一步地,订阅业务类型信息包括:用于表示是否订阅被订阅的用户终端发出的消息的元素,用于表示是否订阅被订阅的用户终端接收的消息的元素;在用于表示是否订阅被订阅的用户终端发出的消息的元素中,subscribe=false表示不订阅,subscribe=true表示订阅;在用于表示是否订阅被订阅的用户终端接收的消息的元素中,subscribe=false表示不订阅,subscribe=true表示订阅,其中,在用于表 示是否订阅被订阅的用户终端接收的消息元素中还包括选择接收方式的元素,dispatch=random表示订阅接收的消息为随机接收,dispatch=all表示订阅接收的消息为全部接收。In the above packet body, the indication information is specifically a register-user-service-rule, which is a root element, and the indication information can be implemented by subscribing to the service type information, and one or more subscriptions can be associated with the root element. Types of. Further, the subscription service type information includes: an element for indicating whether to subscribe to a message sent by the subscribed user terminal, an element for indicating whether to subscribe to the message received by the subscribed user terminal; and indicating whether the subscription is subscribed or not Among the elements of the message sent by the user terminal, subscribe=false means no subscription, subscribe=true means subscription; in the element for indicating whether to subscribe to the message received by the subscribed user terminal, subscribe=false means no subscription, subscribe=true Represents a subscription, where, in the table The message element received by the subscribed user terminal also includes an element for selecting a receiving mode, the dispatch=random indicates that the message received by the subscription is randomly received, and the dispatch=all indicates that the message received by the subscription is all received.
在上述报文体中,还包括订阅时间信息,如3600;该时间信息用于约定订阅业务的有效时间,当第一终端订阅业务的时间超过该有效时间时,则订阅无效。In the above packet body, the subscription time information is further included, for example, 3600. The time information is used to stipulate the effective time of the subscription service. When the time for the first terminal to subscribe to the service exceeds the valid time, the subscription is invalid.
在上述报文体中,还包括订阅指定终端信息,该订阅指定终端信息不限制指定终端的个数。例如,pair-useruri=sip:ppp@im.x.com/允许同时订阅多个指定终端。In the foregoing message body, the subscription terminal information is further included, and the subscription designation terminal information does not limit the number of designated terminals. For example, pair-useruri=sip:ppp@im.x.com/ allows multiple simultaneous subscriptions to be specified.
需要说明的是,如果第一业务订阅规则中包括第二终端的标识信息,则消息服务器确定第一终端订阅指定终端的业务,接收指定终端的即时消息,否则,消息服务器确定第一终端将会接收全部终端的即时消息。It should be noted that, if the first service subscription rule includes the identity information of the second terminal, the message server determines that the first terminal subscribes to the service of the designated terminal, and receives the instant message of the designated terminal; otherwise, the message server determines that the first terminal will Receive instant messages from all terminals.
在本发明实施例中,第一终端、第二终端可具体为PC机、智能手机、PAD等等。所述第一终端、第二终端的个数均为至少1个。其中,第一终端与第二终端还可为属于同一用户的终端,或者属于不同用户的终端。In the embodiment of the present invention, the first terminal and the second terminal may be specifically a PC, a smart phone, a PAD, and the like. The number of the first terminal and the second terminal is at least one. The first terminal and the second terminal may also be terminals belonging to the same user or terminals belonging to different users.
通过上述报文体,第一终端对第二终端的业务进行订阅。Through the foregoing message body, the first terminal subscribes to the service of the second terminal.
更进一步地,当所述第一业务订阅规则包括指示信息时,在本步骤之后还包括根据指示信息,消息服务器确定第一终端订阅的是第二终端发送的即时消息或是第二终端接收的即时消息的步骤。Further, when the first service subscription rule includes the indication information, after the step, the message server further determines, according to the indication information, that the first terminal subscribes to the instant message sent by the second terminal or is received by the second terminal. The steps of instant messaging.
具体地,在本发明实施例中,如果在上述报文体中用于表示是否订阅被订阅的用户终端发出的消息的元素为subscribe=true,用于表示是否订阅被订阅的用户终端接收的消息的元素为subscribe=false,则消息服务器确定第一终端订阅的是第二终端发送的即时消息;如果在上述报文体中用于表示是否订阅被订阅的用户终端接收的消息的元素为subscribe=true,用于标识是否订阅被订阅的用户终端发出的消息元素为subscribe=false,则消息服务器确定第一终端订阅的是第二终端接收的即时消息;如果在上述报文体中用于 表示是否订阅被订阅的用户终端接收的消息的元素为subscribe=true,用于表示是否订阅被订阅的用户终端发出的消息的元素为subscribe=true,则消息服务器确定第一终端订阅的是第二终端接收、发送的即时消息。Specifically, in the embodiment of the present invention, if the element used in the message body to indicate whether to subscribe to the message sent by the subscribed user terminal is subscribe=true, it is used to indicate whether to subscribe to the message received by the subscribed user terminal. If the element is subscribe=false, the message server determines that the first terminal subscribes to the instant message sent by the second terminal; if the element used in the message body to indicate whether to subscribe to the subscribed user terminal is subscribe=true, The message element for identifying whether to subscribe to the subscribed user terminal is subscribe=false, the message server determines that the first terminal subscribes to the instant message received by the second terminal; if used in the message body The element indicating whether to subscribe to the message received by the subscribed user terminal is subscribe=true, and the element for indicating whether to subscribe to the message sent by the subscribed user terminal is subscribe=true, then the message server determines that the first terminal subscribes to the second The instant message received and sent by the terminal.
步骤120、根据所述第二终端的标识信息,所述消息服务器在所述第二终端发送或者接收即时消息时将所述即时消息进行复制处理。Step 120: The message server performs copy processing on the instant message when the second terminal sends or receives an instant message according to the identifier information of the second terminal.
具体地,消息服务器从第一业务订阅规则中获取第二终端的标识信息,确定第一终端对第二终端的业务进行订阅,消息服务器在第二终端发送或者接收即时消息时将即时消息进行复制处理。Specifically, the message server obtains the identifier information of the second terminal from the first service subscription rule, determines that the first terminal subscribes to the service of the second terminal, and the message server copies the instant message when the second terminal sends or receives the instant message. deal with.
所述即时消息具体包括文字、或者图形、或者多媒体信息等。The instant message specifically includes text, or graphics, or multimedia information.
进一步地,当在步骤110中接收到的第一业务订阅规则包括指示信息时,所述消息服务器在接收到所述第二终端与第三终端进行通信的即时消息时将所述即时消息进行复制处理具体包括:Further, when the first service subscription rule received in step 110 includes the indication information, the message server copies the instant message when receiving the instant message that the second terminal communicates with the third terminal. The specific treatment includes:
如果消息服务器确定第一终端订阅的是第二终端发送的即时消息,则消息服务器将第二终端向第三终端发送的即时消息进行复制处理;If the message server determines that the first terminal subscribes to the instant message sent by the second terminal, the message server performs a copy process on the instant message sent by the second terminal to the third terminal;
如果消息服务器确定第一终端订阅的是第二终端接收的即时消息,则消息服务器将第二终端接收的第三终端发送的即时消息进行复制处理。If the message server determines that the first terminal subscribes to the instant message received by the second terminal, the message server performs a copy process on the instant message sent by the third terminal received by the second terminal.
具体地,如果消息服务器确定第一终端订阅的是第二终端发送的即时消息,则消息服务器将第二终端向第三终端发送的即时消息进行复制处理;如果消息服务器确定第一终端订阅的是第二终端接收的即时消息,则消息服务器将第二终端接收的第三终端发送的即时消息进行复制处理;如果消息服务器确定第一终端订阅的是第二终端发送、接收的即时消息,则消息服务器将第二终端与第三终端进行发送、接收的即时消息进行复制处理;Specifically, if the message server determines that the first terminal subscribes to the instant message sent by the second terminal, the message server performs a copy process on the instant message sent by the second terminal to the third terminal; if the message server determines that the first terminal subscribes to The instant message received by the second terminal, the message server performs the copy processing on the instant message sent by the third terminal received by the second terminal; if the message server determines that the first terminal subscribes to the instant message sent and received by the second terminal, the message The server performs copy processing on the instant message sent and received by the second terminal and the third terminal;
步骤130、根据所述第一终端的标识信息,所述消息服务器向所述第一终端发送复制的所述即时消息。Step 130: The message server sends the copied instant message to the first terminal according to the identifier information of the first terminal.
具体地,消息服务器从第一业务订阅规则中获取第一终端的标识信息,根据第一标识信息,向第一终端发送复制的即时消息。也即是,消息服务器 向订阅业务的第一终端发送被订阅业务的第二终端的即时消息,进而实现消息服务器不再对多个终端的账号与用户进行绑定,即可为多个终端同步提供获取访问的内容。Specifically, the message server obtains the identifier information of the first terminal from the first service subscription rule, and sends the copied instant message to the first terminal according to the first identifier information. That is, the message server The instant message of the second terminal of the subscribed service is sent to the first terminal of the subscription service, so that the message server does not bind the account of the multiple terminal to the user, and the content obtained by the multiple terminals can be synchronously provided.
可选地,在本发明实施例步骤110之前,还包括消息服务器接收第二终端发送的订阅授权消息,通过该消息,可使消息服务器确定被授权的终端,并在被授权终端发送订阅消息时,向被授权终端发送授权终端的即时消息。实现了消息服务器不再对多个终端的账号与用户进行绑定,即可为多个终端同步提供获取访问的内容。具体步骤如下:Optionally, before the step 110 of the embodiment of the present invention, the method further includes: receiving, by the message server, a subscription authorization message sent by the second terminal, by using the message, the message server may be configured to determine the authorized terminal, and when the authorized terminal sends the subscription message, Sending an instant message to the authorized terminal to the authorized terminal. The message server is no longer bound to the account of multiple terminals, and the content obtained by the multiple terminals can be synchronized. Specific steps are as follows:
所述消息服务器接收第二终端发送的订阅授权消息,所述订阅授权消息包括授权规则,所述授权规则包括被授权订阅所述第二终端业务的终端的标识信息和所述第二终端的标识信息,用于使所述消息服务器确定被所述第二终端授权的终端。The message server receives a subscription authorization message sent by the second terminal, where the subscription authorization message includes an authorization rule, where the authorization rule includes identifier information of the terminal that is authorized to subscribe to the second terminal service, and an identifier of the second terminal. Information for causing the message server to determine a terminal authorized by the second terminal.
具体地,当第二终端希望终端对第二终端的业务进行订阅时,第二终端向消息服务器发送订阅授权消息,所述订阅授权消息包括授权规则,所述授权规则包括被授权订阅第二终端业务的终端的标识信息和第二终端的标识信息,以使得消息服务器确定第二终端授权的终端。Specifically, when the second terminal wants the terminal to subscribe to the service of the second terminal, the second terminal sends a subscription authorization message to the message server, where the subscription authorization message includes an authorization rule, and the authorization rule includes being authorized to subscribe to the second terminal. The identification information of the terminal of the service and the identification information of the second terminal, so that the message server determines the terminal authorized by the second terminal.
如下述报文体所示。As shown in the following message body.
Figure PCTCN2014094513-appb-000003
Figure PCTCN2014094513-appb-000003
Figure PCTCN2014094513-appb-000004
Figure PCTCN2014094513-appb-000004
例如,在上述报文体中,+865516001031为被授权的用户终端的号码,也就是终端;+865516001030为拥有授权权限的用户终端的号码,也即是第二终端。For example, in the above message body, +865516001031 is the number of the authorized user terminal, that is, the terminal; +865516001030 is the number of the user terminal having the authorization authority, that is, the second terminal.
在上述报文体中,也包括指示信息,该指示信息与前述步骤110中所描述的指示信息相同,在此不再复述。In the above packet body, the indication information is also included, and the indication information is the same as the indication information described in the foregoing step 110, and is not repeated here.
进一步地,在上述报文体中,还包括订阅时间信息、订阅指定终端信息等,该订阅时间信息、订阅指定终端信息也与步骤110中所描述的订阅时间信息、订阅指定终端信息相同,在此不再复述。可选地,在本发明实施例步 骤110之后,还包括以下步骤:Further, in the foregoing message body, the subscription time information, the subscription designated terminal information, and the like are also included, and the subscription time information and the subscription designated terminal information are also the same as the subscription time information and the subscription designated terminal information described in step 110. No longer repeat. Optionally, in the embodiment of the present invention After step 110, the following steps are also included:
所述消息服务器判断所述第一终端的标识信息是否包含在所述授权规则中包括的所述终端的标识信息中;Determining, by the message server, the identifier information of the first terminal in the identifier information of the terminal included in the authorization rule;
如果所述第一终端的标识信息包含在所述终端的标识信息中,则所述消息服务器确定所述第一终端为被授权订阅所述第二终端业务的终端。If the identifier information of the first terminal is included in the identifier information of the terminal, the message server determines that the first terminal is a terminal that is authorized to subscribe to the second terminal service.
具体地,消息服务器根据授权规则,确定被第二终端授权,订阅第二终端业务的终端后,当消息服务器接收第一终端发送的第一订阅消息时,消息服务器从第一订阅消息中获取第一业务订阅规则,并从第一业务订阅规则中获取第一终端的标志信息和第二终端的标识信息,消息服务器判断第一终端的标识信息是否包含在授权规则中包括的终端的标识信息中,如果第一终端的标识信息包含在终端的标识信息中,则消息服务器确定第一终端为被授权订阅第二终端业务的终端。Specifically, the message server determines, according to the authorization rule, that after the terminal is authorized by the second terminal to subscribe to the terminal of the second terminal service, when the message server receives the first subscription message sent by the first terminal, the message server obtains the first subscription message. a service subscription rule, and obtaining the identifier information of the first terminal and the identifier information of the second terminal from the first service subscription rule, and the message server determines whether the identifier information of the first terminal is included in the identifier information of the terminal included in the authorization rule. If the identification information of the first terminal is included in the identification information of the terminal, the message server determines that the first terminal is a terminal that is authorized to subscribe to the second terminal service.
消息服务器根据授权规则,在确定第二终端授权第一终端订阅第二终端的业务时,对即时消息进行复制处理。The message server performs the copy processing on the instant message when determining that the second terminal authorizes the first terminal to subscribe to the service of the second terminal according to the authorization rule.
可选地,在本发明实施例步骤120之前,还包括消息服务器向第一终端发送通知消息的步骤,通过该步骤,可使第一终端确认已对第二终端的业务进行订阅,并在第二终端发送或者接收即时消息时,接收到第二终端发送或接收的即时消息。具体步骤如下:Optionally, before the step 120 of the embodiment of the present invention, the method further includes: sending, by the message server, a notification message to the first terminal, by using the step, the first terminal is configured to confirm that the service of the second terminal has been subscribed, and When the second terminal sends or receives an instant message, it receives an instant message sent or received by the second terminal. Specific steps are as follows:
所述消息服务器向所述第一终端发送通知消息,所述通知消息用于使所述第一终端确认已对所述第二终端的业务进行订阅。The message server sends a notification message to the first terminal, where the notification message is used to confirm that the first terminal has subscribed to the service of the second terminal.
具体地,消息服务器根据第一业务订阅规则,或者授权规则,确定对第二终端的业务进行订阅的第一终端后,消息服务器生成并向第一终端发送通知消息,所述通知消息用于使第一终端确认已对第二终端的业务进行订阅。Specifically, after the message server determines, according to the first service subscription rule or the authorization rule, the first terminal that subscribes to the service of the second terminal, the message server generates and sends a notification message to the first terminal, where the notification message is used to enable The first terminal confirms that the service of the second terminal has been subscribed.
可选地,本发明实施例还包括消息服务器根据存储设备发送的第二订阅消息,向存储设备发送其订阅的消息服务器中终端的即时消息,也即是消息服务器将终端的即时消息复制后转存至存储设备中,通过该步骤,既可实现 即时消息的灵活定制,也可实现即时消息的灵活存储。具体步骤如下:Optionally, the embodiment of the present invention further includes: the message server sends, according to the second subscription message sent by the storage device, the instant message of the terminal in the subscribed message server to the storage device, that is, the message server copies the instant message of the terminal and then transfers Save to the storage device, through this step, you can achieve The flexible customization of instant messaging also enables flexible storage of instant messages. Specific steps are as follows:
所述消息服务器接收存储设备发送的所述存储设备对所述消息服务器接收到的终端的业务进行订阅的第二订阅消息,所述第二订阅消息包括第二业务订阅规则,所述第二业务订阅规则包括所述存储设备订阅的终端的标识信息和所述存储设备的标识信息;Receiving, by the message server, a second subscription message that is sent by the storage device to subscribe to the service of the terminal that is received by the message server, where the second subscription message includes a second service subscription rule, the second service The subscription rule includes the identification information of the terminal subscribed by the storage device and the identification information of the storage device;
根据所述终端的标识信息,所述消息服务器在接收到所述终端与另一终端进行通信的即时消息时,将所述即时消息进行复制处理;And the message server performs the copy processing on the instant message when receiving the instant message that the terminal communicates with another terminal according to the identifier information of the terminal;
根据所述存储设备的标识信息,所述消息服务器向所述存储设备发送复制的所述即时消息,以使得所述存储设备将复制的所述即时消息进行存储。And according to the identifier information of the storage device, the message server sends the copied instant message to the storage device, so that the storage device stores the copied instant message.
具体地,存储设备生存第二订阅消息,所述第二订阅消息包括第二业务订阅规则,所述第二业务订阅规则包括存储设备订阅的终端的标识信息和存储设备的标识信息,所述终端具体为消息服务器接收到的即时消息所对应的终端。Specifically, the storage device survives the second subscription message, the second subscription message includes a second service subscription rule, and the second service subscription rule includes the identifier information of the terminal subscribed by the storage device and the identifier information of the storage device, where the terminal Specifically, the terminal corresponding to the instant message received by the message server.
消息服务器接收第二订阅消息,从第二订阅消息中获取第二订阅规则,并从第二订阅规则中获取终端的标识信息,确定存储设备对某一终端的业务进行订阅。The message server receives the second subscription message, obtains the second subscription rule from the second subscription message, and obtains the identity information of the terminal from the second subscription rule, and determines that the storage device subscribes to the service of the terminal.
根据获取的终端的标识信息,消息服务器在接收到终端与另一终端进行通信的即时消息时,消息服务器将即时消息进行复制处理。According to the obtained identification information of the terminal, when the message server receives the instant message that the terminal communicates with another terminal, the message server performs the copy processing on the instant message.
消息服务器根据存储设备的标识信息,向存储设备发送复制的即时消息,以使得存储设备将复制的即时消息进行存储。The message server sends the copied instant message to the storage device according to the identification information of the storage device, so that the storage device stores the copied instant message.
在本发明实施例中,存储设备还可进行扩容处理,新增的存储设备也可向消息服务器发送第二订阅消息,消息服务器还可根据预设的分发规则,将复制的即时消息向新增的存储设备发送。In the embodiment of the present invention, the storage device may further perform capacity expansion processing, and the newly added storage device may also send a second subscription message to the message server, and the message server may further add the copied instant message according to the preset distribution rule. The storage device is sent.
所述分发规则,具体为由消息服务器预先设定的,将不同终端的即时消息分别存储在不同的存储设备中。The distribution rules are specifically preset by the message server, and the instant messages of different terminals are separately stored in different storage devices.
在本发明实施例中,当存储设备出现故障,或者对终端的业务订阅过期 时,消息服务器不再向存储设备发送复制的即时消息。In the embodiment of the present invention, when the storage device fails, or the service subscription to the terminal expires The message server no longer sends the copied instant message to the storage device.
可选地,在本发明实施例步骤110之后,还包括消息服务器对接收到的订阅消息进行鉴权的步骤。通过该步骤,消息服务器对通过鉴权的订阅消息进行处理,对未通过鉴权的订阅消息不在进行后续处理。Optionally, after step 110 of the embodiment of the present invention, the method further includes: the step of authenticating, by the message server, the received subscription message. Through this step, the message server processes the subscribed message through authentication, and does not perform subsequent processing on the subscribed message that has not passed the authentication.
具体地,消息服务器向第一终端发送鉴权消息,第一终端确定消息服务器在对第一订阅消息进行鉴权处理。第一终端向消息服务器发送鉴权数据,所述鉴权数据具体为证明第一订阅消息合法性的数据。消息服务器根据接收的鉴权数据,识别第一订阅消息是否为合法的订阅消息。当消息服务器确定第一订阅消息为合法的订阅消息时,消息服务器向第一终端发送确认消息,以告知第一终端,其发送的第一订阅消息通过鉴权,消息服务器继续执行后续步骤。Specifically, the message server sends an authentication message to the first terminal, and the first terminal determines that the message server performs authentication processing on the first subscription message. The first terminal sends the authentication data to the message server, where the authentication data is specifically data that proves the legitimacy of the first subscription message. The message server identifies, according to the received authentication data, whether the first subscription message is a legitimate subscription message. When the message server determines that the first subscription message is a valid subscription message, the message server sends an acknowledgement message to the first terminal to inform the first terminal that the first subscription message sent by the first terminal is authenticated, and the message server continues to perform the subsequent steps.
可选地,本发明实施例还包括消息服务器接收第一终端发送的解除订阅消息的步骤。通过该步骤,可使第一终端不再订阅第二终端的即时消息。Optionally, the embodiment of the present invention further includes the step of the message server receiving the unsubscribe message sent by the first terminal. Through this step, the first terminal can be no longer subscribed to the instant message of the second terminal.
具体地,第一终端向消息服务器发送解除订阅消息。消息服务器根据解除订阅消息确定第一终端不再对第二终端业务进行订阅。Specifically, the first terminal sends an unsubscribe message to the message server. The message server determines, according to the unsubscribe message, that the first terminal does not subscribe to the second terminal service.
因此,通过应用本发明实施例提供的处理即时消息的方法,消息服务器根据第一终端发送的第一业务订阅规则,确定第一终端对第二终端的业务进行订阅,并在接收到第二终端与第三终端进行通信的即时消息时,将即时消息进行处理,向第一终端发送复制的即时消息。由于消息服务器将即时消息进行复制后发送,解决了现有技术方案绑定方式死板、不灵活,不利于方案的普及的问题。本发明提供的方案,减少了管理人员额外的工作量,使得消息服务器不再根据管理人员的绑定,可灵活地对即时消息进行处理。Therefore, by applying the method for processing an instant message provided by the embodiment of the present invention, the message server determines, according to the first service subscription rule sent by the first terminal, that the first terminal subscribes to the service of the second terminal, and receives the second terminal. When the instant message communicates with the third terminal, the instant message is processed, and the copied instant message is sent to the first terminal. Because the message server copies and sends the instant message, the problem that the binding method of the prior art solution is rigid and inflexible is unfavorable, which is not conducive to the popularization of the solution. The solution provided by the invention reduces the extra workload of the administrator, so that the message server can no longer flexibly process the instant message according to the binding of the manager.
需要说明的是,前述实施例提供的处理业务订阅消息的方法,可用于但不限制用于下述多个场景。例如,场景1,用户拥有多个终端(例如,PC、PAD、手机),用户使用某一终端使用即时消息业务时,可以利用其他终端订阅该终端的业务,如,订阅该终端接收的消息,当其他用户的终端向该终端发送 即时消息时,该用户的其他终端可同步接收到这些即时消息;场景2,主管出差,希望由秘书对日常工作进行处理。主管使用第一终端设置授权规则,并授权秘书对第一终端的业务进行订阅。秘书使用第二终端对第一终端的业务进行订阅,如,秘书使用第二终端订阅第一终端接收的消息,当其他客户的终端向主管使用的第一终端发送即时消息时,秘书使用的第二终端接收该即时消息,并对即时消息进行处理。主管使用第一终端仍可获取即时消息处理的进展情况;场景3,某一公司对用户提供一个热线号码,该热线号码即为公司的客服电话,多名客服人员利用使用的坐席订阅该热线号码接收的即时消息,当用户的终端向客服电话发送即时消息时,客服人员使用坐席接收该即时消息,并对即时消息进行处理;场景4,系统管理员使用终端订阅某一客服人员的坐席业务,如,系统管理员使用终端坐席接收、发送的消息,当客服人员使用的坐席向外部终端发送即时消息,或是客服人员使用的坐席接收外部终端发送的即时消息时,系统管理员使用终端均可接收该即时消息,以便于系统管理人员根据接收的即时消息对客服人员的服务质量进行检查;场景5,课堂中,老师使用第一终端使用即时消息业务,多名学生使用第二终端订阅老师使用的第一终端的业务,如学生使用第二终端订阅老师使用第一终端发送的消息,当第一终端向向第二终端发送即时消息时,学生使用的第二终端可同步接收到即时消息,进行抢答互动。It should be noted that the method for processing a service subscription message provided by the foregoing embodiment may be used for, but not limited to, the following multiple scenarios. For example, in scenario 1, a user has multiple terminals (for example, a PC, a PAD, or a mobile phone). When a user uses an instant messaging service by using a certain terminal, the user can subscribe to the service of the terminal by using other terminals, for example, subscribing to the message received by the terminal. When other users' terminals send to the terminal In the instant message, the other terminals of the user can receive these instant messages synchronously; in scenario 2, the supervisor travels, and the secretary wants to process the daily work. The supervisor uses the first terminal to set an authorization rule and authorizes the secretary to subscribe to the service of the first terminal. The secretary uses the second terminal to subscribe to the service of the first terminal. For example, the secretary uses the second terminal to subscribe to the message received by the first terminal, and when the terminal of the other client sends an instant message to the first terminal used by the supervisor, the secretary uses the The second terminal receives the instant message and processes the instant message. The supervisor can still obtain the progress of the instant message processing by using the first terminal; in scenario 3, a company provides a hotline number to the user, and the hotline number is the customer service phone number of the company, and multiple customer service personnel subscribe to the hotline number by using the agent used. The received instant message, when the user terminal sends an instant message to the customer service phone, the agent uses the agent to receive the instant message and processes the instant message; in scenario 4, the system administrator uses the terminal to subscribe to the agent service of a customer service agent. For example, the system administrator uses the message received and sent by the terminal agent. When the agent used by the customer service agent sends an instant message to the external terminal, or the agent used by the customer service personnel receives the instant message sent by the external terminal, the system administrator can use the terminal. Receiving the instant message, so that the system administrator checks the service quality of the customer service personnel according to the received instant message; in the classroom 5, the teacher uses the first terminal to use the instant message service, and the plurality of students use the second terminal to subscribe to the teacher. First terminal business, such as students The teacher terminal subscription using the first message sent by the second terminal, when the first terminal sends an instant message to a second terminal, the second terminal may be synchronized students receiving instant messages, answer in interaction.
实施例二Embodiment 2
为便于对本发明实施例的理解,下面将结合附图以具体实施例做进一步的解释说明,实施例并不构成对本发明实施例的限定。In order to facilitate the understanding of the embodiments of the present invention, the embodiments of the present invention are not to be construed as limiting.
下面以图2为例详细说明本发明实施例二提供的处理即时消息的方法,图2为本发明实施例二提供的处理即时消息的方法流程图,在本发明实施例中实施主体为第一终端。如图2所示,该实施例具体包括以下步骤:The following is a detailed description of the method for processing an instant message according to the second embodiment of the present invention, and FIG. 2 is a flowchart of a method for processing an instant message according to the second embodiment of the present invention. terminal. As shown in FIG. 2, the embodiment specifically includes the following steps:
步骤210、第一终端生成用于所述第一终端对第二终端的业务进行订阅的订阅消息。 Step 210: The first terminal generates a subscription message for the first terminal to subscribe to the service of the second terminal.
具体地,当第一终端准备订阅第二终端的业务时,第一终端生成用于对第二终端的业务进行订阅的订阅消息。所述订阅消息包括业务订阅规则,所述业务订阅规则包括第一终端的标识信息和第二终端的标识信息。Specifically, when the first terminal is ready to subscribe to the service of the second terminal, the first terminal generates a subscription message for subscribing to the service of the second terminal. The subscription message includes a service subscription rule, and the service subscription rule includes identifier information of the first terminal and identifier information of the second terminal.
进一步地,所述业务订阅规则的具体实现形式在前述实施例一中已详细说明,在此不再复述。Further, the specific implementation form of the service subscription rule is described in detail in the foregoing first embodiment, and is not repeated herein.
步骤220、第一终端向消息服务器发送所述订阅消息。Step 220: The first terminal sends the subscription message to a message server.
步骤230、所述第一终端接收所述消息服务器根据所述订阅消息发送的所述消息服务器所接收的所述第二终端与第三终端进行通信的即时消息。Step 230: The first terminal receives an instant message that is sent by the message server that is sent by the message server according to the subscription message, and the second terminal communicates with the third terminal.
具体地,消息服务器从业务订阅规则中获取第二终端的标识信息,确定第一终端对第二终端的业务进行订阅,消息服务器在第二终端发送或者接收即时消息时将即时消息进行复制处理。Specifically, the message server obtains the identifier information of the second terminal from the service subscription rule, and determines that the first terminal subscribes to the service of the second terminal, and the message server performs the copy processing on the instant message when the second terminal sends or receives the instant message.
消息服务器根据第一终端的标识信息,向第一终端发送复制的即时消息。The message server sends the copied instant message to the first terminal according to the identifier information of the first terminal.
可选地,所述订阅消息还包括用于指示订阅第二终端发送或是接收的即时消息的指示信息;Optionally, the subscription message further includes indication information for indicating an instant message that is subscribed to or received by the second terminal;
所述指示信息用于使消息服务器确定第一终端订阅的是第二终端发送的即时消息或是第二终端接收的即时消息;The indication information is used to enable the message server to determine whether the first terminal subscribes to an instant message sent by the second terminal or an instant message received by the second terminal;
所述第一终端接收所述消息服务器根据所述订阅消息发送的所述消息服务器所接收的所述第二终端与第三终端进行通信的即时消息具体包括:Receiving, by the first terminal, the instant message that the second terminal communicates with the third terminal that is received by the message server that is sent by the message server according to the subscription message includes:
第一终端接收消息服务器根据指示信息发送的消息服务器所接收的第二终端发送的即时消息,或者;第一终端接收消息服务器根据指示信息发送的消息服务器所接收的第二终端接收的即时消息。The first terminal receives the instant message sent by the second terminal received by the message server sent by the message server according to the indication information, or the first terminal receives the instant message received by the second terminal received by the message server sent by the message server according to the indication information.
因此,通过应用本发明实施例提供的处理即时消息的方法,消息服务器根据第一终端发送的业务订阅规则,确定第一终端对第二终端的业务进行订阅,并在接收到第二终端与第三终端进行通信的即时消息时,将即时消息进行处理,向第一终端发送复制的即时消息。由于消息服务器将即时消息进行复制后发送,解决了现有技术方案绑定方式死板、不灵活,不利于方案的普 及的问题。本发明提供的方案,减少了管理人员额外的工作量,使得消息服务器不再根据管理人员的绑定,可灵活地对即时消息进行处理。Therefore, by applying the method for processing an instant message provided by the embodiment of the present invention, the message server determines, according to the service subscription rule sent by the first terminal, that the first terminal subscribes to the service of the second terminal, and receives the second terminal and the second terminal. When the three terminals communicate with each other, the instant message is processed, and the copied instant message is sent to the first terminal. Because the message server copies and sends the instant message, the binding method of the prior art solution is rigid and inflexible, which is not conducive to the solution. And the problem. The solution provided by the invention reduces the extra workload of the administrator, so that the message server can no longer flexibly process the instant message according to the binding of the manager.
实施例三Embodiment 3
相应地,本发明实施例还提供了一种消息服务器,其实现结构如图3所示,用于实现本发明前述实施例中的处理即时消息的方法。所述消息服务器包括以下单元:接收单元310,复制单元320以及发送单元330。Correspondingly, the embodiment of the present invention further provides a message server, and the implementation structure thereof is as shown in FIG. 3, and is used to implement the method for processing an instant message in the foregoing embodiment of the present invention. The message server includes the following units: a receiving unit 310, a copy unit 320, and a transmitting unit 330.
所述消息服务器包括的接收单元310,用于接收第一终端发送的所述第一终端对第二终端的业务进行订阅的第一订阅消息,所述第一订阅消息包括第一业务订阅规则,所述第一业务订阅规则包括第一终端的标识信息和所述第二终端的标识信息,并将所述第一终端的标识信息传输至发送单元,将第二终端的标识信息传输至复制单元;The receiving unit 310 of the message server is configured to receive, by the first terminal, a first subscription message that is subscribed by the first terminal to a service of the second terminal, where the first subscription message includes a first service subscription rule. The first service subscription rule includes the identifier information of the first terminal and the identifier information of the second terminal, and transmits the identifier information of the first terminal to the sending unit, and transmits the identifier information of the second terminal to the copy unit. ;
复制单元320,用于从所述接收单元接收所述第二终端的标识信息,根据所述第二终端的标识信息,在接收到所述第二终端与第三终端进行通信的即时消息时,将所述即时消息进行复制处理;The copying unit 320 is configured to receive the identifier information of the second terminal from the receiving unit, and according to the identifier information of the second terminal, when receiving the instant message that the second terminal communicates with the third terminal, Copying the instant message;
发送单元330,用于从所述接收单元接收所述第一终端的标识信息,根据所述第一终端的标识信息,向所述第一终端发送复制的所述即时消息。The sending unit 330 is configured to receive the identifier information of the first terminal from the receiving unit, and send the copied instant message to the first terminal according to the identifier information of the first terminal.
所述接收单310还用于,接收所述第二终端发送的订阅授权消息,所述订阅授权消息包括授权规则,所述授权规则包括被授权订阅所述第二终端业务的终端的标识信息和所述第二终端的标识信息。The receiving order 310 is further configured to receive a subscription authorization message sent by the second terminal, where the subscription authorization message includes an authorization rule, where the authorization rule includes identifier information of a terminal that is authorized to subscribe to the second terminal service, and Identification information of the second terminal.
进一步地,如图4所示,所述消息服务器还包括:判断单元410,用于判断所述第一终端的标识信息是否包含在所述授权规则中包括的所述终端的标识信息中;Further, as shown in FIG. 4, the message server further includes: a determining unit 410, configured to determine whether the identifier information of the first terminal is included in the identifier information of the terminal included in the authorization rule;
第一确定单元420,用于如果所述第一终端的标识信息包含在所述终端的标识信息中,则确定所述第一终端为被授权订阅所述第二终端业务的终端;The first determining unit 420 is configured to: if the identifier information of the first terminal is included in the identifier information of the terminal, determine that the first terminal is a terminal that is authorized to subscribe to the second terminal service;
所述复制单元320具体用于,根据所述业务授权规则,在确定所述第二终端授权所述第一终端订阅所述第二终端的业务时,对所述即时消息进行复 制处理。The copying unit 320 is configured to: when determining, according to the service authorization rule, that the second terminal authorizes the first terminal to subscribe to the service of the second terminal, Processing.
所述接收单元310接收的所述第一业务订阅规则还包括用于指示订阅所述第二终端发送或是接收的即时消息的指示信息;The first service subscription rule received by the receiving unit 310 further includes indication information for indicating an instant message subscribed to or received by the second terminal;
进一步地,如图5所示,所述消息服务器还包括:第二确定单元510,用于根据所述指示信息,确定所述第一终端订阅的是所述第二终端发送的即时消息或是所述第二终端接收的即时消息;Further, as shown in FIG. 5, the message server further includes: a second determining unit 510, configured to determine, according to the indication information, that the first terminal subscribes to an instant message sent by the second terminal, or The instant message received by the second terminal;
所述复制单元320具体用于,在所述第二确定单元510确定所述第一终端订阅的是所述第二终端发送的即时消息时,将所述第二终端向所述第三终端发送的即时消息进行复制处理;The copying unit 320 is specifically configured to send the second terminal to the third terminal when the second determining unit 510 determines that the first terminal subscribes to an instant message sent by the second terminal. Instant messaging for copy processing;
在所述第二确定单元510确定所述第一终端订阅的是所述第二终端接收的即时消息时,将所述第二终端接收的所述第三终端发送的即时消息进行复制处理。When the second determining unit 510 determines that the first terminal subscribes to the instant message received by the second terminal, the instant message sent by the third terminal received by the second terminal is copied.
所述接收单元310还用于,接收存储设备发送的所述存储设备对所述消息服务器中终端的业务进行订阅的第二订阅消息,所述第二订阅消息包括第二业务订阅规则,所述第二业务订阅规则包括所述存储设备订阅的终端的标识信息和所述存储设备的标识信息;The receiving unit 310 is further configured to receive, by the storage device, a second subscription message that the storage device subscribes to a service of the terminal in the message server, where the second subscription message includes a second service subscription rule, where The second service subscription rule includes the identifier information of the terminal subscribed by the storage device and the identifier information of the storage device;
所述复制单元320还用于,根据所述终端的标识信息,在接收到所述终端与另一终端进行通信的即时消息时,将所述即时消息进行复制处理;The copying unit 320 is further configured to: when receiving an instant message that the terminal communicates with another terminal according to the identifier information of the terminal, perform the copy processing on the instant message;
所述发送单元330还用于,根据所述存储设备的标识信息,向所述存储设备发送复制的所述业即时消息,以使得所述存储设备将复制的所述即时消息进行存储。The sending unit 330 is further configured to send the copied instant message to the storage device according to the identifier information of the storage device, so that the storage device stores the copied instant message.
因此,通过应用本发明实施例提供的消息服务器,消息服务器根据第一终端发送的第一业务订阅规则,确定第一终端对第二终端的业务进行订阅,并在接收到第二终端与第三终端进行通信的即时消息时,将即时消息进行处理,向第一终端发送复制的即时消息。由于消息服务器将即时消息进行复制后发送,解决了现有技术方案绑定方式死板、不灵活,不利于方案的普及的 问题。本发明提供的方案,减少了管理人员额外的工作量,使得消息服务器不再根据管理人员的绑定,可灵活地对即时消息进行处理。Therefore, by applying the message server provided by the embodiment of the present invention, the message server determines, according to the first service subscription rule sent by the first terminal, that the first terminal subscribes to the service of the second terminal, and receives the second terminal and the third terminal. When the terminal performs an instant message for communication, the instant message is processed, and the copied instant message is sent to the first terminal. Because the message server copies and sends the instant message, the binding method of the prior art solution is rigid and inflexible, which is not conducive to the popularization of the solution. problem. The solution provided by the invention reduces the extra workload of the administrator, so that the message server can no longer flexibly process the instant message according to the binding of the manager.
实施例四Embodiment 4
相应地,本发明实施例还提供了一种终端器,其实现结构如图6所示,用于实现本发明前述实施例中的处理即时消息的方法。所述终端包括以下单元:订阅单元610、发送单元620以及接收单元630。Correspondingly, the embodiment of the present invention further provides a terminal device, and the implementation structure thereof is as shown in FIG. 6 for implementing the method for processing an instant message in the foregoing embodiment of the present invention. The terminal includes the following units: a subscription unit 610, a sending unit 620, and a receiving unit 630.
所述终端包括订阅单元610,用于生成用于所述第一终端对第二终端的业务进行订阅的订阅消息,并将所述订阅消息传输至发送单元;The terminal includes a subscription unit 610, configured to generate a subscription message for the first terminal to subscribe to the service of the second terminal, and transmit the subscription message to the sending unit.
发送单元620,用于从所述订阅单元接收所述订阅消息,并向消息服务器发送所述订阅消息;The sending unit 620 is configured to receive the subscription message from the subscription unit, and send the subscription message to a message server;
接收单元630,用于接收所述消息服务器根据所述订阅消息发送的所述消息服务器所接收的所述第二终端与第三终端进行通信的即时消息。The receiving unit 630 is configured to receive an instant message that is sent by the message server that is sent by the message server according to the subscription message, and the second terminal communicates with the third terminal.
所述订阅单元610生成的所述订阅消息还包括用于指示订阅所述第二终端发送或是接收的即时消息的指示信息;The subscription message generated by the subscribing unit 610 further includes indication information for indicating an instant message subscribed to or received by the second terminal;
所述指示信息用于使所述消息服务器确定所述终端订阅的是所述第一终端发送的即时消息或是所述第一终端接收的即时消息;The indication information is used to enable the message server to determine that the terminal subscribes to an instant message sent by the first terminal or an instant message received by the first terminal;
所述接收单元630具体用于,接收所述消息服务器根据所述指示信息发送的所述消息服务器所接收的所述第一终端发送的即时消息,或者;The receiving unit 630 is specifically configured to receive, by the message server, the instant message sent by the first terminal that is sent by the message server according to the indication information, or
接收所述消息服务器根据所述指示信息发送的所述消息服务器所接收的所述第一终端接收的即时消息。Receiving an instant message received by the first terminal received by the message server sent by the message server according to the indication information.
因此,通过应用本发明实施例提供的终端,消息服务器根据终端发送的业务订阅规则,确定终端对第一终端的业务进行订阅,并在接收到第一终端与第二终端进行通信的即时消息时,将即时消息进行处理,向终端发送复制的即时消息。由于消息服务器将即时消息进行复制后发送,解决了现有技术方案绑定方式死板、不灵活,不利于方案的普及的问题。本发明提供的方案,减少了管理人员额外的工作量,使得消息服务器不再根据管理人员的绑定, 可灵活地对即时消息进行处理Therefore, by applying the terminal provided by the embodiment of the present invention, the message server determines, according to the service subscription rule sent by the terminal, the terminal to subscribe to the service of the first terminal, and when receiving the instant message that the first terminal communicates with the second terminal, The instant message is processed to send the copied instant message to the terminal. Because the message server copies and sends the instant message, the problem that the binding method of the prior art solution is rigid and inflexible is unfavorable, which is not conducive to the popularization of the solution. The solution provided by the invention reduces the extra workload of the manager, so that the message server is no longer based on the binding of the manager. Flexible handling of instant messages
实施例五Embodiment 5
另外,本发明实施例三提供的消息服务器还可以采用的实现方式如下,用以实现前述本发明实施例中的处理即时消息的方法,如图7所示,所述消息服务器包括:网络接口710、处理器720和存储器730。系统总线740用于连接网络接口710、处理器720和存储器730。In addition, the message server provided by the third embodiment of the present invention may be implemented as follows to implement the method for processing an instant message in the foregoing embodiment of the present invention. As shown in FIG. 7, the message server includes: a network interface 710. , processor 720 and memory 730. System bus 740 is used to connect network interface 710, processor 720, and memory 730.
网络接口710用于与第一终端、第二终端进行交互通信。The network interface 710 is configured to perform interaction communication with the first terminal and the second terminal.
存储器730可以是永久存储器,例如硬盘驱动器和闪存,存储器730用于存储应用程序,所述应用程序包括可用于使处理器720访问并执行如下指令: Memory 730 can be a persistent storage, such as a hard drive and flash memory, and memory 730 is used to store applications that include instructions for enabling processor 720 to access and execute the following instructions:
接收第一终端发送的所述第一终端对第二终端的业务进行订阅的第一订阅消息,所述第一订阅消息包括第一业务订阅规则,所述第一业务订阅规则包括所述第一终端的标识信息和所述第二终端的标识信息;Receiving, by the first terminal, a first subscription message that the first terminal subscribes to the service of the second terminal, where the first subscription message includes a first service subscription rule, and the first service subscription rule includes the first Identification information of the terminal and identification information of the second terminal;
根据所述第二终端的标识信息,在接收到所述第二终端与第三终端进行通信的即时消息时,将所述即时消息进行复制处理;And, according to the identifier information of the second terminal, when the instant message that the second terminal communicates with the third terminal is received, the instant message is copied;
根据所述第一终端的标识信息,向所述第一终端发送复制的所述即时消息。And transmitting, according to the identification information of the first terminal, the copied instant message to the first terminal.
进一步地,所述存储器730存储的应用程序还包括可用于使所述处理器720执行以下过程的指令:Further, the application stored by the memory 730 further includes instructions that can be used to cause the processor 720 to perform the following process:
接收第二终端发送的订阅授权消息,所述订阅授权消息包括授权规则,所述授权规则包括被授权订阅所述第二终端业务的终端的标识信息和所述第二终端的标识信息;And receiving, by the second terminal, a subscription authorization message, where the subscription authorization message includes an authorization rule, where the authorization rule includes identifier information of a terminal that is authorized to subscribe to the second terminal service, and identifier information of the second terminal;
进一步地,所述存储器730存储的应用程序还包括可用于使所述处理器720执行以下过程的指令:Further, the application stored by the memory 730 further includes instructions that can be used to cause the processor 720 to perform the following process:
判断所述第一终端的标识信息是否包含在所述授权规则中包括的所述终端的标识信息中; Determining whether the identifier information of the first terminal is included in the identifier information of the terminal included in the authorization rule;
如果所述第一终端的标识信息包含在所述终端的标识信息中,则确定所述第一终端为被授权订阅所述第二终端业务的终端;If the identifier information of the first terminal is included in the identifier information of the terminal, determining that the first terminal is a terminal that is authorized to subscribe to the second terminal service;
进一步地,所述存储器730存储的应用程序可用于使所述处理器720执行在接收到所述第二终端与第三终端进行通信的即时消息时将所述即时消息进行复制处理过程的指令具体为执行以下过程的指令:Further, the application stored by the memory 730 can be used to cause the processor 720 to execute an instruction to perform the copy processing process of the instant message when receiving the instant message that the second terminal communicates with the third terminal. Instructions for performing the following procedures:
根据所述授权规则,在确定所述第二终端授权所述第一终端订阅所述第二终端的业务时,对所述即时消息进行复制处理。According to the authorization rule, when it is determined that the second terminal authorizes the first terminal to subscribe to the service of the second terminal, the instant message is copied.
进一步地,所述第一业务订阅规则还包括用于指示订阅所述第二终端发送或是接收的即时消息的指示信息;Further, the first service subscription rule further includes indication information for indicating an instant message subscribed to or received by the second terminal;
进一步地,所述存储器730存储的应用程序还包括可用于使所述处理器720执行以下过程的指令:Further, the application stored by the memory 730 further includes instructions that can be used to cause the processor 720 to perform the following process:
根据所述指示信息,确定所述第一终端订阅的是所述第二终端发送的即时消息或是所述第二终端接收的即时消息;Determining, according to the indication information, that the first terminal subscribes to an instant message sent by the second terminal or an instant message received by the second terminal;
进一步地,所述存储器730存储的应用程序可用于使所述处理器720执行在接收到所述第二终端与第三终端进行通信的即时消息时将所述即时消息进行复制处理过程的指令具体为执行以下过程的指令:Further, the application stored by the memory 730 can be used to cause the processor 720 to execute an instruction to perform the copy processing process of the instant message when receiving the instant message that the second terminal communicates with the third terminal. Instructions for performing the following procedures:
如果确定所述第一终端订阅的是所述第二终端发送的即时消息,则将所述第二终端向所述第三终端发送的即时消息进行复制处理;If it is determined that the first terminal subscribes to the instant message sent by the second terminal, the instant message sent by the second terminal to the third terminal is copied;
如果确定所述第一终端订阅的是所述第二终端接收的即时消息,则将所述第二终端接收的所述第三终端发送的即时消息进行复制处理。If it is determined that the first terminal subscribes to the instant message received by the second terminal, the instant message sent by the third terminal received by the second terminal is copied.
进一步地,所述存储器730存储的应用程序还包括可用于使所述处理器720执行以下过程的指令:Further, the application stored by the memory 730 further includes instructions that can be used to cause the processor 720 to perform the following process:
接收存储设备发送的所述存储设备对所述装置接收到的终端的业务进行订阅的第二订阅消息,所述第二订阅消息包括第二业务订阅规则,所述第二业务订阅规则包括所述存储设备订阅的终端的标识信息和所述存储设备的标识信息; Receiving, by the storage device, a second subscription message that the storage device subscribes to the service of the terminal received by the device, the second subscription message includes a second service subscription rule, and the second service subscription rule includes the The identification information of the terminal subscribed by the storage device and the identification information of the storage device;
根据所述终端的标识信息,在接收到所述终端与另一终端进行通信的即时消息时,将所述即时消息进行复制处理;And, according to the identifier information of the terminal, when the instant message that the terminal communicates with another terminal is received, the instant message is copied and processed;
根据所述存储设备的标识信息,向所述存储设备发送复制的所述即时消息,以使得所述存储设备将复制的所述即时消息进行存储。And transmitting, according to the identification information of the storage device, the copied instant message to the storage device, so that the storage device stores the copied instant message.
因此,通过应用本发明实施例提供的消息服务器,消息服务器根据第一终端发送的第一业务订阅规则,确定第一终端对第二终端的业务进行订阅,并在接收到第二终端与第三终端进行通信的即时消息时,将即时消息进行处理,向第一终端发送复制的即时消息。由于消息服务器将即时消息进行复制后发送,解决了现有技术方案绑定方式死板、不灵活,不利于方案的普及的问题。本发明提供的方案,减少了管理人员额外的工作量,使得消息服务器不再根据管理人员的绑定,可灵活地对即时消息进行处理。Therefore, by applying the message server provided by the embodiment of the present invention, the message server determines, according to the first service subscription rule sent by the first terminal, that the first terminal subscribes to the service of the second terminal, and receives the second terminal and the third terminal. When the terminal performs an instant message for communication, the instant message is processed, and the copied instant message is sent to the first terminal. Because the message server copies and sends the instant message, the problem that the binding method of the prior art solution is rigid and inflexible is unfavorable, which is not conducive to the popularization of the solution. The solution provided by the invention reduces the extra workload of the administrator, so that the message server can no longer flexibly process the instant message according to the binding of the manager.
实施例六Embodiment 6
另外,本发明实施例四提供的终端还可以采用的实现方式如下,用以实现前述本发明实施例中的处理即时消息的方法,如图8所示,所述终端包括:网络接口810、处理器820和存储器830。系统总线840用于连接网络接口810、处理器820和存储器830。In addition, the terminal provided by the fourth embodiment of the present invention may be implemented as follows. The method for processing an instant message in the foregoing embodiment of the present invention is implemented. As shown in FIG. 8, the terminal includes: a network interface 810, and processing. 820 and memory 830. System bus 840 is used to connect network interface 810, processor 820, and memory 830.
网络接口810用于与消息服务器进行交互通信。The network interface 810 is for interactive communication with a message server.
存储器830可以是永久存储器,例如硬盘驱动器和闪存,存储器830用于存储应用程序,所述应用程序包括可用于使处理器820访问并执行如下指令: Memory 830 can be a persistent storage, such as a hard drive and flash memory, and memory 830 is used to store applications, which include instructions that can be used to cause processor 820 to access and execute the following instructions:
生成用于所述终端对第一终端的业务进行订阅的订阅消息;Generating a subscription message for the terminal to subscribe to the service of the first terminal;
向消息服务器发送所述订阅消息;Sending the subscription message to a message server;
接收所述消息服务器根据所述订阅消息发送的所述消息服务器所接收的所述第一终端与第二终端进行通信的即时消息。Receiving, by the message server, an instant message that is received by the message server that is sent by the message server according to the subscription message to communicate with the second terminal.
进一步地,所述订阅消息还包括用于指示订阅所述第一终端发送或是接收的即时消息的指示信息; Further, the subscription message further includes indication information for indicating an instant message subscribed to or received by the first terminal;
所述指示信息用于使所述消息服务器确定所述终端订阅的是所述第一终端发送的即时消息或是所述第一终端接收的即时消息;The indication information is used to enable the message server to determine that the terminal subscribes to an instant message sent by the first terminal or an instant message received by the first terminal;
进一步地,所述存储器830存储的应用程序可用于使所述处理器820执行接收所述消息服务器根据所述订阅消息发送的所述消息服务器所接收的所述第一终端与第二终端进行通信的即时消息过程的指令具体为执行以下过程的指令:Further, the application stored by the memory 830 can be used to cause the processor 820 to perform communication with the second terminal received by the message server that is received by the message server according to the subscription message. The instructions of the instant messaging process are specifically instructions that perform the following process:
接收所述消息服务器根据所述指示信息发送的所述消息服务器所接收的所述第一终端发送的即时消息,或者;Receiving, by the message server, the instant message sent by the first terminal that is sent by the message server according to the indication information, or
接收所述消息服务器根据所述指示信息发送的所述消息服务器所接收的所述第一终端接收的即时消息。Receiving an instant message received by the first terminal received by the message server sent by the message server according to the indication information.
因此,通过应用本发明实施例提供的终端,消息服务器根据终端发送的业务订阅规则,确定终端对第一终端的业务进行订阅,并在接收到第一终端与第二终端进行通信的即时消息时,将即时消息进行处理,向终端发送复制的即时消息。由于消息服务器将即时消息进行复制后发送,解决了现有技术方案绑定方式死板、不灵活,不利于方案的普及的问题。本发明提供的方案,减少了管理人员额外的工作量,使得消息服务器不再根据管理人员的绑定,可灵活地对即时消息进行处理。Therefore, by applying the terminal provided by the embodiment of the present invention, the message server determines, according to the service subscription rule sent by the terminal, the terminal to subscribe to the service of the first terminal, and when receiving the instant message that the first terminal communicates with the second terminal, The instant message is processed to send the copied instant message to the terminal. Because the message server copies and sends the instant message, the problem that the binding method of the prior art solution is rigid and inflexible is unfavorable, which is not conducive to the popularization of the solution. The solution provided by the invention reduces the extra workload of the administrator, so that the message server can no longer flexibly process the instant message according to the binding of the manager.
实施例七Example 7
相应地,本发明实施例器七还提供了一种处理即时消息的系统,如图9所示,所述系统包括,本发明实施例三提供的消息服务器以及本发明实施例四提供的终端;Correspondingly, the seventh embodiment of the present invention further provides a system for processing an instant message. As shown in FIG. 9, the system includes a message server provided by Embodiment 3 of the present invention and a terminal provided by Embodiment 4 of the present invention;
或者,所述系统包括:本发明实施例五提供的消息服务器以及本发明实施例六提供的终端。Or the system includes: the message server provided in Embodiment 5 of the present invention and the terminal provided in Embodiment 6 of the present invention.
进一步地,所述系统还包括:被订阅终端,所述被订阅终端具体为被所述终端进行业务订阅的终端。Further, the system further includes: a subscribed terminal, where the subscribed terminal is specifically a terminal that is subscribed to by the terminal.
在本发明实施例中,终端、被订阅终端可具体为PC机、智能手机、PAD 等等。In the embodiment of the present invention, the terminal and the subscribed terminal may be specifically a PC, a smart phone, and a PAD. and many more.
因此,通过应用本发明实施例提供的处理即时消息的系统,消息服务器根据终端发送的第一业务订阅规则,确定终端对被订阅终端的业务进行订阅,并在接收到被订阅终端与另一终端进行通信的即时消息时,将即时消息进行处理,向终端发送复制的即时消息。由于消息服务器将即时消息进行复制后发送,解决了现有技术方案绑定方式死板、不灵活,不利于方案的普及的问题。本发明提供的方案,减少了管理人员额外的工作量,使得消息服务器不再根据管理人员的绑定,可灵活地对即时消息进行处理。Therefore, by applying the system for processing an instant message provided by the embodiment of the present invention, the message server determines, according to the first service subscription rule sent by the terminal, the terminal subscribes to the service of the subscribed terminal, and receives the subscribed terminal and another terminal. When an instant message is communicated, the instant message is processed to send the copied instant message to the terminal. Because the message server copies and sends the instant message, the problem that the binding method of the prior art solution is rigid and inflexible is unfavorable, which is not conducive to the popularization of the solution. The solution provided by the invention reduces the extra workload of the administrator, so that the message server can no longer flexibly process the instant message according to the binding of the manager.
专业人员应该还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。A person skilled in the art should further appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both, in order to clearly illustrate hardware and software. Interchangeability, the composition and steps of the various examples have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
结合本文中所公开的实施例描述的方法或算法的步骤可以用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of a method or algorithm described in connection with the embodiments disclosed herein can be implemented in hardware, a software module executed by a processor, or a combination of both. The software module can be placed in random access memory (RAM), memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or technical field. Any other form of storage medium known.
以上所述的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 The specific embodiments of the present invention have been described in detail with reference to the preferred embodiments of the present invention. All modifications, equivalent substitutions, improvements, etc., made within the spirit and scope of the invention are intended to be included within the scope of the invention.

Claims (14)

  1. 一种处理即时消息的方法,其特征在于,所述方法包括:A method for processing an instant message, the method comprising:
    消息服务器接收第一终端发送的所述第一终端对第二终端的业务进行订阅的第一订阅消息,所述第一订阅消息包括第一业务订阅规则,所述第一业务订阅规则包括所述第一终端的标识信息和所述第二终端的标识信息;Receiving, by the first terminal, a first subscription message that is subscribed by the first terminal to the service of the second terminal, where the first subscription message includes a first service subscription rule, and the first service subscription rule includes the Identification information of the first terminal and identification information of the second terminal;
    根据所述第二终端的标识信息,所述消息服务器在接收到所述第二终端与第三终端进行通信的即时消息时,将所述即时消息进行复制处理;And the message server performs the copy processing on the instant message when receiving the instant message that the second terminal communicates with the third terminal according to the identifier information of the second terminal;
    根据所述第一终端的标识信息,所述消息服务器向所述第一终端发送复制的所述即时消息。And the message server sends the copied instant message to the first terminal according to the identifier information of the first terminal.
  2. 根据权利要求1所述的处理即时消息的方法,其特征在于,所述消息服务器接收第一终端发送的所述第一终端对第二终端的业务进行订阅的第一订阅消息之前包括:The method for processing an instant message according to claim 1, wherein the message server includes: before receiving, by the first terminal, the first subscription message that the first terminal subscribes to the service of the second terminal:
    所述消息服务器接收所述第二终端发送的订阅授权消息,所述订阅授权消息包括授权规则,所述授权规则包括被授权订阅所述第二终端业务的终端的标识信息和所述第二终端的标识信息;Receiving, by the message server, a subscription authorization message sent by the second terminal, where the subscription authorization message includes an authorization rule, where the authorization rule includes identifier information of a terminal authorized to subscribe to the second terminal service, and the second terminal Identification information;
    所述消息服务器接收第一终端发送的所述第一终端对第二终端的业务进行订阅的第一订阅消息之后还包括:After receiving the first subscription message that the first terminal sends the service of the second terminal to the second terminal, the message server further includes:
    所述消息服务器判断所述第一终端的标识信息是否包含在所述授权规则中包括的所述终端的标识信息中;Determining, by the message server, the identifier information of the first terminal in the identifier information of the terminal included in the authorization rule;
    如果所述第一终端的标识信息包含在所述终端的标识信息中,则所述消息服务器确定所述第一终端为被授权订阅所述第二终端业务的终端;If the identifier information of the first terminal is included in the identifier information of the terminal, the message server determines that the first terminal is a terminal that is authorized to subscribe to the second terminal service;
    所述消息服务器在接收到所述第二终端与第三终端进行通信的即时消息时将所述即时消息进行复制处理具体包括:When the message server receives the instant message that the second terminal communicates with the third terminal, the copying the instant message specifically includes:
    根据所述授权规则,所述消息服务器在确定所述第二终端授权所述第一终端订阅所述第二终端的业务时,对所述即时消息进行复制处理。And the message server performs a copy process on the instant message when determining that the second terminal authorizes the first terminal to subscribe to the service of the second terminal according to the authorization rule.
  3. 根据权利要求1所述的处理即时消息的方法,其特征在于,所述第一 业务订阅规则还包括用于指示订阅所述第二终端发送或是接收的即时消息的指示信息;The method of processing an instant message according to claim 1, wherein said first The service subscription rule further includes indication information for indicating an instant message subscribed to or received by the second terminal;
    所述消息服务器接收第一终端发送的所述第一终端对第二终端的业务进行订阅的第一订阅消息之后还包括:After receiving the first subscription message that the first terminal sends the service of the second terminal to the second terminal, the message server further includes:
    根据所述指示信息,所述消息服务器确定所述第一终端订阅的是所述第二终端发送的即时消息或是所述第二终端接收的即时消息;Determining, according to the indication information, that the first terminal subscribes to an instant message sent by the second terminal or an instant message received by the second terminal;
    所述消息服务器在接收到所述第二终端与第三终端进行通信的即时消息时将所述即时消息进行复制处理具体包括:When the message server receives the instant message that the second terminal communicates with the third terminal, the copying the instant message specifically includes:
    如果所述消息服务器确定所述第一终端订阅的是所述第二终端发送的即时消息,则所述消息服务器将所述第二终端向所述第三终端发送的即时消息进行复制处理;If the message server determines that the first terminal subscribes to the instant message sent by the second terminal, the message server performs a copy process on the instant message sent by the second terminal to the third terminal;
    如果所述消息服务器确定所述第一终端订阅的是所述第二终端接收的即时消息,则所述消息服务器将所述第二终端接收的所述第三终端发送的即时消息进行复制处理。If the message server determines that the first terminal subscribes to the instant message received by the second terminal, the message server performs a copy process on the instant message sent by the third terminal received by the second terminal.
  4. 根据权利要求1所述的处理即时消息的方法,其特征在于,所述方法还包括:The method of processing an instant message according to claim 1, wherein the method further comprises:
    所述消息服务器接收存储设备发送的所述存储设备对所述消息服务器接收到的终端的业务进行订阅的第二订阅消息,所述第二订阅消息包括第二业务订阅规则,所述第二业务订阅规则包括所述存储设备订阅的终端的标识信息和所述存储设备的标识信息;Receiving, by the message server, a second subscription message that is sent by the storage device to subscribe to the service of the terminal that is received by the message server, where the second subscription message includes a second service subscription rule, the second service The subscription rule includes the identification information of the terminal subscribed by the storage device and the identification information of the storage device;
    根据所述终端的标识信息,所述消息服务器在接收到所述终端与另一终端进行通信的即时消息时,将所述即时消息进行复制处理;And the message server performs the copy processing on the instant message when receiving the instant message that the terminal communicates with another terminal according to the identifier information of the terminal;
    根据所述存储设备的标识信息,所述消息服务器向所述存储设备发送复制的所述即时消息,以使得所述存储设备将复制的所述即时消息进行存储。And according to the identifier information of the storage device, the message server sends the copied instant message to the storage device, so that the storage device stores the copied instant message.
  5. 一种处理即时消息的方法,其特征在于,所述方法包括:A method for processing an instant message, the method comprising:
    第一终端生成用于所述第一终端对第二终端的业务进行订阅的订阅消 息;The first terminal generates a subscription for the first terminal to subscribe to the service of the second terminal interest;
    所述第一终端向消息服务器发送所述订阅消息;Sending, by the first terminal, the subscription message to a message server;
    所述第一终端接收所述消息服务器根据所述订阅消息发送的所述消息服务器所接收的所述第二终端与第三终端进行通信的即时消息。The first terminal receives an instant message that the second server receives communication with the third terminal that is received by the message server that is sent by the message server according to the subscription message.
  6. 根据权利要求5所述的处理即时消息的方法,其特征在于,所述订阅消息还包括用于指示订阅所述第二终端发送或是接收的即时消息的指示信息;The method for processing an instant message according to claim 5, wherein the subscription message further includes indication information for indicating an instant message subscribed to or received by the second terminal;
    所述指示信息用于使所述消息服务器确定所述第一终端订阅的是所述第二终端发送的即时消息或是所述第二终端接收的即时消息;The indication information is used to enable the message server to determine that the first terminal subscribes to an instant message sent by the second terminal or an instant message received by the second terminal;
    所述第一终端接收所述消息服务器根据所述订阅消息发送的所述消息服务器所接收的所述第二终端与第三终端进行通信的即时消息具体包括:Receiving, by the first terminal, the instant message that the second terminal communicates with the third terminal that is received by the message server that is sent by the message server according to the subscription message includes:
    所述第一终端接收所述消息服务器根据所述指示信息发送的所述消息服务器所接收的所述第二终端发送的即时消息,或者;Receiving, by the first terminal, an instant message sent by the second terminal that is sent by the message server according to the indication information, or
    所述第一终端接收所述消息服务器根据所述指示信息发送的所述消息服务器所接收的所述第二终端接收的即时消息。The first terminal receives an instant message received by the second terminal that is received by the message server that is sent by the message server according to the indication information.
  7. 一种消息服务器,其特征在于,所述消息服务器包括:A message server, characterized in that the message server comprises:
    接收单元,用于接收第一终端发送的所述第一终端对第二终端的业务进行订阅的第一订阅消息,所述第一订阅消息包括第一业务订阅规则,所述第一业务订阅规则包括第一终端的标识信息和所述第二终端的标识信息,并将所述第一终端的标识信息传输至发送单元,将第二终端的标识信息传输至复制单元;a receiving unit, configured to receive a first subscription message that is sent by the first terminal to subscribe to a service of the second terminal, where the first subscription message includes a first service subscription rule, and the first service subscription rule Including the identification information of the first terminal and the identification information of the second terminal, and transmitting the identification information of the first terminal to the sending unit, and transmitting the identification information of the second terminal to the copying unit;
    复制单元,用于从所述接收单元接收所述第二终端的标识信息,根据所述第二终端的标识信息,在接收到所述第二终端与第三终端进行通信的即时消息时,将所述即时消息进行复制处理;a copying unit, configured to receive, by the receiving unit, identifier information of the second terminal, according to the identifier information of the second terminal, when receiving an instant message that the second terminal communicates with the third terminal, The instant message is copied;
    发送单元,用于从所述接收单元接收所述第一终端的标识信息,根据所述第一终端的标识信息,向所述第一终端发送复制的所述即时消息。 And a sending unit, configured to receive the identifier information of the first terminal from the receiving unit, and send the copied instant message to the first terminal according to the identifier information of the first terminal.
  8. 根据权利要求7所述的消息服务器,其特征在于,所述接收单元还用于,接收所述第二终端发送的订阅授权消息,所述订阅授权消息包括授权规则,所述授权规则包括被授权订阅所述第二终端业务的终端的标识信息和所述第二终端的标识信息;The message server according to claim 7, wherein the receiving unit is further configured to receive a subscription authorization message sent by the second terminal, where the subscription authorization message includes an authorization rule, and the authorization rule includes being authorized And the identifier information of the terminal that subscribes to the second terminal service and the identifier information of the second terminal;
    所述消息服务器还包括:判断单元,用于判断所述第一终端的标识信息是否包含在所述授权规则中包括的所述终端的标识信息中;The message server further includes: a determining unit, configured to determine whether the identifier information of the first terminal is included in the identifier information of the terminal included in the authorization rule;
    第一确定单元,用于如果所述第一终端的标识信息包含在所述终端的标识信息中,则确定所述第一终端为被授权订阅所述第二终端业务的终端;a first determining unit, configured to: if the identifier information of the first terminal is included in the identifier information of the terminal, determine that the first terminal is a terminal that is authorized to subscribe to the second terminal service;
    所述复制单元具体用于,根据所述业务授权规则,在确定所述第二终端授权所述第一终端订阅所述第二终端的业务时,对所述即时消息进行复制处理。The copying unit is configured to perform a copy process on the instant message when determining that the second terminal authorizes the first terminal to subscribe to the service of the second terminal according to the service authorization rule.
  9. 根据权利要求7所述的消息服务器,其特征在于,所述接收单元接收的所述第一业务订阅规则还包括用于指示订阅所述第二终端发送或是接收的即时消息的指示信息;The message server according to claim 7, wherein the first service subscription rule received by the receiving unit further comprises indication information for indicating an instant message subscribed to or received by the second terminal;
    所述消息服务器还包括:第二确定单元,用于根据所述指示信息,确定所述第一终端订阅的是所述第二终端发送的即时消息或是所述第二终端接收的即时消息;The message server further includes: a second determining unit, configured to determine, according to the indication information, that the first terminal subscribes to an instant message sent by the second terminal or an instant message received by the second terminal;
    所述复制单元具体用于,在所述第二确定单元确定所述第一终端订阅的是所述第二终端发送的即时消息时,将所述第二终端向所述第三终端发送的即时消息进行复制处理;The copying unit is specifically configured to: when the second determining unit determines that the first terminal subscribes to an instant message sent by the second terminal, send the second terminal to the third terminal The message is copied;
    在所述第二确定单元确定所述第一终端订阅的是所述第二终端接收的即时消息时,将所述第二终端接收的所述第三终端发送的即时消息进行复制处理。When the second determining unit determines that the first terminal subscribes to the instant message received by the second terminal, the instant message sent by the third terminal received by the second terminal is copied.
  10. 根据权利要求7所述的消息服务器,其特征在于,所述接收单元还用于,接收存储设备发送的所述存储设备对所述消息服务器中终端的业务进行订阅的第二订阅消息,所述第二订阅消息包括第二业务订阅规则,所述第 二业务订阅规则包括所述存储设备订阅的终端的标识信息和所述存储设备的标识信息;The message server according to claim 7, wherein the receiving unit is further configured to receive, by the storage device, a second subscription message that the storage device subscribes to a service of the terminal in the message server, where The second subscription message includes a second service subscription rule, the The second service subscription rule includes the identifier information of the terminal subscribed by the storage device and the identifier information of the storage device;
    所述复制单元还用于,根据所述终端的标识信息,在接收到所述终端与另一终端进行通信的即时消息时,将所述即时消息进行复制处理;The copying unit is further configured to: when receiving the instant message that the terminal communicates with another terminal, according to the identifier information of the terminal, performing the copy processing on the instant message;
    所述发送单元还用于,根据所述存储设备的标识信息,向所述存储设备发送复制的所述即时消息,以使得所述存储设备将复制的所述即时消息进行存储。The sending unit is further configured to send the copied instant message to the storage device according to the identifier information of the storage device, so that the storage device stores the copied instant message.
  11. 一种终端,其特征在于,所述终端包括:A terminal, wherein the terminal comprises:
    订阅单元,用于生成用于所述第一终端对第二终端的业务进行订阅的订阅消息,并将所述订阅消息传输至发送单元;a subscription unit, configured to generate a subscription message for the first terminal to subscribe to the service of the second terminal, and transmit the subscription message to the sending unit;
    发送单元,用于从所述订阅单元接收所述订阅消息,并向消息服务器发送所述订阅消息;a sending unit, configured to receive the subscription message from the subscription unit, and send the subscription message to a message server;
    接收单元,用于接收所述消息服务器根据所述订阅消息发送的所述消息服务器所接收的所述第二终端与第三终端进行通信的即时消息。And a receiving unit, configured to receive an instant message that the second server receives communication with the third terminal that is received by the message server that is sent by the message server according to the subscription message.
  12. 根据权利要求11所述的终端,其特征在于,所述订阅单元生成的所述订阅消息还包括用于指示订阅所述第一终端发送或是接收的即时消息的指示信息;The terminal according to claim 11, wherein the subscription message generated by the subscription unit further includes indication information for instructing to subscribe to an instant message sent or received by the first terminal;
    所述指示信息用于使所述消息服务器确定所述终端订阅的是所述第一终端发送的即时消息或是所述第一终端接收的即时消息;The indication information is used to enable the message server to determine that the terminal subscribes to an instant message sent by the first terminal or an instant message received by the first terminal;
    所述接收单元具体用于,接收所述消息服务器根据所述指示信息发送的所述消息服务器所接收的所述第一终端发送的即时消息,或者;The receiving unit is specifically configured to: receive an instant message sent by the first terminal that is sent by the message server according to the indication information, or
    接收所述消息服务器根据所述指示信息发送的所述消息服务器所接收的所述第一终端接收的即时消息。Receiving an instant message received by the first terminal received by the message server sent by the message server according to the indication information.
  13. 一种处理即时消息的系统,其特征在于,所述系统包括:如权利要求7至权利要求10任一权项所述的消息服务器和如权利要求11至权利要求12任一项所述的终端。 A system for processing an instant message, characterized in that the system comprises: a message server according to any one of claims 7 to 10 and a terminal according to any one of claims 11 to 12. .
  14. 根据权利要求13所述的处理即时消息的系统,其特征在于,所述系统还包括:被订阅终端,所述被订阅终端具体为被所述终端进行业务订阅的终端。 The system for processing an instant message according to claim 13, wherein the system further comprises: a subscribed terminal, wherein the subscribed terminal is specifically a terminal that subscribes to a service by the terminal.
PCT/CN2014/094513 2014-03-12 2014-12-22 Method for processing instant message, message server, terminal, and system WO2015135358A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410091088.2 2014-03-12
CN201410091088.2A CN104917665B (en) 2014-03-12 2014-03-12 Handle method, message server, terminal and the system of instant message

Publications (1)

Publication Number Publication Date
WO2015135358A1 true WO2015135358A1 (en) 2015-09-17

Family

ID=54070897

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/094513 WO2015135358A1 (en) 2014-03-12 2014-12-22 Method for processing instant message, message server, terminal, and system

Country Status (2)

Country Link
CN (1) CN104917665B (en)
WO (1) WO2015135358A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115242474A (en) * 2022-07-14 2022-10-25 观澜网络(杭州)有限公司 Real-time communication system, method, terminal equipment and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106506443B (en) * 2016-09-14 2019-08-13 Oppo广东移动通信有限公司 A kind of information inspection method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079925A (en) * 2006-12-25 2007-11-28 腾讯科技(深圳)有限公司 A method and system for allocating instant communication session
CN102638416A (en) * 2012-03-27 2012-08-15 上海量明科技发展有限公司 Method for checking IM (instant messaging) information when multiple clients are logged in, client and system
CN103326933A (en) * 2013-07-12 2013-09-25 候万春 System and method for realizing safe instant messaging of group

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101257375B (en) * 2006-12-31 2012-08-08 华为技术有限公司 Method and device for realizing multi-terminal message synchronization
FI120857B (en) * 2007-12-19 2010-03-31 Teliasonera Ab User terminal, storage medium, service center and procedure
KR20100061254A (en) * 2008-11-28 2010-06-07 삼성전자주식회사 Method for providing the communication history

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079925A (en) * 2006-12-25 2007-11-28 腾讯科技(深圳)有限公司 A method and system for allocating instant communication session
CN102638416A (en) * 2012-03-27 2012-08-15 上海量明科技发展有限公司 Method for checking IM (instant messaging) information when multiple clients are logged in, client and system
CN103326933A (en) * 2013-07-12 2013-09-25 候万春 System and method for realizing safe instant messaging of group

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115242474A (en) * 2022-07-14 2022-10-25 观澜网络(杭州)有限公司 Real-time communication system, method, terminal equipment and storage medium
CN115242474B (en) * 2022-07-14 2024-06-07 观澜网络(杭州)有限公司 Real-time communication system, method, terminal equipment and storage medium

Also Published As

Publication number Publication date
CN104917665A (en) 2015-09-16
CN104917665B (en) 2018-08-21

Similar Documents

Publication Publication Date Title
US20190228670A1 (en) Systems for classroom media sharing
US10630807B2 (en) Method and system for loading application- specific interfaces in a social networking application
EP3028437B1 (en) Messaging api over http protocol to establish context for data exchange
CN105468462B (en) Method and system for interprocess communication identity verification and communication between application software
CN108718337B (en) Website account login, verification and verification information processing method, device and system
EP3847601B1 (en) Authorizations associated with externally shared communication resources
US10587713B2 (en) Proxy for sharing remote desktop sessions
US10855846B1 (en) Encrypting multiple party calls
CN104348697A (en) Video communication information processing method, device and system
WO2012152041A1 (en) Multimedia message transmission method and device
CN111052685A (en) Techniques for multi-agent messaging
WO2014154009A1 (en) Method, apparatus, receiving end, sending end and device for group communication
US10069819B2 (en) Information processing apparatus, information processing method, and information processing system
CN112202750A (en) Control method for policy execution, policy execution system and computing device
CN107277012A (en) A kind of information sharing method and device
CN106161356B (en) Method and system for rapidly logging in website through client
CN114844663B (en) Desktop sharing method, system, storage medium and equipment
WO2011088766A1 (en) Method, system and device for restricting chat room login of users
WO2015135358A1 (en) Method for processing instant message, message server, terminal, and system
WO2014026542A1 (en) Implementation method, system and device for instant communication application
US20170244753A1 (en) Establishing a secure data exchange channel
CN110351364B (en) Data storage method, device and computer readable storage medium
JP6658006B2 (en) Information processing apparatus, number of participants confirmation method, program, and information processing system
SG194072A1 (en) Authentication information processing
CN114584971A (en) Account registration method and device, electronic equipment and storage medium

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: 14885597

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: 14885597

Country of ref document: EP

Kind code of ref document: A1