CN112243012B - Offline message transmission method and device, server and terminal - Google Patents

Offline message transmission method and device, server and terminal Download PDF

Info

Publication number
CN112243012B
CN112243012B CN201910640959.4A CN201910640959A CN112243012B CN 112243012 B CN112243012 B CN 112243012B CN 201910640959 A CN201910640959 A CN 201910640959A CN 112243012 B CN112243012 B CN 112243012B
Authority
CN
China
Prior art keywords
message
offline
terminal
msrp
messages
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910640959.4A
Other languages
Chinese (zh)
Other versions
CN112243012A (en
Inventor
李家姿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
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 China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN201910640959.4A priority Critical patent/CN112243012B/en
Publication of CN112243012A publication Critical patent/CN112243012A/en
Application granted granted Critical
Publication of CN112243012B publication Critical patent/CN112243012B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/043Real-time or near real-time messaging, e.g. instant messaging [IM] using or handling presence information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • 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/56Provisioning of proxy services
    • H04L67/59Providing operational support to end devices by off-loading in the network or by emulation, e.g. when they are unavailable

Abstract

The invention provides an offline message transmission method, an offline message transmission device, a server and a terminal, wherein the offline message transmission method comprises the following steps: establishing an offline message session between the server and a terminal; under the condition that the terminal supports batch issuing of offline messages, encoding at least two offline messages of which the receiving party is the terminal into a Message Session Relay Protocol (MSRP) message; and sending the MSRP message to the terminal. According to the scheme, batch transmission of offline messages can be realized, the message transmission efficiency can be remarkably improved under the condition of more multimedia messages, and the terminal power consumption, the flow, the transmission time and the like can be reduced; the problem of low efficiency of an offline message transmission scheme in the prior art is well solved.

Description

Offline message transmission method and device, server and terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, a server, and a terminal for offline message transmission.
Background
In the converged communication system, if a user is not online, a server stores a message ready for the user as an offline message, and after the user is online, the server issues the offline message to the user. The existing offline message issuing mode is a single issuing mode, namely, issuing messages one by one. The issuing efficiency is lower, if the offline messages are more, the time for receiving the offline messages by the client is longer, and the use experience of the user is affected.
Disclosure of Invention
The invention aims to provide an offline message transmission method, an offline message transmission device, a server and a terminal, which solve the problem of low efficiency of an offline message transmission scheme in the prior art.
In order to solve the above technical problems, an embodiment of the present invention provides an offline message transmission method, which is applied to a server, and includes:
establishing an offline message session between the server and a terminal;
under the condition that the terminal supports batch issuing of offline messages, encoding at least two offline messages of which the receiving party is the terminal into a Message Session Relay Protocol (MSRP) message;
and sending the MSRP message to the terminal.
Optionally, before establishing the offline message session between the server and the terminal, the method further comprises:
receiving a registration message sent by the terminal, wherein the registration message carries a newly added feature identifier;
and registering the terminal in a network according to the registration message, and determining that the terminal supports batch issuing of offline messages according to the newly added feature identifier.
Optionally, the encoding at least two offline messages of the terminal by the receiver into one message session relay protocol MSRP message includes:
According to the corresponding relation of the preset parameters, encoding at least two offline messages of which the receiving party is the terminal into an MSRP message;
wherein, the preset parameter corresponding relation comprises: a first correspondence between a preset header field parameter and a preset extension parameter in the offline message, where the MSRP message includes at least one preset extension parameter.
Optionally, before encoding at least two offline messages with the receiver as the terminal into one MSRP message according to the preset parameter correspondence, the method further includes:
and agreeing the corresponding relation of the preset parameters with the terminal.
Optionally, the preset header field parameter includes at least one of the following parameters:
message sender information parameters;
message receiver information parameters;
session identification information parameters;
an identification parameter identifying a mode or a service type of the offline message;
file selector information parameters;
file transfer identification information parameters;
information parameters of a service initiator;
group meeting place name information parameters; and
file characteristic information parameters.
Optionally, in the case that the offline message is a group chat message, the message sender information parameter includes a group chat identifier sub-parameter.
Optionally, the encoding at least two offline messages of the terminal by the receiver into one message session relay protocol MSRP message includes:
encoding at least two off-line messages of different types of which the receiving party is the terminal to obtain an MSRP message;
wherein the at least two different types of offline messages include at least one of a page-mode message, a large text-mode message, and a file transfer message;
the traffic types of the at least two different types of offline messages include at least one of a one-to-one message type and a group chat message type.
Optionally, the method further comprises:
after all MSRP messages are sent to the terminal, sending an end notification message to the terminal;
receiving a response message fed back by the terminal according to the ending notification message;
wherein, the all MSRP messages are at least one MSRP message obtained according to all offline messages of the terminal by the receiver.
The embodiment of the invention also provides an offline message transmission method, which is applied to the terminal and comprises the following steps:
establishing an offline message session between the terminal and a server;
receiving a Message Session Relay Protocol (MSRP) message issued by the server;
And analyzing the MSRP message to obtain at least two offline messages of which the receiving sides are the terminals.
Optionally, before establishing the offline message session between the terminal and the server, the method further comprises:
sending a registration message to the server;
the registration message carries a new feature identifier, and the new feature identifier is used for indicating that the terminal supports batch issuing of offline messages.
Optionally, the parsing the MSRP message to obtain at least two offline messages with the receiving party being the terminal includes:
analyzing the MSRP message according to the corresponding relation of the preset parameters to obtain at least two offline messages of which the receiving party is the terminal;
wherein, the preset parameter corresponding relation comprises: a first correspondence between a preset header field parameter and a preset extension parameter in the offline message, where the MSRP message includes at least one preset extension parameter.
Optionally, before parsing the MSRP message to obtain at least two offline messages with the receiving party being the terminal, the method further includes:
and agreeing the corresponding relation of the preset parameters with the server.
Optionally, the preset header field parameter includes at least one of the following parameters:
Message sender information parameters;
message receiver information parameters;
session identification information parameters;
an identification parameter identifying a mode or a service type of the offline message;
file selector information parameters;
file transfer identification information parameters;
information parameters of a service initiator;
group meeting place name information parameters; and
file characteristic information parameters.
Optionally, in the case that the offline message is a group chat message, the message sender information parameter includes a group chat identifier sub-parameter.
Optionally, the parsing the MSRP message to obtain at least two offline messages with the receiving party being the terminal includes:
analyzing the MSRP message to obtain at least two off-line messages with different types, wherein the receiving party is the terminal;
wherein the at least two different types of offline messages include at least one of a page-mode message, a large text-mode message, and a file transfer message;
the traffic types of the at least two different types of offline messages include at least one of a one-to-one message type and a group chat message type.
Optionally, the method further comprises:
receiving an end notification message sent by the server after all MSRP messages are sent;
According to the end notification message, feeding back a response message to the server;
wherein, the all MSRP messages are at least one MSRP message obtained by the server according to all offline messages of the terminal by the receiver.
The embodiment of the invention also provides an offline message transmission device, which is applied to the server and comprises the following steps:
a first establishing module, configured to establish an offline message session between the server and a terminal;
the first coding module is used for coding at least two offline messages of which the receiver is the terminal into a Message Session Relay Protocol (MSRP) message under the condition that the terminal supports the batch issuing of the offline messages;
and the first sending module is used for sending the MSRP message to the terminal.
Optionally, the method further comprises:
the first receiving module is used for receiving a registration message sent by the terminal before the offline message session between the server and the terminal is established, wherein the registration message carries a newly added feature identifier;
and the first processing module is used for carrying out network registration on the terminal according to the registration message and determining that the terminal supports offline message batch issuing according to the newly added feature identifier.
Optionally, the first encoding module includes:
the first coding sub-module is used for coding at least two offline messages of which the receiving party is the terminal into an MSRP message according to the corresponding relation of the preset parameters;
wherein, the preset parameter corresponding relation comprises: a first correspondence between a preset header field parameter and a preset extension parameter in the offline message, where the MSRP message includes at least one preset extension parameter.
Optionally, the method further comprises:
the first agreeing module is used for agreeing the corresponding relation of the preset parameters with the terminal before encoding at least two offline messages of which the receiving party is the terminal into one MSRP message according to the corresponding relation of the preset parameters.
Optionally, the preset header field parameter includes at least one of the following parameters:
message sender information parameters;
message receiver information parameters;
session identification information parameters;
an identification parameter identifying a mode or a service type of the offline message;
file selector information parameters;
file transfer identification information parameters;
information parameters of a service initiator;
group meeting place name information parameters; and
file characteristic information parameters.
Optionally, in the case that the offline message is a group chat message, the message sender information parameter includes a group chat identifier sub-parameter.
Optionally, the first encoding module includes:
the second coding submodule is used for coding at least two different types of offline messages of which the receiving party is the terminal to obtain an MSRP message;
wherein the at least two different types of offline messages include at least one of a page-mode message, a large text-mode message, and a file transfer message;
the traffic types of the at least two different types of offline messages include at least one of a one-to-one message type and a group chat message type.
Optionally, the method further comprises:
the second processing module is used for sending an end notification message to the terminal after sending all MSRP messages to the terminal;
the second receiving module is used for receiving a response message fed back by the terminal according to the ending notification message;
wherein, the all MSRP messages are at least one MSRP message obtained according to all offline messages of the terminal by the receiver.
The embodiment of the invention also provides an offline message transmission device, which is applied to the terminal and comprises the following steps:
A second establishing module, configured to establish an offline message session between the terminal and a server;
a third receiving module, configured to receive a message session relay protocol MSRP message sent by the server;
and the first analysis module is used for analyzing the MSRP message to obtain at least two offline messages of which the receiving party is the terminal.
Optionally, the method further comprises:
a second sending module, configured to send a registration message to a server before an offline message session between the terminal and the server is established;
the registration message carries a new feature identifier, and the new feature identifier is used for indicating that the terminal supports batch issuing of offline messages.
Optionally, the first parsing module includes:
the first analysis submodule is used for analyzing the MSRP message according to the corresponding relation of the preset parameters to obtain at least two offline messages of which the receiving party is the terminal;
wherein, the preset parameter corresponding relation comprises: a first correspondence between a preset header field parameter and a preset extension parameter in the offline message, where the MSRP message includes at least one preset extension parameter.
Optionally, the method further comprises:
And the second specifying module is used for specifying the corresponding relation of the preset parameters with the server before analyzing the MSRP message to obtain at least two offline messages of which the receiving party is the terminal.
Optionally, the preset header field parameter includes at least one of the following parameters:
message sender information parameters;
message receiver information parameters;
session identification information parameters;
an identification parameter identifying a mode or a service type of the offline message;
file selector information parameters;
file transfer identification information parameters;
information parameters of a service initiator;
group meeting place name information parameters; and
file characteristic information parameters.
Optionally, in the case that the offline message is a group chat message, the message sender information parameter includes a group chat identifier sub-parameter.
Optionally, the first parsing module includes:
the second analysis submodule is used for analyzing the MSRP message to obtain at least two off-line messages with different types, wherein the receiving party is the terminal;
wherein the at least two different types of offline messages include at least one of a page-mode message, a large text-mode message, and a file transfer message;
The traffic types of the at least two different types of offline messages include at least one of a one-to-one message type and a group chat message type.
Optionally, the method further comprises:
a fourth receiving module, configured to receive an end notification message sent by the server after all MSRP messages are sent;
the first feedback module is used for feeding back a response message to the server according to the ending notification message;
wherein, the all MSRP messages are at least one MSRP message obtained by the server according to all offline messages of the terminal by the receiver.
The embodiment of the invention also provides a server, which comprises: a processor and a transceiver;
the processor is used for establishing an offline message session between the server and the terminal;
under the condition that the terminal supports batch issuing of offline messages, encoding at least two offline messages of which the receiving party is the terminal into a Message Session Relay Protocol (MSRP) message;
and sending the MSRP message to the terminal through the transceiver.
Optionally, the processor is further configured to:
before an offline message session between the server and the terminal is established, receiving a registration message sent by the terminal through the transceiver, wherein the registration message carries a newly added feature identifier;
And registering the terminal in a network according to the registration message, and determining that the terminal supports batch issuing of offline messages according to the newly added feature identifier.
Optionally, the processor is specifically configured to:
according to the corresponding relation of the preset parameters, encoding at least two offline messages of which the receiving party is the terminal into an MSRP message;
wherein, the preset parameter corresponding relation comprises: a first correspondence between a preset header field parameter and a preset extension parameter in the offline message, where the MSRP message includes at least one preset extension parameter.
Optionally, the processor is further configured to:
and before encoding at least two offline messages of which the receiving party is the terminal into one MSRP message according to the preset parameter corresponding relation, the preset parameter corresponding relation is agreed between the receiving party and the terminal.
Optionally, the preset header field parameter includes at least one of the following parameters:
message sender information parameters;
message receiver information parameters;
session identification information parameters;
an identification parameter identifying a mode or a service type of the offline message;
file selector information parameters;
file transfer identification information parameters;
Information parameters of a service initiator;
group meeting place name information parameters; and
file characteristic information parameters.
Optionally, in the case that the offline message is a group chat message, the message sender information parameter includes a group chat identifier sub-parameter.
Optionally, the processor is specifically configured to:
encoding at least two off-line messages of different types of which the receiving party is the terminal to obtain an MSRP message;
wherein the at least two different types of offline messages include at least one of a page-mode message, a large text-mode message, and a file transfer message;
the traffic types of the at least two different types of offline messages include at least one of a one-to-one message type and a group chat message type.
Optionally, the processor is further configured to:
after all MSRP messages are sent to the terminal, sending an end notification message to the terminal through the transceiver;
receiving a response message fed back by the terminal according to the end notification message through the transceiver;
wherein, the all MSRP messages are at least one MSRP message obtained according to all offline messages of the terminal by the receiver.
The embodiment of the invention also provides a terminal, which comprises: a processor and a transceiver;
The processor is used for establishing an offline message session between the terminal and the server;
receiving a Message Session Relay Protocol (MSRP) message issued by the server through the transceiver;
and analyzing the MSRP message to obtain at least two offline messages of which the receiving sides are the terminals.
Optionally, the processor is further configured to:
transmitting a registration message to a server through the transceiver before establishing an offline message session between the terminal and the server;
the registration message carries a new feature identifier, and the new feature identifier is used for indicating that the terminal supports batch issuing of offline messages.
Optionally, the processor is specifically configured to:
analyzing the MSRP message according to the corresponding relation of the preset parameters to obtain at least two offline messages of which the receiving party is the terminal;
wherein, the preset parameter corresponding relation comprises: a first correspondence between a preset header field parameter and a preset extension parameter in the offline message, where the MSRP message includes at least one preset extension parameter.
Optionally, the processor is further configured to:
and before analyzing the MSRP message to obtain at least two offline messages of which the receiving party is the terminal, the corresponding relation of the preset parameters is agreed between the MSRP message and the server.
Optionally, the preset header field parameter includes at least one of the following parameters:
message sender information parameters;
message receiver information parameters;
session identification information parameters;
an identification parameter identifying a mode or a service type of the offline message;
file selector information parameters;
file transfer identification information parameters;
information parameters of a service initiator;
group meeting place name information parameters; and
file characteristic information parameters.
Optionally, in the case that the offline message is a group chat message, the message sender information parameter includes a group chat identifier sub-parameter.
Optionally, the processor is specifically configured to:
analyzing the MSRP message to obtain at least two off-line messages with different types, wherein the receiving party is the terminal;
wherein the at least two different types of offline messages include at least one of a page-mode message, a large text-mode message, and a file transfer message;
the traffic types of the at least two different types of offline messages include at least one of a one-to-one message type and a group chat message type.
Optionally, the processor is further configured to:
receiving, by the transceiver, an end notification message sent by the server after all MSRP messages are sent;
Feeding back a response message to the server through the transceiver according to the end notification message;
wherein, the all MSRP messages are at least one MSRP message obtained by the server according to all offline messages of the terminal by the receiver.
The embodiment of the invention also provides communication equipment, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor; the processor realizes the offline message transmission method of the server side when executing the program; or alternatively
And the processor realizes the offline message transmission method of the terminal side when executing the program.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when being executed by a processor, implements the steps in the server-side offline message transmission method; or alternatively
The program, when executed by the processor, implements the steps in the above-described off-line message transmission method on the terminal side.
The technical scheme of the invention has the following beneficial effects:
in the above scheme, the offline message transmission method establishes an offline message session between the server and the terminal; under the condition that the terminal supports batch issuing of offline messages, encoding at least two offline messages of which the receiving party is the terminal into a Message Session Relay Protocol (MSRP) message; sending the MSRP message to the terminal; the method can realize batch transmission of offline messages, remarkably improve the message transmission efficiency and reduce the terminal power consumption, the flow, the transmission time and the like under the condition of more multimedia messages; the problem of low efficiency of an offline message transmission scheme in the prior art is well solved.
Drawings
Fig. 1 is a flowchart of an offline message transmission method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a second method for offline message transmission according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an application flow of an offline message transmission method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of an offline message transmission device according to an embodiment of the invention;
fig. 5 is a schematic diagram of an offline message transmission device according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a server according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a terminal structure according to an embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantages to be solved more apparent, the following detailed description will be given with reference to the accompanying drawings and specific embodiments.
The invention provides an offline message transmission method, which is applied to a server and is shown in fig. 1, aiming at the problem of low efficiency of an offline message transmission scheme in the prior art, and comprises the following steps:
step 11: establishing an offline message session between the server and a terminal;
step 12: under the condition that the terminal supports batch issuing of offline messages, encoding at least two offline messages of which the receiving party is the terminal into a Message Session Relay Protocol (MSRP) message;
Step 13: and sending the MSRP message to the terminal.
The offline message transmission method provided by the embodiment of the invention establishes an offline message session between the server and the terminal; under the condition that the terminal supports batch issuing of offline messages, encoding at least two offline messages of which the receiving party is the terminal into a Message Session Relay Protocol (MSRP) message; sending the MSRP message to the terminal; the method can realize batch transmission of offline messages, remarkably improve the message transmission efficiency and reduce the terminal power consumption, the flow, the transmission time and the like under the condition of more multimedia messages; the problem of low efficiency of an offline message transmission scheme in the prior art is well solved.
Further, before establishing the offline message session between the server and the terminal, the method further comprises: receiving a registration message sent by the terminal, wherein the registration message carries a newly added feature identifier; and registering the terminal in a network according to the registration message, and determining that the terminal supports batch issuing of offline messages according to the newly added feature identifier.
Specifically, the encoding at least two offline messages with the receiving party being the terminal into one message session relay protocol MSRP message includes: according to the corresponding relation of the preset parameters, encoding at least two offline messages of which the receiving party is the terminal into an MSRP message; wherein, the preset parameter corresponding relation comprises: a first correspondence between a preset header field parameter and a preset extension parameter in the offline message, where the MSRP message includes at least one preset extension parameter.
Further, before encoding at least two offline messages with the receiver as the terminal into one MSRP message according to the preset parameter correspondence, the method further includes: and agreeing the corresponding relation of the preset parameters with the terminal.
Wherein the preset header field parameters include at least one of the following parameters: message sender information parameters; message receiver information parameters; session identification information parameters; an identification parameter identifying a mode or a service type of the offline message; file selector information parameters; file transfer identification information parameters; information parameters of a service initiator; group meeting place name information parameters; file characteristic information parameters.
Specifically, in the case that the offline message is a group chat message, the message sender information parameter includes a group chat identifier sub-parameter.
In the embodiment of the present invention, the encoding at least two offline messages with the receiver being the terminal into one message session relay protocol MSRP message includes: encoding at least two off-line messages of different types of which the receiving party is the terminal to obtain an MSRP message; wherein the at least two different types of offline messages include at least one of a page-mode message, a large text-mode message, and a file transfer message; the traffic types of the at least two different types of offline messages include at least one of a one-to-one message type and a group chat message type.
Further, the offline message transmission method further includes: after all MSRP messages are sent to the terminal, sending an end notification message to the terminal; receiving a response message fed back by the terminal according to the ending notification message; wherein, the all MSRP messages are at least one MSRP message obtained according to all offline messages of the terminal by the receiver.
Thus, the message transmission efficiency can be remarkably improved.
The embodiment of the invention also provides an offline message transmission method, which is applied to the terminal, as shown in fig. 2, and comprises the following steps:
step 21: establishing an offline message session between the terminal and a server;
step 22: receiving a Message Session Relay Protocol (MSRP) message issued by the server;
step 23: and analyzing the MSRP message to obtain at least two offline messages of which the receiving sides are the terminals.
The offline message transmission method provided by the embodiment of the invention establishes an offline message session between the terminal and the server; receiving a Message Session Relay Protocol (MSRP) message issued by the server; analyzing the MSRP message to obtain at least two offline messages of which the receiving party is the terminal; the method can realize batch transmission of offline messages, remarkably improve the message transmission efficiency and reduce the terminal power consumption, the flow, the transmission time and the like under the condition of more multimedia messages; the problem of low efficiency of an offline message transmission scheme in the prior art is well solved.
Further, before establishing the offline message session between the terminal and the server, the method further comprises: sending a registration message to the server; the registration message carries a new feature identifier, and the new feature identifier is used for indicating that the terminal supports batch issuing of offline messages.
Specifically, the parsing the MSRP message to obtain at least two offline messages with the receiving party being the terminal includes: analyzing the MSRP message according to the corresponding relation of the preset parameters to obtain at least two offline messages of which the receiving party is the terminal; wherein, the preset parameter corresponding relation comprises: a first correspondence between a preset header field parameter and a preset extension parameter in the offline message, where the MSRP message includes at least one preset extension parameter.
Further, before parsing the MSRP message to obtain at least two offline messages with the receiving party being the terminal, the method further includes: and agreeing the corresponding relation of the preset parameters with the server.
Wherein the preset header field parameters include at least one of the following parameters: message sender information parameters; message receiver information parameters; session identification information parameters; an identification parameter identifying a mode or a service type of the offline message; file selector information parameters; file transfer identification information parameters; information parameters of a service initiator; group meeting place name information parameters; file characteristic information parameters.
Specifically, in the case that the offline message is a group chat message, the message sender information parameter includes a group chat identifier sub-parameter.
In the embodiment of the present invention, the parsing the MSRP message to obtain at least two offline messages with the receiving party being the terminal includes: analyzing the MSRP message to obtain at least two off-line messages with different types, wherein the receiving party is the terminal; wherein the at least two different types of offline messages include at least one of a page-mode message, a large text-mode message, and a file transfer message; the traffic types of the at least two different types of offline messages include at least one of a one-to-one message type and a group chat message type.
Further, the offline message transmission method further includes: receiving an end notification message sent by the server after all MSRP messages are sent; according to the end notification message, feeding back a response message to the server; wherein, the all MSRP messages are at least one MSRP message obtained by the server according to all offline messages of the terminal by the receiver.
Thus, the message transmission efficiency can be remarkably improved.
The offline message transmission method provided by the embodiment of the invention is further described below with reference to the two sides of the server and the terminal.
Aiming at the technical problems, the embodiment of the invention provides an offline message transmission method, which relates to an offline message batch issuing mode, in particular to: the terminal informs the server of the capability of receiving offline messages in batches when registering, the server detects that the terminal has a plurality of offline messages (including one-to-one messages and group chat messages), encodes the offline messages in batches and continuously sends the offline messages to the client through MSRP (Message Session Relay Protocol ) messages. When the multimedia messages are more, the message transmission efficiency can be obviously improved. Tests show that the optimized scheme has obvious reduction in the aspects of terminal power consumption, flow and transmission time.
The scheme provided by the embodiment of the invention mainly relates to:
a new feature tag is extended to represent offline message traffic, such as "mnc000.mcc460":
Figure SMS_1
the new feature tag is carried in a SIP (Session Initiation Protocol ) register message (i.e., the above-mentioned registration message) at the time of registration by the client (i.e., the above-mentioned terminal), so as to inform the server that the client has the optimized offline message receiving capability (i.e., the capability of receiving offline messages issued in batch).
The embodiment of the invention provides a REGISTER request example, which is specifically as follows:
a// SIP message header for initiating registration;
REGISTER sip:bj.ims.mnc000.mcc460.3gppnetwork.org SIP/2.0
To:<sip:user@bj.ims.mnc000.mcc460.3gppnetwork.org>
From:<sip:user@bj.ims.mnc000.mcc460.3gppnetwork.org>;tag=JVdcbRs
Contact:<sip:user@10.201.66.64:3550>;expires=3600;+g.3gpp.icsi-ref=“urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.msg”;+g.3gpp.icsi-ref=“urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.largemsg”;+g.3gpp.icsi-ref=“urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.filetransfer”;+g.3gpp.icsi-ref=“urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.session”;*;+g.3gpp.iari-ref=“urn%3Aurn-7%3A3gpp-application.ims.iari.rcs.mnc000.mcc460.offlinemsg”
Supported:100rel,path
Allow:
INVITE,ACK,BYE,CANCEL,REGISTER,INFO,PRACK,SUBSCRIBE,NOTIFY,MESSAGE,REFER,PUBLISH
CSeq:2REGISTER
Call-ID:GSdcbRsOi@10.201.66.64
Authorization:Digestrealm=“bj.ims.mnc000.mcc460.3gppnetwork.org”,algorithm=SHA-256,nonce=“hz0xWulXDsDYQ784Nh7BGw==“,username=“user2@bj.ims.mnc000.mcc460.3gppnetwork.org”,uri=“sip:bj.ims.mnc000.mcc460.3gppnetwork.org”,response=“e24bff10711a64de1563fed57abc9bcd”
Max-Forwards:70
User-Agent:RCS/1.3.0(And)
Via:SIP/2.0/UDP 10.201.66.64:3550;branch=z9hG4bKWWdcbRs;rport
Content-Length:0
after the client is online, an offline message session is created, and the offline message is packaged and issued in batches by the server, as shown in fig. 3, which includes:
step 31: the client sends a REGISTER message to the server to request registration;
step 32: the server replies a 200OK message to the client to inform the client of finishing registration;
step 33: the server sends an offline message issuing request INVITE (offlinemsg) to the client;
step 34: the client replies a 200OK message to the server to create an offline message session with the server;
step 351: the server sends MSRP Send information to the client to Send offline information 1-M to the client;
step 361: the client replies a 200OK message to the server to inform the server of successfully receiving the offline messages 1-M;
step 352: the server sends MSRP Send information to the client to Send offline information M+1 to M+N to the client;
step 362: the client replies a 200OK message to the server to inform the server of successfully receiving the offline messages M+1 to M+N;
step (transmission of remaining offline messages);
Step 37: the server sends BYE information to the client to inform the client that the offline information is sent completely;
step 38: the client replies a 200OK message to the server to notify the server that the BYE message was successfully received, and knows that the offline message transmission is finished (i.e., the offline message transmission flow is finished at this time).
(III) MSRP messages are encoded in MIME (Multipurpose Internet Mail Extensions ) types, and multiple offline messages may be separated by a separator.
In the MSRP message body, each offline message content is encoded, the following parameters are extended (see table below) to correspond to the important header field parameters in the original SIP message (in order for the client to be able to identify each offline message), and a shorthand parameter format (optional use when supported by the client) is provided to reduce the message body size:
Figure SMS_2
Figure SMS_3
for special Service messages such as burn after reading and public account, the X-Rcs-Service-Type can carry a plurality of mark parameters (see the following table) at the same time, so as to be "; "separate (e.g., send a text message of a public number account number, which would need to be carried: P; pub).
Character string Shorthand Description of the invention
Pager P Page text message, receipt message
Large L Large text message
File F File transfer
group-chat gc Group chat text message, group chat optimized notify message
group-invite gi Offline group chat invitation
barCycle bar Burn after reading sign
publicmsg pub Public account message sign
For group chat services (including Pager, large, file transmission and other services), an isfocus parameter (namely the group chat identifier sub-parameter) can be carried in the X-Rcs-From, and the group chat message and the one-to-one message are distinguished through the parameter; such as: X-Rcs-From: "sip:12520001XXXXXXXXXXXX@as1.gc.rcs.chinamobile.com"; isfocus.
Various offline messages are mixed (i.e. at least two types of messages are encoded in one MSRP message), such as a Pager Mode message, a Large Mode message, a file transfer message, and service types include 1-1 messages, group chat messages (including group chat messages, offline notifications, etc.).
(IV) offline message packing (batch) Transmission mechanism and examples
In the embodiment of the present invention, if an offline message is to be transmitted, the instant message server (i.e., the server) needs to perform capability negotiation with the receiver (i.e., the terminal) to determine whether the receiver has the capability of receiving the message.
The session is established by capability negotiation, specifically through SIP INVITE. An example of an offline message session creation INVITE request is as follows:
a// SIP message header for establishing a session;
INVITE sip:user2@bj.ims.mnc000.mcc460.3gppnetwork.org
Via:SIP/2.0/UDP192.80.80.1:5060;branch=z9hG4bK704699378j150.100.2.1976066
From:sip:msgas@as01.message.rcs1.chinamobile.com
To:<sip:+8613800138002@bj.ims.mnc000.mcc460.3gppnetwork.org>
Call-ID:1576998173j150.100.19790747@192.80.80.1
CSeq:100INVITE
Max-Forwards:70
Contact:<sip:192.80.80.1:5060>
P-Asserted-Service:urn:urn-7:3gpp-service.ims.icsi.oma.cpm.msg
P-Asserted-Identity:<sip:msgas@as01.message.rcs1.chinamobile.com>
Contribution-ID:z9hG4bK*2j9x5lmzyyqa
Conversation-ID:z9hG4bK*pnw8urqit4ln
Route:<sip:192.80.80.106;lr;x-route-key=z9hG4bK>
Allow:
INVITE,ACK,BYE,CANCEL,PRACK,UPDATE,OPTIONS,REGISTER,INFO,MESSAGE,SUBSCRIBE,NOTIFY,REFER,PUBLISH
Supported:100rel,timer,histinfo
Session-Expires:60000
User-Agent:IM-serv
Date:Fri,01 Jan 2016 22:32:59 GMT
Accept-Contact:
*;+g.3gpp.iari-ref=“urn%3Aurn-7%3A3gpp-application.ims.iari.rcs.
mnc000.mcc460.offlinemsg”
Content-Length:264
Content-Type:application/sdp
the media negotiation with the receiver is carried out by the// SDP;
v=0
o=-0000000009 0000000009IN IP4 192.80.80.180
s=-
c=IN IP4 192.80.80.180
t=0 0
m=message 5881 TCP/MSRP*
a=path:msrp://192.80.80.180:5881/10015015016010206325600001;tcp
a=max-size:524288
a=setup:passive
a=connection:new
a=accept-types:text/message
The value of the From field is the address of the instant message server to which the user belongs;
Accept-Contact; +g.3 gpp.iari-ref= "urn%3Aurn-7%3a3 gpp-application.is.is.iari.rcs.mnc000.mcc460.offlinemsg", indicating an extended fixed value, the identity is an offline message issued in bulk.
In the embodiment of the invention, after establishing a session, an instant message server transmits offline messages to a receiver terminal in batches through MSRP; typical MSRP messages carrying different message types are exemplified as follows:
(1) Offline MSRP issuing message carrying original SIP File Transfer message information:
a// MSRP message header;
MSRP msrprequest22044SEND
To-Path:msrp://10.71.174.102:7654/hwWGSEXQqYEPa3;tcp
From-Path:msrp://10.66.139.77:22100/22100;tcp
Message-ID:msrprequest22044
Byte-Range:1-832/832
Success-Report:no
Failure-Report:yes
Content-Type:multipart/mixed;boundary=BY
Content-Length:2200
--BY
the message header of the// original SIP message is mapped to the relevant field of the MSRP;
X-Rcs-From:“tel:+8628776066199”
X-Rcs-To:”tel:+8621353742326”
X-Rcs-Conversation-ID:z9hG4bK*cj2nkdo6n6m7
X-Rcs-Service-Type:file
X-Rcs-file-disposition:timelen=2
X-Rcs-file-selector:name:"1343274037763.amr"type:audio/amr size:5414hash:sha-1:87:73:52:10:93:81:27:43:08:34:45:41:01:77:38:64:63:30:94:39
X-Rcs-File-transfer-Id:12241621461001501400000003
Content-Type:message/cpim
Content-Length:2010
message body of the// original SIP message: CPIM, optional; what is meant herein is that a status report is required to be returned;
From:<tel:13983228535>
To:<tel:15123922189>
NS:imdn<urn:ietf:params:imdn>
imdn.Message-ID:8692320
DateTime:2015-12-24T16:21:41.704+08:00
imdn.Disposition-Notification:positive-delivery,display,negative-delivery
message body of the// original SIP message: content to be transmitted;
Content-Type:image/jpeg
Content-Transfer-Encoding:binary
Content-ID:<8785977>
Content-Disposition:icon
Content-Length:1261
......JFIF.....`.`.....”Exif..MM.*.........................C..............................................................C............................................................................”......................................
.....................}........!1A..Qa.”q.2....#B...R..$3br..
.....%&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz........................................................................................................
.....................w.......!1..AQ.aq.”2...B.....#3R..br.
.$4.%.....&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz....................................................................................?........?..L$.....7.y...wiih.y.<.t.H.(P...!.............Gq..K\.>h....u....1..A;......2.T.f....c_x/.?.-GG........!..nZh.E..B..F..K...U.....T.....oT./e...N....C.-...'..J..mH...!GC4...?x..P..O
I.v[s...[...i.p.?kY)..}t..b........-b...n/...>E..~.P.N........|d_..E...*...”V....q.1..F[$(..@..n%V#.VU.(E$....s......I..W.......I<]...+{_..}....W..g..
TXm.u@.........;6..5......#..u?..h..D.5.....qi..L..L..........._:7.o.|'.C..xw....v..V....%.Uv.Wf...i...h....o.]xv.1.^[Cj...@..#.9`..|.V9..Kd.....=*...C.Y7yK[...];.e.;..O.c+.;.h.O.W.NZ...\.<....@.)%....G.FFT..9.....=4...)$.....w....Y...y$.I....)I._........V.....
--BY--
(2) Offline MSRP issuing message carrying original SIP group chat message information:
a// MSRP message header;
MSRP msrprequest22044SEND
To-Path:msrp://10.71.174.102:7654/hwWGSEXQqYEPa3;tcp
From-Path:msrp://10.66.139.77:22100/22100;tcp
Message-ID:msrprequest22044
Byte-Range:1-832/832
Success-Report:no
Failure-Report:yes
Content-Type:multipart/mixed;boundary=BY
Content-Length:766
--BY
the message header of the// original SIP message is mapped to the relevant field of the MSRP;
X-Rcs-From:“sip:12520001XXXXXXXXXXXX@as1.gc.rcs.chinamobile.com“;isfocus
X-Rcs-To:”sip:+8644637333586@192.80.80.106:5060”
X-Rcs-Conversation-ID:z9hG4bK*2nmu1fn53z1z
X-Rcs-Service-Type:group-chat
Content-Type:message/cpim
message body of the// original SIP message: CPIM, optionally, herein means a request to return a status report;
From:<sip:+8692316989868@192.80.80.106:5060>
To:<sip:+8644637333586@192.80.80.106:5060>
DateTime:2016-01-02T09:08:07+08:00
Failure-Report:no
message body of the// original SIP message: content to be transmitted;
Content-Type:text/plain;charset=“UTF-8”
Content-Length:11
msrpcontent
--BY--
(3) Hybrid offline delivery message carrying several types of message information as described above:
A// MSRP message header;
MSRP msrprequest22044SEND
To-Path:msrp://10.71.174.102:7654/hwWGSEXQqYEPa3;tcp
From-Path:msrp://10.66.139.77:22100/22100;tcp
Message-ID:msrprequest22044
Byte-Range:1-832/832
Success-Report:no
Failure-Report:yes
Content-Type:multipart/mixed;boundary=BY
Content-Length:766
first text message
--BY
The message header of the// original SIP message is mapped to the relevant field of the MSRP;
X-Rcs-From:“tel:+8628776066199”
X-Rcs-To:”tel:+8615123922189”
X-Rcs-Conversation-ID:z9hG4bK*244xli8ako82
X-Rcs-Service-Type:page
Content-Type:message/cpim
Content-Length:302
message body of the// original SIP message: CPIM, optionally, herein means a request to return a status report;
From:<tel:13983228535>
To:<tel:15123922189>
NS:imdn<urn:ietf:params:imdn>
imdn.Message-ID:8692320
DateTime:2015-12-24T16:21:41.704+08:00
imdn.Disposition-Notification:positive-delivery,display,negative-delivery
message body of the// original SIP message: content to be transmitted;
Content-type:text/plain;charset=UTF-8
Content-length:14
11111111111111
second piece message
--BY
The message header of the// original SIP message is mapped to the relevant field of the MSRP;
X-Rcs-From:“tel:+8628776066199”
X-Rcs-To:”tel:+8615123922189”
X-Rcs-Conversation-ID:z9hG4bK*cj2nkdo6n6m7
X-Rcs-Service-Type:file
X-Rcs-File-selector:name:”imgetosend.jpg”type:image/jpeg size:1216788hash:sha-1:87:73:52:10:93:81:27:43:08:34:45:41:01:77:38:64:63:30:94:39
X-Rcs-File-transfer-Id:12241621461001501400000003
Content-Type:message/cpim
Content-Length:2010
message body of the// original SIP message: CPIM, optionally, herein means a request to return a status report;
From:<tel:13983228535>
To:<tel:15123922189>
NS:imdn<urn:ietf:params:imdn>
imdn.Message-ID:8692320
DateTime:2015-12-24T16:21:41.704+08:00
imdn.Disposition-Notification:positive-delivery,display,negative-delivery
message body of the// original SIP message: content to be transmitted;
Content-Type:image/jpeg
Content-Transfer-Encoding:binary
Content-ID:<8785977>
Content-Disposition:icon
Content-Length:1261
......JFIF.....`.`.....”Exif..MM.*.........................C..............................................................C............................................................................”......................................
.....................}........!1A..Qa.”q.2....#B...R..$3br..
.....%&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz........................................................................................................
.....................w.......!1..AQ.aq.”2...B.....#3R..br.
.$4.%.....&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz....................................................................................?........?..L$.....7.y...wiih.y.<.t.H.(P...!.............Gq..K\.>h....u....1..A;......2.T.f....c_x/.?.-GG........!..nZh.E..B..F..K...U.....T.....oT./e...N....C.-...'..J..mH...!GC4...?x..P..O
I.v[s...[...i.p.?kY)..}t..b........-b...n/...>E..~.P.N........|d_..E...*...”V....q.1..F[$(..@..n%V#.VU.(E$....s......I..W.......I<]...+{_..}....W..g..
TXm.u@.........;6..5......#..u?..h..D.5.....qi..L..L..........._:7.o.|'.C..xw....v..V....%.Uv.Wf...i...h....o.]xv.1.^[Cj...@..#.9`..|.V9..Kd.....=*...C.Y7yK[...];.e.;..O.c+.;.h.O.W.NZ...\.<....@.)%....G.FFT..9.....=4...)$.....w....Y...y$.I....)I._........V.....
/(third text message)
--BY
The message header of the// original SIP message is mapped to the relevant field of the MSRP;
X-Rcs-From:“tel:+8635236547505”
X-Rcs-To:”tel:+8615123922189”
X-Rcs-Conversation-ID:z9hG4bK*pnw8urqit4ln
X-Rcs-Service-Type:large
Content-Type:message/cpim
Content-Length:188
message body of the// original SIP message: CPIM, optionally
From:<tel:+8635236547505>
To:<tel:+8615900000000>
NS:imdn<urn:ietf:params:imdn>
imdn.Message-ID:W8ecb6pd
DateTime:2012-09-20T10:42:31.35+08:00
imdn.Disposition-Notification:positive-delivery,display
Message body of the// original SIP message: content to be transmitted;
Content-Type:text/plain;charset=UTF-8
Content-Length:5
hello
a// fourth group chat message;
--BY
the message header of the// original SIP message is mapped to the relevant field of the MSRP;
X-Rcs-From:“sip:12520001XXXXXXXXXXXX@as1.gc.rcs.chinamobile.com”;isfocus
X-Rcs-To:”tel:+8615123922189”
X-Rcs-Conversation-ID:z9hG4bK*2nmu1fn53z1z
X-Rcs-Service-Type:group-chat
Content-Type:message/cpim
message body of the// original SIP message: CPIM, optionally
From:<sip:+8692316989868@192.80.80.106:5060>
To:<sip:+8644637333586@192.80.80.106:5060>
DateTime:2016-01-02T09:08:07+08:00
Failure-Report:no
Message body of the// original SIP message: content to be transmitted;
Content-Type:text/plain;charset=“UTF-8”
Content-Length:11
msrpcontent
a// fifth group chat message (group invitation);
--BY
the message header of the// original SIP message is mapped to the relevant field of the MSRP;
X-Rcs-From:“sip:12520001XXXXXXXXXXXX@as1.gc.rcs.chinamobile.com”;isfocus
X-Rcs-To:”tel:+8615123922189”
X-Rcs-Conversation-ID:z9hG4bK*2nmu1fn53zdd
X-Rcs-Service-Type:group-invite
X-Rcs-Referred-By:“tel:+8692316989868”
X-Rcs-Subject:nihao
Content-Type:text/plain
Content-Length:0
--BY--
from the above, the scheme provided by the embodiment of the invention mainly relates to:
1. a new feature tag is extended to represent a batch offline message service. The client supporting this function carries this new feature tag in SIP REGESTER message at registration to inform the server that the client has the optimized offline message receiving capability.
2. After the client is online, an offline message session is created, and various offline messages are issued in a MSRP mixed Mode, such as Pager Mode message, large Mode message and file transmission message, wherein the service types comprise 1-1 messages and group chat messages (including group chat invites, offline notifications and the like). One MSRP message may contain a plurality of original SIP messages.
3. In the MSRP message body, each offline message content is encoded, some parameters are extended to correspond to the important header field parameters in the original SIP message, and a shorthand parameter format (optional use when supported by the client) is provided to reduce the message body size. Each MSRP message carries a key message header (after mapping) and a message body of the original SIP message, and after the terminal receives the key message header and the message body, the terminal can map back to the original SIP message.
4. For group chat messages (including Pager, large, file transfer), an isfocus parameter is carried in X-Rcs-From, and the group chat message and the one-to-one message are distinguished by this parameter.
In summary, in the prior art, an offline message is issued through an SIP protocol, each SIP message can only bear one offline message, if more multimedia files are transmitted, the SIP session needs to be re-established for each multimedia file, so that the efficiency is low, the time consumption is long, and the user experience is affected. The scheme only needs to establish the SIP session once, and then all offline messages are carried by MSRP and issued to the receiver; the technical means also supports that a plurality of offline messages are placed in one MSRP message for transmission, so that the transmission efficiency is greatly improved.
In addition, test data show (taking 50 pieces of picture information as an example), compared with the prior art, the scheme provided by the embodiment of the invention has the advantages that the power consumption is reduced by 67%, the flow is reduced by 29%, and the transmission time is reduced by 97%.
The embodiment of the invention also provides an offline message transmission device, which is applied to a server, as shown in fig. 4, and comprises:
a first establishing module 41, configured to establish an offline message session between the server and the terminal;
a first encoding module 42, configured to encode at least two offline messages of the terminal as a message session relay protocol MSRP message in a case that the terminal supports batch delivery of the offline messages;
a first sending module 43, configured to send the MSRP message to the terminal.
The offline message transmission device provided by the embodiment of the invention establishes an offline message session between the server and the terminal; under the condition that the terminal supports batch issuing of offline messages, encoding at least two offline messages of which the receiving party is the terminal into a Message Session Relay Protocol (MSRP) message; sending the MSRP message to the terminal; the method can realize batch transmission of offline messages, remarkably improve the message transmission efficiency and reduce the terminal power consumption, the flow, the transmission time and the like under the condition of more multimedia messages; the problem of low efficiency of an offline message transmission scheme in the prior art is well solved.
Further, the offline message transmission device further includes: the first receiving module is used for receiving a registration message sent by the terminal before the offline message session between the server and the terminal is established, wherein the registration message carries a newly added feature identifier; and the first processing module is used for carrying out network registration on the terminal according to the registration message and determining that the terminal supports offline message batch issuing according to the newly added feature identifier.
Specifically, the first encoding module includes: the first coding sub-module is used for coding at least two offline messages of which the receiving party is the terminal into an MSRP message according to the corresponding relation of the preset parameters; wherein, the preset parameter corresponding relation comprises: a first correspondence between a preset header field parameter and a preset extension parameter in the offline message, where the MSRP message includes at least one preset extension parameter.
Further, the offline message transmission device further includes: the first agreeing module is used for agreeing the corresponding relation of the preset parameters with the terminal before encoding at least two offline messages of which the receiving party is the terminal into one MSRP message according to the corresponding relation of the preset parameters.
Wherein the preset header field parameters include at least one of the following parameters: message sender information parameters; message receiver information parameters; session identification information parameters; an identification parameter identifying a mode or a service type of the offline message; file selector information parameters; file transfer identification information parameters; information parameters of a service initiator; group meeting place name information parameters; file characteristic information parameters.
Specifically, in the case that the offline message is a group chat message, the message sender information parameter includes a group chat identifier sub-parameter.
In an embodiment of the present invention, the first encoding module includes: the second coding submodule is used for coding at least two different types of offline messages of which the receiving party is the terminal to obtain an MSRP message; wherein the at least two different types of offline messages include at least one of a page-mode message, a large text-mode message, and a file transfer message; the traffic types of the at least two different types of offline messages include at least one of a one-to-one message type and a group chat message type.
Further, the offline message transmission device further includes: the second processing module is used for sending an end notification message to the terminal after sending all MSRP messages to the terminal; the second receiving module is used for receiving a response message fed back by the terminal according to the ending notification message; wherein, the all MSRP messages are at least one MSRP message obtained according to all offline messages of the terminal by the receiver.
Thus, the message transmission efficiency can be remarkably improved.
The implementation embodiments of the offline message transmission method on the server side are applicable to the embodiments of the offline message transmission device, and the same technical effects can be achieved.
The embodiment of the invention also provides an offline message transmission device, which is applied to the terminal, as shown in fig. 5, and comprises:
a second establishing module 51, configured to establish an offline message session between the terminal and a server;
a third receiving module 52, configured to receive a message session relay protocol MSRP message sent by the server;
and the first parsing module 53 is configured to parse the MSRP message to obtain at least two offline messages with the receiving party being the terminal.
The offline message transmission device provided by the embodiment of the invention establishes an offline message session between the terminal and the server; receiving a Message Session Relay Protocol (MSRP) message issued by the server; analyzing the MSRP message to obtain at least two offline messages of which the receiving party is the terminal; the method can realize batch transmission of offline messages, remarkably improve the message transmission efficiency and reduce the terminal power consumption, the flow, the transmission time and the like under the condition of more multimedia messages; the problem of low efficiency of an offline message transmission scheme in the prior art is well solved.
Further, the offline message transmission device further includes: a second sending module, configured to send a registration message to a server before an offline message session between the terminal and the server is established; the registration message carries a new feature identifier, and the new feature identifier is used for indicating that the terminal supports batch issuing of offline messages.
Specifically, the first parsing module includes: the first analysis submodule is used for analyzing the MSRP message according to the corresponding relation of the preset parameters to obtain at least two offline messages of which the receiving party is the terminal; wherein, the preset parameter corresponding relation comprises: a first correspondence between a preset header field parameter and a preset extension parameter in the offline message, where the MSRP message includes at least one preset extension parameter.
Further, the offline message transmission device further includes: and the second specifying module is used for specifying the corresponding relation of the preset parameters with the server before analyzing the MSRP message to obtain at least two offline messages of which the receiving party is the terminal.
Wherein the preset header field parameters include at least one of the following parameters: message sender information parameters; message receiver information parameters; session identification information parameters; an identification parameter identifying a mode or a service type of the offline message; file selector information parameters; file transfer identification information parameters; information parameters of a service initiator; group meeting place name information parameters; file characteristic information parameters.
Specifically, in the case that the offline message is a group chat message, the message sender information parameter includes a group chat identifier sub-parameter.
In an embodiment of the present invention, the first parsing module includes: the second analysis submodule is used for analyzing the MSRP message to obtain at least two off-line messages with different types, wherein the receiving party is the terminal; wherein the at least two different types of offline messages include at least one of a page-mode message, a large text-mode message, and a file transfer message; the traffic types of the at least two different types of offline messages include at least one of a one-to-one message type and a group chat message type.
Further, the offline message transmission device further includes: a fourth receiving module, configured to receive an end notification message sent by the server after all MSRP messages are sent; the first feedback module is used for feeding back a response message to the server according to the ending notification message; wherein, the all MSRP messages are at least one MSRP message obtained by the server according to all offline messages of the terminal by the receiver.
Thus, the message transmission efficiency can be remarkably improved.
The implementation embodiments of the offline message transmission method at the terminal side are applicable to the embodiments of the offline message transmission device, and the same technical effects can be achieved.
The embodiment of the invention also provides a server, as shown in fig. 6, including: a processor 61 and a transceiver 62;
the processor 61 is configured to establish an offline message session between the server and the terminal;
under the condition that the terminal supports batch issuing of offline messages, encoding at least two offline messages of which the receiving party is the terminal into a Message Session Relay Protocol (MSRP) message;
the MSRP message is sent to the terminal via the transceiver 62.
The server provided by the embodiment of the invention establishes an offline message session between the server and the terminal; under the condition that the terminal supports batch issuing of offline messages, encoding at least two offline messages of which the receiving party is the terminal into a Message Session Relay Protocol (MSRP) message; sending the MSRP message to the terminal; the method can realize batch transmission of offline messages, remarkably improve the message transmission efficiency and reduce the terminal power consumption, the flow, the transmission time and the like under the condition of more multimedia messages; the problem of low efficiency of an offline message transmission scheme in the prior art is well solved.
Further, the processor is further configured to: before an offline message session between the server and the terminal is established, receiving a registration message sent by the terminal through the transceiver, wherein the registration message carries a newly added feature identifier; and registering the terminal in a network according to the registration message, and determining that the terminal supports batch issuing of offline messages according to the newly added feature identifier.
Specifically, the processor is specifically configured to: according to the corresponding relation of the preset parameters, encoding at least two offline messages of which the receiving party is the terminal into an MSRP message; wherein, the preset parameter corresponding relation comprises: a first correspondence between a preset header field parameter and a preset extension parameter in the offline message, where the MSRP message includes at least one preset extension parameter.
Further, the processor is further configured to: and before encoding at least two offline messages of which the receiving party is the terminal into one MSRP message according to the preset parameter corresponding relation, the preset parameter corresponding relation is agreed between the receiving party and the terminal.
Wherein the preset header field parameters include at least one of the following parameters: message sender information parameters; message receiver information parameters; session identification information parameters; an identification parameter identifying a mode or a service type of the offline message; file selector information parameters; file transfer identification information parameters; information parameters of a service initiator; group meeting place name information parameters; file characteristic information parameters.
Specifically, in the case that the offline message is a group chat message, the message sender information parameter includes a group chat identifier sub-parameter.
In an embodiment of the present invention, the processor is specifically configured to: encoding at least two off-line messages of different types of which the receiving party is the terminal to obtain an MSRP message; wherein the at least two different types of offline messages include at least one of a page-mode message, a large text-mode message, and a file transfer message; the traffic types of the at least two different types of offline messages include at least one of a one-to-one message type and a group chat message type.
Further, the processor is further configured to: after all MSRP messages are sent to the terminal, sending an end notification message to the terminal through the transceiver; receiving a response message fed back by the terminal according to the end notification message through the transceiver; wherein, the all MSRP messages are at least one MSRP message obtained according to all offline messages of the terminal by the receiver.
Thus, the message transmission efficiency can be remarkably improved.
The implementation embodiments of the offline message transmission method on the server side are applicable to the embodiments of the server, and the same technical effects can be achieved.
The embodiment of the invention also provides a terminal, as shown in fig. 7, including: a processor 71 and a transceiver 72;
the processor 71 is configured to establish an offline message session between the terminal and a server;
receiving a message session relay protocol, MSRP, message issued by said server via said transceiver 72;
and analyzing the MSRP message to obtain at least two offline messages of which the receiving sides are the terminals.
The terminal provided by the embodiment of the invention establishes an offline message session between the terminal and a server; receiving a Message Session Relay Protocol (MSRP) message issued by the server; analyzing the MSRP message to obtain at least two offline messages of which the receiving party is the terminal; the method can realize batch transmission of offline messages, remarkably improve the message transmission efficiency and reduce the terminal power consumption, the flow, the transmission time and the like under the condition of more multimedia messages; the problem of low efficiency of an offline message transmission scheme in the prior art is well solved.
Further, the processor is further configured to: transmitting a registration message to a server through the transceiver before establishing an offline message session between the terminal and the server; the registration message carries a new feature identifier, and the new feature identifier is used for indicating that the terminal supports batch issuing of offline messages.
Specifically, the processor is specifically configured to: analyzing the MSRP message according to the corresponding relation of the preset parameters to obtain at least two offline messages of which the receiving party is the terminal; wherein, the preset parameter corresponding relation comprises: a first correspondence between a preset header field parameter and a preset extension parameter in the offline message, where the MSRP message includes at least one preset extension parameter.
Further, the processor is further configured to: and before analyzing the MSRP message to obtain at least two offline messages of which the receiving party is the terminal, the corresponding relation of the preset parameters is agreed between the MSRP message and the server.
Wherein the preset header field parameters include at least one of the following parameters: message sender information parameters; message receiver information parameters; session identification information parameters; an identification parameter identifying a mode or a service type of the offline message; file selector information parameters; file transfer identification information parameters; information parameters of a service initiator; group meeting place name information parameters; file characteristic information parameters.
Specifically, in the case that the offline message is a group chat message, the message sender information parameter includes a group chat identifier sub-parameter.
In an embodiment of the present invention, the processor is specifically configured to: analyzing the MSRP message to obtain at least two off-line messages with different types, wherein the receiving party is the terminal; wherein the at least two different types of offline messages include at least one of a page-mode message, a large text-mode message, and a file transfer message; the traffic types of the at least two different types of offline messages include at least one of a one-to-one message type and a group chat message type.
Further, the processor is further configured to: receiving, by the transceiver, an end notification message sent by the server after all MSRP messages are sent; feeding back a response message to the server through the transceiver according to the end notification message; wherein, the all MSRP messages are at least one MSRP message obtained by the server according to all offline messages of the terminal by the receiver.
Thus, the message transmission efficiency can be remarkably improved.
The implementation embodiments of the offline message transmission method at the terminal side are applicable to the embodiments of the terminal, and the same technical effects can be achieved.
The embodiment of the invention also provides communication equipment, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor; the processor realizes the offline message transmission method of the server side when executing the program; or alternatively
And the processor realizes the offline message transmission method of the terminal side when executing the program.
The implementation embodiments of the offline message transmission method on the server side or the terminal side are applicable to the embodiments of the communication device, and the corresponding same technical effects can be achieved.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when being executed by a processor, implements the steps in the server-side offline message transmission method; or alternatively
The program, when executed by the processor, implements the steps in the above-described off-line message transmission method on the terminal side.
The embodiments of the method for transmitting the offline message on the server side or the terminal side are applicable to the embodiments of the computer readable storage medium, and the corresponding same technical effects can be achieved.
It should be noted that many of the functional components described in this specification are referred to as modules/sub-modules in order to more particularly emphasize their implementation independence.
In embodiments of the invention, the modules/sub-modules may be implemented in software for execution by various types of processors. An identified module of executable code may, for instance, comprise one or more physical or logical blocks of computer instructions which may, for instance, be organized as an object, procedure, or function. Nevertheless, the executables of an identified module need not be physically located together, but may comprise disparate instructions stored in different bits which, when joined logically together, comprise the module and achieve the stated purpose for the module.
Indeed, a module of executable code may be a single instruction, or many instructions, and may even be distributed over several different code segments, among different programs, and across several memory devices. Likewise, operational data may be identified within modules and may be embodied in any suitable form and organized within any suitable type of data structure. The operational data may be collected as a single data set, or may be distributed over different locations including over different storage devices.
Where a module may be implemented in software, taking into account the level of existing hardware technology, a module may be implemented in software, and one skilled in the art may, without regard to cost, build corresponding hardware circuitry, including conventional Very Large Scale Integration (VLSI) circuits or gate arrays, and existing semiconductors such as logic chips, transistors, or other discrete components, to achieve the corresponding functions. A module may also be implemented in programmable hardware devices such as field programmable gate arrays, programmable array logic, programmable logic devices or the like.
While the foregoing is directed to the preferred embodiments of the present invention, it will be appreciated by those skilled in the art that various modifications and changes can be made without departing from the principles of the present invention, and such modifications and changes should also be considered as being within the scope of the present invention.

Claims (18)

1. An offline message transmission method applied to a server, comprising the following steps:
establishing an offline message session between the server and a terminal;
under the condition that the terminal supports batch issuing of offline messages, encoding at least two offline messages of which the receiving party is the terminal into a Message Session Relay Protocol (MSRP) message;
sending the MSRP message to the terminal;
wherein the encoding at least two offline messages with the receiving party being the terminal into one message session relay protocol MSRP message includes:
according to the corresponding relation of the preset parameters, encoding at least two offline messages of which the receiving party is the terminal into an MSRP message;
wherein, the preset parameter corresponding relation comprises: a first correspondence between a preset header field parameter and a preset extension parameter in the offline message, where the MSRP message includes at least one preset extension parameter.
2. The offline message transmission method according to claim 1, characterized in that before establishing an offline message session between the server and terminal, it further comprises:
receiving a registration message sent by the terminal, wherein the registration message carries a newly added feature identifier;
and registering the terminal in a network according to the registration message, and determining that the terminal supports batch issuing of offline messages according to the newly added feature identifier.
3. The offline message transmission method according to claim 1, characterized in that the preset header field parameters include at least one of the following parameters:
message sender information parameters;
message receiver information parameters;
session identification information parameters;
an identification parameter identifying a mode or a service type of the offline message;
file selector information parameters;
file transfer identification information parameters;
information parameters of a service initiator;
group meeting place name information parameters; and
file characteristic information parameters.
4. An offline message transmission method according to claim 3, characterized in that in case the offline message is a group chat message, the message sender information parameter comprises a group chat identifier sub-parameter.
5. The method for transmitting offline messages according to claim 1, wherein said encoding at least two offline messages with the receiver being the terminal into one message session relay protocol MSRP message comprises:
encoding at least two off-line messages of different types of which the receiving party is the terminal to obtain an MSRP message;
wherein the at least two different types of offline messages include at least one of a page-mode message, a large text-mode message, and a file transfer message;
the traffic types of the at least two different types of offline messages include at least one of a one-to-one message type and a group chat message type.
6. An offline message transmission method applied to a terminal, comprising the following steps:
establishing an offline message session between the terminal and a server;
receiving a Message Session Relay Protocol (MSRP) message issued by the server;
analyzing the MSRP message to obtain at least two offline messages of which the receiving party is the terminal;
the analyzing the MSRP message to obtain at least two offline messages with the receiving party being the terminal includes:
analyzing the MSRP message according to the corresponding relation of the preset parameters to obtain at least two offline messages of which the receiving party is the terminal;
Wherein, the preset parameter corresponding relation comprises: a first correspondence between a preset header field parameter and a preset extension parameter in the offline message, where the MSRP message includes at least one preset extension parameter.
7. The offline message transmission method according to claim 6, characterized in that before establishing an offline message session between the terminal and a server, it further comprises:
sending a registration message to the server;
the registration message carries a new feature identifier, and the new feature identifier is used for indicating that the terminal supports batch issuing of offline messages.
8. The offline message transmission method according to claim 6, wherein the preset header field parameters include at least one of the following parameters:
message sender information parameters;
message receiver information parameters;
session identification information parameters;
an identification parameter identifying a mode or a service type of the offline message;
file selector information parameters;
file transfer identification information parameters;
information parameters of a service initiator;
group meeting place name information parameters; and
file characteristic information parameters.
9. The offline message transmission method according to claim 8, wherein in case the offline message is a group chat message, the message sender information parameter includes a group chat identifier sub-parameter.
10. The method for transmitting offline messages according to claim 6, wherein said parsing the MSRP message to obtain at least two offline messages with the receiving party being the terminal includes:
analyzing the MSRP message to obtain at least two off-line messages with different types, wherein the receiving party is the terminal;
wherein the at least two different types of offline messages include at least one of a page-mode message, a large text-mode message, and a file transfer message;
the traffic types of the at least two different types of offline messages include at least one of a one-to-one message type and a group chat message type.
11. An offline message transmission device applied to a server, comprising:
a first establishing module, configured to establish an offline message session between the server and a terminal;
the first coding module is used for coding at least two offline messages of which the receiver is the terminal into a Message Session Relay Protocol (MSRP) message under the condition that the terminal supports the batch issuing of the offline messages;
the first sending module is used for sending the MSRP message to the terminal;
wherein the first encoding module comprises:
The first coding sub-module is used for coding at least two offline messages of which the receiving party is the terminal into an MSRP message according to the corresponding relation of the preset parameters;
wherein, the preset parameter corresponding relation comprises: a first correspondence between a preset header field parameter and a preset extension parameter in the offline message, where the MSRP message includes at least one preset extension parameter.
12. The offline message transmitting apparatus according to claim 11, further comprising:
the first receiving module is used for receiving a registration message sent by the terminal before the offline message session between the server and the terminal is established, wherein the registration message carries a newly added feature identifier;
and the first processing module is used for carrying out network registration on the terminal according to the registration message and determining that the terminal supports offline message batch issuing according to the newly added feature identifier.
13. An offline message transmission device applied to a terminal, comprising:
a second establishing module, configured to establish an offline message session between the terminal and a server;
a third receiving module, configured to receive a message session relay protocol MSRP message sent by the server;
The first analysis module is used for analyzing the MSRP message to obtain at least two offline messages of which the receiving party is the terminal;
wherein, the first parsing module includes:
the first analysis submodule is used for analyzing the MSRP message according to the corresponding relation of the preset parameters to obtain at least two offline messages of which the receiving party is the terminal;
wherein, the preset parameter corresponding relation comprises: a first correspondence between a preset header field parameter and a preset extension parameter in the offline message, where the MSRP message includes at least one preset extension parameter.
14. The offline message transmitting apparatus according to claim 13, further comprising:
a second sending module, configured to send a registration message to a server before an offline message session between the terminal and the server is established;
the registration message carries a new feature identifier, and the new feature identifier is used for indicating that the terminal supports batch issuing of offline messages.
15. A server, comprising: a processor and a transceiver;
the processor is used for establishing an offline message session between the server and the terminal;
Under the condition that the terminal supports batch issuing of offline messages, encoding at least two offline messages of which the receiving party is the terminal into a Message Session Relay Protocol (MSRP) message;
transmitting the MSRP message to the terminal through the transceiver;
wherein, the processor is specifically configured to:
according to the corresponding relation of the preset parameters, encoding at least two offline messages of which the receiving party is the terminal into an MSRP message;
wherein, the preset parameter corresponding relation comprises: a first correspondence between a preset header field parameter and a preset extension parameter in the offline message, where the MSRP message includes at least one preset extension parameter.
16. A terminal, comprising: a processor and a transceiver;
the processor is used for establishing an offline message session between the terminal and the server;
receiving a Message Session Relay Protocol (MSRP) message issued by the server through the transceiver;
analyzing the MSRP message to obtain at least two offline messages of which the receiving party is the terminal;
wherein, the processor is specifically configured to: analyzing the MSRP message according to the corresponding relation of the preset parameters to obtain at least two offline messages of which the receiving party is the terminal;
Wherein, the preset parameter corresponding relation comprises: a first correspondence between a preset header field parameter and a preset extension parameter in the offline message, where the MSRP message includes at least one preset extension parameter.
17. A communication device comprising a memory, a processor and a computer program stored on the memory and executable on the processor; -wherein the processor, when executing the program, implements the offline message transmission method according to any one of claims 1 to 5; or alternatively
The processor, when executing the program, implements the offline message transmission method according to any one of claims 6 to 10.
18. A computer readable storage medium having stored thereon a computer program, characterized in that the program when executed by a processor realizes the steps in the offline message transmission method according to any of claims 1 to 5; or alternatively
The program, when executed by a processor, implements the steps of the offline message-transmitting method of any of claims 6 to 10.
CN201910640959.4A 2019-07-16 2019-07-16 Offline message transmission method and device, server and terminal Active CN112243012B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910640959.4A CN112243012B (en) 2019-07-16 2019-07-16 Offline message transmission method and device, server and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910640959.4A CN112243012B (en) 2019-07-16 2019-07-16 Offline message transmission method and device, server and terminal

Publications (2)

Publication Number Publication Date
CN112243012A CN112243012A (en) 2021-01-19
CN112243012B true CN112243012B (en) 2023-06-30

Family

ID=74166797

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910640959.4A Active CN112243012B (en) 2019-07-16 2019-07-16 Offline message transmission method and device, server and terminal

Country Status (1)

Country Link
CN (1) CN112243012B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115002137B (en) * 2022-08-03 2022-10-21 广州此声网络科技有限公司 Offline message processing method and device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1801814A (en) * 2005-10-11 2006-07-12 华为技术有限公司 Off-line message transmitting and receiving method
CN1859380A (en) * 2005-07-28 2006-11-08 华为技术有限公司 Method for obtaining off line message
CN102685138A (en) * 2012-05-21 2012-09-19 华为技术有限公司 Offline message pushing method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7561595B2 (en) * 2005-09-30 2009-07-14 Nokia Corporation Method and apparatus for instant messaging
CN100411394C (en) * 2006-03-03 2008-08-13 华为技术有限公司 System and method for packaging transmission message in message conversation trunking protocol
CN101087269A (en) * 2006-06-09 2007-12-12 华为技术有限公司 Method and system for transmitting message service data
US9294889B2 (en) * 2012-07-13 2016-03-22 Telefonaktiebolaget Lm Ericsson (Publ) System and method for offline voicemail deposit
CN105471841B (en) * 2015-11-12 2018-09-28 中国电子科技集团公司第三十研究所 A kind of transmission method and device of the multi-service data based on MSRP agreements
CN108632304B (en) * 2017-03-16 2019-10-22 中国移动通信有限公司研究院 A kind of media data Multipath Transmission method and its system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859380A (en) * 2005-07-28 2006-11-08 华为技术有限公司 Method for obtaining off line message
CN1801814A (en) * 2005-10-11 2006-07-12 华为技术有限公司 Off-line message transmitting and receiving method
CN102685138A (en) * 2012-05-21 2012-09-19 华为技术有限公司 Offline message pushing method and device

Also Published As

Publication number Publication date
CN112243012A (en) 2021-01-19

Similar Documents

Publication Publication Date Title
US7469299B2 (en) Bridging user agent and a proxy server for supporting network services
CN102025715B (en) SIP (Session Initiation Protocol) protocol-based multimedia network communication method
US20070070988A1 (en) Method For Transmitting Deferred Messages
CN100542172C (en) A kind of deferred information method of sending and receiving
US9204264B2 (en) Exchange of messages and sessions
US20070226295A1 (en) Method and apparatuses for retrieving messages
EP2028815A1 (en) The method and system for delivering the message service data
CN1859380B (en) Method for obtaining off line message
US20080270553A1 (en) Method and System for Instant Notification of Communication Block Information
US20140173010A1 (en) Group communication for a variety of media types and devices
CN104468145A (en) Group message processing method and device based on RCS
US20080114835A1 (en) Method and system for using chat room in instant message system by instant message user not belonging to the instant message system
US8014775B2 (en) Method and system for implementing messaging services and a message application server
US9350695B2 (en) Method for transferring and storing CPM service message and service thereof
WO2008074235A1 (en) Interconnection methods and message interconnection gateways between message systems
CN100411394C (en) System and method for packaging transmission message in message conversation trunking protocol
CN101834730A (en) Multimedia conferencing control method and system
CN102223293A (en) Routing method of information requests and processing system
CN101355533B (en) Communication interconnect method and apparatus
CN112243012B (en) Offline message transmission method and device, server and terminal
CN106713308B (en) Method and device for transmitting media stream in real time
US9444649B2 (en) Method for sending and receiving session history in a communications system
US8898235B2 (en) Method and devices for message disposition notification after session termination
US8861509B2 (en) Communication devices and methods for generating a message
CN105282115A (en) Method and device for realization of RCS (Rich Communication Suite) system communication

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant