WO2013064058A1 - 一种即时通信方法、系统及装置 - Google Patents

一种即时通信方法、系统及装置 Download PDF

Info

Publication number
WO2013064058A1
WO2013064058A1 PCT/CN2012/083751 CN2012083751W WO2013064058A1 WO 2013064058 A1 WO2013064058 A1 WO 2013064058A1 CN 2012083751 W CN2012083751 W CN 2012083751W WO 2013064058 A1 WO2013064058 A1 WO 2013064058A1
Authority
WO
WIPO (PCT)
Prior art keywords
mobile terminal
message
instant message
central server
mobile
Prior art date
Application number
PCT/CN2012/083751
Other languages
English (en)
French (fr)
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 WO2013064058A1 publication Critical patent/WO2013064058A1/zh

Links

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]
    • 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/23Reliability checks, e.g. acknowledgments or fault reporting
    • 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/58Message adaptation for wireless communication

Definitions

  • the present invention relates to instant messaging (IM) technology, and more particularly to an instant messaging method, system and apparatus.
  • IM instant messaging
  • instant messaging With the rapid development of instant messaging technology, instant messaging has become a part of the life of network users. At the same time, in enterprise-level instant messaging, instant messaging is no longer a simple chat, and the superior to subordinate messages may mean a Arrangement of tasks. So instant messaging can't be easily lost, and there is no need for feedback.
  • the current instant messaging system generally has an acknowledgement mechanism for the message to be delivered to the other party.
  • the message is saved as an offline message.
  • the probability ratio of the mobile terminal being offline is lower.
  • the probability of the terminal of the personal computer (PC, Personal Computer) being offline is large, so the server has a great pressure to save the offline message.
  • the server can only give up the save, and the loss of the message is inevitable.
  • the offline of the mobile terminal in many cases is caused by the change of the mobile network signal. This offline will be very short, and it will be re-launched in a few seconds.
  • This kind of dropped line is called temporary drop;
  • a dropped line caused by a network failure or shutdown is called a permanent disconnection.
  • FIG. 1 is a schematic flowchart of a method for instant messaging in the prior art.
  • the PC terminal sends a message to the mobile terminal as an example.
  • the processing method when the mobile terminal is temporarily dropped is as follows: The PC terminal sends an instant message to the mobile terminal, and transits through the central server; the mobile terminal temporarily drops the line, no confirmation is given, the central server saves the instant message offline, and deletes the session; when the mobile terminal network recovers, re-login and start the session, After the central server confirms, the new session identity number (ID, Identity) is analyzed; the central server sends the offline message saved to the mobile terminal, and the mobile terminal receives the confirmation after receiving.
  • ID new session identity number
  • the message to the confirmation is generally taken by the server for offline storage, and is reserved for the next transmission.
  • the terminal that receives the message of the instant messaging system is either a mobile terminal or a PC terminal, whether the terminal is temporarily dropped or permanently dropped. Giving confirmation is handled in the same way.
  • the terminal that receives the message is a PC terminal
  • such a processing method is reasonable, because the PC terminal is generally connected through a wired connection, and it is not easy to drop the line, but it is unreasonable for the terminal receiving the message to be a mobile terminal because the mobile terminal
  • the terminal accesses the mobile wireless network, and the situation of interference or blind spots is inevitable, and the dropped line is more likely to occur. If the mobile terminal is between offline and online due to the instability of the wireless network, it is necessary to repeatedly store the offline message, which increases the storage pressure of the database server; at the same time, the temporary disconnection needs to be re-authenticated and logged in, which increases the communication overhead. , slow recovery, poor user experience.
  • the embodiment of the invention provides an instant communication method, system and device, which alleviate the problem that the storage pressure of the server increases due to the temporary drop of the mobile terminal, and improve the communication efficiency.
  • An instant communication method including:
  • the mobile access server receives and buffers an instant message from the first terminal
  • a mobile access server comprising:
  • a message receiving buffer module configured to receive and cache an instant message from the first terminal, and a message sending module, configured to forward, to the second mobile terminal, the instant message received by the message receiving buffer module;
  • a determining module configured to not receive the first drop time threshold after forwarding the instant message 2, the response message returned by the mobile terminal, but receiving the response message returned by the second mobile terminal within the second drop time threshold, determining that the second mobile terminal temporarily drops the line, and triggering the temporary drop processing module to perform the operation; If the response message returned by the second mobile terminal is not received in the second offline time threshold, it is determined that the second mobile terminal is permanently disconnected, and the permanent disconnection processing module is triggered to operate;
  • a temporary drop processing module configured to resend an instant message to the second mobile terminal when the second mobile terminal temporarily drops the line
  • a permanent drop processing module configured to notify the central server to save the instant message offline when the second mobile terminal is permanently disconnected
  • the message recycling module is configured to notify the central server to save the instant message offline according to the indication of the permanent disconnection processing module.
  • An instant messaging system comprising:
  • a mobile access server configured to receive and cache an instant message from the first terminal; forward the instant message to the second mobile terminal; and not receive the second time in the first drop time threshold after forwarding the instant message
  • the response message returned by the mobile terminal but receiving the response message returned by the second mobile terminal within the second drop time threshold, determining that the second mobile terminal temporarily drops the line; if the second drop time threshold is not received within the second drop time threshold 2, the response message returned by the mobile terminal, determining that the second mobile terminal is permanently dropped; if the second mobile terminal temporarily drops the line, resending the instant message to the second mobile terminal; if the second mobile terminal is permanently dropped, Notifying the central server to save the instant message offline;
  • the central server is configured to receive an instant message forwarded by the mobile access server, and receive the mobile access server to send a request to save the instant message offline, perform offline save, and send a response message to the mobile access server.
  • an instant messaging method, system and device provided by the embodiments of the present invention can perform dedicated session management for a mobile terminal that receives a message, and no longer blindly save the message offline, but provide A variety of recovery means are used to continue the session between the terminal that sends the message and the mobile terminal that receives the message, and at the same time, the problem of increased storage pressure of the central server caused by the temporary disconnection of the mobile terminal can be alleviated, and the communication efficiency is improved. Improved user experience for mobile devices.
  • FIG. 1 is a timing diagram of an instant messaging method provided in the prior art
  • FIG. 2 is a schematic flowchart of an instant messaging method according to Embodiment 1 of the present invention
  • FIG. 3 is a timing diagram of an instant messaging method according to Embodiment 2 of the present invention
  • FIG. 5 is a sequence diagram of an instant messaging method according to Embodiment 4 of the present invention.
  • FIG. 6 is a sequence diagram of an instant messaging method according to Embodiment 5 of the present invention.
  • FIG. 7 is a schematic diagram of a session state transition of an instant messaging method according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of an instant messaging apparatus according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural view of a temporary drop processing module in the device provided in FIG. 8;
  • FIG. 10 is a schematic structural view of a permanent disconnection processing module in the device provided in FIG. 8;
  • FIG. 11 is a schematic structural diagram of an instant messaging system according to an embodiment of the present invention.
  • the embodiments of the present invention provide an instant messaging method, system, and apparatus, which alleviate the problem of increased storage pressure of a server caused by a temporary drop of a mobile terminal, and improve communication efficiency.
  • Instant messaging is a real-time communication service that allows users to set up a private chatroom on the network.
  • Instant messaging software on the Internet includes Tencent QQ, Baidu HI, Sina UC, MSN Messenger, Lava series (Lava-Lava ⁇ Lava Express, Lava letters) and so on.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • FIG. 2 it is a timing diagram of the communication method, which specifically includes the following steps:
  • the mobile access server receives and caches an instant message from the first terminal.
  • the first terminal may be a PC terminal, or may be a mobile terminal or other terminal device.
  • S102. Forward an instant message to the second mobile terminal.
  • the mobile access server After receiving the instant message, and returning the acknowledgement response message, the mobile access server forwards the instant message to the second mobile terminal;
  • a mobile terminal in the field of communication, is also called a mobile communication terminal, and refers to a computer device that can be used in mobile, and generally includes a mobile phone, a notebook, a point of sale information management system (POS), and even a On-board computer, usually referred to as a mobile phone or a smartphone with multiple application functions;
  • POS point of sale information management system
  • the instant message received and forwarded by the mobile access server may be encapsulated in a data packet according to a specific format; the data packet has a fixed header and a message body, and the message body is, for example, an extensible markup language (XML, Extensible Markup Language) or other language to describe; message header consists of 16 bytes, followed by 4 byte message length, 2 byte message version number, 1 byte message type and sender, 1 byte message function classification , 1-byte command code, 1-byte content encoding mode, 2-byte message serial number, 4-byte session identifier;
  • XML extensible markup language
  • message header consists of 16 bytes, followed by 4 byte message length, 2 byte message version number, 1 byte message type and sender, 1 byte message function classification , 1-byte command code, 1-byte content encoding mode, 2-byte message serial number, 4-byte session identifier;
  • the 1-byte message type and the sender wherein the upper four bits are the sender, the 0x10 is the mobile access server, and the 0x00 is the mobile terminal, and the mobile access server judges according to the identity of the sender, accepting the second mobile terminal.
  • the request of the lower four bits is the message type, and the message type is used - correspondingly, for example, the request message and the reply message correspond to each other, and are marked as 0x01, the indication message and the confirmation message correspond to each other, and are marked as 0x10, and the notification message is marked as 0x11.
  • the request message may be a message that the second mobile terminal actively sends to the central server, and the response message of the central server is called a reply message, and the indication message may be a message that the central server actively sends to the second mobile terminal,
  • the response message of the mobile terminal may be referred to as an acknowledgement message;
  • the notification message may be a message sent by the central server to the second mobile terminal, and the second mobile terminal does not need to reply.
  • the 1-byte message function classification and the 1-byte command code can be combined into a unique message function, for example, the function of the instant message is 0x03, the command code is 0x0a, the composition is 0x030a; the 1-byte content encoding mode and description , as shown in Table 1, the lowest bit of the byte indicates whether the message is encrypted, the second to last Bit indicates whether the message is compressed;
  • the 4-byte session ID is initially generated by the mobile access server, not 0, and all subsequent requests by the second mobile terminal through the mobile access server for the mobile access server to locate its corresponding session.
  • the session corresponding to the instant message involved in step S101 and step S102 is completed in a normal service state; if the response message returned by the second mobile terminal is not received within the first drop time threshold after forwarding the instant message The session state is migrated to the session hold state; but if the response message returned by the second mobile terminal is received within the second drop time threshold after the instant message is forwarded, the session state is migrated back to the normal service state;
  • the mobile access server forwards the instant message to the second mobile terminal, if the response message received by the acknowledgement message returned by the second mobile terminal is received, that is, the session remains in the normal service state, the second mobile terminal Not dropped;
  • the type of the response message returned by the second mobile terminal may be one of the types of instant messages, and the message characteristics are the same as those of the instant message described in step S102.
  • the second mobile terminal If the second mobile terminal temporarily drops the line, resend the instant message to the second mobile terminal.
  • the second mobile terminal temporarily drops the line when the second mobile terminal network recovers and receives the activation message of the second mobile terminal, the session is migrated from the session hold state to the normal service state, and the mobile access server caches the cache.
  • the instant message is resent to the second mobile terminal, and receives a response message received by the confirmation message returned by the mobile terminal;
  • the temporary disconnection of the second mobile terminal usually refers to the change of the mobile network signal, and the dropped call will be very short, and will be re-online after a few seconds, plus the access of the second mobile terminal. It is a mobile wireless network. It is inevitable that interference or blind spots will occur, so there will be temporary disconnection;
  • the type of the activation message sent by the second mobile terminal may also be a type of the instant message, and the message feature is the same as the message feature of the instant message described in step S102; the activation message may be a heartbeat message, or may be The login request message of the mobile terminal is not specifically limited herein.
  • the session state is migrated from the session hold state to the session exit state, and the mobile access server notifies the central server to save the instant message offline;
  • the permanent disconnection of the second mobile terminal is usually a disconnection caused by the network failure or shutdown of the mobile terminal, so when the second mobile terminal logs back in, it is necessary to restart the creation process of a session, the state of the session.
  • the mobile terminal responds to the capabilities of the central server system, such as VoIP (Voice over Voice Protocol), address book synchronization, SMS capability, click-to-dial (CTD, Click To) Dial), click to conference (CTC, Click To Conference) ability, etc.;
  • CTD Click To
  • CTC Click To Conference
  • the process is called the process of a login request sent by the mobile terminal in complex mode.
  • the instant communication flow and the method of the first terminal and the second mobile terminal are described in the first embodiment of the present invention.
  • the method can perform special session management for the second mobile terminal that receives the message, and does not blindly save the message offline, thereby alleviating the problem that the central server storage pressure is increased due to the temporary disconnection of the second mobile terminal, and improving Communication efficiency.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • a first terminal is a PC terminal
  • a second mobile terminal is specifically a mobile phone terminal
  • a communication between a PC terminal and a mobile terminal is performed
  • the flow chart of the temporary disconnection of the mobile phone terminal is as follows.
  • the instant message in this embodiment is recorded as M1:
  • the PC terminal sends the M1 to the central server
  • the central server returns a confirmation message to the PC terminal.
  • the central server sends the M1 to the mobile access server.
  • the mobile access server returns an acknowledgement message to the central server.
  • Steps S201 to S205 may specifically be: communication between the PC terminal and the mobile terminal.
  • the PC terminal sends M1 to the central server, and the central server returns an acknowledgement and forwards the M1 to the mobile access server, and the mobile access server receives the After Ml, cache Ml and return confirmation to the central server;
  • the second mobile terminal that is, the mobile phone terminal in this embodiment does not directly communicate with the central server, but connects to the mobile access server, and indirectly communicates with the central server through the mobile access server; and the PC terminal remains Connect directly to the central server, not connected to the mobile access server.
  • the mobile access server forwards the M1 to the mobile terminal.
  • the mobile access server receives the M1 forwarded by the central server, and returns a confirmation response message, and forwards the M1 to the mobile terminal; It can be understood that the message characteristics of the M1 received and forwarded by the mobile access server can be referred to the message characteristics of the instant message described in step S102 in the first embodiment, and will not be specifically described herein.
  • the mobile access server forwards M1 to the mobile terminal, if the response message returned by the second mobile terminal is not received within T1 (for example, 5 minutes) after forwarding M1, but the second mobile is received within T2 (for example, 30 minutes)
  • T1 for example, 5 minutes
  • T2 for example, 30 minutes
  • the session state will be migrated from the normal service state to the session hold state; in addition, since the second drop time threshold is ⁇ 2, the state is maintained.
  • the time is T2-T1. If the response message returned by the mobile terminal is received during the T2-T1 time period, it is determined that the mobile terminal is temporarily dropped.
  • ⁇ 2 is greater than T1, which means that the response message returned by the mobile terminal is received within the hold time T2-T1, that is, the response message returned by the mobile terminal is received in the ⁇ 2 after the message is forwarded;
  • the type of the response message may be a type of the instant message, and the message feature may refer to the message feature of the instant message described in step S102, which is not specifically described herein;
  • the mobile access server forwards the instant message to the mobile terminal, if the response message received by the confirmation message returned by the mobile terminal is received, the mobile terminal is not dropped.
  • the mobile terminal restores the network in T1;
  • step S212 when the heartbeat message or other activation message of the mobile terminal is received in T1, that is, the mobile terminal restores the network, otherwise, step S212 is performed;
  • the mobile access server resends the M1 to the mobile terminal.
  • the mobile terminal returns a confirmation message to the mobile access server.
  • Step S208 to step S211 may be specifically: when the heartbeat message of the mobile terminal is received in T1 after forwarding M1, the mobile access server resends the cached M1 to the mobile terminal, and then connects Receiving the response message received by the confirmation message returned by the mobile terminal, in this process, the session state remains in the normal service state.
  • the type of the heartbeat message sent by the mobile terminal may also be a type of instant message, and the command code is 0x0312, and the message is periodically reported to the mobile access server by the mobile terminal every minute;
  • the message characteristics of the instant message described in step S102 are not specifically described herein;
  • the mobile terminal does not recover the network in T1;
  • the session state is migrated to the session hold state.
  • Step S212 to step S213 may be specifically: when the mobile access server does not receive the heartbeat message or other activation message sent by the mobile terminal in T1, that is, the mobile terminal does not restore the network in T1, the session state is normal service. The state is migrated to the session hold state.
  • the mobile terminal restores the network in T2;
  • the T2 After receiving the M1, the T2 receives a login request in a simple mode of the mobile terminal;
  • the mobile access server returns a login confirmation message to the mobile terminal.
  • the session state is migrated to a normal service state.
  • the mobile access server resends the M1 to the mobile terminal.
  • the mobile terminal returns a confirmation message to the mobile access server.
  • Step S214 to step S219 may be specifically: Since the second drop time threshold is set to T2, the hold time of the session hold state is T2-T1, and if the activation message sent by the mobile terminal is received within the T2-T1 time period For example, based on the login request of the original session ID simple mode, the mobile access server returns a login confirmation message, and the session state is re-migrated back to the normal service state, and then the mobile access server resends the cached M1 to the mobile terminal. Receiving a response message received by the confirmation M1 returned by the mobile terminal;
  • T2 is greater than T1, which means that the response message returned by the mobile terminal is received during the time period of the hold time T2-T1, that is, the response message returned by the mobile terminal is received in the T2 after forwarding M1;
  • the simple mode login means that the user who needs the mobile terminal can input a user name and a user password for verification. Different from the complex mode login, it is not necessary to restart the creation process of a session to the mobile terminal. Respond to the capabilities of a central server system.
  • the user terminal is a PC terminal
  • the second mobile terminal is specifically a mobile phone terminal.
  • the process and method for temporarily disconnecting the mobile terminal are performed.
  • the case where the mobile terminal temporarily drops the line provides two recovery means for continuing the session between the user terminal and the mobile terminal, and similarly, the problem that the central server storage pressure is increased due to the temporary disconnection of the mobile terminal can be alleviated. Improve communication efficiency and improve the user experience of mobile terminals.
  • Embodiment 3 is a diagrammatic representation of Embodiment 3
  • a first terminal is a PC terminal
  • a second mobile terminal is specifically a mobile phone terminal
  • a communication between a PC terminal and a mobile terminal is performed
  • the flow diagram of the mobile terminal is permanently disconnected.
  • the instant message in this embodiment is recorded as M2, and the specific steps are as follows:
  • the PC terminal sends the M2 to the central server.
  • the central server returns a confirmation message to the PC terminal.
  • the central server sends the M2 to the mobile access server.
  • the mobile access server returns an acknowledgement message to the central server.
  • the mobile access server forwards the M2 to the mobile terminal.
  • Steps S301 to S306 may refer to the related content of step S201 to step S206 in the second embodiment, and are not specifically described herein;
  • the mobile access server forwards M2 to the mobile terminal, it still does not receive the hand in T2 after forwarding M2.
  • the response message returned by the machine terminal it can be considered that the activation message of the mobile terminal is not received within the first drop time threshold T1, such as a heartbeat message; and the mobile terminal is not received within the hold time of the session hold state of T2-T1.
  • the activation message sent may be a login request based on the original session ID simple mode, so that the response message returned by the mobile terminal is still not received in the T2, the mobile terminal may be permanently disconnected.
  • the mobile terminal does not recover the network in T1;
  • the session state is migrated to the session hold state.
  • Steps S308 to S309 can refer to the related content of step S212 to step S213 in the second embodiment, and are not specifically described herein.
  • the session state is migrated to the session exit state.
  • the central server saves M2 offline
  • the mobile access server confirms that the central server saves M2 offline;
  • step S315, exiting the session corresponding to M2, and releasing the cached resource corresponding to the cached M2; step S310 to step S315 may be specifically; determining that the mobile terminal is permanently dropped, that is, the mobile terminal is not restored within the T2-T1 time period.
  • the network caches M2; the session state is migrated from the session hold state to the session exit state; in the session exit state, the mobile access server notifies the central server to save M2 offline; and after confirming that the central server saves M2 offline, exits the M2 corresponding session. And release the cached M2 corresponding cache resource.
  • Step S316 to step S320 may be specifically: the mobile access server receives the login request sent by the mobile terminal in the complex mode, sets the session state from the initial state to the normal service state, and forwards the login request to the central server; the request passes, receives The response message returned by the central server and forwarded to the mobile terminal; the mobile access server creates a new session, receives the offline saved M2 sent by the central server and forwards it to the mobile terminal; receives the offline saved sent by the mobile terminal After receiving the acknowledged response message, M2 forwards the message to the central server;
  • the permanent disconnection of the mobile terminal can refer to the disconnection of the mobile terminal due to network failure or shutdown, so when the mobile terminal is permanently disconnected, in order to ensure security, once the session is exited, the mobile terminal needs to Re-login in complex mode, get a new session ID, restart a round of conversation; this is because in the communication, the mobile terminal sends a version query protocol to the central server, such as the instant message type is 0x0001, The session ID is 0, which is the first message sent by the mobile terminal to the central server.
  • the mobile access server gives the session ID in response, and the mobile terminal needs to record the acquired session ID as a voucher for future communication.
  • the mobile terminal sends a login request in the complex mode, that is, re-login in the complex mode, that is, it is necessary to restart a session creation process, and respond to the mobile terminal's ability to respond to the central server system, such as an analog voice.
  • This is an initial configuration process for a mobile terminal to the central server.
  • the amount of data is large, and more resource analysis and query work is required. Therefore, in this embodiment, this process is referred to as a process in which the mobile terminal re-logs in the complex mode.
  • the first terminal is a PC terminal
  • the second mobile terminal is specifically a mobile terminal.
  • the PC terminal communicates with the mobile terminal
  • the mobile terminal is permanently disconnected.
  • the cached message is used, and the message is saved offline to process the instant message when the mobile terminal is permanently disconnected.
  • the mobile terminal may be temporarily dropped.
  • the resulting problem of increased storage pressure on the central server improves communication efficiency and improves the user experience of the mobile terminal.
  • Embodiment 4 is a diagrammatic representation of Embodiment 4:
  • the first terminal when the first terminal is a PC terminal, and the second mobile terminal is specifically a mobile phone terminal, when the communication between the PC terminal and the mobile terminal is performed, the mobile terminal is temporarily dropped and permanently disconnected.
  • the first terminal when the first terminal is a PC terminal, and the second mobile terminal is specifically a mobile phone terminal, when the communication between the PC terminal and the mobile terminal is performed, the mobile terminal is temporarily dropped and permanently disconnected.
  • FIG. 5 it is a timing diagram of a communication method between two mobile terminals.
  • the second mobile terminal and the mobile terminal are mobile phone terminals.
  • the mobile terminal A is a sending message
  • the mobile terminal is B is the receiving party.
  • the instant message in this embodiment is recorded as M3, and the steps are as follows:
  • the mobile access server receives the M3 from the mobile terminal A;
  • the mobile access server caches M3;
  • the mobile access server forwards the M3 to the central server.
  • the central server returns a confirmation message to the mobile access server.
  • the mobile access server returns a confirmation message.
  • Steps S401 to S406 may be specifically: communication between the mobile terminal A and the mobile terminal B.
  • the mobile terminal A directly sends M3 to the mobile access server, and the mobile access server receives and caches M3, and returns to the mobile terminal A.
  • M3 is forwarded to the central server, and the central server gives an acknowledgement;
  • the central server sends M3 to the mobile access server, and receives a response message from the central server to return the confirmation;
  • the receiving party that is, the mobile terminal B in this embodiment does not directly communicate with the central server, but connects to the mobile access server, and indirectly through the mobile access server.
  • the central server communicates;
  • the mobile terminal A that sends the M3 is not directly connected to the central server, but communicates with the central server indirectly by connecting the mobile access server, and the message is sent in the second embodiment and the third embodiment.
  • PC terminals are different.
  • the mobile access server receives the M3 forwarded by the central server, and returns a confirmation response message, and forwards the M3 to the mobile terminal B;
  • the M3 received and forwarded by the mobile access server can refer to the message characteristics of the instant message described in step S102, and is not specifically described herein.
  • the mobile terminal B returns a confirmation message to the mobile access server.
  • the mobile access server forwards the M3 to the mobile terminal B, and receives the response message received by the mobile terminal B, the mobile terminal B does not drop the line;
  • the mobile access server when the mobile access server does not receive the response message returned by the mobile terminal B within the preset first drop time threshold T1 and the second drop time threshold T2, it may be determined that the mobile terminal B is offline. Further, if the mobile terminal B is temporarily disconnected, the processing may be performed according to the processing method in the second embodiment; if the mobile terminal B is permanently disconnected, the processing may be performed according to the processing method in the third embodiment, where the processing is no longer performed. Specific explanation.
  • the first terminal is a mobile terminal, and the communication between the mobile terminal and the second mobile terminal is used.
  • the fourth embodiment shows that the instant messaging method provided by the present invention is applicable to the mobile terminal. In the case, the problem that the storage pressure of the central server is increased due to the temporary drop of the mobile terminal can be alleviated, and the communication efficiency is improved.
  • Embodiment 5 is a diagrammatic representation of Embodiment 5:
  • FIG. 6 is a timing diagram for sending a message in a group.
  • the mobile terminal B in the receiving party is described as an application scenario when the group terminal B is disconnected during the group chat.
  • the instant message sent by A to mobile terminal B is recorded as M4, and the instant message sent by mobile terminal A to the PC terminal is recorded as M5.
  • the specific steps are as follows:
  • the mobile access server receives and buffers M4 from the mobile terminal A, and the receiving terminal is the mobile terminal B;
  • the mobile access server forwards the M4 to the central server.
  • the mobile access server returns a confirmation message.
  • Step S501 to step S506 may be specifically: sending, by the mobile terminal A, the M4 to the group.
  • the receiving terminal may first be set as the mobile terminal B; that is, the communication between the mobile terminal A and the mobile terminal B, first Sending M4 directly to the mobile access server by the mobile terminal A, determining that the M4 accepting terminal is the mobile terminal B; the mobile access server receiving and buffering the M4, returning the confirmation to the mobile terminal A, forwarding the M4 to the central server, and attaching an indication
  • the specific receiving terminal is an indication message of the mobile terminal B, and the central server gives an acknowledgement again;
  • the central server forwards the instant message and the indication message to the mobile access server, and receives a response message that the central server returns an acknowledgment.
  • the mobile access server After receiving the M4 and the indication message forwarded by the central server, and returning the confirmation response message, the mobile access server forwards the M4 to the mobile terminal B;
  • the mobile terminal B returns a confirmation message to the mobile access server.
  • the mobile access server forwards the M4 to the mobile terminal B, it receives the mobile terminal B and returns Recognizing the response message received by M4, it indicates that the mobile terminal B is not dropped;
  • the mobile access server does not receive the response message returned by the mobile terminal B, it is determined that the mobile terminal B is offline, and further determines whether the mobile terminal B is temporarily dropped according to the preset drop time threshold. If the mobile terminal B is temporarily disconnected, it can be processed according to the processing method in the second embodiment, and will not be specifically described herein;
  • the processing may be processed according to the processing method in the third embodiment. If you cache M4, request to save M4 offline, etc., it will not be elaborated here; however, after the central server saves M4 offline, the following steps are performed:
  • the central server updates the online or offline status of the mobile terminal B, changes the online user list, and indicates that the mobile terminal A does not need to send the mobile terminal B again when the next group message is sent;
  • the central server notifies the mobile access server that the mobile terminal B is offline;
  • the mobile access server returns a confirmation message.
  • the mobile access server forwards the message that the mobile terminal B is offline to the mobile terminal A; S513, and the mobile terminal A returns a confirmation message;
  • Step S510 to step S513 may be specifically: the message that the central server disconnects the mobile terminal B, and the message that the next group instant message is unnecessary to be sent to the mobile terminal B, is sent to the mobile access server, and is forwarded to the mobile phone through the mobile terminal server B.
  • Terminal A when the mobile terminal A knows that the mobile terminal B has dropped the line, the B will be skipped next time when the instant message is sent, that is, the instant message need not be sent to the dropped mobile terminal B.
  • the mobile access server receives and caches the M5 from the mobile terminal A, and the receiving terminal is the PC terminal C;
  • the mobile access server forwards the M4 to the central server;
  • the central server returns a confirmation message to the mobile access server.
  • Step S514 to step S517 may be specifically: because the mobile terminal B is offline, the mobile terminal A need not send an instant message to the mobile terminal B, that is, the receiving terminal is the PC terminal C; first, the mobile terminal A sends the M5 directly to the mobile access server, determines that the receiving terminal is the PC terminal C; and the mobile access server receives and caches the M5. After returning the confirmation to the mobile terminal A, the M5 is forwarded to the central server, and an indication message indicating that the specific receiving terminal is the PC terminal C is attached, and the central server sends an acknowledgement.
  • the central server forwards the instant message to the PC terminal C.
  • the mobile access server After receiving the M5 and the indication message forwarded by the central server, and returning the confirmation response message, the mobile access server forwards the M5 to the PC terminal C;
  • the PC terminal C returns a confirmation message to the central server.
  • the mobile access server After the mobile access server forwards the M5 to the PC terminal C, it receives the confirmation returned by the PC terminal C.
  • the mobile access server does not receive the response message returned by the PC terminal C at the preset first drop time threshold and the second drop time threshold, it can be determined that the PC terminal C is disconnected; If the terminal C is temporarily disconnected, the processing may be performed according to the processing method in the second embodiment. If the PC terminal C is permanently disconnected, the processing may be performed according to the processing method in the third embodiment, and is not specifically described herein.
  • the use of a group instant messaging example helps to further understand the operation of the entire system.
  • the implementation of the fifth embodiment can also reduce the central server storage caused by the temporary disconnection of the mobile terminal. The problem of increased pressure has played a role in improving communication efficiency.
  • the session state transition diagram of the instant messaging method involved in the embodiment of the present invention is as follows:
  • the session state includes an initial state 701, a normal service state 702, a hold state 703, and an exit state 704, and A detailed description of the state transition conditions for the annotations.
  • the second mobile terminal logs in the complex mode.
  • the mobile access server After receiving the login request of the mobile terminal, the mobile access server generates a new session and enters the "initial state". In the initial state, only the complex mode login request is accepted. This request is not only the correctness of the authentication username and password. Detailed information about client and server capability configuration will also be obtained. The specific information is described in the third embodiment, and will not be explained in detail here. After the mobile terminal logs in, it enters the "normal service state".
  • S702 Receive a heartbeat message of the second mobile terminal in a first drop time threshold T1 after forwarding the instant message.
  • the second mobile terminal may be temporarily dropped due to a change of the mobile network signal, and the mobile access server does not receive the acknowledgement response message, but as long as there is an activation message of the mobile terminal received in T1. If the heartbeat message, that is, the network recovery of the mobile terminal, can continue to communicate, therefore, the session state does not migrate, and is still a "normal service state";
  • the session state is not migrated, and all of them are in a normal service state; if the mobile terminal is not dropped, the state transition process is also suitable; since the present invention mainly studies the processing method when the second mobile terminal is offline, No specific description.
  • the response message of the second mobile terminal is not received in the T1 after the instant message is forwarded.
  • the session state is from The "normal service state” is migrated to the "session hold state”; in the embodiment of the present invention, the second drop time threshold is set to T2, so the hold time of the state is T2-T1.
  • the mobile access server Under the “session hold state”, that is, within the hold time T2-T1 of this state, if the mobile access server receives an activation message sent by the second mobile terminal, such as a simple mode login request based on the existing session ID, then The session state is moved back to the "normal service state".
  • the request message is not received in T2-T1.
  • the session state is migrated to "session exit status"; at this time, the mobile access server notifies the central server to perform offline offline save; after confirming that the central server performs offline offline save, the session corresponding to the instant message is exited, and the cache resource corresponding to the cached message is released;
  • the second mobile terminal communicates with the first terminal, a new session must be started from the complex mode login.
  • the embodiments of the present invention further provide related devices and systems for implementing the foregoing solutions.
  • the embodiment of the present invention discloses a mobile access server, including: a message receiving module 801, a message sending module 802, a determining module 803, a temporary drop processing module 804, a permanent disconnection processing module 805, and a message recycling module 806;
  • the message receiving buffer module 801 is configured to receive and cache a message from the first terminal, and the message sending module 802 is configured to forward the instant message received by the message receiving buffer module 801 to the second mobile terminal.
  • the determining module 803 is configured to: if the response message returned by the second mobile terminal is not received in the first drop time threshold T1 after forwarding the instant message, but receive the second mobile terminal return in the second drop time threshold T2 The response message determines that the second mobile terminal temporarily drops the line, and triggers the temporary drop processing module 804 to operate; if the response message returned by the second mobile terminal is not received in T2, it is determined that the second mobile terminal is permanently lost. Line, and triggers the permanent drop processing module 805 to operate;
  • the temporary drop processing module 804 is configured to resend the instant message to the second mobile terminal when the second mobile terminal temporarily drops the line;
  • the permanent disconnection processing module 805 is configured to: when the second mobile terminal is permanently disconnected, the indication message recovery module 806 notifies the central server to save the instant message offline;
  • the message recycling module 806 is configured to notify the central server to save the instant message offline according to the indication of the permanent disconnection processing module 805.
  • the temporary disconnection processing module 804 in this embodiment further includes: a first reissue list
  • the element 8041 is configured to: when the heartbeat message of the second mobile terminal is received in the T1 after the instant message is forwarded, resend the instant message to the second mobile terminal;
  • the second resending unit 8042 is configured to: after forwarding the instant message The heartbeat message of the second mobile terminal is not received in T1, but after receiving the login request in the simple mode of the second mobile terminal, the instant message is resent to the second mobile terminal.
  • the permanent disconnection processing module 805 in this implementation includes: an indication unit
  • the message retrieving module 806 is configured to notify the central server to save the instant message offline.
  • the releasing unit 8052 is configured to: after confirming that the central server saves the instant message offline, exit the session corresponding to the instant message, and release the cache resource corresponding to the cached instant message;
  • the instant message is cached; when the heartbeat message or other activation message of the second mobile terminal is received in T1 after forwarding the instant message, the mobile access server Resending the cached instant message to the second mobile terminal, and receiving the response message received by the confirmation message cached by the second mobile terminal;
  • the session state is migrated from the normal service state to the session hold state; the second drop time in this embodiment
  • the threshold is set to ⁇ 2, that is, the hold time of the session hold state is T2-T1. If a login request or other activation message based on the original session ID simple mode sent by the second mobile terminal is received within the T2-T1 time period, The mobile access server returns a login confirmation message, and re-migrates the session state back to the normal service state. Then, the mobile access server resends the cached instant message to the second mobile terminal, and receives the acknowledgement message returned by the second mobile terminal. Response message to;
  • the mobile access server does not receive the heartbeat message or other activation message sent by the second mobile terminal in T1, and sets the session state to the session hold state; in the session hold state, that is, the hold time T2-T1 During the time period, the login request or other activation message based on the simple mode of the original session ID sent by the second mobile terminal is still not received, that is, in T2, if the return message of the second mobile terminal is not received, the The mobile terminal is permanently dropped, and the session state is migrated from the session hold state to the session exit state; in this state, the mobile access server notifies the central service The server saves the instant message offline; and after confirming that the central server saves the instant message offline, exits the session corresponding to the instant message, and releases the cache resource corresponding to the cached instant message.
  • the mobile access server disclosed in the embodiment of the present invention further includes: a complex mode login module 807, configured to receive a login request sent by the second mobile terminal in the complex mode, and forward the login request to the central server; Receiving a response message returned by the central server and forwarding it to the second mobile terminal; creating a session module 808 for creating a new session; and an offline messaging module 809 for receiving the offline save from the central server by the message recovery module 806 Instant messaging, and forwarding it to the second mobile terminal; receiving a response message of the offline saved instant message receiving confirmation sent by the second mobile terminal, and forwarding the message to the central server.
  • a complex mode login module 807 configured to receive a login request sent by the second mobile terminal in the complex mode, and forward the login request to the central server
  • Receiving a response message returned by the central server and forwarding it to the second mobile terminal creating a session module 808 for creating a new session
  • an offline messaging module 809 for receiving the offline save from the central server by the message recovery module 806 Instant messaging, and forward
  • the mobile access server provided by the embodiment of the present invention specifically manages the second mobile terminal that receives the message, and can effectively process the undeliverable message, thereby reducing the burden on the central server.
  • the embodiment of the present invention further discloses an instant messaging system, including: a mobile access server 901 and a central server 902;
  • the mobile access server 901 is configured to receive and cache an instant message from the first terminal; forward the instant message to the second mobile terminal; if not received within the first drop time threshold T1 after forwarding the instant message The response message returned by the second mobile terminal, but receiving the response message returned by the second mobile terminal in the second dropped time threshold T2, determining that the second mobile terminal temporarily drops the line; if the second mobile has not been received within T2 The response message returned by the terminal determines that the second mobile terminal is permanently dropped; if the second mobile terminal temporarily drops the line, the instant message is resent to the second mobile terminal; if the second mobile terminal is permanently disconnected, the central server 902 is notified. Save instant messages offline;
  • the central server 902 is configured to receive an instant message forwarded by the mobile access server 901.
  • the receiving mobile access server 901 sends a request for offline saving an instant message, and performs offline saving, and sends a response message to the mobile access server 901.
  • the first terminal may be a PC terminal, or may be a mobile terminal or other terminal, which is not limited herein; for example, if the first terminal is a PC terminal, the PC terminal is served to the central office.
  • the 902 sends an instant message, the central server 902 returns an acknowledgment and forwards the instant message to the mobile access server 901, and after receiving the instant message, the mobile access server 901 returns an acknowledgment to the central server 902; if the first terminal is a mobile terminal, Then, the instant message is sent directly to the mobile access server 901.
  • the mobile access server 901 After the mobile access server 901 returns the confirmation, the mobile server forwards the instant message to the central server 902, and the central server 902 gives an acknowledgement; and then the central server 902 sends the mobile terminal 901 to the mobile access server 901. The instant message, and receiving a response message that the central server 902 returns an acknowledgment;
  • the second mobile terminal in the embodiment of the present invention may be a mobile phone terminal, which does not directly communicate with the central server 902, but connects to the mobile access server 901, and communicates with the central server 902 indirectly through the mobile access server 901. ;
  • the mobile access server 901 in this embodiment may be the mobile access server in the foregoing method embodiment, and the functions of the respective functional modules may be specifically implemented according to the method in the foregoing method embodiment.
  • the functions of the respective functional modules may be specifically implemented according to the method in the foregoing method embodiment.
  • An instant messaging system provided by an embodiment of the present invention includes a device for a mobile access server, and the mobile access server implements effective session management of a mobile terminal that receives a message.
  • the mobile access server implements effective session management of a mobile terminal that receives a message.
  • a variety of recovery means are provided to continue the session between the user terminal and the mobile terminal while ensuring security.
  • the system can alleviate the problem of increased storage pressure of the central server caused by the temporary drop of the mobile terminal, improve the forwarding efficiency of the message, and improve the user experience of the mobile terminal.
  • the medium can be a read only memory, a magnetic disk or a compact disk or the like.

Landscapes

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

Abstract

本发明实施例公开了一种即时通信方法、系统及装置,减轻由于移动终端的临时掉线而导致的服务器存储压力增大的问题,提高通信效率;其方法包括:移动接入服务器接收并缓存来自第一终端的即时消息;向第二移动终端转发即时消息;若在转发即时消息后的第一掉线时间门限内未收到第二移动终端返回的响应消息,但在转发即时消息后的第二掉线时间门限内收到第二移动终端返回的响应消息,则确定第二移动终端临时掉线;若在第二掉线时间门限内仍未收到第二移动终端返回的响应消息,则确定第二移动终端永久掉线;若第二移动终端临时掉线,则向第二移动终端重新发送即时消息;若第二移动终端永久掉线,则通知中央服务器离线保存即时消息。

Description

一种即时通信方法、 系统及装置 本申请要求于 2011 年 11 月 1 日提交中国专利局、 申请号为 201110340034.1、 发明名称为"一种即时通信方法、 系统及装置"的中国专利 申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域
本发明涉及即时通信(IM, Instant Messaging )技术, 尤其是涉及到一种 即时通信方法、 系统及装置。
背景技术
随着即时通信技术的快速发展,即时通信已经成为网络用户生活中的一部 分; 同时, 在企业级的即时通信中, 即时消息已不再是简单的闲聊, 上级对下 级的消息可能意味着一项任务的安排。 所以即时消息不容轻易丟失,有没有真 正送达需要有反馈。
目前的即时通信系统一般都具备消息送达对方的确认机制,当接收消息的 终端离线时, 消息便当作离线消息保存, 然而, 当接收消息的终端为移动终端 时, 由于移动终端离线的几率比个人计算机(PC, Personal Computer )终端离 线的几率要大, 因此给服务器带来很大的离线消息保存压力, 当超过一定的压 力时, 服务器只能放弃保存, 消息的丟失不可避免。 实际上, 移动终端很多情 况下的离线是由于移动网络信号变化导致, 这种离线会非常短暂, 过不了几秒 钟就又重新上线, 此种掉线称之为临时掉线; 而当移动终端因网络故障或关机 造成的掉线则称之为永久掉线。
如图 1 , 为现有技术中一种即时通信的方法的流程示意图, 此处以 PC终 端发送消息给移动终端为例, 当移动终端为手机终端, 手机终端临时掉线时的 处理方法如下: 当 PC终端发送即时消息给手机终端, 经过中央服务器中转; 手机终端临时掉线, 没有给出确认, 中央服务器将即时消息离线保存, 并删除 会话; 当移动终端网络恢复, 则重新登录并开始会话, 中央服务器确认之后分 析新的会话身份标识号 (ID, Identity ); 中央服务器将离线保存的即时消息发 送给手机终端, 手机终端接收后给出确认。 由于在现有技术中, 对于暂时未得 到确认的消息一般釆取服务器进行离线保存方法, 留待下次发送, 这种即时通 信系统的接收消息的终端无论是移动终端, 还是 PC终端, 无论该终端是临时 掉线还是永久掉线而没有给出确认, 都是釆用同样的手段处理的。
对于接收消息的终端为 PC终端, 这样的处理方法是合理的, 因为 PC终 端一般都是通过有线连接, 不容易发生掉线,但对于接收消息的终端为移动终 端却是不合理的, 因为移动终端接入的是移动无线网, 受干扰或出现盲点的情 况不可避免,掉线更容易发生。如果当移动终端由于无线网络的不稳定而介于 离线和在线之间时,需要反复地存储离线消息,加大了数据库服务器存储压力; 同时临时掉线需要重新进行认证和登录, 增加了通信开销, 恢复慢, 用户体验 差。
发明内容
本发明实施例提供了一种即时通信方法、 系统及装置, 减轻由于移动终端 的临时掉线而导致的服务器存储压力增大的问题, 提高通信效率。
一种即时通信方法, 包括:
移动接入服务器接收并緩存来自第一终端的即时消息;
向第二移动终端转发所述即时消息;
若在转发所述即时消息后的第一掉线时间门限内未收到第二移动终端返 回的响应消息,但在转发所述即时消息后的第二掉线时间门限内收到第二移动 终端返回的响应消息, 则确定第二移动终端临时掉线; 若在第二掉线时间门限 内仍未收到第二移动终端返回的响应消息, 则确定第二移动终端永久掉线; 若第二移动终端临时掉线, 则向第二移动终端重新发送所述即时消息; 若第二移动终端永久掉线, 则通知中央服务器离线保存所述即时消息。 一种移动接入服务器, 包括:
消息接收緩存模块, 用于接收并緩存来自第一终端的即时消息; 消息发送模块,用于向第二移动终端转发所述消息接收緩存模块接收的即 时消息;
判断模块,用于若在转发所述即时消息后的第一掉线时间门限内未收到第 二移动终端返回的响应消息,但在第二掉线时间门限内收到第二移动终端返回 的响应消息, 则确定第二移动终端临时掉线, 并触发临时掉线处理模块进行操 作; 若在第二掉线时间门限内仍未收到第二移动终端返回的响应消息, 则确定 第二移动终端永久掉线, 并触发永久掉线处理模块进行操作;
临时掉线处理模块, 用于在第二移动终端临时掉线时, 向第二移动终端重 新发送即时消息;
永久掉线处理模块, 用于在第二移动终端永久掉线时,指示消息回收模块 通知中央服务器离线保存所述即时消息;
消息回收模块, 用于根据永久掉线处理模块的指示,通知中央服务器离线 保存所述即时消息。
一种即时通信系统, 其特征在于, 包括:
移动接入服务器, 用于接收并緩存来自第一终端的即时消息; 向第二移动 终端转发所述即时消息;若在转发所述即时消息后的第一掉线时间门限内未收 到第二移动终端返回的响应消息,但第二掉线时间门限内收到第二移动终端返 回的响应消息, 则确定第二移动终端临时掉线; 若在第二掉线时间门限内仍未 收到第二移动终端返回的响应消息, 则确定第二移动终端永久掉线; 若第二移 动终端临时掉线, 则向第二移动终端重新发送所述即时消息; 若第二移动终端 永久掉线, 则通知中央服务器离线保存所述即时消息;
中央服务器, 用于接收移动接入服务器转发的即时消息; 接收移动接入服 务器发送离线保存所述即时消息的请求, 并进行离线保存, 给移动接入服务器 发送响应消息。
从以上技术方案可以看出, 本发明实施例提供的一种即时通信方法、 系统 及装置, 能够针对接收消息的移动终端作专门的会话管理, 不再盲目地对消息 进行离线保存,而是提供了多种恢复手段来将发送消息的终端和接收消息的移 动终端之间的会话继续下去,同时能够减轻由于移动终端临时掉线而导致的中 央服务器存储压力增大的问题,提高了通信效率,改善了移动终端的用户体验。 附图说明
图 1为现有技术中提供的一种即时通信方法的时序图;
图 2为本发明实施例一提供的一种即时通信方法的流程示意图; 图 3为本发明实施例二提供的一种即时通信方法的时序图;
图 4为本发明实施例三提供的一种即时通信方法的时序图;
图 5为本发明实施例四提供的一种即时通信方法的时序图;
图 6为本发明实施例五提供的一种即时通信方法的时序图;
图 7为本发明实施例提供的即时通信方法的会话状态迁移图;
图 8为本发明实施例提供的一种即时通信装置的结构示意图;
图 9为图 8所提供的装置中临时掉线处理模块结构示意图;
图 10为图 8所提供的装置中永久掉线处理模块结构示意图;
图 11为本发明实施例提供的一种即时通信系统的结构示意图。
具体实施方式
有鉴于此, 本发明实施例提供了一种即时通信方法、 系统及装置, 减轻 由于移动终端的临时掉线而导致的服务器存储压力增大的问题, 提高通信效 率。
以下结合附图对本发明提供的即时通信方法、 装置及系统进行详细描 述。
即时通信( IM, Instant Messaging )是一种可以让使用者在网络上建立某 种私人聊天室( chatroom )的实时通讯服务。 目前在互联网上受欢迎的即时通 信软件包括腾讯 QQ、 百度 HI、 新浪 UC、 MSN Messenger , Lava 系列 ( Lava-Lava ^ Lava快信、 Lava个信)等。
实施例一:
本发明实施例提供的一种即时通信方法, 其中, 发送消息方为第一终 端, 接收消息方为第二移动终端, 请参考图 2 , 为该通信方法时序图, 其具 体包括以下步骤:
S101、 移动接入服务器接收并緩存来自第一终端的即时消息; 其中, 第一终端可以是 PC终端, 也可以是移动终端或其它终端设备。 S102、 向第二移动终端转发即时消息;
移动接入服务器接收到即时消息, 并返回确认接收的响应消息后, 转发 该即时消息给第二移动终端;
可以理解的是, 通信领域内, 移动终端也叫移动通信终端, 是指可以在 移动中使用的计算机设备, 广义的讲包括手机、 笔记本、 销售点情报管理系 统(POS , Pointofsales )机, 甚至包括车载电脑, 通常情况下是指手机或者具 有多种应用功能的智能手机;
需要说明的是, 移动接入服务器接收并转发的即时消息可以按照特定的 格式封装在一个数据包中; 数据包中具有固定的头部和消息体, 消息体例如 用可扩展标记语言( XML , Extensible Markup Language )或其它语言来描述; 消息头部由 16个字节组成, 依次为 4字节消息长度、 2字节消息版本号、 1 字节消息类型和发送方、 1字节消息功能分类、 1字节命令码、 1字节内容编 码方式、 2字节消息流水号、 4字节的会话身份标识;
具体地说, 1 字节消息类型和发送方, 其中高四位为发送方, 0x10 为移 动接入服务器, 0x00 为移动终端, 移动接入服务器将根据发送方身份进行判 断, 接受第二移动终端的请求; 低四位为消息类型, 消息类型釆用——对 应, 例如请求消息与回复消息互相对应, 并标记为 0x01 , 指示消息与确认消 息互相对应, 并标记为 0x10, 通知消息标记为 0x11 , 无需对应; 其中, 请求 消息可以是第二移动终端主动向中央服务器发送的消息, 中央服务器的响应 消息则称为回复消息, 指示消息可以是中央服务器主动向第二移动终端发送 的消息, 第二移动终端的响应消息则可称为确认消息; 通知消息则可以是中 央服务器发往第二移动终端, 第二移动终端不需要答复的消息。
进一步地, 1字节消息功能分类和 1字节命令码可以合并成唯——种消息 功能, 例如即时消息的功能为 0x03 , 命令码为 0x0a, 组合成 0x030a; 1字节 内容编码方式及说明, 如表 1 , 该字节最低位表示消息是否加密, 倒数第二 位表示消息是否压缩;
1字节编码方式及说明
Figure imgf000008_0001
更进一步地, 4字节的会话 ID, 初始时由移动接入服务器生成, 不为 0 , 第二移动终端在后续所有请求都通过移动接入服务器, 供移动接入服务器定 位其对应的会话。
S103、 若在转发即时消息后的第一掉线时间门限内未收到第二移动终端 返回的响应消息, 但在转发即时消息后的第二掉线时间门限内收到第二移动 终端返回的响应消息, 则确定第二移动终端临时掉线; 若在第二掉线时间门 限内仍未收到第二移动终端返回的响应消息, 则确定第二移动终端永久掉 线;
进一步地, 步骤 S101与步骤 S102涉及的即时消息所对应的会话是在正常 服务状态下完成的; 若在转发即时消息后的第一掉线时间门限内未收到第二 移动终端返回的响应消息, 则会话状态会迁移到会话保持状态; 但若在转发 即时消息后的第二掉线时间门限内收到第二移动终端返回的响应消息, 则会 话状态将迁移回正常服务状态;
可以理解的是, 当移动接入服务器向第二移动终端转发即时消息后, 若 收到第二移动终端返回的确认消息收到的响应消息, 即会话一直保持正常服 务状态, 该第二移动终端未掉线;
需要说明的是, 第二移动终端返回的响应消息类型可以是属于即时消息 的一种, 其消息特征同步骤 S102所讲述的即时消息的消息特征。
S104、 若第二移动终端临时掉线, 则向第二移动终端重新发送即时消 息; 在第二移动终端临时掉线的情况下, 当第二移动终端网络恢复, 并接收 到第二移动终端的激活消息, 则会话由会话保持状态迁移到正常服务状态, 移动接入服务器将此緩存的即时消息重新发送给第二移动终端, 并收到移动 终端返回的确认消息收到的响应消息;
可以理解的是, 第二移动终端的临时掉线通常是指由于移动网络信号变 化导致, 这种掉线会非常短暂, 过不了几秒钟就又重新上线, 加上第二移动 终端接入的是移动无线网, 受干扰或出现盲点的情况不可避免, 因此会出现 临时掉线的情况;
需要说明的是, 由第二移动终端发出的激活消息类型也可以是即时消息 的一种, 其消息特征同步骤 S102所讲述的即时消息的消息特征; 此激活消息 可以是心跳消息, 也可以是移动终端的登录请求消息, 此处不作具体限定。
S105、 若第二移动终端永久掉线, 则通知中央服务器离线保存即时消 息;
在判断出第二移动终端永久掉线后, 将会话状态由会话保持状态迁移到 会话退出状态, 移动接入服务器通知中央服务器将该即时消息进行离线保 存;
可以理解的是, 第二移动终端永久掉线通常是移动终端因网络故障或关 机造成的掉线, 因此当第二移动终端重新登录的时候, 需重新开始一个会话 的创建过程, 该会话的状态为初始状态; 在此状态下, 移动终端响应中央服 务器系统的能力, 如将模拟声音讯号 (Voice)数字化( VoIP, Voice over Internet Protocol ) 、 通讯录同步、 短信能力、 点击拨号 (CTD , Click To Dial) 、 点 击进入会议(CTC, Click To Conference ) 能力等; 这是一个移动终端对中央 服务器的一个初始配置认识过程, 数据量较大, 需要作较多的资源分析与查 询工作, 通常把这个过程称之为移动终端在复杂模式下发送的登录请求的过 程。
本发明实施例一中讲述了第一终端和第二移动终端的即时通信流程和方 法, 其能够针对接收消息的第二移动终端作专门的会话管理, 不再盲目地对 消息进行离线保存, 减轻由于第二移动终端临时掉线而导致的中央服务器存 储压力增大的问题, 提高了通信效率。
实施例二:
为了更清晰地表达上述实施例的各个步骤, 并与现有的通信方法形成鲜 明的对比, 以下针对第二移动终端临时掉线情况作具体阐述:
请参考图 3 , 为本发明实施例提供的一种通信方法中, 以第一终端为 PC 终端, 第二移动终端具体为手机终端时为例, 当 PC终端和手机终端之间进行 通信时, 手机终端临时掉线的流程示意图, 其具体步骤如下, 为方便描述, 该实施例中的即时消息记为 Ml:
5201、 PC终端向中央服务器发送 Ml ;
5202、 中央服务器向 PC终端返回确认消息;
5203、 中央服务器向移动接入服务器发送 Ml ;
5204、 移动接入服务器緩存 Ml ;
S205、 移动接入服务器向中央服务器返回确认消息;
步骤 S201至步骤 S205可具体为: PC终端与手机终端之间进行通信, 首 先, 由 PC终端向中央服务器发送 Ml , 中央服务器返回确认并向移动接入服 务器转发该 Ml , 移动接入服务器接收到 Ml后, 緩存 Ml , 并向中央服务器 返回确认;
需要说明的是, 第二移动终端即本实施例中的手机终端, 不是直接与中 央服务器通信, 而是连接移动接入服务器, 通过移动接入服务器间接地与中 央服务器通信; 而 PC终端则仍然直接连接中央服务器, 不连接移动接入服务 器。
S206、 移动接入服务器向手机终端转发 Ml ;
移动接入服务器接收到中央服务器转发的 Ml , 并返回确认接收的响应消 息后, 转发 Ml给手机终端; 可以理解的是, 移动接入服务器接收并转发的 Ml , 其消息特征可以参照 实施例一中步骤 S102所讲述的即时消息的消息特征, 此处不再具体阐述。
5207、 若在转发 Ml后的第一掉线时间门限 T1内未收到手机终端返回的 响应消息, 但在转发 Ml后的第二掉线时间门限 T2内接收到手机终端返回的 响应消息, 则确定手机终端临时掉线;
移动接入服务器向手机终端转发 Ml后, 若在转发 Ml后的 T1 (例如 5 分钟) 内未收到第二移动终端返回的响应消息, 但在 T2 (例如 30分钟) 内收 到第二移动终端返回的响应消息, 则确定第二移动终端临时掉线;
具体地说, 若在 T1内, 没有收到手机终端返回的响应消息, 则会话状态 将由正常服务状态迁移到会话保持状态; 另外, 由于第二掉线时间门限为 Τ2, 所以会保持状态的保持时间为 T2-T1 , 若在这 T2-T1时间段内接收到手机 终端返回的响应消息, 则确定手机终端临时掉线;
需要说明的是, Τ2大于 T1 , 意思是在保持时间 T2-T1内接收到手机终端 返回的响应消息, 即代表在转发消息后的 Τ2内接收到手机终端返回的响应消 息; 另外, 手机终端返回的响应消息类型可以是即时消息的一种, 其消息特 征可参考步骤 S102所讲述的即时消息的消息特征, 此处不再具体阐述;
可以理解的是, 当移动接入服务器向手机终端转发即时消息后, 若收到 手机终端返回的确认消息收到的响应消息, 则该手机终端未掉线。
5208、 手机终端在 T1内恢复网络;
S209、 在转发 Ml后的 T1内收到手机终端的心跳消息;
可以理解的是, 当在 T1内收到手机终端的心跳消息或其他的激活消息, 即手机终端恢复网络, 否则, 执行步骤 S212;
5210、 移动接入服务器向手机终端重新发送 Ml ;
5211、 手机终端向移动接入服务器返回确认消息;
步骤 S208至步骤 S211可具体为: 当在转发 Ml后的 T1内收到手机终端 的心跳消息, 则移动接入服务器将此緩存的 Ml 重新发送给手机终端, 并接 收手机终端返回的确认消息收到的响应消息, 此过程, 会话状态保持为正常 服务状态。
需要说明的是, 由手机终端发出的心跳消息类型也可以是即时消息的一 种, 命令码为 0x0312, 这类消息由移动终端每分钟定期向移动接入服务器上 报; 另外, 其消息特征可参照步骤 S102所讲述的即时消息的消息特征, 此处 不再具体阐述;
5212、 手机终端在 T1内没有恢复网络;
5213、 会话状态迁移到会话保持状态;
步骤 S212到步骤 S213可具体为: 当移动接入服务器在 T1内没有收到手 机终端发出的心跳消息或其他激活消息, 即表示手机终端在 T1内没有恢复网 络, 则将会话状态会由正常服务状态迁移到会话保持状态。
5214、 手机终端在 T2内恢复网络;
5215、 在转发 Ml后的 T2内收到手机终端简单模式的登录请求;
5216、 移动接入服务器向手机终端返回登录确认消息;
S217、 会话状态迁移到正常服务状态;
S218、 移动接入服务器向手机终端重新发送 Ml ;
S219、 手机终端向移动接入服务器返回确认消息;
步骤 S214至步骤 S219可具体为: 由于第二掉线时间门限设定为 T2, 所 以会话保持状态的保持时间为 T2-T1 , 若在这 T2-T1时间段内接收到手机终端 发出的激活消息, 例如是基于原会话 ID 简单模式的登录请求, 则移动接入 服务器返回登录确认消息, 并将会话状态重新迁移回正常服务状态, 接着, 移动接入服务器将此緩存的 Ml 重新发送给手机终端, 接收手机终端返回的 确认 Ml收到的响应消息;
同样地, T2大于 T1 , 意思是在保持时间 T2-T1的时间段内接收到手机终 端返回的响应消息, 即代表在转发 Ml后的 T2内接收到手机终端返回的响应 消息; 需要说明的是, 简单模式的登录是指需要手机终端的用户输入一个用户 名和一个用户密码进行验证即可, 不同于复杂模式的登录, 即不需要重新开 始一个会话的创建过程, 来给手机终端响应中央服务器系统的能力。
本发明实施例二中主要以用户终端为 PC终端, 第二移动终端具体为手机 终端时为例, 当 PC终端和手机终端之间进行通信时, 手机终端临时掉线的处 理过程和方法, 针对手机终端临时掉线的情况提供了两种恢复手段来将用户 终端和移动终端之间的会话继续下去, 同样地, 能够减轻由于移动终端临时 掉线而导致的中央服务器存储压力增大的问题, 提高了通信效率, 改善了移 动终端的用户体验。
实施例三:
以下实施例针对移动终端永久掉线情况作具体阐述:
请参考图 4 , 为本发明实施例提供的一种通信方法中, 以第一终端为 PC 终端, 第二移动终端具体为手机终端时为例, 当 PC终端和手机终端之间进行 通信时, 手机终端永久掉线的流程示意图, 为方便描述, 该实施例中的即时 消息记为 M2, 其具体步骤如下:
5301、 PC终端向中央服务器发送 M2;
5302、 中央服务器向 PC终端返回确认消息;
5303、 中央服务器向移动接入服务器发送 M2;
5304、 移动接入服务器緩存 M2;
S305、 移动接入服务器向中央服务器返回确认消息;
S306、 移动接入服务器向手机终端转发 M2;
步骤 S301至步骤 S306可参考实施例二中步骤步骤 S201至步骤 S206的 相关内容, 此处不再具体阐述;
S307、 若在转发 M2后的第二掉线时间门限 T2内仍未收到手机终端返回 的响应消息, 则确定手机终端永久掉线;
移动接入服务器向手机终端转发 M2后, 在转发 M2后 T2内仍未收到手 机终端返回的响应消息; 可以认为, 在第一掉线时间门限 T1内没有收到手机 终端的激活消息, 如心跳消息; 在会话保持状态的保持时间为 T2-T1 内也没 有接收到手机终端发出的激活消息, 可以是基于原会话 ID 简单模式的登录 请求 , 所以也就说 T2内仍未收到手机终端返回的响应消息 , 则可该确定手机 终端永久掉线。
5308、 手机终端在 T1内没有恢复网络;
5309、 会话状态迁移到会话保持状态;
步骤 S308至步骤 S309可参考实施例二中步骤 S212至步骤 S213的相关 内容, 此处不再具体阐述。
S310、 手机终端在 T2内还是没有恢复网络;
5311、 会话状态迁移到会话退出状态;
5312、 通知中央服务器离线保存 M2;
5313、 中央服务器离线保存 M2;
5314、 移动接入服务器确认中央服务器离线保存 M2;
S315、 退出 M2对应的会话, 并释放緩存的 M2对应的緩存资源; 步骤 S310至步骤 S315可具体为; 在确定该手机终端为永久掉线, 即手机 终端在 T2-T1时间段内还是没有恢复网络, 则緩存 M2; 会话状态由会话保持 状态迁移为会话退出状态; 在会话退出状态下, 移动接入服务器通知中央服 务器离线保存 M2; 并且在确认中央服务器离线保存 M2后, 退出 M2对应的 会话, 并释放緩存的 M2对应的緩存资源。
需要说明的是, 在手机终端永久掉线后, 为了保证安全性, 手机终端需 要在复杂模式下进行重新登录, 获得一个新的会话 ID, 重新开始一轮会话, 本实施例基于这种场合, 提出了以下可实施方案, 其步骤如下:
5316、 接收手机终端在复杂模式下发送的登录请求, 向中央服务器转发 该登录请求;
5317、 接收中央服务器返回的响应消息并将其转发至手机终端; 5318、 创建新的会话;
5319、 接收中央服务器发送的离线保存的 M2, 并将其转发至手机终端; S320、 返回离线保存的 M2接收确认的响应消息;
步骤 S316至步骤 S320可具体为: 移动接入服务器接收手机终端在复杂模 式下发送的登录请求, 把会话状态由初始状态置为正常服务状态, 并向中央 服务器转发该登录请求; 请求通过, 接收中央服务器返回的响应消息并将其 转发至手机终端; 移动接入服务器创建新的会话, 接收中央服务器发送的离 线保存的 M2 并将其转发至手机终端; 在接收到手机终端发送的离线保存的 M2接收确认的响应消息后, 向中央服务器转发;
可以理解的是, 手机终端永久掉线可以是指手机终端因网络故障或关机 等造成的掉线, 因此当手机终端永久掉线了, 为了保证安全性, 一旦进入了 会话退出状态, 手机终端需要在复杂模式下进行重新登录, 获得一个新的会 话 ID, 重新开始一轮会话; 这是因为在通信中, 手机终端会向中央服务器发 送版本查询协议, 如即时消息报文类型为 0x0001 , 此时会话 ID为 0, 是手机 终端向中央服务器发出的第一个消息, 移动接入服务器在响应中给出会话 ID, 手机终端需要记录所获取的会话 ID作为以后通信的凭证。
需要说明的是, 手机终端在复杂模式下发送登录请求, 也就是说在复杂 模式下进行重新登录, 即需要重新开始一个会话的创建过程, 给移动终端响 应中央服务器系统的能力, 如将模拟声音讯号数字化、 通讯录同步、 短信能 力、 点击拨号、 点击进入会议能力等; 这是一个移动终端对中央服务器的一 个初始配置认识过程, 数据量较大, 需要作较多的资源分析与查询工作, 因 此在该实施例中, 将此过程称之为手机终端在复杂模式下重新登录的过程。
在本发明实施例三中主要以第一终端为 PC终端, 第二移动终端具体为手 机终端时为例, 当 PC终端和手机终端之间进行通信时, 手机终端永久掉线的 处理过程和方法, 过程中釆用了緩存消息, 消息离线保存等手段对手机终端 永久掉线时的即时消息进行处理, 同样地, 能够减轻由于移动终端临时掉线 而导致的中央服务器存储压力增大的问题, 提高了通信效率, 改善了移动终 端的用户体验。
实施例四:
实施例二和实施例三中, 以第一终端为 PC终端, 第二移动终端具体为手 机终端时为例, 当 PC终端和手机终端之间进行通信时, 就手机终端临时掉线 和永久掉线两种情况分别进行描述; 以下实施例针对第一终端为移动终端, 其和第二移动终端之间的通信来进行简单阐述;
请参考图 5 , 为两个移动终端之间的通信方法时序图, 本实施例中, 第 二移动终端与移动终端均为手机终端, 为了便于区分, 其中手机终端 A为发 送消息方, 手机终端 B 为接收消息方, 为方便描述, 该实施例中的即时消息 记为 M3 , 其步骤如下:
S401、 移动接入服务器接收来自手机终端 A的 M3;
S402、 移动接入服务器緩存 M3;
S403、 向手机终端 A返回确认消息;
S404、 移动接入服务器把 M3转发至中央服务器;
5405、 中央服务器向移动接入服务器返回确认消息;
5406、 由中央服务器向移动接入服务器转发 M3;
5407、 移动接入服务器返回确认消息;
步骤 S401至步骤 S406可具体为: 手机终端 A与手机终端 B之间进行通 信, 首先, 由手机终端 A直接向移动接入服务器发送 M3 , 移动接入服务器接 收并緩存 M3 , 向手机终端 A返回确认后, 向中央服务器转发 M3 , 中央服务 器再给出确认;
而后由中央服务器向移动接入服务器发送 M3 , 并接收中央服务器返回确 认的响应消息;
需要说明的是, 接收消息方即本实施例中的手机终端 B , 不是直接与中 央服务器通信的, 而是连接移动接入服务器, 通过移动接入服务器间接地与 中央服务器通信; 相同地, 发送 M3的手机终端 A, 也是不直接连接中央服务 器, 而是通过连接移动接入服务器间接地与中央服务器进行通信, 与实施例 二和实施例三中发送消息方为 PC终端有所区别。
5408、 向手机终端 B转发 M3;
移动接入服务器接收到中央服务器转发的 M3 , 并返回确认接收的响应消 息后, 转发 M3给手机终端 B;
可以理解的是, 移动接入服务器接收并转发的 M3 , 其消息特征可参照步 骤 S102所讲述的即时消息的消息特征, 此处不再具体阐述。
5409、 手机终端 B向移动接入服务器返回确认消息;
当移动接入服务器向手机终端 B转发 M3后, 收到手机终端 B返回的确 认消息收到的响应消息, 则表示该手机终端 B没有掉线;
需要说明的是, 当移动接入服务器在预设定的第一掉线时间门限 T1和第 二掉线时间门限 T2内没有收到手机终端 B返回的响应消息, 则可以确定手机 终端 B掉线; 进一步地, 若手机终端 B临时掉线, 则可以按照实施例二中的 处理方法进行处理; 若手机终端 B永久掉线, 则可以按照实施例三中的处理 方法进行处理, 此处不再具体阐述。
本发明实施例四中, 针对第一终端为移动终端, 其和第二移动终端之间 的通信来进行阐述, 实施例四表明, 本发明提供的即时通信方法一样适用对 于发送消息方为移动终端的情况, 也能够减轻由于移动终端临时掉线而导致 的中央服务器存储压力增大的问题, 提高了通信效率。
实施例五:
下面再举一个群发即时消息的例子, 有助于更进一步地了解整套系统的 运作。
在该实施例中, 假设一个群中有三个终端, 分别是发送消息方的手机终 端 A, 接收消息方的手机终端 B和 PC终端 C; 开始群聊时, 手机终端 A往群 中发送即时消息, 实际是由手机终端 A把即时消息分别发给群中的手机终端 B和 PC终端 C, 即产生两条独立的即时消息; 如果手机终端 B或 PC终端 C 发生掉线的情况, 同样可以按照实施例二、 实施例三和实施例四的处理方案 对其进行处理。 请参考图 6 , 为群发消息时的时序图, 在本实施例中, 以接 收消息方中的手机终端 B 在群聊时掉线作为应用场景进行描述, 为方便描 述, 该实施例中手机终端 A发送到手机终端 B的即时消息记为 M4, 手机终端 A发送到 PC终端的即时消息记为 M5, 其具体步骤如下:
S501、 移动接入服务器接收并緩存来自手机终端 A的 M4, 接收终端为手 机终端 B;
S502、 向手机终端 A返回确认消息;
S503、 移动接入服务器把 M4转发至中央服务器;
5504、 中央服务器向移动接入服务器返回确认消息;
5505、 由中央服务器向移动接入服务器转发 M4;
5506、 移动接入服务器返回确认消息;
步骤 S501至步骤 S506可具体为: 由手机终端 A向群中发送 M4, 该实施 例中, 接收终端可以先设定为手机终端 B; 即在手机终端 A与手机终端 B之 间进行通信, 首先, 由手机终端 A直接向移动接入服务器发送 M4, 确定 M4 接受终端为手机终端 B; 移动接入服务器接收并緩存 M4 , 向手机终端 A返回 确认后, 向中央服务器转发 M4, 并附上指示具体接收终端为手机终端 B的指 示消息, 中央服务器再给出确认;
而后中央服务器根据接收者为手机终端 B, 则向移动接入服务器转发该 即时消息和指示消息, 并接收中央服务器返回确认的响应消息。
5507、 向手机终端 B转发 M4;
移动接入服务器接收到中央服务器转发的 M4 和指示消息, 并返回确认 接收的响应消息后, 转发 M4给手机终端 B;
S508、 手机终端 B向移动接入服务器返回确认消息;
当移动接入服务器向手机终端 B转发 M4后, 收到手机终端 B返回的确 认 M4收到的响应消息, 则表示该手机终端 B没有掉线;
可以理解的是, 当移动接入服务器没有收到手机终端 B 返回的响应消 息, 则判断手机终端 B掉线, 并进一步地根据预设的掉线时间门限来判断手 机终端 B是临时掉线还是永久掉线; 若手机终端 B临时掉线, 则可以按照实 施例二中的处理方法进行处理, 此处不再具体阐述;
需要说明的是, 若手机终端 B永久掉线, 即在转发 M4后的第二掉线时间 门限 T2内, 没有收到手机终端返回的确认消息, 则可以按照实施例三中的处 理方法进行处理, 如緩存 M4, 请求离线保存 M4等, 此处不再具体阐述; 但 是在中央服务器离线保存 M4后, 会执行以下步骤:
5509、 中央服务器更新手机终端 B 的在线或离线状态, 更改在线用户列 表, 指示手机终端 A下次群发消息时无需再发给手机终端 B;
5510、 中央服务器通知移动接入服务器手机终端 B掉线;
5511、 移动接入服务器返回确认消息;
5512、 移动接入服务器将手机终端 B掉线的消息转发至手机终端 A; S513、 手机终端 A返回确认消息;
步骤 S510至步骤 S513可具体为: 中央服务器将手机终端 B掉线的消息, 和下次群发即时消息不必要再发送到手机终端 B 的消息, 发送到移动接入服 务器, 并通过其转发至手机终端 A, 当手机终端 A获知手机终端 B已掉线, 则下次在群发即时消息时会跳过 B, 即无需把即时消息发送给掉线的手机终 端 B。
S514、 移动接入服务器接收并緩存来自手机终端 A 的 M5, 接收终端为 PC终端 C;
S515、 向手机终端 A返回确认消息;
5516、 移动接入服务器把 M4转发至中央服务器;
5517、 中央服务器向移动接入服务器返回确认消息;
步骤 S514至步骤 S517可具体为: 由于手机终端 B掉线, 因此手机终端 A无需再向手机终端 B发送即时消息, 即接收终端为 PC终端 C; 首先, 由手 机终端 A直接向移动接入服务器发送 M5 , 确定接收终端为 PC终端 C; 移动 接入服务器接收并緩存 M5 , 向手机终端 A返回确认后, 向中央服务器转发 M5 , 并附上指示具体接收终端为 PC终端 C的指示消息指示消息, 中央 Λ良务 器再给出确认。
5518、 中央服务器向 PC终端 C转发即时消息;
移动接入服务器接收到中央服务器转发的 M5 和指示消息, 并返回确认 接收的响应消息后, 转发 M5给 PC终端 C;
5519、 PC终端 C向中央服务器返回确认消息;
当移动接入服务器向 PC终端 C转发 M5后, 收到 PC终端 C返回的确认
M5收到的响应消息, 则该 PC终端 C没有掉线;
可以理解的是, 当移动接入服务器在预设定的第一掉线时间门限和第二 掉线时间门限没有收到 PC终端 C返回的响应消息, 则可以确定 PC终端 C掉 线; 若 PC终端 C临时掉线, 则可以按照实施例二中的处理方法进行处理, 若 PC终端 C永久掉线, 则可以按照实施例三中的处理方法进行处理, 此处不再 具体阐述。
本发明实施例五中, 利用一个群发即时消息的例子, 有助于更进一步地 了解整套系统的运作, 同样地, 实施例五的实施也是能够减轻由于移动终端 临时掉线而导致的中央服务器存储压力增大的问题, 起到了提高通信效率的 作用。
下面进一步借助状态迁移图来讲解整套系统的运作, 和揭示移动接入服 务器的内部细节, 请参考图 7 , 为本发明实施例中涉及的即时通信方法的会 话状态迁移图:
针对本发明实施例中涉及的即时通信方法, 在用户终端向移动终端发送 即时消息的过程中, 会话状态包括初始状态 701、 正常服务状态 702、 保持状 态 703 和退出状态 704 , 并且, 图中有标注说明的状态迁移条件详细说明如 下:
5701、 第二移动终端在复杂模式下的登录;
移动接入服务器收到移动终端的登录请求后, 产生新一轮会话, 进入 "初始状态" , 在初始状态下, 只接受复杂模式的登录请求, 这个请求不光 是认证用户名密码的正确性, 还将获得详细的客户端和服务器能力配置等信 息, 其具体信息在实施例三中有相关描述, 此处不再详细讲解; 移动终端登 录之后便进入 "正常服务状态" 。
5702、 在转发即时消息后的第一掉线时间门限 T1内接收到第二移动终端 的心跳消息;
在 "正常服务状态" 下, 第二移动终端可能会由于移动网络信号变化而 导致临时掉线, 移动接入服务器没有接收到确认的响应消息, 但是只要在 T1 内有接收到移动终端的激活消息, 如心跳消息, 即移动终端的网络恢复, 就 可以继续进行通信, 因此, 会话状态不迁移, 仍然是 "正常服务状态" ;
需要说明的是, 该会话状态没迁移, 均为正常服务状态; 若移动终端没 有掉线, 也适合该状态迁移过程; 由于本发明主要研究第二移动终端掉线时 的处理方法, 因此此处不作具体描述。
5703、 在转发即时消息后的 T1内没有接收到第二移动终端的响应消息; 在 "正常服务状态" 下, 如果移动接入服务器在 T1内收不到移动终端的 心跳消息, 会话状态从到 "正常服务状态" 迁移到 "会话保持状态" ; 本发 明实施例中, 设定第二掉线时间门限为 T2 , 因此该状态的保持时间为 T2-T1。
5704、 收到第二移动终端基于原会话 ID的简单模式的登录;
在 "会话保持状态" 下, 即在此状态的保持时间 T2-T1 内, 如果移动接 入服务器接收到第二移动终端发出的激活消息, 如基于已有会话 ID的简单模 式的登录请求, 则会话状态迁回 "正常服务状态" 。
5705、 在 T2-T1内没有接收到请求消息; 在 "会话保持" 状态下, 即在此状态的保持时间 T2-T1 内, 如果移动接 入服务器没有接收到移动终端发出的基于已有会话 ID 的简单模式的登录请 求, 则会话状态即迁移为 "会话退出状态" ; 此时, 移动接入服务器通知中 央服务器进行消息离线保存; 在确认中央服务器进行消息离线保存后, 退出 所述即时消息对应的会话, 并释放緩存消息对应的緩存资源; 下次第二移动 终端与第一终端进行通信时, 必须从复杂模式登录来开始新的会话。
为便于更好的实施本发明实施例的技术方案, 本发明实施例还提供用于 实施上述方案的相关装置和系统。
本发明实施例公开了一种移动接入服务器, 包括: 消息接收模块 801、 消息发送模块 802、 判断模块 803、 临时掉线处理模块 804、 永久掉线处理模 块 805和消息回收模块 806;
其中, 消息接收緩存模块 801 , 用于接收并緩存来自第一终端时消息; 消息发送模块 802 , 用于向第二移动终端转发消息接收緩存模块 801接收 的即时消息;
判断模块 803 , 用于若在转发即时消息后的第一掉线时间门限 T1 内未收 到第二移动终端返回的响应消息, 但在第二掉线时间门限 T2内收到第二移动 终端返回的响应消息, 则确定第二移动终端临时掉线, 并触发临时掉线处理 模块 804进行操作; 若在 T2内仍未收到第二移动终端返回的响应消息, 则确 定第二移动终端永久掉线, 并触发永久掉线处理模块 805进行操作;
临时掉线处理模块 804 , 用于在第二移动终端临时掉线时, 向第二移动 终端重新发送即时消息;
永久掉线处理模块 805 , 用于在第二移动终端永久掉线时, 指示消息回 收模块 806通知中央服务器离线保存即时消息;
消息回收模块 806 , 用于根据永久掉线处理模块 805的指示, 通知中央服 务器离线保存即时消息。
进一步地, 本实施例中的临时掉线处理模块 804 , 还包括: 第一重发单 元 8041 , 用于当在转发即时消息后的 T1内收到第二移动终端的心跳消息, 则 向第二移动终端重新发送即时消息; 第二重发单元 8042, 用于当在转发即时 消息后的 T1 内没有收到第二移动终端的心跳消息, 但在 Τ2收到第二移动终 端简单模式的登录请求, 则向第二移动终端重新发送即时消息。
更进一步地, 本实施中的永久掉线处理模块 805 , 包括: 指示单元
8051 , 用于指示消息回收模块 806 通知中央服务器离线保存即时消息; 释放 单元 8052, 用于确认中央服务器离线保存即时消息后, 退出即时消息对应的 会话, 并释放緩存即时消息对应的緩存资源;
具体地说, 在判断出第二移动终端为临时掉线后, 则緩存即时消息; 当 在转发即时消息后的 T1内收到第二移动终端的心跳消息或其他激活消息, 则 移动接入服务器将緩存的即时消息重新发送给第二移动终端, 并收到第二移 动终端返回的确认緩存的即时消息收到的响应消息;
另外, 当在转发即时消息后的 T1内没有收到第二移动终端的心跳消息或 其他激活消息, 则将会话状态由正常服务状态迁移到会话保持状态; 本实施 例中的第二掉线时间门限设定为 Τ2, 即会话保持状态的保持时间为 T2-T1 , 若在这 T2-T1时间段内接收到第二移动终端发出的基于原会话 ID简单模式的 登录请求或其他激活消息, 则移动接入服务器返回登录确认消息, 并将会话 状态重新迁移回正常服务状态, 接着, 移动接入服务器将此緩存的即时消息 重新发送给第二移动终端, 接收第二移动终端返回的确认消息收到的响应消 息;
更具体地, 移动接入服务器在 T1内没有收到第二移动终端发出的心跳消 息或其他激活消息, 则将会话状态置为会话保持状态; 在会话保持状态下, 即在保持时间 T2-T1 时间段内仍然没有收到第二移动终端发出的基于原会话 ID的简单模式的登录请求或其他的激活消息, 也就是在 T2内, 没有接收到第 二移动终端的返回消息, 则可以确定该移动终端为永久掉线, 会话状态由会 话保持状态迁移为会话退出状态; 在此状态下, 移动接入服务器通知中央服 务器离线保存即时消息; 并且在确认中央服务器离线保存即时消息后, 退出 即时消息对应的会话, 并释放緩存即时消息对应的緩存资源。
更进一步地, 本发明实施例中公开的一种移动接入服务器, 还包括: 复 杂模式登陆模块 807 , 用于接收第二移动终端在复杂模式下发送的登录请 求, 向中央服务器转发登录请求; 接收中央服务器返回的响应消息并将其转 发至第二移动终端; 创建会话模块 808 , 用于创建新的会话; 离线消息收发 模块 809, 用于接收来自由消息回收模块 806指示中央服务器离线保存的即时 消息, 并将其转发至第二移动终端; 接收第二移动终端发送的离线保存的即 时消息接收确认的响应消息, 并向中央服务器转发。
本发明实施例提供的一种移动接入服务器, 对接收消息的第二移动终端 作专门的管理, 可以有效地对无法送达的消息进行处理, 减轻了中央服务器 的负担。
本发明实施例还公开了一种即时通信系统, 包括: 移动接入服务器 901 和中央服务器 902;
具体地说, 移动接入服务器 901 , 用于接收并緩存来自第一终端的即时 消息; 向第二移动终端转发即时消息; 若在转发即时消息后的第一掉线时间 门限 T1 内未收到第二移动终端返回的响应消息, 但第二掉线时间门限 T2内 收到第二移动终端返回的响应消息, 则确定第二移动终端临时掉线; 若在 T2 内仍未收到第二移动终端返回的响应消息, 则确定第二移动终端永久掉线; 若第二移动终端临时掉线, 则向第二移动终端重新发送即时消息; 若第二移 动终端永久掉线, 则通知中央服务器 902离线保存即时消息;
中央服务器 902, 用于接收移动接入服务器 901转发的即时消息; 接收移 动接入服务器 901 发送离线保存即时消息的请求, 并进行离线保存, 给移动 接入服务器 901发送响应消息。
进一步地, 第一终端可以是 PC 终端, 也可以是移动终端或者是其他终 端, 此处不作限定; 例如, 若第一终端为 PC终端时, 由 PC终端向中央服务 器 902发送即时消息, 中央服务器 902返回确认并向移动接入服务器 901转发 该即时消息, 移动接入服务器 901接收到即时消息后, 向中央服务器 902返回 确认; 若第一终端为移动终端时, 则直接向移动接入服务器 901 发送即时消 息, 移动接入服务器 901返回确认后, 向中央服务器 902转发该即时消息, 中 央服务器 902再给出确认; 而后由中央服务器 902向移动接入服务器 901发送 该即时消息, 并接收中央服务器 902返回确认的响应消息;
更进一步地, 本发明实施例中的第二移动终端可以是手机终端, 其不直 接与中央服务器 902通信, 而是连接移动接入服务器 901 , 通过移动接入服务 器 901间接地与中央服务器 902通信;
可以理解的是, 本实施例中的移动接入 Λ良务器 901 可如上述方法实施例 中的移动接入服务器, 其各个功能模块的功能可以根据上述方法实施例中的 方法具体实现, 其具体实现过程可以参照上述方法实施例的相关描述, 此处 不再赘述。
本发明实施例提供的一种即时通信系统, 其中包括了一个移动接入服务 器的装置, 由该移动接入服务器实现了接收消息的移动终端的有效会话管 理。 特别地, 不再盲目地对消息进行离线保存, 而是提供了多种恢复手段来 将用户终端和移动终端之间的会话继续下去, 同时又保证了安全性。 本系统 能够减轻由于移动终端临时掉线而导致的中央服务器存储压力增大的问题, 提高了消息的转发效率, 改善了移动终端的用户体验。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤 是可以通过程序来指令相关的硬件完成, 所述的程序可以存储于一种计算机 可读存储介质中, 上述提到的存储介质可以是只读存储器, 磁盘或光盘等。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于 此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到 变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应 所述以权利要求的保护范围为准。

Claims

权利要求
1、 一种即时通信方法, 其特征在于, 包括:
移动接入服务器接收并緩存来自第一终端的即时消息;
向第二移动终端转发所述即时消息;
若在转发所述即时消息后的第一掉线时间门限内未收到第二移动终端返 回的响应消息,但在转发所述即时消息后的第二掉线时间门限内收到第二移动 终端返回的响应消息, 则确定第二移动终端临时掉线; 若在第二掉线时间门限 内仍未收到第二移动终端返回的响应消息, 则确定第二移动终端永久掉线; 若第二移动终端临时掉线, 则向第二移动终端重新发送所述即时消息; 若第二移动终端永久掉线, 则通知中央服务器离线保存所述即时消息。
2、 根据权利要求 1所述的方法, 其特征在于, 当所述第一终端为移动终 端, 所述方法还包括:
移动接入服务器接收来自所述第一终端的即时消息之后,向中央服务器转 发所述即时消息。
3、 根据权利要求 1所述的方法, 其特征在于, 所述通知中央服务器离线 保存所述即时消息之后进一步包括:
确认中央服务器离线保存所述即时消息, 退出所述即时消息对应的会话, 并释放緩存所述即时消息对应的緩存资源。
4、 根据权利要求 1至 3中任一项所述的方法, 其特征在于, 所述向第二 移动终端重新发送所述即时消息包括:
当在转发所述即时消息后的第一掉线时间门限内收到第二移动终端的心 跳消息, 则向第二移动终端重新发送所述即时消息。
5、 根据权利要求 1至 3中任一项所述的方法, 其特征在于, 所述向第二 移动终端重新发送所述即时消息包括:
当在转发所述即时消息后的第一掉线时间门限内没有收到第二移动终端 的心跳消息, 但在第二掉线时间门限内收到第二移动终端简单模式的登录请 求, 则向第二移动终端重新发送所述即时消息。
6、 根据权利要求 3所述的方法, 其特征在于, 所述释放緩存所述即时消 息对应的緩存资源之后进一步包括:
接收第二移动终端在复杂模式下发送的登录请求,向中央服务器转发所述 登录请求; 接收所述中央服务器返回的响应消息并将其转发至第二移动终端; 创建新的会话;
接收所述中央服务器发送的离线保存的即时消息,并将其转发至第二移动 终端; 接收所述第二移动终端发送的离线保存的即时消息接收确认的响应消 息, 并向所述中央服务器转发。
7、 一种移动接入服务器, 其特征在于, 包括: 消息接收緩存模块, 用于接收并緩存来自第一终端的即时消息; 消息发送模块,用于向第二移动终端转发所述消息接收緩存模块接收的即 时消息;
判断模块 ,用于若在转发所述即时消息后的第一掉线时间门限内未收到第 二移动终端返回的响应消息,但在第二掉线时间门限内收到第二移动终端返回 的响应消息, 则确定第二移动终端临时掉线, 并触发临时掉线处理模块进行操 作; 若在第二掉线时间门限内仍未收到第二移动终端返回的响应消息, 则确定 第二移动终端永久掉线, 并触发永久掉线处理模块进行操作;
临时掉线处理模块, 用于在第二移动终端临时掉线时, 向第二移动终端重 新发送即时消息;
永久掉线处理模块, 用于在第二移动终端永久掉线时,指示消息回收模块 通知中央服务器离线保存所述即时消息;
消息回收模块, 用于根据永久掉线处理模块的指示,通知中央服务器离线 保存所述即时消息。
8、 根据权利要求 7所述的移动接入服务器, 其特征在于, 所述临时掉线 处理模块包括:
第一重发单元,用于当在转发所述即时消息后的第一掉线时间门限内收到 第二移动终端的心跳消息, 则向第二移动终端重新发送所述即时消息;
第二重发单元,用于当在转发所述即时消息后的第一掉线时间门限内没有 收到第二移动终端的心跳消息,但在第二掉线时间门限内收到第二移动终端简 单模式的登录请求, 则向第二移动终端重新发送所述即时消息。
9、 根据权利要求 7所述的移动接入服务器, 其特征在于, 所述永久掉线 处理模块包括:
指示单元, 用于指示消息回收模块通知中央服务器离线保存所述即时消 息;
释放单元, 用于确认中央服务器离线保存所述即时消息后, 退出所述即时 消息对应的会话, 并释放緩存所述即时消息对应的緩存资源。
10、 根据权利要求 7至 9中任一项所述的移动接入服务器, 其特征在于, 所述移动接入服务器还包括: 复杂模式登陆模块, 用于接收第二移动终端在复杂模式下发送的登录请 求, 向中央服务器转发所述登录请求; 接收所述中央服务器返回的响应消息并 将其转发至第二移动终端; 创建会话模块, 用于创建新的会话; 离线消息收发模块,用于接收来自消息回收模块指示中央服务器离线保存 的即时消息, 并将其转发至第二移动终端; 接收第二移动终端发送的离线保存 的即时消息接收确认的响应消息, 并向中央服务器转发。
11、 一种即时通信系统, 其特征在于, 包括:
移动接入服务器, 用于接收并緩存来自第一终端的即时消息; 向第二移动 终端转发所述即时消息;若在转发所述即时消息后的第一掉线时间门限内未收 到第二移动终端返回的响应消息,但第二掉线时间门限内收到第二移动终端返 回的响应消息, 则确定第二移动终端临时掉线; 若在第二掉线时间门限内仍未 收到第二移动终端返回的响应消息, 则确定第二移动终端永久掉线; 若第二移 动终端临时掉线, 则向第二移动终端重新发送所述即时消息; 若第二移动终端 永久掉线, 则通知中央服务器离线保存所述即时消息;
中央服务器, 用于接收移动接入服务器转发的即时消息; 接收移动接入服 务器发送离线保存所述即时消息的请求, 并进行离线保存, 给移动接入服务器 发送响应消息。
12、 根据权利要求 11所述的系统, 其特征在于, 所述移动接入服务器还 用于:
在确认中央服务器离线保存所述即时消息后,退出所述即时消息对应的会 话, 并释放緩存所述即时消息对应的緩存资源。
13、 根据权利要求 11或 12所述的系统, 其特征在于, 所述移动接入服务 器还用于:
接收第二移动终端在复杂模式下发送的登录请求,向中央服务器转发所述 登录请求; 接收所述中央服务器返回的响应消息并将其转发至第二移动终端; 创建新的会话;
接收所述中央服务器发送的离线保存的即时消息,并将其转发至第二移动 终端; 接收所述第二移动终端发送的离线保存的即时消息接收确认的响应消 息, 并向所述中央服务器转发。
PCT/CN2012/083751 2011-11-01 2012-10-30 一种即时通信方法、系统及装置 WO2013064058A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110340034.1 2011-11-01
CN201110340034.1A CN103095550B (zh) 2011-11-01 2011-11-01 一种即时通信方法、系统及装置

Publications (1)

Publication Number Publication Date
WO2013064058A1 true WO2013064058A1 (zh) 2013-05-10

Family

ID=48191326

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/083751 WO2013064058A1 (zh) 2011-11-01 2012-10-30 一种即时通信方法、系统及装置

Country Status (2)

Country Link
CN (1) CN103095550B (zh)
WO (1) WO2013064058A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110460511A (zh) * 2019-08-01 2019-11-15 安徽四创电子股份有限公司 一种不稳定网络环境下可靠通信的实现方法

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103648085B (zh) * 2013-12-11 2018-09-21 五八同城信息技术有限公司 一种克服网络抖动的移动终端消息传递方法
CN105992175A (zh) * 2015-01-27 2016-10-05 中兴通讯股份有限公司 Ussd系统与第三方系统进行消息交互的方法及装置
CN104853138A (zh) * 2015-05-05 2015-08-19 无锡天脉聚源传媒科技有限公司 一种视频会议网络监控方法、服务器和客户端
CN105245531B (zh) * 2015-10-21 2018-12-25 北京捷思锐科技股份有限公司 一种掉线检测方法、装置及服务器
CN105376144B (zh) * 2015-12-04 2019-06-18 小米科技有限责任公司 信息处理方法及装置
CN106789913B (zh) * 2016-11-23 2020-02-07 北京云中融信网络科技有限公司 用户账号管理方法及装置
CN107670275B (zh) * 2017-10-26 2020-10-13 广州市雷军游乐设备有限公司 游戏进程断线重连的方法和系统
CN107911281A (zh) * 2017-11-11 2018-04-13 林碧琴 一种方便获知收到群消息顺序的方法
CN110460637B (zh) * 2019-07-11 2022-03-18 贵阳语玩科技有限公司 一种提高用户体验的聊天室掉线的处理方法和系统
CN110798398A (zh) * 2019-11-14 2020-02-14 江苏满运软件科技有限公司 群组消息管理方法、装置、设备和介质
CN115103001B (zh) * 2022-05-10 2024-03-08 航天国政信息技术(北京)有限公司 一种通信方法、装置及电子设备
CN115378554A (zh) * 2022-10-24 2022-11-22 北京博点智合科技有限公司 一种数据传输方法、装置、设备和可读存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1801814A (zh) * 2005-10-11 2006-07-12 华为技术有限公司 一种离线消息发送和接收方法
US20070143472A1 (en) * 2005-12-21 2007-06-21 International Business Machines Corporation Method for improving the efficiency and effectiveness of instant messaging based on monitoring user activity
CN102131152A (zh) * 2010-01-15 2011-07-20 中兴通讯股份有限公司 一种维持即时消息业务连续性的方法及系统

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1801814A (zh) * 2005-10-11 2006-07-12 华为技术有限公司 一种离线消息发送和接收方法
US20070143472A1 (en) * 2005-12-21 2007-06-21 International Business Machines Corporation Method for improving the efficiency and effectiveness of instant messaging based on monitoring user activity
CN102131152A (zh) * 2010-01-15 2011-07-20 中兴通讯股份有限公司 一种维持即时消息业务连续性的方法及系统

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110460511A (zh) * 2019-08-01 2019-11-15 安徽四创电子股份有限公司 一种不稳定网络环境下可靠通信的实现方法

Also Published As

Publication number Publication date
CN103095550A (zh) 2013-05-08
CN103095550B (zh) 2015-11-25

Similar Documents

Publication Publication Date Title
WO2013064058A1 (zh) 一种即时通信方法、系统及装置
US9014349B2 (en) Media instant messaging for mobile device
JP5246332B2 (ja) 拡張されたメッセージングプラットフォーム
JP4740328B2 (ja) シンクサーバーを用いたメッセンジャー通知システム及びその方法
JP4884924B2 (ja) 端末機とそのメッセージ処理方法
JP5108778B2 (ja) モバイル装置とコンピューティング装置との間のボイスインスタントメッセージング
US20180198830A1 (en) Systems and Methods for Interworking with over the Top Applications in Communications Network
WO2008040248A1 (fr) Procédé et système de transmission de courrier électronique et serveur de courrier électronique poussé
US20110252083A1 (en) Apparatus and method for transmitting media using either network efficient protocol or a loss tolerant transmission protocol
WO2018214865A1 (zh) 消息回执的处理方法、相关装置、存储介质和处理器
WO2011137830A1 (zh) 一种业务分发平台消息推送方法、相关设备及系统
US9197575B2 (en) Handling of snapshot messages as a result of delivery failure in a two-way push connection
WO2008020644A1 (fr) Serveur mandataire, système de communication, procédé de communication et programme
WO2009074035A1 (fr) Système, appareil et procédé de transmission de fichiers
WO2009074064A1 (fr) Procédé et système pour envoyer un message multimédia et centre de messages multimédia
WO2008014662A1 (fr) Procédé de délimitation de synchronisation de message et système correspondant
US20050187959A1 (en) Method for transferring a message file between a client and a server
WO2010063218A1 (zh) 移动电子邮件业务处理方法和装置
WO2014135016A1 (zh) 一种业务消息发送方法及装置
CN103648085A (zh) 一种克服网络抖动的移动终端消息传递方法
WO2012113256A1 (zh) 一种实现媒体消息追回的方法和系统
WO2008003217A1 (fr) Procédé, dispositif et système de transfert de messages courts
WO2007082428A1 (fr) Serveur mobile de courriels et procédé de mise en oeuvre de courriels
WO2010009666A1 (zh) 多媒体业务的实现方法、系统和装置
WO2011153772A1 (zh) 一种获取多个即时信息的方法和系统

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

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

Country of ref document: EP

Kind code of ref document: A1