WO2018082473A1 - Method and apparatus for processing offline message - Google Patents

Method and apparatus for processing offline message Download PDF

Info

Publication number
WO2018082473A1
WO2018082473A1 PCT/CN2017/107428 CN2017107428W WO2018082473A1 WO 2018082473 A1 WO2018082473 A1 WO 2018082473A1 CN 2017107428 W CN2017107428 W CN 2017107428W WO 2018082473 A1 WO2018082473 A1 WO 2018082473A1
Authority
WO
WIPO (PCT)
Prior art keywords
offline message
message
offline
policy
server
Prior art date
Application number
PCT/CN2017/107428
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 WO2018082473A1 publication Critical patent/WO2018082473A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • 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/56Unified messaging, e.g. interactions between e-mail, instant messaging or converged IP messaging [CPM]

Definitions

  • the present disclosure relates to the field of communications, and in particular, to a method and an apparatus for processing an offline message.
  • Rich Communication Suite is a kind of converged communication service based on enhanced mobile phone local address book, which integrates various communication methods and functions such as voice, message, video and content sharing.
  • OMA Open Mobile Alliance
  • CPM Converged IP Messaging
  • SIP/IP Core Session Initiation Protocol/Internet Protocol Core
  • FIG. 1 is a schematic diagram of a CPM architecture model in the related art, and the CPM architecture model shown in FIG. 1 describes functional components of the CPM, interactions between CPM functional components, functional components of the CPM, and external functional component interfaces.
  • the functional components included are:
  • CPM client Allows users (CPM User) to use CPM-based services by interacting with other CPM functional components (eg, CPM participating functional components).
  • CPM Participating Function acts as a proxy for the user on the network side, including coordinating the interaction of multiple CPM clients owned by the user.
  • CPM Controlling Function (CPM CF): Implements CPM independent information entities and CPM session group operations.
  • CPM Standalone Message A separate information entity that is sent to one or more recipients.
  • a CPM independent information entity can contain multiple discrete media information (eg, text, pictures, audio, video, etc.).
  • CPM Session A real-time interaction between two or more participants.
  • the interactive information includes text, images, audio, video, continuous media content, and so on.
  • Interworking Selection Function Select an Interworking Function to implement CPM Message, CPM file transfer, or CPM session interaction.
  • CPM Message Contains CPM Independent Information Entity and CPM Chat Message.
  • CPM Chat Message Information sent to one or more recipients in a CPM conversation.
  • a CPM conversation message can contain multiple discrete media information (eg, text, pictures, audio, video, etc.).
  • Interworking Function Implementing CPM-based services and external non-CPM communication services Interaction.
  • Message Storage Client Manages information stored in a terminal device (Device) such as CPM information, CPM file transfer history, CPM session history, CPM session history, and media objects.
  • Message Storage Server Manages information stored on the network such as CPM information, CPM file transfer history, CPM session history, and media objects.
  • the CPM environment resides on other (remote) networks.
  • the CPM feature interacts with the following external features to provide CPM functionality:
  • SIP/IP core SIP/IP based capabilities.
  • Presence Enabler retrieve and publish presence information (Presence Information);
  • XML Document Management Component store and process CPM User preferences, User Preferences Profiles, policies, CPM group definitions, CPM group lists;
  • Push Enabler Sends a notification to the terminal of the CPM user
  • Device Management Enabler Manage CPM client settings and information store client settings.
  • the sender B (for example, CPM client B) sends a message to the receiver A (for example, CPM client A), at this time, if the receiver A If it is not online, the server (CPM PF) to which the receiver A belongs selects whether to save the deferred message according to the user settings or system settings. Assume that the receiver A is re-online, and the server to which the receiver A belongs can use the push and pull methods to deliver the offline message to the receiver A. The two methods are described separately below.
  • OMA Object Management Architecture
  • FIG. 2 is a schematic diagram of a process for sending an offline message by using a pushing method in the related art. As shown in FIG. 2, the offline message is sent to the receiver A in the pushing manner, and includes the following steps:
  • CPM PF A has an offline message waiting to be delivered and Receiver A (CPM Client A) is allowed to receive offline messages. Receiver A is back online;
  • CPM PF A delivers all offline messages to receiver A
  • FIG. 3 is a schematic diagram of a process for sending an offline message by using a pulling method in the related art. As shown in FIG. 3, the offline message is sent to the receiver A in a pulling manner, and includes the following steps:
  • CPM PF A has offline messages waiting to be delivered and Receiver A (CPM Client A) is allowed to receive offline messages and notification messages. Receiver A is back online;
  • CPM client A subscribes to the offline message notification to the PF through the SIP/IP core;
  • the PF sends an OK message to the CPM client A through the SIP/IP core;
  • the PF sends a notification message to the CPM client A through the SIP/IP core, and the notification message includes offline message information;
  • CPM client A sends OK, and feedback receives the notification message
  • the CPM client A sends an invitation message to the PF A through the SIP/IP core, and the invitation message includes an operation on the offline message, and whether the operation is selected or not.
  • the PF sends the offline message selected for delivery to the CPM client A;
  • the user receives a large number of offline messages in a short period of time, and the terminal load is high, which may cause the terminal to die, and at the same time, quickly consume the power and network traffic of the user terminal.
  • the user needs to process each offline message information (such as whether to choose to send or the like). When there are dozens of offline messages, it is extremely cumbersome operation.
  • An embodiment of the present disclosure provides a method and an apparatus for processing an offline message, so as to at least solve the problem that a terminal load is high when an offline message is sent in the related art.
  • a method for processing an offline message including: the server sends an offline message to the user according to the offline message policy; wherein the offline message policy is set to indicate that the offline message is delivered. conditions of.
  • the method further includes: the policy server of the server receives the offline message policy configured by the policy client of the client; or The policy server of the server configures the offline message policy according to the configuration request.
  • the offline message policy includes at least one of: sending the offline message on a preset date; sending the offline message at a preset time; delivering a predetermined number of offline messages; and delivering a predetermined size offline
  • the message is delivered; the offline message of the specified sender is delivered; the offline message of the specified topic is delivered; the offline message of the specified group is delivered; and the offline message of the specified type is delivered, wherein the type includes: text type, audio type, Video type, file type.
  • the server sends the offline message to the client according to the offline message policy, including: the message server of the server obtains the offline message policy from the policy server; when the client is offline, the message server of the server is offline according to the The message policy selects and saves the offline message to be delivered; and/or, when the user is online, the message server of the server delivers the offline message selected according to the offline message policy to the client.
  • the offline message includes at least one of the following: content of an offline message, summary information of an offline message.
  • the user end includes at least one of the following: a policy client, a message client; and the server includes at least one of the following: a policy server, a message server.
  • a method for processing an offline message including: receiving, by a client, an offline message delivered by a server according to an offline message policy; wherein the offline message policy is set to indicate that the offline message is sent Leave The condition of the line message.
  • the offline message policy includes at least one of: sending the offline message on a preset date; sending the offline message at a preset time; delivering a predetermined number of offline messages; and delivering a predetermined size offline
  • the message is delivered; the offline message of the specified sender is delivered; the offline message of the specified topic is delivered; the offline message of the specified group is delivered; and the offline message of the specified type is delivered, wherein the type includes: text type, audio type, Video type, file type.
  • the offline message includes at least one of the following: content of an offline message, summary information of an offline message.
  • the method further includes: setting a condition request by the message client of the user end The message server of the server sends the content of the offline message; or the message client of the server requests the message server of the server to abandon the content of the offline message.
  • the method further includes: the user end requests the server to send an offline message according to the setting condition.
  • the user end includes at least one of the following: a policy client, a message client; and the server includes at least one of the following: a policy server, a message server.
  • the method before the receiving, by the UE, the offline message sent by the server according to the offline message policy, the method further includes: the policy client of the user sends the configuration request of the offline message policy to the policy server of the server Or the offline message policy.
  • the configuration request is set to indicate that at least one of the following operations are performed on the offline message policy by the server: creating, deleting, changing, retrieving, restoring, and synchronizing.
  • a processing apparatus for an offline message where the application is configured to: a sending module, configured to send an offline message to a user according to an offline message policy; wherein the offline message The policy is set to indicate the condition for delivering the offline message.
  • the device further includes: a receiving module, configured to receive the offline message policy configured by the user end before the sending module sends an offline message to the user end according to the offline message policy; or, configured The module is configured to configure the offline message policy according to the configuration request before the sending module sends an offline message to the user according to the offline message policy.
  • a receiving module configured to receive the offline message policy configured by the user end before the sending module sends an offline message to the user end according to the offline message policy
  • the module is configured to configure the offline message policy according to the configuration request before the sending module sends an offline message to the user according to the offline message policy.
  • the offline message policy includes at least one of: sending the offline message on a preset date; sending the offline message at a preset time; delivering a predetermined number of offline messages; and delivering a predetermined size offline
  • the message is delivered; the offline message of the specified sender is delivered; the offline message of the specified topic is delivered; the offline message of the specified group is delivered; and the offline message of the specified type is delivered, wherein the type includes: text type, audio type, Video type, file type.
  • a processing apparatus for an offline message which is applied to a user end, and includes: a receiving module, configured to receive an offline message delivered by a server according to an offline message policy; wherein the offline message The policy is set to indicate the condition for delivering the offline message.
  • the offline message policy includes at least one of: sending the offline message on a preset date; sending the offline message at a preset time; delivering a predetermined number of offline messages; and delivering a predetermined size offline
  • the message is delivered; the offline message of the specified sender is delivered; the offline message of the specified topic is delivered; the offline message of the specified group is delivered; the specified type is delivered.
  • Offline message wherein the type includes: text type, audio type, video type, file type.
  • the device further includes: a sending module, configured to send the configuration request or the offline message policy to the server before the receiving module receives the offline message delivered by the server according to the offline message policy The offline message policy.
  • a sending module configured to send the configuration request or the offline message policy to the server before the receiving module receives the offline message delivered by the server according to the offline message policy The offline message policy.
  • a storage medium is also provided.
  • the storage medium is configured to store the program code that is set to perform the following steps: the server sends an offline message to the client according to the offline message policy; wherein the offline message policy is set to indicate a condition for delivering the offline message.
  • the storage medium is further configured to store the program code that is configured to perform the following steps: before the server sends the offline message to the client according to the offline message policy, the method further includes: the server receiving the client The offline message policy is configured; or the server configures the offline message policy according to the configuration request.
  • the storage medium is further configured to store program code set to perform the following steps: the offline message policy includes at least one of: sending the offline message on a preset date; sending the offline at a preset time The message is sent; the predetermined number of offline messages are delivered; the offline message of the specified size is delivered; the offline message of the specified sender is delivered; the offline message of the specified topic is delivered; the offline message of the specified group is delivered; and the specified type of offline is delivered.
  • the message, wherein the type includes: a text type, an audio type, a video type, and a file type.
  • the storage medium is further configured to store the program code that is set to perform the following steps: the server sends the offline message to the client according to the offline message policy, where the server obtains the offline message policy from the policy server; The offline message policy selects an offline message to be delivered to form a message queue; the server sends the offline message of the message queue to the client.
  • the storage medium is further configured to store program code configured to perform the following steps: the offline message includes: content of the offline message, summary information of the offline message.
  • the storage medium is further configured to store the program code that is set to perform the following steps: the server selects the offline message to be delivered according to the offline message policy to form a message queue, and the server obtains all the offline to be delivered. a message, the server sets a first offline message that meets the offline message policy to a first priority, and sets a second offline message that does not meet the offline message policy to a second priority, where the The issuing authority of the first priority is greater than the second priority; the server forms the message queue of the first offline message and the second offline message.
  • the storage medium is further configured to store program code configured to perform the following steps: the client includes at least one of the following: a converged IP message CPM policy client, a CPM message client; the server includes at least the following One: CPM policy server, CPM message server.
  • a storage medium is also provided.
  • the storage medium is configured to store a program code that is set to perform the following steps: the client receives an offline message delivered by the server according to the offline message policy; wherein the offline message policy is set to indicate a condition for delivering the offline message.
  • the storage medium is further configured to store program code set to perform the following steps: the offline message policy includes at least one of: sending the offline message on a preset date; sending the offline at a preset time Message A predetermined number of offline messages; an offline message of a predetermined size is delivered; an offline message of the specified sender is delivered; an offline message of the specified topic is delivered; an offline message of the specified group is delivered; and an offline message of a specified type is delivered, wherein
  • the types include: text type, audio type, video type, file type.
  • the storage medium is further configured to store program code configured to perform the step of: the offline message comprising at least one of: content of an offline message, summary information of an offline message.
  • the storage medium is further configured to store the program code that is configured to perform the following steps: after the offline message is the summary information of the offline message, after the offline message sent by the server according to the offline message policy is received by the server
  • the method further includes: the user end requesting the server to deliver the content of the offline message; or the user end requests the server to abandon the content of the offline message.
  • the storage medium is further configured to store the program code that is set to perform the following steps: the method further includes: the user end requesting the server to deliver an offline message according to the setting condition.
  • the storage medium is further configured to store program code configured to perform the following steps: the client includes at least one of the following: a converged IP message CPM policy client, a CPM message client; the server includes at least the following One: CPM policy server, CPM message server.
  • the storage medium is further configured to store the program code that is configured to perform the following steps: before the user end receives the offline message delivered by the server according to the offline message policy, the method further includes: the user terminal to the service Sending a configuration request of the offline message policy or the offline message policy.
  • the server and the client perform the offline message sending and receiving according to the offline message policy that is set to instruct the delivery of the offline message, thereby avoiding the terminal load being too high due to receiving a large number of offline messages, so that the solution can be solved.
  • the offline message when the offline message is delivered, there is a problem that the terminal load is high, and the terminal load is reduced, and the terminal traffic consumption is reduced.
  • FIG. 1 is a schematic diagram of a CPM architecture model in the related art
  • FIG. 2 is a schematic flowchart of sending an offline message by using a pushing method in the related art
  • FIG. 3 is a schematic flowchart of sending an offline message by using a pulling method in the related art
  • FIG. 4 is a block diagram showing a hardware structure of a server for processing an offline message according to an embodiment of the present disclosure
  • FIG. 5 is a flowchart 1 of a method for processing an offline message according to an embodiment of the present disclosure
  • FIG. 6 is a flowchart 2 of a method of processing an offline message according to an embodiment of the present disclosure
  • FIG. 7 is a flowchart of an offline message delivery method according to a preferred embodiment of the present disclosure.
  • FIG. 8 is a schematic diagram of a client requesting a server to operate an offline message policy according to a preferred embodiment of the present disclosure
  • FIG. 9 is a schematic flowchart of a CPM client requesting to send an offline message again according to a preferred embodiment of the present disclosure
  • FIG. 10 is a CPM client requesting to deliver a complete audio message or video message in accordance with a preferred embodiment of the present disclosure. Or a schematic diagram of the flow of the file message;
  • FIG. 11 is a flow diagram of a CPM PF processing an offline message according to an offline message policy according to a preferred embodiment of the present disclosure
  • FIG. 12 is a structural block diagram 1 of an apparatus for processing an offline message according to an embodiment of the present disclosure
  • FIG. 13 is a structural block diagram 2 of a processing apparatus for an offline message according to an embodiment of the present disclosure
  • FIG. 14 is a structural block diagram 3 of a processing apparatus for an offline message according to an embodiment of the present disclosure
  • FIG. 15 is a structural block diagram of a processing apparatus of an offline message according to an embodiment of the present disclosure.
  • FIG. 4 is a hardware structural block diagram of a server for processing an offline message according to an embodiment of the present disclosure.
  • server 40 may include one or more (only one shown) processor 42 (processor 42 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), A memory 44 that stores data and a transmission device 46 that is set to a communication function are provided.
  • processor 42 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA
  • a memory 44 that stores data and a transmission device 46 that is set to a communication function are provided.
  • FIG. 4 is merely illustrative and does not limit the structure of the above electronic device.
  • server 40 may also include more or fewer components than shown in FIG. 4, or have a different configuration than that shown in FIG.
  • the memory 44 can be configured as a software program and a module for storing application software, such as program instructions/modules corresponding to the processing method of the offline message in the embodiment of the present disclosure, and the processor 42 executes the software program and the module stored in the memory 44, thereby
  • the above methods are implemented by performing various functional applications and data processing.
  • Memory 44 may include high speed random access memory and may also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
  • memory 44 may include memory remotely located relative to processor 42 that may be coupled to server 40 via a network.
  • Embodiments of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
  • Transmission device 46 is arranged to receive or transmit data via a network.
  • the network exemplary embodiment described above may include a wireless network provided by a communication provider of the server 40.
  • the transmission device 46 includes a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet.
  • the transmission device 46 can be a Radio Frequency (RF) module configured to communicate with the Internet wirelessly.
  • NIC Network Interface Controller
  • RF Radio Frequency
  • FIG. 5 is according to the public.
  • a flowchart 1 of a method for processing an offline message of an embodiment is shown in FIG. 5. The process includes the following steps:
  • step S502 the server sends an offline message to the user according to the offline message policy.
  • the offline message policy is set to indicate the condition for delivering the offline message.
  • the server sends the offline message according to the offline message policy that is set to indicate that the offline message is sent, which solves the problem that the terminal load is high when the offline message is sent in the related art, and the terminal load is reduced. Reduced terminal traffic consumption.
  • the server may further determine the offline message policy by: the policy server of the server receives the policy client configuration of the client.
  • the offline message policy; or the policy server of the server configures the offline message policy according to the configuration request.
  • the offline message policy may include at least one of: sending the offline message on a preset date; sending the offline message at a preset time; delivering a predetermined number of offline messages; and delivering a predetermined size offline
  • the message is delivered; the offline message of the specified sender is delivered; the offline message of the specified topic is delivered; the offline message of the specified group is delivered; and the offline message of the specified type is delivered, wherein the type includes: text type, audio type, video Type, file type.
  • the server may send an offline message to the client according to the offline message policy in the following manner: the message server of the server obtains an offline message policy from the policy server; when the client is offline, the server is configured according to the offline message.
  • the policy selects and saves the offline message to be delivered; and/or, when the user is online, the message server of the server delivers the offline message selected according to the offline message policy to the client.
  • the offline message may be, but is not limited to, content of an offline message, summary information of an offline message.
  • the summary information may be, for example, a thumbnail of a picture in a message content, a page link, a frame picture of a video, and the like.
  • the server selects the offline message to be delivered according to the offline message policy, and includes the first offline message, and may also include the summary information of the second offline message, where the first offline message is sent to the user through the offline message policy screening.
  • the offline message of the terminal, the second offline message may be an offline message that is not sent to the client after being filtered by the offline message policy.
  • the client may be a policy client, a message client, and examples are: a converged IP message CPM policy client, a CPM message client;
  • the server may be a policy server, a message server, and examples such as: CPM policy server, CPM Message server.
  • FIG. 6 is a second flowchart of a method for processing an offline message according to an embodiment of the present disclosure. As shown in FIG. 6, the process includes the following steps. step:
  • Step S602 The UE receives an offline message delivered by the server according to the offline message policy, where the offline message policy is set to indicate a condition for delivering the offline message.
  • the user end receives the offline message according to the offline message policy that is set to indicate that the offline message is sent, and solves the problem that the terminal load is high when the offline message is sent in the related art, which reduces the terminal load and reduces Terminal traffic consumption.
  • the offline message policy may include at least one of: sending the offline message on a preset date; Sending the offline message at a preset time; delivering a predetermined number of offline messages; delivering an offline message of a predetermined size; delivering an offline message of the specified sender; delivering an offline message of the specified topic; Offline message; delivers the specified type of offline message, where the type includes: text type, audio type, video type, file type.
  • the offline message may include: content of the offline message, summary information of the offline message.
  • the method may further include: the message client of the user end sets the message server of the condition request server The content of the offline message is delivered; or the message client of the client requests the server of the server to abandon the content of the offline message.
  • the setting condition is a local filtering condition of the terminal, which is not synchronized to the server, and the condition includes at least one of the following: date, time, size, quantity, message type (text message, video message, audio message, file) Message) and so on.
  • the client may be a policy client, a message client, and examples are: a converged IP message CPM policy client, a CPM message client;
  • the server may be a policy server, a message server, and examples such as: CPM policy server, CPM Message server.
  • the policy client of the client may send a configuration request or an offline message policy of the offline message policy to the policy server of the server.
  • the configuration request is used to indicate that at least one of the following operations are performed on the offline message policy by the server: create, delete, change, retrieve, restore, and synchronize.
  • a method for processing an offline message is provided, which mainly involves interaction between the client and the server.
  • the entity is described.
  • Client Contains at least one of the following: a message client (eg, a CPM client), a policy client (eg, a client-side XDM Enabler (XML Document Management) functional entity, which can reside on the same terminal device or Different terminal devices.
  • a message client eg, a CPM client
  • a policy client eg, a client-side XDM Enabler (XML Document Management) functional entity, which can reside on the same terminal device or Different terminal devices.
  • Server side Contains at least one of the following: a message server (eg, CPM PF), a policy server (eg, server-side XDM Enabler) and other functional entities, the above entities can reside on the same or different server-side devices.
  • a message server eg, CPM PF
  • a policy server eg, server-side XDM Enabler
  • the user terminal is configured to set an offline message policy locally, and the offline message policy is mainly configured to set a condition for the user to select an offline message to be delivered, and at least one of the following conditions is included:
  • Date Select the offline message to be received according to the date setting, for example, a date (x year - x month - x day to y year - y month - y day, x year - x month - x day, x year - x month - after x day), specific date (x year - x month - x day), etc.;
  • Time Select the offline message to be received according to the time setting, such as time period (x-x--x seconds to y-y-minute-y seconds, x-x-x seconds before x-time- x minutes - after x seconds), specific time (x - x minutes - x seconds);
  • Sender Receive offline messages based on the sender or sender list used for this condition.
  • Subject Receive an offline message according to the message subject or topic list set by the condition;
  • Name The name or identifier used to identify the 1-1 session or group chat session. Receiving an offline message according to the condition setting name or name list;
  • audio message according to the condition, whether to receive an offline message of an audio message type; or selecting not to receive an audio type offline message, but requiring receiving summary information of an audio type offline message such as audio duration, size, address, etc.;
  • video message according to the condition, whether to receive an offline message of a video message type; or selecting not to receive a video type offline message, but requesting to receive summary information of a video type offline message such as video duration, size, address, etc.;
  • file message according to the condition, whether to receive the offline message of the video file type; or choose not to receive the video type offline message, but request to receive the summary information of the video type offline message such as the video duration, size, address, etc.;
  • the offline message policy includes at least one of the above listed conditions, and may be any combination of the above conditions.
  • the offline message required by the user selected according to the offline message policy or the client setting condition is hereinafter referred to as an offline message x; an offline message that is not required by the user determined according to the offline message policy or the client setting condition, hereinafter referred to as an offline message y.
  • the client sets the offline message policy locally, and the example can be expressed as setting or saving the offline message policy through the policy client.
  • the policy client sets the offline message policy locally, which can be set or modified when the user is online or when the user is offline.
  • the client sends a message to the server, and the message includes the operation of the offline message policy by the client.
  • the client sends a message to the server.
  • the example shows that the policy client sends a message to the policy server.
  • the policy client sends a message to the policy server, including the policy client requesting the policy server to create, update, delete, retrieve, and restore the offline message policy. Wait for the operation.
  • the server receives the message sent by the client to the offline message policy operation; after receiving the message, the server may perform the offline message policy operation.
  • the server receives the message of the offline message policy operation sent by the user terminal.
  • the example may be that the policy server receives the request message from the policy client for the offline cancellation policy operation, and the server side performs the offline message policy operation.
  • the performance of the offline message policy creation, update, deletion, retrieval, recovery, and the like is performed by the policy server.
  • the server can retain the message (offline message).
  • the leaving the offline message on the home server may include: keeping the offline message in the offline message queue of the message server (eg, Deferred CPM Message queue); or the message server to the policy server acquiring the offline message policy, and selecting and saving the user according to the offline message policy Offline message to the message server's offline message queue (Deferred CPM Message queue).
  • the message server eg, Deferred CPM Message queue
  • the message server to the policy server acquiring the offline message policy
  • selecting and saving the user according to the offline message policy Offline message to the message server's offline message queue Deferred CPM Message queue
  • the server can send an offline message to the client according to the offline message policy.
  • the policy client may send a message carrying the set or modified setting condition to the policy server; the policy server saves or modifies the offline message policy.
  • the server sends an offline message to the client according to the offline message policy, and may include at least one of the following: the message server obtains an offline message policy from the policy server, and selects an offline message required by the user to send the message to the message client according to the offline message policy; The server also sends a message to the message client, where the message contains information about the offline message that the client does not need.
  • the message client receives the information of the offline message x or the offline message y delivered by the message server, and can perform the following operations: the message client receives the offline message x delivered by the message server, and if the offline message x contains the summary information of the audio message Or the summary information of the video information or the summary information of the file information, the message client requests the message server to deliver the complete audio message or the video message or the file message; the message client receives the information of the offline message y sent by the message server, the message The client requests the message server to deliver the offline message y or abandon the offline message y.
  • the client requests the message server to deliver the offline message y, which may include the offline message y required by the message client to set the condition request message server.
  • the above conditions include at least one of the following: date, time, size, quantity, message type (text message, video message, audio message, file message) and the like.
  • All the above operations can be repeated until all the offline messages of the message server are delivered.
  • the message client can no longer send a request to deliver offline messages.
  • the client sets an offline policy
  • the server sends an offline message according to the offline policy.
  • FIG. 7 is a flowchart of an offline message delivery method according to a preferred embodiment of the present disclosure. As shown in FIG. 7, the method includes the following steps:
  • Setting conditions are similar to the foregoing offline message policy, including at least one of the foregoing conditions;
  • the XDM policy client A sends a message requesting XDM (XML Document Management) server A to create an offline message policy;
  • XDM (XML Document Management) Server A creates or saves an offline message policy on the server side;
  • CMP PF A receives the offline message and saves it
  • CPM client A is reachable, such as going online, opening a session window, etc.
  • CPM PF A obtains an offline message policy from XDM (XML Document Management) server A, for example, XDM (XML) according to XCAP (The Extensible Markup Language (XML) Configuration Access protocol, IETF RFC4825) and XDCP (XDM Command Protocol) protocols.
  • XDM XML Document Management
  • XCAP The Extensible Markup Language (XML) Configuration Access protocol, IETF RFC4825
  • XDCP XDM Command Protocol
  • the CPM PF A selects an offline message and sends it to the CPM client according to the offline message policy.
  • FIG. 8 is a schematic diagram of a client requesting a server-side operation offline message policy according to a preferred embodiment of the present disclosure.
  • an offline message policy is implemented according to an XML Document Management (XDM) standard defined by OMA. Create, modify, retrieve, delete, restore, and more.
  • XDM XML Document Management
  • XDM (XML Document Management) client A creates, modifies, retrieves, and retrieves XDM (XML Document Management) server A according to XCAP (The Extensible Markup Language (XML) Configuration Access protocol, IETF RFC 4825) and XDCP (XDM Command Protocol) protocols. Delete and restore offline message policies.
  • XCAP The Extensible Markup Language (XML) Configuration Access protocol, IETF RFC 4825
  • XDCP XDM Command Protocol
  • the CPM PF delivers the offline message (offline message x) selected by the UE to the CPM client according to the offline message policy set by the CPM client.
  • the CPM PF delivers the information of the offline message (offline message y) that is not selected to the CPM client; if the CPM client receives the information of the offline message y sent by the CPM PF, The CPM client can set a condition to request the CPM PF to deliver a complete offline message y.
  • FIG. 9 is a schematic flowchart of a CPM client requesting to send an offline message again according to a preferred embodiment of the present disclosure. As shown in FIG. 9, the process includes the following steps:
  • the CPM PF delivers the offline message x to the CPM client according to the offline message policy of the XDM (XML Document Management) server, and the offline message y is not delivered;
  • the CPM PF sends a message (for example, a SIP invite, a SIP reminder, or a SIP message) to the CPM client, where the message includes information of the offline message y;
  • a message for example, a SIP invite, a SIP reminder, or a SIP message
  • the CPM client sends an OK message to the CPM PF;
  • the CPM client setting condition is used to select an offline message to be delivered, and the foregoing condition is at least one of the listed conditions in the foregoing offline message policy;
  • the CPM client sends a SIP invite message to the CPM PF through the SIP/IP core, and the SIP invite includes the conditions set in step 7;
  • the CPM PF sends an OK message to the CPM client through the SIP/IP core;
  • the CPM PF delivers the selected offline message to the CPM client according to the conditions set by the CPM client.
  • FIG. 10 is a flow diagram of a CPM client requesting delivery of a complete audio message or video message or file message in accordance with a preferred embodiment of the present disclosure. As shown in FIG. 10, the process includes the following steps:
  • the CPM client receives an offline message, and the offline message includes summary information of the audio message or the video message or the CPM file message; the summary information includes at least one of the following: duration, name, size, address, and the like;
  • the CPM client sends a SIP Invite message to the CPM PF through the SIP/IP core.
  • the SIP invite message includes information such as an audio message selected by the CPM client or an address of the video message or the CPM file message;
  • the CPM PF sends an OK message to the CPM client through the SIP/IP core;
  • the CPM PF delivers a complete audio message or video message or CPM file to the CPM client according to the selection of the CPM client.
  • FIG. 11 is a flow diagram of a CPM PF processing an offline message according to an offline message policy in accordance with a preferred embodiment of the present disclosure. As shown in FIG. 11, the process includes the following steps:
  • XDM (XML Document Management) Server A has configured an offline message policy.
  • CPM client A is unreachable, CPM PF A receives an offline message sent to CPM client A;
  • CPM PF A obtains an offline message policy from XDM (XML Document Management) Server A (this is an optional step), for example, according to XCAP (The Extensible Markup Language (XML) Configuration Access protocol, IETF RFC 4825) and XDCP (XDM)
  • XCAP The Extensible Markup Language (XML) Configuration Access protocol, IETF RFC 4825
  • XDCP XDCP
  • the Command Protocol protocol obtains an offline message policy from the XDM (XML Document Management) server A;
  • CPM PF A processes the offline message in the following manner: saves the offline message in the CPM PF A offline message queue (Deferred CPM Message queue); or saves the offline message selected by the user according to the offline message policy acquired in step 2 CPM PFA Deferred CPM Message queue.
  • the user terminal in the preferred embodiment may be an electronic device, and the electronic device may be a related stream generating device and a receiving playing device in a video communication application, for example, a mobile phone, a computer, a server, a set top box, a portable mobile terminal, a digital camera, and a television broadcast. System equipment, etc.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present disclosure which is essential or contributes to the related art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM).
  • the instructions include a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present disclosure.
  • An apparatus for processing an offline message is provided in this embodiment.
  • the apparatus is configured to implement the foregoing embodiments and preferred embodiments, and details are not described herein.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 12 is a structural block diagram 1 of an apparatus for processing an offline message according to an embodiment of the present disclosure. As shown in FIG. 12, the apparatus includes:
  • the sending module 122 is configured to send an offline message to the user according to the offline message policy, where the offline message policy is set to indicate a condition for delivering the offline message.
  • FIG. 13 is a structural block diagram 2 of a processing apparatus for an offline message according to an embodiment of the present disclosure.
  • the device includes, in addition to all the modules shown in FIG. 12 , the following:
  • the receiving module 132 is connected to the sending module 122, and is configured to receive an offline message policy configured by the user end before the sending module sends an offline message to the user according to the offline message policy; or
  • the configuration module 134 is connected to the sending module 122, and is configured to configure an offline message policy according to the configuration request before the sending module sends an offline message to the user according to the offline message policy.
  • the offline message policy may include at least one of: sending an offline message on a preset date; sending an offline message at a preset time; delivering a predetermined number of offline messages; delivering an offline message of a predetermined size; The offline message of the sender; the offline message of the specified topic is delivered; the offline message of the specified group is delivered; and the offline message of the specified type is delivered, wherein the type includes: text type, audio type, video type, file type.
  • FIG. 14 is a structural block diagram 3 of a processing device for offline messages according to an embodiment of the present disclosure. As shown in FIG. 14, the device includes:
  • the receiving module 142 is configured to receive an offline message delivered by the server according to the offline message policy, where the offline message policy is set to indicate a condition for delivering the offline message.
  • the offline message policy may include at least one of: sending an offline message on a preset date; sending an offline message at a preset time; delivering a predetermined number of offline messages; and delivering an offline message of a predetermined size; Specify the sender's offline message; deliver the offline message of the specified topic; deliver the offline message of the specified group; deliver the specified type of offline message, where the types include: text type, audio type, video type, file type.
  • FIG. 15 is a structural block diagram of a processing apparatus of an offline message according to an embodiment of the present disclosure. As shown in FIG. 15 , the device includes, in addition to all the modules shown in FIG. 14 , the following:
  • the sending module 152 is connected to the receiving module 142, and is configured to send a configuration request or an offline message policy of the offline message policy to the server before the receiving module receives the offline message delivered by the server according to the offline message policy.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are in any combination.
  • the forms are located in different processors.
  • a storage medium is provided in an embodiment of the present disclosure.
  • the storage medium may be configured to store program code set to perform the following steps:
  • the server sends an offline message to the client according to the offline message policy, where the offline message policy is set to indicate the condition for delivering the offline message.
  • the storage medium is further arranged to store program code arranged to perform the following steps:
  • the method further includes:
  • the server receives an offline message policy configured by the client;
  • the server configures an offline message policy according to the configuration request.
  • the storage medium is further configured to store program code set to perform the following steps: the offline message policy includes at least one of: sending an offline message on a preset date; sending an offline message at a preset time; delivering the reservation The offline message of the specified quantity; the offline message of the specified size is delivered; the offline message of the specified sender is delivered; the offline message of the specified topic is delivered; the offline message of the specified group is delivered; and the offline message of the specified type is delivered, wherein the type Including: text type, audio type, video type, file type.
  • the storage medium is further arranged to store program code arranged to perform the following steps:
  • the server sends an offline message to the client according to the offline message policy, including:
  • the server obtains an offline message policy from the policy server
  • the server selects an offline message to be delivered according to an offline message policy to form a message queue
  • the server sends the offline message of the message queue to the client.
  • the storage medium is further arranged to store program code arranged to perform the following steps: the offline message comprises: content of the offline message, summary information of the offline message.
  • the storage medium is further arranged to store program code arranged to perform the following steps:
  • the server selects the offline message to be delivered according to the offline message policy to form a message queue, including:
  • the server obtains all offline messages to be delivered
  • the server sets the first offline message that meets the offline message policy to the first priority, and sets the second offline message that does not meet the offline message policy to the second priority, where the first priority is issued. Greater than the second priority;
  • the server forms a message queue of the first offline message and the second offline message.
  • the storage medium is further configured to store program code configured to perform the following steps: the client includes at least one of the following: a converged IP message CPM policy client, a CPM message client; the server includes at least one of the following: CPM Policy server, CPM message server.
  • a storage medium is also provided in an embodiment of the present disclosure.
  • the storage medium may be configured to store program code set to perform the following steps:
  • the UE receives an offline message delivered by the server according to the offline message policy.
  • the offline message policy is set to indicate the condition for delivering the offline message.
  • the storage medium is further configured to store program code set to perform the following steps: the offline message policy includes at least one of: sending an offline message on a preset date; sending an offline message at a preset time; delivering the reservation The offline message of the specified quantity; the offline message of the specified size is delivered; the offline message of the specified sender is delivered; the offline message of the specified topic is delivered; the offline message of the specified group is delivered; and the offline message of the specified type is delivered, wherein the type Including: text type, audio type, video type, file type.
  • the storage medium is further arranged to store program code arranged to perform the step of: the offline message comprising at least one of: content of the offline message, summary information of the offline message.
  • the storage medium is further arranged to store program code arranged to perform the following steps:
  • the method further includes:
  • the client requests the server to deliver the content of the offline message; or,
  • the client requests the server to abandon the content of the offline message.
  • the storage medium is further configured to store the program code that is set to perform the following steps: the client requests the server to deliver the offline message according to the setting condition.
  • the storage medium is further configured to store program code configured to perform the following steps: the client includes at least one of the following: a converged IP message CPM policy client, a CPM message client; the server includes at least one of the following: CPM Policy server, CPM message server.
  • the storage medium is further arranged to store program code arranged to perform the following steps:
  • the method further includes:
  • S1 The UE sends a configuration request or an offline message policy of the offline message policy to the server.
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • a mobile hard disk e.g., a hard disk
  • magnetic memory e.g., a hard disk
  • a method for processing an offline message including: the server sends an offline message to the client according to the offline message policy; wherein the offline message policy is set to indicate a condition for delivering the offline message.
  • the processor is executed according to the stored program code in the storage medium: before the server sends the offline message to the user according to the offline message policy, the method further includes: the server receiving the configuration of the client end Offline message policy; or, the server configures an offline message policy according to the configuration request.
  • the processor is executed according to the stored program code in the storage medium:
  • the offline message policy includes at least one of: sending an offline message on a preset date; and sending an offline message at a preset time; A predetermined number of offline messages are delivered; an offline message of a predetermined size is delivered; an offline message of the specified sender is delivered; an offline message of the specified topic is delivered; an offline message of the specified group is delivered; and an offline message of the specified type is delivered.
  • the types include: text type, audio type, video type, file type.
  • the processor is executed according to the stored program code in the storage medium: the server sends the offline message to the client according to the offline message policy, and when the user is offline, the server is configured according to the The offline message policy selects and saves the offline message to be delivered; and/or, when the user is online, the server delivers the offline message selected according to the offline message policy to the client.
  • the processor is executed according to the stored program code in the storage medium: the client includes at least one of the following: a merged IP message CPM policy client, a CPM message client; and the server includes at least the following One: CPM policy server, CPM message server.
  • the processor executes, according to the stored program code in the storage medium, the user end receives an offline message that is sent by the server according to the offline message policy, where the offline message policy is set to indicate that the offline message is sent. conditions of.
  • the processor is executed according to the stored program code in the storage medium:
  • the offline message policy includes at least one of: sending an offline message on a preset date; and sending an offline message at a preset time; A predetermined number of offline messages are delivered; an offline message of a predetermined size is delivered; an offline message of the specified sender is delivered; an offline message of the specified topic is delivered; an offline message of the specified group is delivered; and an offline message of the specified type is delivered.
  • the types include: text type, audio type, video type, file type.
  • the processor executes according to the stored program code in the storage medium: the offline message includes at least one of the following: content of the offline message, and summary information of the offline message.
  • the processor performs, according to the stored program code in the storage medium, after the offline message is the summary information of the offline message, after the offline message sent by the server according to the offline message policy is received by the server
  • the method further includes: the client requests the server to deliver the content of the offline message; or the client requests the server to abandon the content of the offline message.
  • the processor executes according to the stored program code in the storage medium: the user end requests the server to deliver the offline message according to the setting condition.
  • the processor is executed according to the stored program code in the storage medium: the client includes at least one of the following: a merged IP message CPM policy client, a CPM message client; and the server includes at least the following One: CPM policy server, CPM message server.
  • the processor performs, according to the stored program code in the storage medium, before the user end receives the offline message delivered by the server according to the offline message policy, the user sends the offline message policy to the server.
  • the exemplary embodiments in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
  • modules or steps of the present disclosure described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. As such, the disclosure is not limited to any specific combination of hardware and software.
  • the method for processing the offline message provided by the embodiment of the present disclosure, the server and the user end to send and receive the offline message according to the offline message policy that is set to instruct the delivery of the offline message, thereby avoiding the terminal caused by receiving a large number of offline messages.
  • the load is too high, so it can solve the problem that the terminal load is high when the offline message is sent in the related art.
  • the problem is to reduce the terminal load and reduce the terminal traffic consumption.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Provided by the present disclosure are a method and an apparatus for processing an offline message, the method comprising: a server issuing an offline message to a client according to an offline message policy, the offline message policy being set to indicate a condition for issuing the offline message. The present disclosure solves the problem in existing technology wherein a terminal load is high when an offline message is issued, and achieves the effects of reducing the terminal load and reducing the terminal traffic consumption.

Description

离线消息的处理方法及装置Offline message processing method and device 技术领域Technical field
本公开涉及通信领域,具体而言,涉及一种离线消息的处理方法及装置。The present disclosure relates to the field of communications, and in particular, to a method and an apparatus for processing an offline message.
背景技术Background technique
富媒体通信(Rich Communication Suite,简称为RCS)是一种基于增强的手机本地地址本的、集语音、消息、视频、内容共享等多种通信方式及功能为一体的融合通信服务。Rich Communication Suite (RCS) is a kind of converged communication service based on enhanced mobile phone local address book, which integrates various communication methods and functions such as voice, message, video and content sharing.
移动开放联盟(Open Mobile Alliance,简称为OMA)在会话初始协议/网络协议核(Session Initiation Protocol/Internet Protocol Core,简称为SIP/IP核)基础上制定了融合IP消息(Converged IP Messaging,简称为CPM)标准,提供了多媒体通信服务的融合,满足不同的用户体验。The Open Mobile Alliance (OMA) has developed Converged IP Messaging (Converged IP Messaging) based on the Session Initiation Protocol/Internet Protocol Core (SIP/IP Core). The CPM) standard provides a convergence of multimedia communication services to meet different user experiences.
图1是相关技术中的CPM架构模型的示意图,图1中所示CPM架构模型描述了CPM的功能组件、CPM功能组件之间的交互、CPM的功能组件与外部功能组件接口。包含的功能组件有:1 is a schematic diagram of a CPM architecture model in the related art, and the CPM architecture model shown in FIG. 1 describes functional components of the CPM, interactions between CPM functional components, functional components of the CPM, and external functional component interfaces. The functional components included are:
CPM客户端:通过与CPM其他功能组件(例如,CPM参与功能组件)的交互,允许用户(CPM User)使用基于CPM的服务。CPM client: Allows users (CPM User) to use CPM-based services by interacting with other CPM functional components (eg, CPM participating functional components).
CPM参与功能组件(CPM Participating Function,简称为CPM PF):担任用户在网络侧的代理,包括协调用户拥有的多个CPM客户端(CPM Client)的交互。CPM Participating Function (CPM PF): acts as a proxy for the user on the network side, including coordinating the interaction of multiple CPM clients owned by the user.
CPM控制功能组件(CPM Controlling Function,简称为CPM CF):实现CPM独立信息实体和CPM会话群操作功能。CPM Controlling Function (CPM CF): Implements CPM independent information entities and CPM session group operations.
CPM独立信息实体(CPM Standalone Message):发送给一个或多个接受者的独立信息实体。一个CPM独立信息实体能够包含多个离散的媒体信息(如:文本、图片、音频、视频等)。CPM Standalone Message: A separate information entity that is sent to one or more recipients. A CPM independent information entity can contain multiple discrete media information (eg, text, pictures, audio, video, etc.).
CPM会话(CPM Session):两个或多个参与者实时的交互,交互的信息包含文本、图片、音频、视频、连续的媒体内容等。CPM Session: A real-time interaction between two or more participants. The interactive information includes text, images, audio, video, continuous media content, and so on.
交互选择功能组件(Interworking Selection Function):选择一个交互功能组件(Interworking Function)实现CPM信息(CPM Message)、CPM文件传输或者CPM会话的交互。Interworking Selection Function: Select an Interworking Function to implement CPM Message, CPM file transfer, or CPM session interaction.
CPM信息(CPM Message):包含CPM独立信息实体和CPM对话信息(CPM Chat Message)。CPM Message: Contains CPM Independent Information Entity and CPM Chat Message.
CPM对话信息(CPM Chat Message):在CPM对话中,发送给给一个或多个接受者的信息。一个CPM对话信息能够包含多个离散的媒体信息(如:文本、图片、音频、视频等)。CPM Chat Message: Information sent to one or more recipients in a CPM conversation. A CPM conversation message can contain multiple discrete media information (eg, text, pictures, audio, video, etc.).
交互功能组件(Interworking Function):实现基于CPM业务和外部非CPM通信业务 的交互。Interworking Function: Implementing CPM-based services and external non-CPM communication services Interaction.
信息存储客户端(Message Storage Client):管理CPM信息、CPM文件传输历史、CPM会话历史、CPM会话历史和媒体对象等存储在终端设备(Device)的信息。Message Storage Client: Manages information stored in a terminal device (Device) such as CPM information, CPM file transfer history, CPM session history, CPM session history, and media objects.
信息存储服务器(Message Storage Server):管理CPM信息、CPM文件传输历史、CPM会话历史和媒体对象等存储在网络的信息。Message Storage Server: Manages information stored on the network such as CPM information, CPM file transfer history, CPM session history, and media objects.
远程CPM环境(remote CPM Environment):CPM环境驻留在其他(远端)网络。Remote CPM Environment: The CPM environment resides on other (remote) networks.
CPM功能部件与下列外部功能部件交互提供CPM的功能:The CPM feature interacts with the following external features to provide CPM functionality:
SIP/IP核:基于SIP/IP的能力。SIP/IP core: SIP/IP based capabilities.
支持CPM能力的其他OMA的能力,例如:Other OMA capabilities that support CPM capabilities, such as:
出席策略组件(Presence Enabler):检索和公布出席信息(Presence Information);Presence Enabler: Retrieve and publish presence information (Presence Information);
XML文档管理组件(XDM Enabler):存储和处理CPM用户偏好(CPM User preferences)、用户偏好配置(User Preferences Profiles)、策略、CPM群组定义、CPM群组列表;XML Document Management Component (XDM Enabler): store and process CPM User preferences, User Preferences Profiles, policies, CPM group definitions, CPM group lists;
推送策略组件(Push Enabler):下发通知给CPM用户的终端;Push Enabler: Sends a notification to the terminal of the CPM user;
设备管理策略组件(Device Management Enabler):管理CPM客户端设置和信息存储客户端设置。Device Management Enabler: Manage CPM client settings and information store client settings.
在对象管理体系结构(Object Management Architecture,简称为OMA)CPM标准中,发送方B(例如,CPM客户端B)发送消息给接收方A(例如,CPM客户端A),此时若接收方A不在线,则接收方A所归属的服务器(CPM PF)根据用户设置或系统设置选择是否保存离线消息(deferred message)。假设接收方A重新在线,接收方A所归属的服务器可以采用推送(pushing)和拉取(pulling)两种方式把离线消息下发给接收方A。下面对两种方式分别进行说明。In the Object Management Architecture (OMA) CPM standard, the sender B (for example, CPM client B) sends a message to the receiver A (for example, CPM client A), at this time, if the receiver A If it is not online, the server (CPM PF) to which the receiver A belongs selects whether to save the deferred message according to the user settings or system settings. Assume that the receiver A is re-online, and the server to which the receiver A belongs can use the push and pull methods to deliver the offline message to the receiver A. The two methods are described separately below.
(一)推送(pushing)方式(1) Pushing method
图2是相关技术中采用pushing方式下发离线消息的流程示意图,如图2所示,离线消息采用pushing方式下发给接收方A,包括如下步骤:FIG. 2 is a schematic diagram of a process for sending an offline message by using a pushing method in the related art. As shown in FIG. 2, the offline message is sent to the receiver A in the pushing manner, and includes the following steps:
1.CPM PF A有离线消息等待下发且接收方A(CPM客户端A)允许接收离线消息。接收方A重新上线;1. CPM PF A has an offline message waiting to be delivered and Receiver A (CPM Client A) is allowed to receive offline messages. Receiver A is back online;
2.CPM PF A下发所有离线消息给接收方A;2. CPM PF A delivers all offline messages to receiver A;
(二)拉取(pulling)方式(2) Pulling method
图3是相关技术中采用pulling方式下发离线消息的流程示意图,如图3所示,离线消息采用pulling方式下发给接收方A,包括如下步骤:FIG. 3 is a schematic diagram of a process for sending an offline message by using a pulling method in the related art. As shown in FIG. 3, the offline message is sent to the receiver A in a pulling manner, and includes the following steps:
1.CPM PF A有离线消息等待下发且接收方A(CPM客户端A)允许接收离线消息和通知消息。接收方A重新上线;1. CPM PF A has offline messages waiting to be delivered and Receiver A (CPM Client A) is allowed to receive offline messages and notification messages. Receiver A is back online;
2-3.CPM客户端A通过SIP/IP核向PF订阅离线消息通知;2-3. CPM client A subscribes to the offline message notification to the PF through the SIP/IP core;
4-5.PF通过SIP/IP核向CPM客户端A发送OK消息; 4-5. The PF sends an OK message to the CPM client A through the SIP/IP core;
6-7.PF通过SIP/IP核向CPM客户端A发送通知消息,通知消息包含离线消息信息;6-7. The PF sends a notification message to the CPM client A through the SIP/IP core, and the notification message includes offline message information;
8-9.CPM客户端A发送OK,反馈收到通知消息;8-9. CPM client A sends OK, and feedback receives the notification message;
10-11.CPM客户端A通过SIP/IP核发送邀请消息给PF A,邀请消息包含对离线消息的操作,如下是否选择下发等操作;10-11. The CPM client A sends an invitation message to the PF A through the SIP/IP core, and the invitation message includes an operation on the offline message, and whether the operation is selected or not.
12-13.PF发送OK消息;12-13. PF sends an OK message;
14.PF发送被选择下发的离线消息给CPM客户端A;14. The PF sends the offline message selected for delivery to the CPM client A;
在上述pushing方式中,用户(CPM User)短时间内会收到大量的离线消息,终端负荷较高,可能造成终端假死现象,同时,会快速消耗用户终端的电量及网络流量。而在上述pulling方式中,用户需要对每一条离线消息信息进行处理(如是否选择下发等),当离线消息有几十条的数量的时候,就是极其繁琐的操作。In the above-mentioned pushing mode, the user (CPM User) receives a large number of offline messages in a short period of time, and the terminal load is high, which may cause the terminal to die, and at the same time, quickly consume the power and network traffic of the user terminal. In the above-mentioned pulling mode, the user needs to process each offline message information (such as whether to choose to send or the like). When there are dozens of offline messages, it is extremely cumbersome operation.
因此,相关技术中在进行离线消息下发时存在终端负荷较高的问题,目前尚未有相关的解决方案。Therefore, in the related art, when the offline message is delivered, there is a problem that the terminal load is high, and there is no related solution at present.
发明内容Summary of the invention
本公开实施例提供了一种离线消息的处理方法及装置,以至少解决相关技术中在进行离线消息下发时存在终端负荷较高的问题。An embodiment of the present disclosure provides a method and an apparatus for processing an offline message, so as to at least solve the problem that a terminal load is high when an offline message is sent in the related art.
根据本公开的一个实施例,提供了一种离线消息的处理方法,包括:服务端根据离线消息策略下发离线消息给用户端;其中,所述离线消息策略设置为指示下发所述离线消息的条件。According to an embodiment of the present disclosure, a method for processing an offline message is provided, including: the server sends an offline message to the user according to the offline message policy; wherein the offline message policy is set to indicate that the offline message is delivered. conditions of.
可选地,在服务端根据离线消息策略下发离线消息给用户端之前,所述方法还包括:所述服务端的策略服务器接收所述用户端的策略客户端配置的所述离线消息策略;或,所述服务端的策略服务器根据配置请求配置所述离线消息策略。Optionally, before the server sends the offline message to the user according to the offline message policy, the method further includes: the policy server of the server receives the offline message policy configured by the policy client of the client; or The policy server of the server configures the offline message policy according to the configuration request.
可选地,所述离线消息策略包括以下至少之一:在预设日期下发所述离线消息;在预设时间下发所述离线消息;下发预定数量离线消息;下发预定大小的离线消息;下发指定发件人的离线消息;下发指定主题的离线消息;下发指定群组的离线消息;下发指定类型的离线消息,其中,所述类型包括:文本类型、音频类型、视频类型、文件类型。Optionally, the offline message policy includes at least one of: sending the offline message on a preset date; sending the offline message at a preset time; delivering a predetermined number of offline messages; and delivering a predetermined size offline The message is delivered; the offline message of the specified sender is delivered; the offline message of the specified topic is delivered; the offline message of the specified group is delivered; and the offline message of the specified type is delivered, wherein the type includes: text type, audio type, Video type, file type.
可选地,服务端根据离线消息策略下发离线消息给用户端包括:服务端的消息服务器从策略服务器中获取所述离线消息策略;在所述用户端离线时,服务端的消息服务器根据所述离线消息策略选择和保存待下发的离线消息;和/或,在所述用户端在线时,服务端的消息服务器下发根据所述离线消息策略选择的离线消息给用户端。Optionally, the server sends the offline message to the client according to the offline message policy, including: the message server of the server obtains the offline message policy from the policy server; when the client is offline, the message server of the server is offline according to the The message policy selects and saves the offline message to be delivered; and/or, when the user is online, the message server of the server delivers the offline message selected according to the offline message policy to the client.
可选地,所述离线消息包括以下至少之一:离线消息的内容、离线消息的概要信息。Optionally, the offline message includes at least one of the following: content of an offline message, summary information of an offline message.
可选地,所述用户端包括以下至少之一:策略客户端、消息客户端;所述服务端包括以下至少之一:策略服务器、消息服务器。Optionally, the user end includes at least one of the following: a policy client, a message client; and the server includes at least one of the following: a policy server, a message server.
根据本公开的另一个实施例,提供了一种离线消息的处理方法,包括:用户端接收服务端根据离线消息策略下发的离线消息;其中,所述离线消息策略设置为指示下发所述离 线消息的条件。According to another embodiment of the present disclosure, a method for processing an offline message is provided, including: receiving, by a client, an offline message delivered by a server according to an offline message policy; wherein the offline message policy is set to indicate that the offline message is sent Leave The condition of the line message.
可选地,所述离线消息策略包括以下至少之一:在预设日期下发所述离线消息;在预设时间下发所述离线消息;下发预定数量离线消息;下发预定大小的离线消息;下发指定发件人的离线消息;下发指定主题的离线消息;下发指定群组的离线消息;下发指定类型的离线消息,其中,所述类型包括:文本类型、音频类型、视频类型、文件类型。Optionally, the offline message policy includes at least one of: sending the offline message on a preset date; sending the offline message at a preset time; delivering a predetermined number of offline messages; and delivering a predetermined size offline The message is delivered; the offline message of the specified sender is delivered; the offline message of the specified topic is delivered; the offline message of the specified group is delivered; and the offline message of the specified type is delivered, wherein the type includes: text type, audio type, Video type, file type.
可选地,所述离线消息包括以下至少之一:离线消息的内容、离线消息的概要信息。Optionally, the offline message includes at least one of the following: content of an offline message, summary information of an offline message.
可选地,在所述离线消息为离线消息的概要信息时,在用户端接收服务端根据离线消息策略下发的离线消息之后,所述方法还包括:所述用户端的消息客户端设置条件请求所述服务端的消息服务器下发所述离线消息的内容;或,所述用户端的消息客户端请求所述服务端的消息服务器放弃下发所述离线消息的内容。Optionally, after the offline message is the summary information of the offline message, after the user end receives the offline message delivered by the server according to the offline message policy, the method further includes: setting a condition request by the message client of the user end The message server of the server sends the content of the offline message; or the message client of the server requests the message server of the server to abandon the content of the offline message.
可选地,所述方法还包括:所述用户端根据设置条件请求所述服务端下发离线消息。Optionally, the method further includes: the user end requests the server to send an offline message according to the setting condition.
可选地,所述用户端包括以下至少之一:策略客户端、消息客户端;所述服务端包括以下至少之一:策略服务器、消息服务器。Optionally, the user end includes at least one of the following: a policy client, a message client; and the server includes at least one of the following: a policy server, a message server.
可选地,在用户端接收服务端根据离线消息策略下发的离线消息之前,所述方法还包括:所述用户端的策略客户端向所述服务端的策略服务器发送所述离线消息策略的配置请求或所述离线消息策略。Optionally, before the receiving, by the UE, the offline message sent by the server according to the offline message policy, the method further includes: the policy client of the user sends the configuration request of the offline message policy to the policy server of the server Or the offline message policy.
可选的,所述配置请求设置为指示在所述服务端对所述离线消息策略进行以下操作至少之一:创建、删除、更改、检索、恢复、同步。Optionally, the configuration request is set to indicate that at least one of the following operations are performed on the offline message policy by the server: creating, deleting, changing, retrieving, restoring, and synchronizing.
根据本公开的又一个实施例,提供了一种离线消息的处理装置,应用在服务端,包括:下发模块,设置为根据离线消息策略下发离线消息给用户端;其中,所述离线消息策略设置为指示下发所述离线消息的条件。According to still another embodiment of the present disclosure, a processing apparatus for an offline message is provided, where the application is configured to: a sending module, configured to send an offline message to a user according to an offline message policy; wherein the offline message The policy is set to indicate the condition for delivering the offline message.
可选地,所述装置还包括:接收模块,设置为在所述下发模块根据离线消息策略下发离线消息给用户端之前,接收所述用户端配置的所述离线消息策略;或,配置模块,设置为在所述下发模块根据离线消息策略下发离线消息给用户端之前,根据配置请求配置所述离线消息策略。Optionally, the device further includes: a receiving module, configured to receive the offline message policy configured by the user end before the sending module sends an offline message to the user end according to the offline message policy; or, configured The module is configured to configure the offline message policy according to the configuration request before the sending module sends an offline message to the user according to the offline message policy.
可选地,所述离线消息策略包括以下至少之一:在预设日期下发所述离线消息;在预设时间下发所述离线消息;下发预定数量离线消息;下发预定大小的离线消息;下发指定发件人的离线消息;下发指定主题的离线消息;下发指定群组的离线消息;下发指定类型的离线消息,其中,所述类型包括:文本类型、音频类型、视频类型、文件类型。Optionally, the offline message policy includes at least one of: sending the offline message on a preset date; sending the offline message at a preset time; delivering a predetermined number of offline messages; and delivering a predetermined size offline The message is delivered; the offline message of the specified sender is delivered; the offline message of the specified topic is delivered; the offline message of the specified group is delivered; and the offline message of the specified type is delivered, wherein the type includes: text type, audio type, Video type, file type.
根据本公开的又一个实施例,提供了一种离线消息的处理装置,应用在用户端,包括:接收模块,设置为接收服务端根据离线消息策略下发的离线消息;其中,所述离线消息策略设置为指示下发所述离线消息的条件。According to still another embodiment of the present disclosure, a processing apparatus for an offline message is provided, which is applied to a user end, and includes: a receiving module, configured to receive an offline message delivered by a server according to an offline message policy; wherein the offline message The policy is set to indicate the condition for delivering the offline message.
可选地,所述离线消息策略包括以下至少之一:在预设日期下发所述离线消息;在预设时间下发所述离线消息;下发预定数量离线消息;下发预定大小的离线消息;下发指定发件人的离线消息;下发指定主题的离线消息;下发指定群组的离线消息;下发指定类型 的离线消息,其中,所述类型包括:文本类型、音频类型、视频类型、文件类型。Optionally, the offline message policy includes at least one of: sending the offline message on a preset date; sending the offline message at a preset time; delivering a predetermined number of offline messages; and delivering a predetermined size offline The message is delivered; the offline message of the specified sender is delivered; the offline message of the specified topic is delivered; the offline message of the specified group is delivered; the specified type is delivered. Offline message, wherein the type includes: text type, audio type, video type, file type.
可选地,所述装置还包括:发送模块,设置为在所述接收模块接收服务端根据离线消息策略下发的离线消息之前,向所述服务端发送所述离线消息策略的配置请求或所述离线消息策略。Optionally, the device further includes: a sending module, configured to send the configuration request or the offline message policy to the server before the receiving module receives the offline message delivered by the server according to the offline message policy The offline message policy.
根据本公开的又一个实施例,还提供了一种存储介质。该存储介质设置为存储设置为执行以下步骤的程序代码:服务端根据离线消息策略下发离线消息给用户端;其中,所述离线消息策略设置为指示下发所述离线消息的条件。According to still another embodiment of the present disclosure, a storage medium is also provided. The storage medium is configured to store the program code that is set to perform the following steps: the server sends an offline message to the client according to the offline message policy; wherein the offline message policy is set to indicate a condition for delivering the offline message.
可选地,存储介质还设置为存储设置为执行以下步骤的程序代码:在服务端根据离线消息策略下发离线消息给用户端之前,所述方法还包括:所述服务端接收所述用户端配置的所述离线消息策略;或,所述服务端根据配置请求配置所述离线消息策略。Optionally, the storage medium is further configured to store the program code that is configured to perform the following steps: before the server sends the offline message to the client according to the offline message policy, the method further includes: the server receiving the client The offline message policy is configured; or the server configures the offline message policy according to the configuration request.
可选地,存储介质还设置为存储设置为执行以下步骤的程序代码:所述离线消息策略包括以下至少之一:在预设日期下发所述离线消息;在预设时间下发所述离线消息;下发预定数量离线消息;下发预定大小的离线消息;下发指定发件人的离线消息;下发指定主题的离线消息;下发指定群组的离线消息;下发指定类型的离线消息,其中,所述类型包括:文本类型、音频类型、视频类型、文件类型。Optionally, the storage medium is further configured to store program code set to perform the following steps: the offline message policy includes at least one of: sending the offline message on a preset date; sending the offline at a preset time The message is sent; the predetermined number of offline messages are delivered; the offline message of the specified size is delivered; the offline message of the specified sender is delivered; the offline message of the specified topic is delivered; the offline message of the specified group is delivered; and the specified type of offline is delivered. The message, wherein the type includes: a text type, an audio type, a video type, and a file type.
可选地,存储介质还设置为存储设置为执行以下步骤的程序代码:服务端根据离线消息策略下发离线消息给用户端包括:服务端从策略服务器中获取所述离线消息策略;服务端根据所述离线消息策略选择待下发的离线消息形成消息队列;服务端将所述消息队列的离线消息下发给用户端。Optionally, the storage medium is further configured to store the program code that is set to perform the following steps: the server sends the offline message to the client according to the offline message policy, where the server obtains the offline message policy from the policy server; The offline message policy selects an offline message to be delivered to form a message queue; the server sends the offline message of the message queue to the client.
可选地,存储介质还设置为存储设置为执行以下步骤的程序代码:所述离线消息包括:离线消息的内容、离线消息的概要信息。Optionally, the storage medium is further configured to store program code configured to perform the following steps: the offline message includes: content of the offline message, summary information of the offline message.
可选地,存储介质还设置为存储设置为执行以下步骤的程序代码:服务端根据所述离线消息策略选择待下发的离线消息形成消息队列包括:所述服务端获取所有待下发的离线消息;所述服务端将符合所述离线消息策略的第一离线消息设置成第一优先级,以及将不符合所述离线消息策略的第二离线消息设置成第二优先级,其中,所述第一优先级的下发权限大于所述第二优先级;所述服务端将所述第一离线消息和所述第二离线消息形成消息队列。Optionally, the storage medium is further configured to store the program code that is set to perform the following steps: the server selects the offline message to be delivered according to the offline message policy to form a message queue, and the server obtains all the offline to be delivered. a message, the server sets a first offline message that meets the offline message policy to a first priority, and sets a second offline message that does not meet the offline message policy to a second priority, where the The issuing authority of the first priority is greater than the second priority; the server forms the message queue of the first offline message and the second offline message.
可选地,存储介质还设置为存储设置为执行以下步骤的程序代码:所述用户端包括以下至少之一:融合IP消息CPM策略客户端、CPM消息客户端;所述服务端包括以下至少之一:CPM策略服务器、CPM消息服务器。Optionally, the storage medium is further configured to store program code configured to perform the following steps: the client includes at least one of the following: a converged IP message CPM policy client, a CPM message client; the server includes at least the following One: CPM policy server, CPM message server.
根据本公开的又一个实施例,还提供了一种存储介质。该存储介质设置为存储设置为执行以下步骤的程序代码:用户端接收服务端根据离线消息策略下发的离线消息;其中,所述离线消息策略设置为指示下发所述离线消息的条件。According to still another embodiment of the present disclosure, a storage medium is also provided. The storage medium is configured to store a program code that is set to perform the following steps: the client receives an offline message delivered by the server according to the offline message policy; wherein the offline message policy is set to indicate a condition for delivering the offline message.
可选地,存储介质还设置为存储设置为执行以下步骤的程序代码:所述离线消息策略包括以下至少之一:在预设日期下发所述离线消息;在预设时间下发所述离线消息;下发 预定数量离线消息;下发预定大小的离线消息;下发指定发件人的离线消息;下发指定主题的离线消息;下发指定群组的离线消息;下发指定类型的离线消息,其中,所述类型包括:文本类型、音频类型、视频类型、文件类型。Optionally, the storage medium is further configured to store program code set to perform the following steps: the offline message policy includes at least one of: sending the offline message on a preset date; sending the offline at a preset time Message A predetermined number of offline messages; an offline message of a predetermined size is delivered; an offline message of the specified sender is delivered; an offline message of the specified topic is delivered; an offline message of the specified group is delivered; and an offline message of a specified type is delivered, wherein The types include: text type, audio type, video type, file type.
可选地,存储介质还设置为存储设置为执行以下步骤的程序代码:所述离线消息包括以下至少之一:离线消息的内容、离线消息的概要信息。Optionally, the storage medium is further configured to store program code configured to perform the step of: the offline message comprising at least one of: content of an offline message, summary information of an offline message.
可选地,存储介质还设置为存储设置为执行以下步骤的程序代码:在所述离线消息为离线消息的概要信息时,在用户端接收服务端根据离线消息策略下发的离线消息之后,所述方法还包括:所述用户端请求所述服务端下发所述离线消息的内容;或,所述用户端请求所述服务端放弃下发所述离线消息的内容。Optionally, the storage medium is further configured to store the program code that is configured to perform the following steps: after the offline message is the summary information of the offline message, after the offline message sent by the server according to the offline message policy is received by the server The method further includes: the user end requesting the server to deliver the content of the offline message; or the user end requests the server to abandon the content of the offline message.
可选地,存储介质还设置为存储设置为执行以下步骤的程序代码:所述方法还包括:所述用户端根据设置条件请求所述服务端下发离线消息。Optionally, the storage medium is further configured to store the program code that is set to perform the following steps: the method further includes: the user end requesting the server to deliver an offline message according to the setting condition.
可选地,存储介质还设置为存储设置为执行以下步骤的程序代码:所述用户端包括以下至少之一:融合IP消息CPM策略客户端、CPM消息客户端;所述服务端包括以下至少之一:CPM策略服务器、CPM消息服务器。Optionally, the storage medium is further configured to store program code configured to perform the following steps: the client includes at least one of the following: a converged IP message CPM policy client, a CPM message client; the server includes at least the following One: CPM policy server, CPM message server.
可选地,存储介质还设置为存储设置为执行以下步骤的程序代码:在用户端接收服务端根据离线消息策略下发的离线消息之前,所述方法还包括:所述用户端向所述服务端发送所述离线消息策略的配置请求或所述离线消息策略。Optionally, the storage medium is further configured to store the program code that is configured to perform the following steps: before the user end receives the offline message delivered by the server according to the offline message policy, the method further includes: the user terminal to the service Sending a configuration request of the offline message policy or the offline message policy.
通过本公开,服务端和用户端根据设置为指示下发离线消息的离线消息策略进行离线消息的下发和接收,避免了由于接收到大量的离线消息导致的终端负荷过高,因此,可以解决相关技术中在进行离线消息下发时存在终端负荷较高的问题,达到降低终端负荷,减少终端流量消耗的效果。Through the disclosure, the server and the client perform the offline message sending and receiving according to the offline message policy that is set to instruct the delivery of the offline message, thereby avoiding the terminal load being too high due to receiving a large number of offline messages, so that the solution can be solved. In the related art, when the offline message is delivered, there is a problem that the terminal load is high, and the terminal load is reduced, and the terminal traffic consumption is reduced.
附图说明DRAWINGS
此处所说明的附图用来提供对本公开的进一步理解,构成本申请的一部分,本公开的示意性实施例及其说明用于解释本公开,并不构成对本公开的不当限定。在附图中:The drawings described herein are provided to provide a further understanding of the present disclosure, which is a part of the present disclosure, and the description of the present disclosure and the description thereof are not intended to limit the disclosure. In the drawing:
图1是相关技术中的CPM架构模型的示意图;1 is a schematic diagram of a CPM architecture model in the related art;
图2是相关技术中采用pushing方式下发离线消息的流程示意图;2 is a schematic flowchart of sending an offline message by using a pushing method in the related art;
图3是相关技术中采用pulling方式下发离线消息的流程示意图;3 is a schematic flowchart of sending an offline message by using a pulling method in the related art;
图4是本公开实施例的一种离线消息的处理方法的服务器的硬件结构框图;4 is a block diagram showing a hardware structure of a server for processing an offline message according to an embodiment of the present disclosure;
图5是根据本公开实施例的离线消息的处理方法的流程图一;FIG. 5 is a flowchart 1 of a method for processing an offline message according to an embodiment of the present disclosure;
图6是根据本公开实施例的离线消息的处理方法的流程图二;6 is a flowchart 2 of a method of processing an offline message according to an embodiment of the present disclosure;
图7是根据本公开优选实施例的离线消息下发方法的流程图;FIG. 7 is a flowchart of an offline message delivery method according to a preferred embodiment of the present disclosure; FIG.
图8是根据本公开优选实施例的用户端请求服务器端操作离线消息策略的示意图;8 is a schematic diagram of a client requesting a server to operate an offline message policy according to a preferred embodiment of the present disclosure;
图9是根据本公开优选实施例的CPM客户端再次请求下发离线消息的流程示意图;9 is a schematic flowchart of a CPM client requesting to send an offline message again according to a preferred embodiment of the present disclosure;
图10是根据本公开优选实施例的CPM客户端请求下发完整的音频消息或视频消息 或文件消息的流程示意图;10 is a CPM client requesting to deliver a complete audio message or video message in accordance with a preferred embodiment of the present disclosure. Or a schematic diagram of the flow of the file message;
图11是根据本公开优选实施例的CPM PF根据离线消息策略处理离线消息的流程示意图;11 is a flow diagram of a CPM PF processing an offline message according to an offline message policy according to a preferred embodiment of the present disclosure;
图12是根据本公开实施例的离线消息的处理装置的结构框图一;FIG. 12 is a structural block diagram 1 of an apparatus for processing an offline message according to an embodiment of the present disclosure;
图13是根据本公开实施例的离线消息的处理装置的结构框图二;13 is a structural block diagram 2 of a processing apparatus for an offline message according to an embodiment of the present disclosure;
图14是根据本公开实施例的离线消息的处理装置的结构框图三;14 is a structural block diagram 3 of a processing apparatus for an offline message according to an embodiment of the present disclosure;
图15是根据本公开实施例的离线消息的处理装置的结构框图四。FIG. 15 is a structural block diagram of a processing apparatus of an offline message according to an embodiment of the present disclosure.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本公开。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The present disclosure will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It is to be understood that the terms "first", "second", and the like in the specification and claims of the present disclosure are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
实施例1Example 1
本申请实施例1所提供的方法实施例可以在服务器、用户端计算机终端或者类似的运算装置中执行。以运行在服务器上为例,图4是本公开实施例的一种离线消息的处理方法的服务器的硬件结构框图。如图4所示,服务器40可以包括一个或多个(图中仅示出一个)处理器42(处理器42可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)、设置为存储数据的存储器44、以及设置为通信功能的传输装置46。本领域普通技术人员可以理解,图4所示的结构仅为示意,其并不对上述电子装置的结构造成限定。例如,服务器40还可包括比图4中所示更多或者更少的组件,或者具有与图4所示不同的配置。The method embodiment provided by Embodiment 1 of the present application can be executed in a server, a client computer terminal or the like. For example, running on a server, FIG. 4 is a hardware structural block diagram of a server for processing an offline message according to an embodiment of the present disclosure. As shown in FIG. 4, server 40 may include one or more (only one shown) processor 42 (processor 42 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), A memory 44 that stores data and a transmission device 46 that is set to a communication function are provided. It will be understood by those skilled in the art that the structure shown in FIG. 4 is merely illustrative and does not limit the structure of the above electronic device. For example, server 40 may also include more or fewer components than shown in FIG. 4, or have a different configuration than that shown in FIG.
存储器44可设置为存储应用软件的软件程序以及模块,如本公开实施例中的离线消息的处理方法对应的程序指令/模块,处理器42通过运行存储在存储器44内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器44可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一实施例中,存储器44可包括相对于处理器42远程设置的存储器,这些远程存储器可以通过网络连接至服务器40。上述网络的实施例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 44 can be configured as a software program and a module for storing application software, such as program instructions/modules corresponding to the processing method of the offline message in the embodiment of the present disclosure, and the processor 42 executes the software program and the module stored in the memory 44, thereby The above methods are implemented by performing various functional applications and data processing. Memory 44 may include high speed random access memory and may also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In an embodiment, memory 44 may include memory remotely located relative to processor 42 that may be coupled to server 40 via a network. Embodiments of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
传输装置46设置为经由一个网络接收或者发送数据。上述的网络示例性实施例可包括服务器40的通信供应商提供的无线网络。在一个实施例中,传输装置46包括一个网络适配器(Network Interface Controller,NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实施例中,传输装置46可以为射频(Radio Frequency,RF)模块,其设置为通过无线方式与互联网进行通讯。Transmission device 46 is arranged to receive or transmit data via a network. The network exemplary embodiment described above may include a wireless network provided by a communication provider of the server 40. In one embodiment, the transmission device 46 includes a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet. In one embodiment, the transmission device 46 can be a Radio Frequency (RF) module configured to communicate with the Internet wirelessly.
在本实施例中提供了一种运行于上述服务器的离线消息的处理方法,图5是根据本公 开实施例的离线消息的处理方法的流程图一,如图5所示,该流程包括如下步骤:In this embodiment, a method for processing an offline message running on the server is provided, and FIG. 5 is according to the public. A flowchart 1 of a method for processing an offline message of an embodiment is shown in FIG. 5. The process includes the following steps:
步骤S502,服务端根据离线消息策略下发离线消息给用户端;其中,离线消息策略设置为指示下发离线消息的条件。In step S502, the server sends an offline message to the user according to the offline message policy. The offline message policy is set to indicate the condition for delivering the offline message.
通过上述步骤,服务端根据设置为指示下发离线消息的离线消息策略进行离线消息的下发,解决了相关技术中在进行离线消息下发时存在终端负荷较高的问题,降低了终端负荷,减少了终端流量消耗。Through the above steps, the server sends the offline message according to the offline message policy that is set to indicate that the offline message is sent, which solves the problem that the terminal load is high when the offline message is sent in the related art, and the terminal load is reduced. Reduced terminal traffic consumption.
可选地,在服务端根据离线消息策略下发离线消息给用户端之前,该服务器还可以通过如下方式确定该离线消息策略:所述服务端的策略服务器接收所述用户端的策略客户端配置的所述离线消息策略;或,所述服务端的策略服务器根据配置请求配置所述离线消息策略。Optionally, before the server sends the offline message to the client according to the offline message policy, the server may further determine the offline message policy by: the policy server of the server receives the policy client configuration of the client. The offline message policy; or the policy server of the server configures the offline message policy according to the configuration request.
可选地,上述离线消息策略可以包括以下至少之一:在预设日期下发所述离线消息;在预设时间下发所述离线消息;下发预定数量离线消息;下发预定大小的离线消息;下发指定发件人的离线消息;下发指定主题的离线消息;下发指定群组的离线消息;下发指定类型的离线消息,其中,该类型包括:文本类型、音频类型、视频类型、文件类型。Optionally, the offline message policy may include at least one of: sending the offline message on a preset date; sending the offline message at a preset time; delivering a predetermined number of offline messages; and delivering a predetermined size offline The message is delivered; the offline message of the specified sender is delivered; the offline message of the specified topic is delivered; the offline message of the specified group is delivered; and the offline message of the specified type is delivered, wherein the type includes: text type, audio type, video Type, file type.
可选地,服务端可以采用如下方式根据离线消息策略下发离线消息给用户端:服务端的消息服务器从策略服务器中获取离线消息策略;在所述用户端离线时,服务端根据所述离线消息策略选择和保存待下发的离线消息;和/或,在所述用户端在线时,服务端的消息服务器下发根据所述离线消息策略选择的离线消息给用户端。Optionally, the server may send an offline message to the client according to the offline message policy in the following manner: the message server of the server obtains an offline message policy from the policy server; when the client is offline, the server is configured according to the offline message. The policy selects and saves the offline message to be delivered; and/or, when the user is online, the message server of the server delivers the offline message selected according to the offline message policy to the client.
可选地,该离线消息可以但不限于为:离线消息的内容、离线消息的概要信息。概要信息可以是如消息内容中图片的缩略图、页面链接,视频的帧画面等。Optionally, the offline message may be, but is not limited to, content of an offline message, summary information of an offline message. The summary information may be, for example, a thumbnail of a picture in a message content, a page link, a frame picture of a video, and the like.
可选地,服务端根据离线消息策略选择待下发的离线消息包括第一离线消息,还可以同时包括第二离线消息的概要信息,第一离线消息是通过离线消息策略筛选需要下发给用户端的离线消息,第二离线消息可以是在通过离线消息策略筛选后的不需要下发给用户端的离线消息。Optionally, the server selects the offline message to be delivered according to the offline message policy, and includes the first offline message, and may also include the summary information of the second offline message, where the first offline message is sent to the user through the offline message policy screening. The offline message of the terminal, the second offline message may be an offline message that is not sent to the client after being filtered by the offline message policy.
可选地,用户端可以是策略客户端、消息客户端,示例如:融合IP消息CPM策略客户端、CPM消息客户端;服务端可以是策略服务器、消息服务器,示例如:CPM策略服务器、CPM消息服务器。Optionally, the client may be a policy client, a message client, and examples are: a converged IP message CPM policy client, a CPM message client; the server may be a policy server, a message server, and examples such as: CPM policy server, CPM Message server.
在本实施例中还提供了一种运行于上述服务器的离线消息的处理方法,图6是根据本公开实施例的离线消息的处理方法的流程图二,如图6所示,该流程包括如下步骤:In this embodiment, a method for processing an offline message running on the server is also provided. FIG. 6 is a second flowchart of a method for processing an offline message according to an embodiment of the present disclosure. As shown in FIG. 6, the process includes the following steps. step:
步骤S602,用户端接收服务端根据离线消息策略下发的离线消息;其中,离线消息策略设置为指示下发离线消息的条件。Step S602: The UE receives an offline message delivered by the server according to the offline message policy, where the offline message policy is set to indicate a condition for delivering the offline message.
通过上述步骤,用户端根据设置为指示下发离线消息的离线消息策略进行离线消息的接收,解决了相关技术中在进行离线消息下发时存在终端负荷较高的问题,降低了终端负荷,减少了终端流量消耗。Through the above steps, the user end receives the offline message according to the offline message policy that is set to indicate that the offline message is sent, and solves the problem that the terminal load is high when the offline message is sent in the related art, which reduces the terminal load and reduces Terminal traffic consumption.
可选地,上述离线消息策略可以包括以下至少之一:在预设日期下发所述离线消息; 在预设时间下发所述离线消息;下发预定数量离线消息;下发预定大小的离线消息;下发指定发件人的离线消息;下发指定主题的离线消息;下发指定群组的离线消息;下发指定类型的离线消息,其中,该类型包括:文本类型、音频类型、视频类型、文件类型。Optionally, the offline message policy may include at least one of: sending the offline message on a preset date; Sending the offline message at a preset time; delivering a predetermined number of offline messages; delivering an offline message of a predetermined size; delivering an offline message of the specified sender; delivering an offline message of the specified topic; Offline message; delivers the specified type of offline message, where the type includes: text type, audio type, video type, file type.
可选地,该离线消息可以包括:离线消息的内容、离线消息的概要信息。Optionally, the offline message may include: content of the offline message, summary information of the offline message.
可选地,在离线消息为离线消息的概要信息时,在用户端接收服务端根据离线消息策略下发的离线消息之后,该方法可以还包括:用户端的消息客户端设置条件请求服务端的消息服务器下发离线消息的内容;或,用户端的消息客户端请求服务端的消息服务器放弃下发离线消息的内容。Optionally, after the offline message is the summary information of the offline message, after the user end receives the offline message delivered by the server according to the offline message policy, the method may further include: the message client of the user end sets the message server of the condition request server The content of the offline message is delivered; or the message client of the client requests the server of the server to abandon the content of the offline message.
可选地,该设置条件是终端本地的筛选条件,不同步到服务端,所述条件至少包括以下之一:日期、时间、大小、数量、消息类型(文本消息、视频消息、音频消息、文件消息)等。Optionally, the setting condition is a local filtering condition of the terminal, which is not synchronized to the server, and the condition includes at least one of the following: date, time, size, quantity, message type (text message, video message, audio message, file) Message) and so on.
可选地,用户端可以是策略客户端、消息客户端,示例如:融合IP消息CPM策略客户端、CPM消息客户端;服务端可以是策略服务器、消息服务器,示例如:CPM策略服务器、CPM消息服务器。Optionally, the client may be a policy client, a message client, and examples are: a converged IP message CPM policy client, a CPM message client; the server may be a policy server, a message server, and examples such as: CPM policy server, CPM Message server.
可选地,在用户端接收服务端根据离线消息策略下发的离线消息之前,用户端的策略客户端可以向所述服务端的策略服务器发送离线消息策略的配置请求或离线消息策略。可选的,所述配置请求用于指示在所述服务端对所述离线消息策略进行以下操作至少之一:创建、删除、更改、检索、恢复、同步。Optionally, before the client receives the offline message delivered by the server according to the offline message policy, the policy client of the client may send a configuration request or an offline message policy of the offline message policy to the policy server of the server. Optionally, the configuration request is used to indicate that at least one of the following operations are performed on the offline message policy by the server: create, delete, change, retrieve, restore, and synchronize.
基于上述实施例及优选实施方式,为说明方案的整个流程交互,在本优选实施例中,提供了一种离线消息的处理方法,该方法主要涉及到用户端和服务器端的交互,下面首先对各实体进行说明。Based on the foregoing embodiments and preferred embodiments, in order to explain the entire process interaction of the solution, in the preferred embodiment, a method for processing an offline message is provided, which mainly involves interaction between the client and the server. The entity is described.
用户端:包含有至少以下之一:消息客户端(如,CPM客户端)、策略客户端(如,用户端的XDM Enabler(XML文档管理)功能实体,以上实体可以驻留在同一个终端设备或不同终端设备。Client: Contains at least one of the following: a message client (eg, a CPM client), a policy client (eg, a client-side XDM Enabler (XML Document Management) functional entity, which can reside on the same terminal device or Different terminal devices.
服务器端:包含有以下至少之一:消息服务器(如,CPM PF)、策略服务器(如,服务器端的XDM Enabler)等功能实体,以上实体可以驻留在相同或不同的服务器端设备。Server side: Contains at least one of the following: a message server (eg, CPM PF), a policy server (eg, server-side XDM Enabler) and other functional entities, the above entities can reside on the same or different server-side devices.
用户端,设置为在本地设置离线消息策略,该离线消息策略,主要是指设置为用户选择离线消息下发的条件,至少包含以下条件的至少之一:The user terminal is configured to set an offline message policy locally, and the offline message policy is mainly configured to set a condition for the user to select an offline message to be delivered, and at least one of the following conditions is included:
1)日期:根据日期设置选择所需接收的离线消息,例如一段日期(x年-x月-x日至y年-y月-y日,x年-x月-x日之前,x年-x月-x日之后)、具体日期(x年-x月-x日)等;1) Date: Select the offline message to be received according to the date setting, for example, a date (x year - x month - x day to y year - y month - y day, x year - x month - x day, x year - x month - after x day), specific date (x year - x month - x day), etc.;
2)时间:根据时间设置选择所需接收的离线消息,例如时间段(x时-x分-x秒至y时-y分-y秒,x时-x分-x秒之前,x时-x分-x秒之后)、具体时间(x时-x分-x秒);2) Time: Select the offline message to be received according to the time setting, such as time period (x-x--x seconds to y-y-minute-y seconds, x-x-x seconds before x-time- x minutes - after x seconds), specific time (x - x minutes - x seconds);
3)数量:该条件表示要接收的离线消息数量;3) Quantity: This condition indicates the number of offline messages to receive;
4)大小:该条件表示要接收的离线消息的大小的限值;4) Size: This condition indicates the limit of the size of the offline message to be received;
5)发件人:根据该条件用于设置的发件人或发件人列表来接收离线消息;或 5) Sender: Receive offline messages based on the sender or sender list used for this condition; or
6)主题:根据该条件设置的消息主题或主题列表接收离线消息;6) Subject: Receive an offline message according to the message subject or topic list set by the condition;
7)名称:用于识别1-1会话或群聊会话的名字或标识。根据该条件设置名称或名称列表接收离线消息;7) Name: The name or identifier used to identify the 1-1 session or group chat session. Receiving an offline message according to the condition setting name or name list;
8)文本消息:根据该条件设置是否接收文本消息类型的离线消息;8) text message: according to the condition, whether to receive an offline message of a text message type;
9)音频消息:根据该条件选择是否接收音频消息类型的离线消息;或选择不接收音频类型离线消息,但是要求接收音频类型离线消息的概要信息如音频时长、大小、地址等;9) audio message: according to the condition, whether to receive an offline message of an audio message type; or selecting not to receive an audio type offline message, but requiring receiving summary information of an audio type offline message such as audio duration, size, address, etc.;
10)视频消息:根据该条件选择是否接收视频消息类型的离线消息;或选择不接收视频类型离线消息,但是要求接收视频类型离线消息的概要信息如视频时长、大小、地址等;10) video message: according to the condition, whether to receive an offline message of a video message type; or selecting not to receive a video type offline message, but requesting to receive summary information of a video type offline message such as video duration, size, address, etc.;
11)文件消息:根据该条件选择是否接收视频文件类型的离线消息;或选择不接收视频类型离线消息,但是要求接收视频类型离线消息的概要信息如视频时长、大小、地址等;11) file message: according to the condition, whether to receive the offline message of the video file type; or choose not to receive the video type offline message, but request to receive the summary information of the video type offline message such as the video duration, size, address, etc.;
12)全部:该条件表示要接收全部的离线消息。12) All: This condition indicates that all offline messages are to be received.
上述罗列等条件可以单独使用也可以任意组合使用。该离线消息策略至少包含以上罗列条件的之一,也可以是以上罗列等条件的任意组合。Conditions such as the above list may be used singly or in any combination. The offline message policy includes at least one of the above listed conditions, and may be any combination of the above conditions.
根据离线消息策略或用户端设置条件选择的用户端需要的离线消息,以下称为离线消息x;根据离线消息策略或用户端设置条件确定的用户不需要的离线消息,以下称为离线消息y。The offline message required by the user selected according to the offline message policy or the client setting condition is hereinafter referred to as an offline message x; an offline message that is not required by the user determined according to the offline message policy or the client setting condition, hereinafter referred to as an offline message y.
用户端在本地设置离线消息策略,示例性可以表现为通过策略客户端设置或保存离线消息策略。The client sets the offline message policy locally, and the example can be expressed as setting or saving the offline message policy through the policy client.
策略客户端在本地设置离线消息策略,可以是用户端在线时也可以是用户离线时进行设置或修改。The policy client sets the offline message policy locally, which can be set or modified when the user is online or when the user is offline.
用户端发送消息给服务器端,该消息包含用户端对离线消息策略的操作。用户端发送消息给服务器端,示例性表现为策略客户端发消息给策略服务器,策略客户端发消息给策略服务器,包括策略客户端请求策略服务器进行离线消息策略创建、更新、删除、检索、恢复等操作。The client sends a message to the server, and the message includes the operation of the offline message policy by the client. The client sends a message to the server. The example shows that the policy client sends a message to the policy server. The policy client sends a message to the policy server, including the policy client requesting the policy server to create, update, delete, retrieve, and restore the offline message policy. Wait for the operation.
服务器端收到用户端发送的对离线消息策略操作的消息;在接收到该消息后,服务器端可以执行对离线消息策略操作。The server receives the message sent by the client to the offline message policy operation; after receiving the message, the server may perform the offline message policy operation.
服务器端收到用户端发送的对离线消息策略操作的消息,示例性可以表现为策略服务器收到来自策略客户端对离线消除策略操作的请求消息,服务器端执行对离线消息策略操作,示例性可以表现为策略服务器进行所述离线消息策略创建、更新、删除、检索、恢复等操作。The server receives the message of the offline message policy operation sent by the user terminal. The example may be that the policy server receives the request message from the policy client for the offline cancellation policy operation, and the server side performs the offline message policy operation. The performance of the offline message policy creation, update, deletion, retrieval, recovery, and the like is performed by the policy server.
当用户端离线且服务器端收到发送给用户端消息(离线消息)时,服务器端可以保留所述消息(离线消息)。When the client is offline and the server receives a message (offline message) sent to the client, the server can retain the message (offline message).
归属服务器端保留离线消息可以包括:保留离线消息于消息服务器的离线消息队列(如,Deferred CPM Message queue);或者,消息服务器到策略服务器获取离线消息策略,并根据离线消息策略选择保存用户需要的离线消息于消息服务器的离线消息队列 (Deferred CPM Message queue)。The leaving the offline message on the home server may include: keeping the offline message in the offline message queue of the message server (eg, Deferred CPM Message queue); or the message server to the policy server acquiring the offline message policy, and selecting and saving the user according to the offline message policy Offline message to the message server's offline message queue (Deferred CPM Message queue).
当用户端重新上线后,服务器端可以根据离线消息策略下发离线消息给用户端。After the user is back online, the server can send an offline message to the client according to the offline message policy.
当用户端重新上线后,如果策略客户端设置或修改设置条件,策略客户端可以发送携带设置或修改了的设置条件的消息发送给策略服务器;策略服务器保存或修改离线消息策略。After the client is back online, if the policy client sets or modifies the setting conditions, the policy client may send a message carrying the set or modified setting condition to the policy server; the policy server saves or modifies the offline message policy.
服务器端根据离线消息策略下发离线消息给用户端,可以包括以下至少之一:消息服务器从策略服务器获取离线消息策略,根据离线消息策略选择用户端需要的离线消息下发给消息客户端;消息服务器还下发消息给消息客户端,消息包含用户端不需要的离线消息的信息。The server sends an offline message to the client according to the offline message policy, and may include at least one of the following: the message server obtains an offline message policy from the policy server, and selects an offline message required by the user to send the message to the message client according to the offline message policy; The server also sends a message to the message client, where the message contains information about the offline message that the client does not need.
消息客户端收到消息服务器下发的离线消息x或离线消息y的信息,可以执行以下操作:消息客户端收到消息服务器下发的离线消息x,如果离线消息x中包含音频消息的概要信息或视频信息的概要信息或文件信息的概要信息,消息客户端向消息服务器请求下发完整的音频消息或视频消息或文件消息;消息客户端收到消息服务器下发的离线消息y的信息,消息客户端请求消息服务器下发离线消息y或放弃下发离线消息y。The message client receives the information of the offline message x or the offline message y delivered by the message server, and can perform the following operations: the message client receives the offline message x delivered by the message server, and if the offline message x contains the summary information of the audio message Or the summary information of the video information or the summary information of the file information, the message client requests the message server to deliver the complete audio message or the video message or the file message; the message client receives the information of the offline message y sent by the message server, the message The client requests the message server to deliver the offline message y or abandon the offline message y.
客户端请求消息服务器下发离线消息y,可以包括消息客户端设置条件请求消息服务器下发需要的离线消息y。上述条件至少包括以下之一:日期、时间、大小、数量、消息类型(文本消息、视频消息、音频消息、文件消息)等。The client requests the message server to deliver the offline message y, which may include the offline message y required by the message client to set the condition request message server. The above conditions include at least one of the following: date, time, size, quantity, message type (text message, video message, audio message, file message) and the like.
上述所有操作可以重复进行,直至消息服务器的所有离线消息下发完;在中间过程中,消息客户端也可以不再发送请求下发离线消息。All the above operations can be repeated until all the offline messages of the message server are delivered. In the middle process, the message client can no longer send a request to deliver offline messages.
下面结合示例性的实施例对该离线消息的处理方法进行说明。The method of processing the offline message will be described below in conjunction with an exemplary embodiment.
实施例1:Example 1:
用户端设置离线策略,服务器端根据离线策略下发离线消息。The client sets an offline policy, and the server sends an offline message according to the offline policy.
图7是根据本公开优选实施例的离线消息下发方法的流程图,如图7所示,该方法包括如下步骤:FIG. 7 is a flowchart of an offline message delivery method according to a preferred embodiment of the present disclosure. As shown in FIG. 7, the method includes the following steps:
1,XDM(XML文档管理)客户端A配置或保存设置条件。设置条件与前述离线消息策略类似,包含前述条件的至少之一;1, XDM (XML Document Management) Client A configuration or save settings conditions. Setting conditions are similar to the foregoing offline message policy, including at least one of the foregoing conditions;
2,XDM策略客户端A发消息请求XDM(XML文档管理)服务器A创建离线消息策略;2. The XDM policy client A sends a message requesting XDM (XML Document Management) server A to create an offline message policy;
3,XDM(XML文档管理)服务器A在服务器端创建或保存离线消息策略;3, XDM (XML Document Management) Server A creates or saves an offline message policy on the server side;
4,当CPM客户端不可达,例如离线、关闭会话窗口等;4, when the CPM client is unreachable, such as offline, close the session window, etc.;
5,CMP PF A收到离线消息并保存;5, CMP PF A receives the offline message and saves it;
6,CPM客户端A可达,例如上线、打开会话窗口等;6, CPM client A is reachable, such as going online, opening a session window, etc.
7,CPM PF A从XDM(XML文档管理)服务器A获取离线消息策略,例如,根据XCAP(The Extensible Markup Language(XML)Configuration Access protocol,IETF RFC4825)和XDCP(XDM Command Protocol)协议从XDM(XML文档管理)服务器A获 取离线消息策略;7. CPM PF A obtains an offline message policy from XDM (XML Document Management) server A, for example, XDM (XML) according to XCAP (The Extensible Markup Language (XML) Configuration Access protocol, IETF RFC4825) and XDCP (XDM Command Protocol) protocols. Document Management) Server A Take offline message strategy;
8,CPM PF A根据离线消息策略选择离线消息下发给CPM客户端。8. The CPM PF A selects an offline message and sends it to the CPM client according to the offline message policy.
实施例2:Example 2:
图8是根据本公开优选实施例的用户端请求服务器端操作离线消息策略的示意图,如图8所示,根据OMA定义的XML文档管理(XML Document Management,简称为XDM)标准实现离线消息策略的创建、修改、检索、删除、恢复等操作。8 is a schematic diagram of a client requesting a server-side operation offline message policy according to a preferred embodiment of the present disclosure. As shown in FIG. 8, an offline message policy is implemented according to an XML Document Management (XDM) standard defined by OMA. Create, modify, retrieve, delete, restore, and more.
XDM(XML文档管理)客户端A按照XCAP(The Extensible Markup Language(XML)Configuration Access protocol,IETF RFC 4825)和XDCP(XDM Command Protocol)协议在XDM(XML文档管理)服务器A创建、修改、检索、删除、恢复离线消息策略。XDM (XML Document Management) client A creates, modifies, retrieves, and retrieves XDM (XML Document Management) server A according to XCAP (The Extensible Markup Language (XML) Configuration Access protocol, IETF RFC 4825) and XDCP (XDM Command Protocol) protocols. Delete and restore offline message policies.
实施例3:Example 3:
在本实施例中,CPM PF根据CPM客户端设置的离线消息策略下发用户端选择的离线消息(离线消息x)给CPM客户端。同时,对于用户端没有选择的离线消息策略,CPM PF下发这些没有选择的离线消息(离线消息y)的信息给CPM客户端;如果CPM客户端收到CPM PF发送的离线消息y的信息,CPM客户端可以设置条件请求CPM PF下发完整的离线消息y。In this embodiment, the CPM PF delivers the offline message (offline message x) selected by the UE to the CPM client according to the offline message policy set by the CPM client. At the same time, for the offline message policy that is not selected by the user, the CPM PF delivers the information of the offline message (offline message y) that is not selected to the CPM client; if the CPM client receives the information of the offline message y sent by the CPM PF, The CPM client can set a condition to request the CPM PF to deliver a complete offline message y.
图9是根据本公开优选实施例的CPM客户端再次请求下发离线消息的流程示意图。如图9所示,该流程包括如下步骤:FIG. 9 is a schematic flowchart of a CPM client requesting to send an offline message again according to a preferred embodiment of the present disclosure. As shown in FIG. 9, the process includes the following steps:
1,CPM客户端处于在线状态;1, the CPM client is online;
2,CPM PF根据XDM(XML文档管理)服务器的离线消息策略下发离线消息x给CPM客户端,其中还有离线消息y没有下发;2. The CPM PF delivers the offline message x to the CPM client according to the offline message policy of the XDM (XML Document Management) server, and the offline message y is not delivered;
3-4,CPM PF发送消息(例如,SIP邀请、SIP提醒或SIP消息)给CPM客户端,所述消息包含离线消息y的信息;3-4. The CPM PF sends a message (for example, a SIP invite, a SIP reminder, or a SIP message) to the CPM client, where the message includes information of the offline message y;
5-6,CPM客户端发送OK消息给CPM PF;5-6, the CPM client sends an OK message to the CPM PF;
7,CPM客户端设置条件用于选择要下发的离线消息,上述条件与前述离线消息策略中的罗列条件的至少之一;The CPM client setting condition is used to select an offline message to be delivered, and the foregoing condition is at least one of the listed conditions in the foregoing offline message policy;
上述步骤5,6,7没有先后顺序的区别。The above steps 5, 6, and 7 have no difference in order.
8-9,CPM客户端发送SIP邀请消息通过SIP/IP核发送给CPM PF,SIP邀请包含步骤7所设置条件;8-9, the CPM client sends a SIP invite message to the CPM PF through the SIP/IP core, and the SIP invite includes the conditions set in step 7;
10-11,CPM PF发送OK消息通过SIP/IP核发送给CPM客户端;10-11, the CPM PF sends an OK message to the CPM client through the SIP/IP core;
12,CPM PF根据CPM客户端设置的条件下发所选择的离线消息给CPM客户端。12. The CPM PF delivers the selected offline message to the CPM client according to the conditions set by the CPM client.
如果此时CPM PF还有离线消息没有下发,可以重复步骤3-12直至CPM客户端不再请求下发离线消息或所有离线消息全部下发完。If the CPM PF still has no offline messages, you can repeat steps 3-12 until the CPM client no longer requests to deliver offline messages or all offline messages are delivered.
实施例4:Example 4:
图10是根据本公开优选实施例的CPM客户端请求下发完整的音频消息或视频消息或文件消息的流程示意图。如图10所示,该流程包括如下步骤: 10 is a flow diagram of a CPM client requesting delivery of a complete audio message or video message or file message in accordance with a preferred embodiment of the present disclosure. As shown in FIG. 10, the process includes the following steps:
1,CPM客户端收到离线消息,离线消息包含有音频消息或视频消息或CPM文件消息的概要信息;所示概要信息包括以下至少之一:时长、名称、大小、地址等;1. The CPM client receives an offline message, and the offline message includes summary information of the audio message or the video message or the CPM file message; the summary information includes at least one of the following: duration, name, size, address, and the like;
2-3,CPM客户端发送SIP邀请消息通过SIP/IP核发送给CPM PF。其中,SIP邀请消息包含CPM客户端选择的音频消息或视频消息或CPM文件消息的地址等信息;2-3. The CPM client sends a SIP Invite message to the CPM PF through the SIP/IP core. The SIP invite message includes information such as an audio message selected by the CPM client or an address of the video message or the CPM file message;
4-5,CPM PF发送OK消息通过SIP/IP核发送给CPM客户端;4-5, the CPM PF sends an OK message to the CPM client through the SIP/IP core;
6,CPM PF根据CPM客户端的选择下发完整的音频消息或视频消息或CPM文件给CPM客户端。6. The CPM PF delivers a complete audio message or video message or CPM file to the CPM client according to the selection of the CPM client.
实施例5,Embodiment 5,
图11是根据本公开优选实施例的CPM PF根据离线消息策略处理离线消息的流程示意图。如图11所示,该流程包括如下步骤:11 is a flow diagram of a CPM PF processing an offline message according to an offline message policy in accordance with a preferred embodiment of the present disclosure. As shown in FIG. 11, the process includes the following steps:
1,XDM(XML文档管理)服务器A已经配置了离线消息策略。当CPM客户端A不可达时,CPM PF A收到发送给CPM客户端A的离线消息;1, XDM (XML Document Management) Server A has configured an offline message policy. When CPM client A is unreachable, CPM PF A receives an offline message sent to CPM client A;
2,CPM PF A从XDM(XML文档管理)服务器A获取离线消息策略(此为可选步骤),例如,根据XCAP(The Extensible Markup Language(XML)Configuration Access protocol,IETF RFC 4825)和XDCP(XDM Command Protocol)协议从XDM(XML文档管理)服务器A获取离线消息策略;2. CPM PF A obtains an offline message policy from XDM (XML Document Management) Server A (this is an optional step), for example, according to XCAP (The Extensible Markup Language (XML) Configuration Access protocol, IETF RFC 4825) and XDCP (XDM) The Command Protocol protocol obtains an offline message policy from the XDM (XML Document Management) server A;
3,CPM PF A按照以下方式处理离线消息:保存所述离线消息于CPM PF A离线消息队列(Deferred CPM Message queue);或者根据步骤2获取的离线消息策略,保存用户选择下发的离线消息于CPM PFA离线消息队列(Deferred CPM Message queue)。3, CPM PF A processes the offline message in the following manner: saves the offline message in the CPM PF A offline message queue (Deferred CPM Message queue); or saves the offline message selected by the user according to the offline message policy acquired in step 2 CPM PFA Deferred CPM Message queue.
本优选实施例中的用户端可以为电子设备,电子设备可以是视频通信应用中相关码流生成设备和接收播放设备,例如,手机、计算机、服务器、机顶盒、便携式移动终端、数字摄像机,电视广播系统设备等。The user terminal in the preferred embodiment may be an electronic device, and the electronic device may be a related stream generating device and a receiving playing device in a video communication application, for example, a mobile phone, a computer, a server, a set top box, a portable mobile terminal, a digital camera, and a television broadcast. System equipment, etc.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本公开各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on such understanding, the technical solution of the present disclosure, which is essential or contributes to the related art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM). The instructions include a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present disclosure.
实施例2Example 2
在本实施例中提供了一种离线消息的处理装置,该装置设置为实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。An apparatus for processing an offline message is provided in this embodiment. The apparatus is configured to implement the foregoing embodiments and preferred embodiments, and details are not described herein. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图12是根据本公开实施例的离线消息的处理装置的结构框图一,如图12所示,该装置包括: FIG. 12 is a structural block diagram 1 of an apparatus for processing an offline message according to an embodiment of the present disclosure. As shown in FIG. 12, the apparatus includes:
下发模块122,设置为根据离线消息策略下发离线消息给用户端;其中,离线消息策略设置为指示下发离线消息的条件。The sending module 122 is configured to send an offline message to the user according to the offline message policy, where the offline message policy is set to indicate a condition for delivering the offline message.
图13是根据本公开实施例的离线消息的处理装置的结构框图二,如图13所示,该装置除包括图12所示的所有模块外,还包括:FIG. 13 is a structural block diagram 2 of a processing apparatus for an offline message according to an embodiment of the present disclosure. As shown in FIG. 13 , the device includes, in addition to all the modules shown in FIG. 12 , the following:
接收模块132,连接至上述下发模块122,设置为在下发模块根据离线消息策略下发离线消息给用户端之前,接收用户端配置的离线消息策略;或,The receiving module 132 is connected to the sending module 122, and is configured to receive an offline message policy configured by the user end before the sending module sends an offline message to the user according to the offline message policy; or
配置模块134,连接至上述下发模块122,设置为在下发模块根据离线消息策略下发离线消息给用户端之前,根据配置请求配置离线消息策略。The configuration module 134 is connected to the sending module 122, and is configured to configure an offline message policy according to the configuration request before the sending module sends an offline message to the user according to the offline message policy.
可选地,离线消息策略可以包括以下至少之一:在预设日期下发离线消息;在预设时间下发离线消息;下发预定数量离线消息;下发预定大小的离线消息;下发指定发件人的离线消息;下发指定主题的离线消息;下发指定群组的离线消息;下发指定类型的离线消息,其中,类型包括:文本类型、音频类型、视频类型、文件类型。Optionally, the offline message policy may include at least one of: sending an offline message on a preset date; sending an offline message at a preset time; delivering a predetermined number of offline messages; delivering an offline message of a predetermined size; The offline message of the sender; the offline message of the specified topic is delivered; the offline message of the specified group is delivered; and the offline message of the specified type is delivered, wherein the type includes: text type, audio type, video type, file type.
在本实施例中还提供了一种离线消息的处理装置,图14是根据本公开实施例的离线消息的处理装置的结构框图三,如图14所示,该装置包括:In the embodiment, a processing device for offline messages is further provided. FIG. 14 is a structural block diagram 3 of a processing device for offline messages according to an embodiment of the present disclosure. As shown in FIG. 14, the device includes:
接收模块142,设置为接收服务端根据离线消息策略下发的离线消息;其中,离线消息策略设置为指示下发离线消息的条件。The receiving module 142 is configured to receive an offline message delivered by the server according to the offline message policy, where the offline message policy is set to indicate a condition for delivering the offline message.
可选地,该离线消息策略可以包括以下至少之一:在预设日期下发离线消息;在预设时间下发离线消息;下发预定数量离线消息;下发预定大小的离线消息;下发指定发件人的离线消息;下发指定主题的离线消息;下发指定群组的离线消息;下发指定类型的离线消息,其中,类型包括:文本类型、音频类型、视频类型、文件类型。Optionally, the offline message policy may include at least one of: sending an offline message on a preset date; sending an offline message at a preset time; delivering a predetermined number of offline messages; and delivering an offline message of a predetermined size; Specify the sender's offline message; deliver the offline message of the specified topic; deliver the offline message of the specified group; deliver the specified type of offline message, where the types include: text type, audio type, video type, file type.
图15是根据本公开实施例的离线消息的处理装置的结构框图四,如图15所示,该装置除包括图14所示的所有模块外,还包括:FIG. 15 is a structural block diagram of a processing apparatus of an offline message according to an embodiment of the present disclosure. As shown in FIG. 15 , the device includes, in addition to all the modules shown in FIG. 14 , the following:
发送模块152,连接至上述接收模块142,设置为在接收模块接收服务端根据离线消息策略下发的离线消息之前,向服务端发送离线消息策略的配置请求或离线消息策略。The sending module 152 is connected to the receiving module 142, and is configured to send a configuration request or an offline message policy of the offline message policy to the server before the receiving module receives the offline message delivered by the server according to the offline message policy.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are in any combination. The forms are located in different processors.
实施例3Example 3
本公开的实施例中提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储设置为执行以下步骤的程序代码:A storage medium is provided in an embodiment of the present disclosure. Optionally, in the embodiment, the storage medium may be configured to store program code set to perform the following steps:
服务端根据离线消息策略下发离线消息给用户端,其中,离线消息策略设置为指示下发离线消息的条件。The server sends an offline message to the client according to the offline message policy, where the offline message policy is set to indicate the condition for delivering the offline message.
可选地,存储介质还被设置为存储设置为执行以下步骤的程序代码:Optionally, the storage medium is further arranged to store program code arranged to perform the following steps:
在服务端根据离线消息策略下发离线消息给用户端之前,方法还包括:Before the server sends an offline message to the client according to the offline message policy, the method further includes:
S1,服务端接收用户端配置的离线消息策略;或, S1, the server receives an offline message policy configured by the client; or
S2,服务端根据配置请求配置离线消息策略。S2. The server configures an offline message policy according to the configuration request.
可选地,存储介质还被设置为存储设置为执行以下步骤的程序代码:离线消息策略包括以下至少之一:在预设日期下发离线消息;在预设时间下发离线消息;下发预定数量离线消息;下发预定大小的离线消息;下发指定发件人的离线消息;下发指定主题的离线消息;下发指定群组的离线消息;下发指定类型的离线消息,其中,类型包括:文本类型、音频类型、视频类型、文件类型。Optionally, the storage medium is further configured to store program code set to perform the following steps: the offline message policy includes at least one of: sending an offline message on a preset date; sending an offline message at a preset time; delivering the reservation The offline message of the specified quantity; the offline message of the specified size is delivered; the offline message of the specified sender is delivered; the offline message of the specified topic is delivered; the offline message of the specified group is delivered; and the offline message of the specified type is delivered, wherein the type Including: text type, audio type, video type, file type.
可选地,存储介质还被设置为存储设置为执行以下步骤的程序代码:Optionally, the storage medium is further arranged to store program code arranged to perform the following steps:
服务端根据离线消息策略下发离线消息给用户端包括:The server sends an offline message to the client according to the offline message policy, including:
S1,服务端从策略服务器中获取离线消息策略;S1, the server obtains an offline message policy from the policy server;
S2,服务端根据离线消息策略选择待下发的离线消息形成消息队列;S2, the server selects an offline message to be delivered according to an offline message policy to form a message queue;
S3,服务端将消息队列的离线消息下发给用户端。S3, the server sends the offline message of the message queue to the client.
可选地,存储介质还被设置为存储设置为执行以下步骤的程序代码:离线消息包括:离线消息的内容、离线消息的概要信息。Optionally, the storage medium is further arranged to store program code arranged to perform the following steps: the offline message comprises: content of the offline message, summary information of the offline message.
可选地,存储介质还被设置为存储设置为执行以下步骤的程序代码:Optionally, the storage medium is further arranged to store program code arranged to perform the following steps:
服务端根据离线消息策略选择待下发的离线消息形成消息队列包括:The server selects the offline message to be delivered according to the offline message policy to form a message queue, including:
S1,服务端获取所有待下发的离线消息;S1, the server obtains all offline messages to be delivered;
S2,服务端将符合离线消息策略的第一离线消息设置成第一优先级,以及将不符合离线消息策略的第二离线消息设置成第二优先级,其中,第一优先级的下发权限大于第二优先级;S2, the server sets the first offline message that meets the offline message policy to the first priority, and sets the second offline message that does not meet the offline message policy to the second priority, where the first priority is issued. Greater than the second priority;
S3,服务端将第一离线消息和第二离线消息形成消息队列。S3. The server forms a message queue of the first offline message and the second offline message.
可选地,存储介质还被设置为存储设置为执行以下步骤的程序代码:用户端包括以下至少之一:融合IP消息CPM策略客户端、CPM消息客户端;服务端包括以下至少之一:CPM策略服务器、CPM消息服务器。Optionally, the storage medium is further configured to store program code configured to perform the following steps: the client includes at least one of the following: a converged IP message CPM policy client, a CPM message client; the server includes at least one of the following: CPM Policy server, CPM message server.
本公开的实施例中还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储设置为执行以下步骤的程序代码:A storage medium is also provided in an embodiment of the present disclosure. Optionally, in the embodiment, the storage medium may be configured to store program code set to perform the following steps:
S1,用户端接收服务端根据离线消息策略下发的离线消息;S1. The UE receives an offline message delivered by the server according to the offline message policy.
其中,离线消息策略设置为指示下发离线消息的条件。The offline message policy is set to indicate the condition for delivering the offline message.
可选地,存储介质还被设置为存储设置为执行以下步骤的程序代码:离线消息策略包括以下至少之一:在预设日期下发离线消息;在预设时间下发离线消息;下发预定数量离线消息;下发预定大小的离线消息;下发指定发件人的离线消息;下发指定主题的离线消息;下发指定群组的离线消息;下发指定类型的离线消息,其中,类型包括:文本类型、音频类型、视频类型、文件类型。Optionally, the storage medium is further configured to store program code set to perform the following steps: the offline message policy includes at least one of: sending an offline message on a preset date; sending an offline message at a preset time; delivering the reservation The offline message of the specified quantity; the offline message of the specified size is delivered; the offline message of the specified sender is delivered; the offline message of the specified topic is delivered; the offline message of the specified group is delivered; and the offline message of the specified type is delivered, wherein the type Including: text type, audio type, video type, file type.
可选地,存储介质还被设置为存储设置为执行以下步骤的程序代码:离线消息包括以下至少之一:离线消息的内容、离线消息的概要信息。Optionally, the storage medium is further arranged to store program code arranged to perform the step of: the offline message comprising at least one of: content of the offline message, summary information of the offline message.
可选地,存储介质还被设置为存储设置为执行以下步骤的程序代码: Optionally, the storage medium is further arranged to store program code arranged to perform the following steps:
在离线消息为离线消息的概要信息时,在用户端接收服务端根据离线消息策略下发的离线消息之后,还包括:When the offline message is the summary information of the offline message, after the user receives the offline message delivered by the server according to the offline message policy, the method further includes:
S1,用户端请求服务端下发离线消息的内容;或,S1, the client requests the server to deliver the content of the offline message; or,
S2,用户端请求服务端放弃下发离线消息的内容。S2, the client requests the server to abandon the content of the offline message.
可选地,存储介质还被设置为存储设置为执行以下步骤的程序代码:用户端根据设置条件请求服务端下发离线消息。Optionally, the storage medium is further configured to store the program code that is set to perform the following steps: the client requests the server to deliver the offline message according to the setting condition.
可选地,存储介质还被设置为存储设置为执行以下步骤的程序代码:用户端包括以下至少之一:融合IP消息CPM策略客户端、CPM消息客户端;服务端包括以下至少之一:CPM策略服务器、CPM消息服务器。Optionally, the storage medium is further configured to store program code configured to perform the following steps: the client includes at least one of the following: a converged IP message CPM policy client, a CPM message client; the server includes at least one of the following: CPM Policy server, CPM message server.
可选地,存储介质还被设置为存储设置为执行以下步骤的程序代码:Optionally, the storage medium is further arranged to store program code arranged to perform the following steps:
在用户端接收服务端根据离线消息策略下发的离线消息之前,还包括:Before the client receives the offline message delivered by the server according to the offline message policy, the method further includes:
S1,用户端向服务端发送离线消息策略的配置请求或离线消息策略。S1: The UE sends a configuration request or an offline message policy of the offline message policy to the server.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory. A variety of media that can store program code, such as a disc or a disc.
根据本公开的一个实施例,提供了一种离线消息的处理方法,包括:服务端根据离线消息策略下发离线消息给用户端;其中,离线消息策略设置为指示下发离线消息的条件。According to an embodiment of the present disclosure, a method for processing an offline message is provided, including: the server sends an offline message to the client according to the offline message policy; wherein the offline message policy is set to indicate a condition for delivering the offline message.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:在服务端根据离线消息策略下发离线消息给用户端之前,方法还包括:服务端接收用户端配置的离线消息策略;或,服务端根据配置请求配置离线消息策略。Optionally, in this embodiment, the processor is executed according to the stored program code in the storage medium: before the server sends the offline message to the user according to the offline message policy, the method further includes: the server receiving the configuration of the client end Offline message policy; or, the server configures an offline message policy according to the configuration request.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:离线消息策略包括以下至少之一:在预设日期下发离线消息;在预设时间下发离线消息;下发预定数量离线消息;下发预定大小的离线消息;下发指定发件人的离线消息;下发指定主题的离线消息;下发指定群组的离线消息;下发指定类型的离线消息,其中,类型包括:文本类型、音频类型、视频类型、文件类型。Optionally, in this embodiment, the processor is executed according to the stored program code in the storage medium: the offline message policy includes at least one of: sending an offline message on a preset date; and sending an offline message at a preset time; A predetermined number of offline messages are delivered; an offline message of a predetermined size is delivered; an offline message of the specified sender is delivered; an offline message of the specified topic is delivered; an offline message of the specified group is delivered; and an offline message of the specified type is delivered. Among them, the types include: text type, audio type, video type, file type.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:服务端根据离线消息策略下发离线消息给用户端包括:在所述用户端离线时,服务端根据所述离线消息策略选择和保存待下发的离线消息;和/或,在所述用户端在线时,服务端下发根据所述离线消息策略选择的离线消息给用户端。Optionally, in this embodiment, the processor is executed according to the stored program code in the storage medium: the server sends the offline message to the client according to the offline message policy, and when the user is offline, the server is configured according to the The offline message policy selects and saves the offline message to be delivered; and/or, when the user is online, the server delivers the offline message selected according to the offline message policy to the client.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:用户端包括以下至少之一:融合IP消息CPM策略客户端、CPM消息客户端;服务端包括以下至少之一:CPM策略服务器、CPM消息服务器。Optionally, in this embodiment, the processor is executed according to the stored program code in the storage medium: the client includes at least one of the following: a merged IP message CPM policy client, a CPM message client; and the server includes at least the following One: CPM policy server, CPM message server.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:用户端接收服务端根据离线消息策略下发的离线消息;其中,离线消息策略设置为指示下发离线消息的条件。 Optionally, in this embodiment, the processor executes, according to the stored program code in the storage medium, the user end receives an offline message that is sent by the server according to the offline message policy, where the offline message policy is set to indicate that the offline message is sent. conditions of.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:离线消息策略包括以下至少之一:在预设日期下发离线消息;在预设时间下发离线消息;下发预定数量离线消息;下发预定大小的离线消息;下发指定发件人的离线消息;下发指定主题的离线消息;下发指定群组的离线消息;下发指定类型的离线消息,其中,类型包括:文本类型、音频类型、视频类型、文件类型。Optionally, in this embodiment, the processor is executed according to the stored program code in the storage medium: the offline message policy includes at least one of: sending an offline message on a preset date; and sending an offline message at a preset time; A predetermined number of offline messages are delivered; an offline message of a predetermined size is delivered; an offline message of the specified sender is delivered; an offline message of the specified topic is delivered; an offline message of the specified group is delivered; and an offline message of the specified type is delivered. Among them, the types include: text type, audio type, video type, file type.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:离线消息包括以下至少之一:离线消息的内容、离线消息的概要信息。Optionally, in this embodiment, the processor executes according to the stored program code in the storage medium: the offline message includes at least one of the following: content of the offline message, and summary information of the offline message.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:在离线消息为离线消息的概要信息时,在用户端接收服务端根据离线消息策略下发的离线消息之后,方法还包括:用户端请求服务端下发离线消息的内容;或,用户端请求服务端放弃下发离线消息的内容。Optionally, in this embodiment, the processor performs, according to the stored program code in the storage medium, after the offline message is the summary information of the offline message, after the offline message sent by the server according to the offline message policy is received by the server The method further includes: the client requests the server to deliver the content of the offline message; or the client requests the server to abandon the content of the offline message.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:用户端根据设置条件请求服务端下发离线消息。Optionally, in this embodiment, the processor executes according to the stored program code in the storage medium: the user end requests the server to deliver the offline message according to the setting condition.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:用户端包括以下至少之一:融合IP消息CPM策略客户端、CPM消息客户端;服务端包括以下至少之一:CPM策略服务器、CPM消息服务器。Optionally, in this embodiment, the processor is executed according to the stored program code in the storage medium: the client includes at least one of the following: a merged IP message CPM policy client, a CPM message client; and the server includes at least the following One: CPM policy server, CPM message server.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:在用户端接收服务端根据离线消息策略下发的离线消息之前,用户端向服务端发送离线消息策略的配置请求或离线消息策略。Optionally, in this embodiment, the processor performs, according to the stored program code in the storage medium, before the user end receives the offline message delivered by the server according to the offline message policy, the user sends the offline message policy to the server. Configure a request or offline message policy.
可选地,本实施例中的示例性示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the exemplary embodiments in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
显然,本领域的技术人员应该明白,上述的本公开的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本公开不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present disclosure described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. As such, the disclosure is not limited to any specific combination of hardware and software.
以上所述仅为本公开的优选实施例而已,并不用于限制本公开,对于本领域的技术人员来说,本公开可以有各种更改和变化。凡在本公开的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。The above description is only a preferred embodiment of the present disclosure, and is not intended to limit the disclosure, and various changes and modifications may be made to the present disclosure. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and scope of the present disclosure are intended to be included within the scope of the present disclosure.
工业实用性Industrial applicability
本公开实施例提供的离线消息的处理方法,服务端和用户端根据设置为指示下发离线消息的离线消息策略进行离线消息的下发和接收,避免了由于接收到大量的离线消息导致的终端负荷过高,因此,可以解决相关技术中在进行离线消息下发时存在终端负荷较高的 问题,达到降低终端负荷,减少终端流量消耗的效果。 The method for processing the offline message provided by the embodiment of the present disclosure, the server and the user end to send and receive the offline message according to the offline message policy that is set to instruct the delivery of the offline message, thereby avoiding the terminal caused by receiving a large number of offline messages. The load is too high, so it can solve the problem that the terminal load is high when the offline message is sent in the related art. The problem is to reduce the terminal load and reduce the terminal traffic consumption.

Claims (20)

  1. 一种离线消息的处理方法,其中,包括:A method for processing an offline message, comprising:
    服务端根据离线消息策略下发离线消息给用户端;The server sends an offline message to the client according to the offline message policy.
    其中,所述离线消息策略设置为指示下发所述离线消息的条件。The offline message policy is set to indicate a condition for delivering the offline message.
  2. 根据权利要求1所述的方法,其中,在服务端根据离线消息策略下发离线消息给用户端之前,所述方法还包括:The method according to claim 1, wherein before the server sends the offline message to the client according to the offline message policy, the method further includes:
    所述服务端的策略服务器接收所述用户端的策略客户端配置的所述离线消息策略;或,The policy server of the server receives the offline message policy configured by the policy client of the client; or
    所述服务端的策略服务器根据配置请求配置所述离线消息策略。The policy server of the server configures the offline message policy according to the configuration request.
  3. 根据权利要求1所述的方法,其中,所述离线消息策略包括以下至少之一:The method of claim 1, wherein the offline message policy comprises at least one of the following:
    在预设日期下发所述离线消息;Sending the offline message on a preset date;
    在预设时间下发所述离线消息;Sending the offline message at a preset time;
    下发预定数量离线消息;Deliver a predetermined number of offline messages;
    下发预定大小的离线消息;Deliver an offline message of a predetermined size;
    下发指定发件人的离线消息;Deliver the offline message of the specified sender;
    下发指定主题的离线消息;Deliver offline messages of the specified topic;
    下发指定群组的离线消息;Deliver offline messages of the specified group;
    下发指定类型的离线消息,其中,所述类型包括:文本类型、音频类型、视频类型、文件类型。The specified type of offline message is delivered, where the type includes: a text type, an audio type, a video type, and a file type.
  4. 根据权利要求1所述的方法,其中,服务端根据离线消息策略下发离线消息给用户端包括:The method of claim 1, wherein the server sends the offline message to the client according to the offline message policy, including:
    服务端的消息服务器从策略服务器中获取所述离线消息策略;The server of the server obtains the offline message policy from the policy server;
    在所述用户端离线时,服务端的消息服务器根据所述离线消息策略选择和保存待下发的离线消息;和/或,在所述用户端在线时,服务端的消息服务器下发根据所述离线消息策略选择的离线消息给用户端。When the user is offline, the message server of the server selects and saves the offline message to be delivered according to the offline message policy; and/or, when the user is online, the message server of the server sends the message according to the offline The offline message selected by the message policy is sent to the client.
  5. 根据权利要求4所述的方法,其中,所述离线消息包括以下至少之一:离线消息的内容、离线消息的概要信息。The method of claim 4, wherein the offline message comprises at least one of: content of an offline message, summary information of an offline message.
  6. 根据权利要求1至5任一项所述的方法,其中,The method according to any one of claims 1 to 5, wherein
    所述用户端包括以下至少之一:策略客户端、消息客户端;The user end includes at least one of the following: a policy client, a message client;
    所述服务端包括以下至少之一:策略服务器、消息服务器。The server includes at least one of the following: a policy server, a message server.
  7. 一种离线消息的处理方法,其中,包括:A method for processing an offline message, comprising:
    用户端接收服务端根据离线消息策略下发的离线消息;The client receives an offline message delivered by the server according to the offline message policy;
    其中,所述离线消息策略设置为指示下发所述离线消息的条件。The offline message policy is set to indicate a condition for delivering the offline message.
  8. 根据权利要求7所述的方法,其中,所述离线消息策略包括以下至少之一:The method of claim 7, wherein the offline message policy comprises at least one of the following:
    在预设日期下发所述离线消息; Sending the offline message on a preset date;
    在预设时间下发所述离线消息;Sending the offline message at a preset time;
    下发预定数量离线消息;Deliver a predetermined number of offline messages;
    下发预定大小的离线消息;Deliver an offline message of a predetermined size;
    下发指定发件人的离线消息;Deliver the offline message of the specified sender;
    下发指定主题的离线消息;Deliver offline messages of the specified topic;
    下发指定群组的离线消息;Deliver offline messages of the specified group;
    下发指定类型的离线消息,其中,所述类型包括:文本类型、音频类型、视频类型、文件类型。The specified type of offline message is delivered, where the type includes: a text type, an audio type, a video type, and a file type.
  9. 根据权利要求7所述的方法,其中,所述离线消息包括以下至少之一:离线消息的内容、离线消息的概要信息。The method of claim 7, wherein the offline message comprises at least one of: content of an offline message, summary information of an offline message.
  10. 根据权利要求9所述的方法,其中,在所述离线消息为离线消息的概要信息时,所述方法还包括:The method according to claim 9, wherein when the offline message is summary information of an offline message, the method further comprises:
    所述用户端的消息客户端设置条件请求所述服务端的消息服务器下发所述离线消息的内容;或,The message client setting condition of the user end requests the message server of the server to deliver the content of the offline message; or
    所述用户端的消息客户端请求所述服务端的消息服务器放弃下发所述离线消息的内容。The message client of the client requests the message server of the server to abandon the content of the offline message.
  11. 根据权利要求7所述的方法,其中,在用户端接收服务端根据离线消息策略下发的离线消息之前,所述方法还包括:The method of claim 7, wherein the method further comprises: before the user receives the offline message delivered by the server according to the offline message policy, the method further comprises:
    所述用户端的策略客户端向所述服务端的策略服务器发送所述离线消息策略的配置请求或所述离线消息策略。The policy client of the client sends the configuration request of the offline message policy or the offline message policy to the policy server of the server.
  12. 根据权利要求11所述的方法,其中,所述配置请求设置为指示在所述服务端对所述离线消息策略进行以下操作至少之一:创建、删除、更改、检索、恢复、同步。The method of claim 11, wherein the configuration request is set to indicate at least one of the following operations on the offline message policy at the server: create, delete, change, retrieve, restore, synchronize.
  13. 根据权利要求7至12任一项所述的方法,其中,The method according to any one of claims 7 to 12, wherein
    所述用户端包括以下至少之一:策略客户端、消息客户端;The user end includes at least one of the following: a policy client, a message client;
    所述服务端包括以下至少之一:策略服务器、消息服务器。The server includes at least one of the following: a policy server, a message server.
  14. 一种离线消息的处理装置,其中,应用在服务端,包括:An offline message processing device, wherein the application is on a server, including:
    下发模块,设置为根据离线消息策略下发离线消息给用户端;The sending module is configured to send an offline message to the client according to the offline message policy;
    其中,所述离线消息策略设置为指示下发所述离线消息的条件。The offline message policy is set to indicate a condition for delivering the offline message.
  15. 根据权利要求14所述的装置,其中,所述装置还包括:The apparatus of claim 14 wherein said apparatus further comprises:
    接收模块,设置为在所述下发模块根据离线消息策略下发离线消息给用户端之前,接收所述用户端配置的所述离线消息策略;或,The receiving module is configured to receive the offline message policy configured by the user end before the sending module sends an offline message to the user according to the offline message policy; or
    配置模块,设置为在所述下发模块根据离线消息策略下发离线消息给用户端之前,根据配置请求配置所述离线消息策略。The configuration module is configured to configure the offline message policy according to the configuration request before the sending module sends an offline message to the user according to the offline message policy.
  16. 根据权利要求14所述的装置,其中,所述离线消息策略包括以下至少之一:The apparatus of claim 14, wherein the offline message policy comprises at least one of the following:
    在预设日期下发所述离线消息; Sending the offline message on a preset date;
    在预设时间下发所述离线消息;Sending the offline message at a preset time;
    下发预定数量离线消息;Deliver a predetermined number of offline messages;
    下发预定大小的离线消息;Deliver an offline message of a predetermined size;
    下发指定发件人的离线消息;Deliver the offline message of the specified sender;
    下发指定主题的离线消息;Deliver offline messages of the specified topic;
    下发指定群组的离线消息;Deliver offline messages of the specified group;
    下发指定类型的离线消息,其中,所述类型包括:文本类型、音频类型、视频类型、文件类型。The specified type of offline message is delivered, where the type includes: a text type, an audio type, a video type, and a file type.
  17. 一种离线消息的处理装置,其中,应用在用户端,包括:An offline message processing device, wherein the application is on the user end, including:
    接收模块,设置为接收服务端根据离线消息策略下发的离线消息;The receiving module is configured to receive an offline message delivered by the server according to the offline message policy;
    其中,所述离线消息策略设置为指示下发所述离线消息的条件。The offline message policy is set to indicate a condition for delivering the offline message.
  18. 根据权利要求17所述的装置,其中,所述离线消息策略包括以下至少之一:The apparatus of claim 17, wherein the offline message policy comprises at least one of the following:
    在预设日期下发所述离线消息;Sending the offline message on a preset date;
    在预设时间下发所述离线消息;Sending the offline message at a preset time;
    下发预定数量离线消息;Deliver a predetermined number of offline messages;
    下发预定大小的离线消息;Deliver an offline message of a predetermined size;
    下发指定发件人的离线消息;Deliver the offline message of the specified sender;
    下发指定主题的离线消息;Deliver offline messages of the specified topic;
    下发指定群组的离线消息;Deliver offline messages of the specified group;
    下发指定类型的离线消息,其中,所述类型包括:文本类型、音频类型、视频类型、文件类型。The specified type of offline message is delivered, where the type includes: a text type, an audio type, a video type, and a file type.
  19. 根据权利要求17所述的装置,其中,所述装置还包括:The apparatus of claim 17 wherein said apparatus further comprises:
    发送模块,设置为在所述接收模块接收服务端根据离线消息策略下发的离线消息之前,向所述服务端发送所述离线消息策略的配置请求或所述离线消息策略。The sending module is configured to send the offline message policy configuration request or the offline message policy to the server before the receiving module receives the offline message delivered by the server according to the offline message policy.
  20. 一种存储介质,设置为存储设置为执行以下步骤的程序代码:A storage medium that is configured to store program code that is set to perform the following steps:
    服务端根据离线消息策略下发离线消息给用户端;The server sends an offline message to the client according to the offline message policy.
    其中,所述离线消息策略设置为指示下发所述离线消息的条件。 The offline message policy is set to indicate a condition for delivering the offline message.
PCT/CN2017/107428 2016-11-04 2017-10-24 Method and apparatus for processing offline message WO2018082473A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610978110.4A CN108023923A (en) 2016-11-04 2016-11-04 The processing method and processing device of deferred information
CN201610978110.4 2016-11-04

Publications (1)

Publication Number Publication Date
WO2018082473A1 true WO2018082473A1 (en) 2018-05-11

Family

ID=62075403

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/107428 WO2018082473A1 (en) 2016-11-04 2017-10-24 Method and apparatus for processing offline message

Country Status (2)

Country Link
CN (1) CN108023923A (en)
WO (1) WO2018082473A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109286671A (en) * 2018-09-29 2019-01-29 青岛海尔科技有限公司 Subscribing notification processing method, device, storage medium and equipment under environment of internet of things
CN109756417B (en) * 2019-01-04 2022-08-30 平安科技(深圳)有限公司 Offline message distribution method, server and storage medium
CN112965835A (en) * 2019-01-31 2021-06-15 福建天泉教育科技有限公司 Method and terminal for efficiently displaying offline message
CN110798398A (en) * 2019-11-14 2020-02-14 江苏满运软件科技有限公司 Group message management method, device, equipment and medium
CN115002137B (en) * 2022-08-03 2022-10-21 广州此声网络科技有限公司 Offline message processing method and device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1794722A (en) * 2005-09-19 2006-06-28 华为技术有限公司 Method of transfering off-line message
CN103166921A (en) * 2011-12-13 2013-06-19 中国移动通信集团公司 Method supplying service to terminal, network side device and terminal
CN105072019A (en) * 2015-07-24 2015-11-18 北京元心科技有限公司 Processing method and processing system for instant communication messages
CN105897550A (en) * 2015-12-23 2016-08-24 乐视致新电子科技(天津)有限公司 Off-line message pushing method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102282872B (en) * 2009-01-19 2014-05-14 Lg电子株式会社 Method for delivering message based on cpm service and server thereof
WO2010112075A1 (en) * 2009-04-02 2010-10-07 Nokia Siemens Networks Oy Message notification
CN102238502B (en) * 2010-05-06 2014-02-19 华为技术有限公司 Communication method, system and business server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1794722A (en) * 2005-09-19 2006-06-28 华为技术有限公司 Method of transfering off-line message
CN103166921A (en) * 2011-12-13 2013-06-19 中国移动通信集团公司 Method supplying service to terminal, network side device and terminal
CN105072019A (en) * 2015-07-24 2015-11-18 北京元心科技有限公司 Processing method and processing system for instant communication messages
CN105897550A (en) * 2015-12-23 2016-08-24 乐视致新电子科技(天津)有限公司 Off-line message pushing method and device

Also Published As

Publication number Publication date
CN108023923A (en) 2018-05-11

Similar Documents

Publication Publication Date Title
WO2018082473A1 (en) Method and apparatus for processing offline message
US20210241237A1 (en) System and method of managing meeting invitations
KR101859235B1 (en) System and method of multi-media conferencing between universal plug and play (upnp) enabled telephony devices and wireless area network (wan) devices
EP2342883B1 (en) File transfer in conference services
EP2124399B1 (en) A method, a device and a system for converging ip message
US8799486B2 (en) System and method for transferring a session between multiple clients
CN100589455C (en) Contact head image rendering method on a kind of IMS terminal
US20120233644A1 (en) Mobile device capable of substantially synchronized sharing of streaming media with other devices
CN102299810B (en) Method and system for notifying group change event
EP3709664B1 (en) Stream pushing method, system and server
AU2011227505B2 (en) Multimodal conversation state and transfer through centralized notification
CN105556980A (en) A method and system for integrating content viewing and communication in immersive social centre session
US20120072505A1 (en) SYSTEM AND METHOD FOR CONFERENCE MESSAGING BETWEEN UPnP ENABLED TELEPHONY DEVICES AND WAN DEVICES
WO2007003101A1 (en) A method, apparatus and system for saving an instant message
US10009388B2 (en) Method and system for establishing integrated group ISC session based on content interest
WO2014117506A1 (en) Method and device for sending multimedia message to group member
CN104320399A (en) Service end information automatic configuration method
EP2396940B1 (en) A method and an arrangement for handling resource data
WO2007095814A1 (en) A method and system for obtaining the session capability of the session participant in the multi-party communication system
EP3461135A1 (en) Method for managing the access right to a digital content
WO2009036689A1 (en) A message association method, user terminal and server
CN101026815A (en) Multimedia communication session establishing method
JP5975998B2 (en) Conference messaging system and method between universal plug and play telephony device and wide area network (WAN) device
WO2007131400A1 (en) A method and a system for achieving presence services and the presence server
EP2043330A1 (en) Method of supporting a collaborative session

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

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

Country of ref document: EP

Kind code of ref document: A1