CN112243012A - 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
CN112243012A
CN112243012A CN201910640959.4A CN201910640959A CN112243012A CN 112243012 A CN112243012 A CN 112243012A CN 201910640959 A CN201910640959 A CN 201910640959A CN 112243012 A CN112243012 A CN 112243012A
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.)
Granted
Application number
CN201910640959.4A
Other languages
Chinese (zh)
Other versions
CN112243012B (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

Landscapes

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

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 the terminal; under the condition that the terminal supports batch issuing of the offline messages, at least two offline messages of which the receiving party is the terminal are coded into a Message Session Relay Protocol (MSRP) message; and sending the MSRP message to the terminal. The scheme can realize batch transmission of the offline messages, can obviously improve the message transmission efficiency and reduce the terminal power consumption, flow, transmission time and the like under the condition of more multimedia messages; the problem that an offline message transmission scheme in the prior art is low in efficiency 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 an offline message transmission method, an offline message transmission device, a server, and a terminal.
Background
In the converged communication system, if a user is not on-line, the server stores the message to be sent to the user as an off-line message, and after the user is on-line, the server sends the off-line message to the user. The existing offline message sending mode is a single sending mode, namely, messages are sent one by one. The issuing efficiency is low, and if the offline messages are more, the time for the client to receive the offline messages is long, so that the use experience of the user is influenced.
Disclosure of Invention
The invention aims to provide an offline message transmission method, an offline message transmission device, a server and a terminal, and solves the problem of low efficiency of an offline message transmission scheme in the prior art.
In order to solve the foregoing technical problem, 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 the terminal;
under the condition that the terminal supports batch issuing of the offline messages, at least two offline messages of which the receiving party is the terminal are coded into a Message Session Relay Protocol (MSRP) message;
and sending the MSRP message to the terminal.
Optionally, before the establishing of the offline message session between the server and the terminal, the method further includes:
receiving a registration message sent by the terminal, wherein the registration message carries a newly-added feature identifier;
and performing network registration on the terminal 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 with the receiver as the terminal into one message session relay protocol MSRP message includes:
coding at least two offline messages of which the receiving party is the terminal into one MSRP message according to the corresponding relation of preset parameters;
wherein, the preset parameter corresponding relation comprises: a first corresponding relation between a preset header field parameter and a preset extension parameter in the off-line message, wherein the MSRP message includes at least one preset extension parameter.
Optionally, before encoding at least two offline messages of which the receiving party is the terminal into one MSRP message according to the preset parameter correspondence, the method further includes:
and appointing the corresponding relation of the preset parameters between the terminal and the terminal.
Optionally, the preset header parameters include at least one of the following parameters:
message sender information parameters;
message receiver information parameters;
a session identification information parameter;
an identification parameter identifying a mode or a service type of the offline message;
a file selector information parameter;
file transmission identification information parameters;
a service initiator information parameter;
a group meeting place name information parameter; and
file characteristic information parameters.
Optionally, when 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 with the receiver as the terminal into one message session relay protocol MSRP message includes:
at least two different types of offline messages of which the receiving party is the terminal are coded to obtain an MSRP message;
wherein the at least two different types of offline messages comprise at least one of a paging mode message, a large text mode message, and a file transfer message;
the service 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 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 end notification message;
and the all MSRP messages are at least one MSRP message obtained according to all offline messages of the terminal of the receiver.
The embodiment of the invention also provides an offline message transmission method, which is applied to a terminal and comprises the following steps:
establishing an offline message session between the terminal and the server;
receiving a Message Session Relay Protocol (MSRP) message sent by the server;
and analyzing the MSRP message to obtain at least two offline messages of which the receiving party is the terminal.
Optionally, before the establishing of the offline message session between the terminal and the server, the method further includes:
sending a registration message to the server;
and the registration message carries a newly added feature identifier, and the newly added feature identifier is used for indicating that the terminal supports batch issuing of the offline message.
Optionally, the analyzing the MSRP message to obtain at least two offline messages with the receiver as the terminal includes:
analyzing the MSRP message according to the corresponding relation of preset parameters to obtain at least two off-line messages of which the receiving party is the terminal;
wherein, the preset parameter corresponding relation comprises: a first corresponding relation between a preset header field parameter and a preset extension parameter in the off-line message, wherein the MSRP message includes at least one preset extension parameter.
Optionally, before analyzing the MSRP message to obtain at least two offline messages with the receiver as the terminal, the method further includes:
and appointing the corresponding relation of the preset parameters with the server.
Optionally, the preset header parameters include at least one of the following parameters:
message sender information parameters;
message receiver information parameters;
a session identification information parameter;
an identification parameter identifying a mode or a service type of the offline message;
a file selector information parameter;
file transmission identification information parameters;
a service initiator information parameter;
a group meeting place name information parameter; and
file characteristic information parameters.
Optionally, when the offline message is a group chat message, the message sender information parameter includes a group chat identifier sub-parameter.
Optionally, the analyzing the MSRP message to obtain at least two offline messages with the receiver as the terminal includes:
analyzing the MSRP message to obtain at least two different types of offline messages of which the receiving party is the terminal;
wherein the at least two different types of offline messages comprise at least one of a paging mode message, a large text mode message, and a file transfer message;
the service 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 includes:
receiving an end notification message sent by the server after all MSRP messages are sent;
feeding back a response message to the server according to the end notification message;
and the all MSRP messages are at least one MSRP message obtained by the server according to all offline messages of the terminal by a receiver.
The embodiment of the invention also provides an offline message transmission device, which is applied to a server and comprises the following steps:
the first establishing module is used for establishing an offline message session between the server and the terminal;
the first coding module is used for coding at least two pieces of offline messages of which the receiving party is the terminal into a Message Session Relay Protocol (MSRP) message under the condition that the terminal supports 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 includes:
a first receiving module, configured to receive a registration message sent by a terminal before an offline message session between the server and the terminal is established, where 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 batch issuing of the offline message according to the newly added feature identifier.
Optionally, the first encoding module includes:
the first coding submodule is used for coding at least two off-line 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 parameter corresponding relation comprises: a first corresponding relation between a preset header field parameter and a preset extension parameter in the off-line message, wherein the MSRP message includes at least one preset extension parameter.
Optionally, the method further includes:
the first agreement module is used for agreeing the preset parameter corresponding relation 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 preset parameter corresponding relation.
Optionally, the preset header parameters include at least one of the following parameters:
message sender information parameters;
message receiver information parameters;
a session identification information parameter;
an identification parameter identifying a mode or a service type of the offline message;
a file selector information parameter;
file transmission identification information parameters;
a service initiator information parameter;
a group meeting place name information parameter; and
file characteristic information parameters.
Optionally, when 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 comprise at least one of a paging mode message, a large text mode message, and a file transfer message;
the service 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 includes:
the second processing module is used for sending an end notification message to the terminal after all the MSRP messages are sent to the terminal;
a second receiving module, configured to receive a response message fed back by the terminal according to the end notification message;
and the all MSRP messages are at least one MSRP message obtained according to all offline messages of the terminal of the receiver.
The embodiment of the invention also provides an offline message transmission device, which is applied to a terminal and comprises the following steps:
the second establishing module is used for establishing an offline message session between the terminal and the 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 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;
and the registration message carries a newly added feature identifier, and the newly added feature identifier is used for indicating that the terminal supports batch issuing of the offline message.
Optionally, the first parsing module includes:
the first analysis submodule is used for analyzing the MSRP message according to the corresponding relation of preset parameters to obtain at least two off-line messages of which the receiving party is the terminal;
wherein, the preset parameter corresponding relation comprises: a first corresponding relation between a preset header field parameter and a preset extension parameter in the off-line message, wherein the MSRP message includes at least one preset extension parameter.
Optionally, the method further includes:
and the second agreement module is used for agreeing the corresponding relation of the preset parameters with the server before the MSRP message is analyzed to obtain at least two offline messages of which the receiving party is the terminal.
Optionally, the preset header parameters include at least one of the following parameters:
message sender information parameters;
message receiver information parameters;
a session identification information parameter;
an identification parameter identifying a mode or a service type of the offline message;
a file selector information parameter;
file transmission identification information parameters;
a service initiator information parameter;
a group meeting place name information parameter; and
file characteristic information parameters.
Optionally, when 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 different types of offline messages of which the receiving party is the terminal;
wherein the at least two different types of offline messages comprise at least one of a paging mode message, a large text mode message, and a file transfer message;
the service 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 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 end notification message;
and the all MSRP messages are at least one MSRP message obtained by the server according to all offline messages of the terminal by a receiver.
An embodiment of the present invention further provides a server, including: 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 the offline messages, at least two offline messages of which the receiving party is the terminal are coded 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 a 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 performing network registration on the terminal 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:
coding at least two offline messages of which the receiving party is the terminal into one MSRP message according to the corresponding relation of preset parameters;
wherein, the preset parameter corresponding relation comprises: a first corresponding relation between a preset header field parameter and a preset extension parameter in the off-line message, wherein the MSRP message includes at least one preset extension parameter.
Optionally, the processor is further configured to:
and appointing the preset parameter corresponding relation 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 preset parameter corresponding relation.
Optionally, the preset header parameters include at least one of the following parameters:
message sender information parameters;
message receiver information parameters;
a session identification information parameter;
an identification parameter identifying a mode or a service type of the offline message;
a file selector information parameter;
file transmission identification information parameters;
a service initiator information parameter;
a group meeting place name information parameter; and
file characteristic information parameters.
Optionally, when 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:
at least two different types of offline messages of which the receiving party is the terminal are coded to obtain an MSRP message;
wherein the at least two different types of offline messages comprise at least one of a paging mode message, a large text mode message, and a file transfer message;
the service 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;
and the all MSRP messages are at least one MSRP message obtained according to all offline messages of the terminal of the receiver.
An embodiment of the present invention further provides a terminal, including: 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 sent by the server through the transceiver;
and analyzing the MSRP message to obtain at least two offline messages of which the receiving party is the terminal.
Optionally, the processor is further configured to:
sending a registration message to a server through the transceiver before establishing an offline message session between the terminal and the server;
and the registration message carries a newly added feature identifier, and the newly added feature identifier is used for indicating that the terminal supports batch issuing of the offline message.
Optionally, the processor is specifically configured to:
analyzing the MSRP message according to the corresponding relation of preset parameters to obtain at least two off-line messages of which the receiving party is the terminal;
wherein, the preset parameter corresponding relation comprises: a first corresponding relation between a preset header field parameter and a preset extension parameter in the off-line message, wherein the MSRP message includes at least one preset extension parameter.
Optionally, the processor is further configured to:
and agreeing the preset parameter corresponding relation with the server before analyzing the MSRP message and obtaining at least two offline messages of which the receiving party is the terminal.
Optionally, the preset header parameters include at least one of the following parameters:
message sender information parameters;
message receiver information parameters;
a session identification information parameter;
an identification parameter identifying a mode or a service type of the offline message;
a file selector information parameter;
file transmission identification information parameters;
a service initiator information parameter;
a group meeting place name information parameter; and
file characteristic information parameters.
Optionally, when 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 different types of offline messages of which the receiving party is the terminal;
wherein the at least two different types of offline messages comprise at least one of a paging mode message, a large text mode message, and a file transfer message;
the service 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 an end notification message sent by the server after all MSRP messages are sent through the transceiver;
feeding back a response message to the server through the transceiver according to the end notification message;
and the all MSRP messages are at least one MSRP message obtained by the server according to all offline messages of the terminal by a receiver.
The embodiment of the invention also provides communication equipment, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor; the processor realizes the off-line message transmission method of the server side when executing the program; or
The processor implements the above-described offline message transmission method at 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, and when the program is executed by a processor, the program realizes the steps in the server-side offline message transmission method; or
The program realizes the steps of the terminal-side offline message transmission method when executed by a processor.
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 the offline messages, at least two offline messages of which the receiving party is the terminal are coded into a Message Session Relay Protocol (MSRP) message; sending the MSRP message to the terminal; the batch transmission of the off-line messages can be realized, the message transmission efficiency can be obviously improved under the condition of more multimedia messages, and the power consumption, the flow, the transmission time and the like of the terminal are reduced; the problem that an offline message transmission scheme in the prior art is low in efficiency is well solved.
Drawings
Fig. 1 is a first flowchart illustrating an offline message transmission method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a second method for transmitting an offline message according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a specific application flow of an offline message transmission method according to an embodiment of the present invention;
fig. 4 is a first schematic structural diagram of an offline message transmission apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an offline message transmission apparatus according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating a server structure according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantages of the present invention more apparent, the following detailed description is given with reference to the accompanying drawings and specific embodiments.
Aiming at the problem of low efficiency of an offline message transmission scheme in the prior art, the invention provides an offline message transmission method which is applied to a server and comprises the following steps as shown in figure 1:
step 11: establishing an offline message session between the server and the terminal;
step 12: under the condition that the terminal supports batch issuing of the offline messages, at least two offline messages of which the receiving party is the terminal are coded 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 the offline message session between the server and the terminal; under the condition that the terminal supports batch issuing of the offline messages, at least two offline messages of which the receiving party is the terminal are coded into a Message Session Relay Protocol (MSRP) message; sending the MSRP message to the terminal; the batch transmission of the off-line messages can be realized, the message transmission efficiency can be obviously improved under the condition of more multimedia messages, and the power consumption, the flow, the transmission time and the like of the terminal are reduced; the problem that an offline message transmission scheme in the prior art is low in efficiency is well solved.
Further, before the establishing of the offline message session between the server and the terminal, the method further includes: receiving a registration message sent by the terminal, wherein the registration message carries a newly-added feature identifier; and performing network registration on the terminal 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 of which the receiving party is the terminal into one message session relay protocol MSRP message includes: coding at least two offline messages of which the receiving party is the terminal into one MSRP message according to the corresponding relation of preset parameters; wherein, the preset parameter corresponding relation comprises: a first corresponding relation between a preset header field parameter and a preset extension parameter in the off-line message, wherein the MSRP message includes at least one preset extension parameter.
Further, before encoding at least two offline messages of which the receiving party is the terminal into one MSRP message according to the preset parameter correspondence, the method further includes: and appointing the corresponding relation of the preset parameters between the terminal and the terminal.
Wherein the preset header parameters include at least one of the following parameters: message sender information parameters; message receiver information parameters; a session identification information parameter; an identification parameter identifying a mode or a service type of the offline message; a file selector information parameter; file transmission identification information parameters; a service initiator information parameter; a group meeting place name information parameter; and file characteristic information parameters.
Specifically, in a case that the offline message is a group chat message, the message sender information parameter includes a group chat identifier sub-parameter.
In this embodiment of the present invention, the encoding at least two offline messages with the receiver as the terminal into one message session relay protocol MSRP message includes: at least two different types of offline messages of which the receiving party is the terminal are coded to obtain an MSRP message; wherein the at least two different types of offline messages comprise at least one of a paging mode message, a large text mode message, and a file transfer message; the service 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 end notification message; and the all MSRP messages are at least one MSRP message obtained according to all offline messages of the terminal of the receiver.
This can significantly improve message transmission efficiency.
An embodiment of the present invention further provides an offline message transmission method, which is applied to a terminal, and as shown in fig. 2, the method includes:
step 21: establishing an offline message session between the terminal and the server;
step 22: receiving a Message Session Relay Protocol (MSRP) message sent by the server;
step 23: and analyzing the MSRP message to obtain at least two offline messages of which the receiving party is the terminal.
The offline message transmission method provided by the embodiment of the invention establishes the offline message session between the terminal and the server; receiving a Message Session Relay Protocol (MSRP) message sent by the server; analyzing the MSRP message to obtain at least two off-line messages of which the receiving party is the terminal; the batch transmission of the off-line messages can be realized, the message transmission efficiency can be obviously improved under the condition of more multimedia messages, and the power consumption, the flow, the transmission time and the like of the terminal are reduced; the problem that an offline message transmission scheme in the prior art is low in efficiency is well solved.
Further, before the establishing of the offline message session between the terminal and the server, the method further includes: sending a registration message to the server; and the registration message carries a newly added feature identifier, and the newly added feature identifier is used for indicating that the terminal supports batch issuing of the offline message.
Specifically, the analyzing the MSRP message to obtain at least two offline messages with the receiver as the terminal includes: analyzing the MSRP message according to the corresponding relation of preset parameters to obtain at least two off-line messages of which the receiving party is the terminal; wherein, the preset parameter corresponding relation comprises: a first corresponding relation between a preset header field parameter and a preset extension parameter in the off-line message, wherein the MSRP message includes at least one preset extension parameter.
Further, before analyzing the MSRP message to obtain at least two offline messages with the receiving party as the terminal, the method further includes: and appointing the corresponding relation of the preset parameters with the server.
Wherein the preset header parameters include at least one of the following parameters: message sender information parameters; message receiver information parameters; a session identification information parameter; an identification parameter identifying a mode or a service type of the offline message; a file selector information parameter; file transmission identification information parameters; a service initiator information parameter; a group meeting place name information parameter; and file characteristic information parameters.
Specifically, in a case that the offline message is a group chat message, the message sender information parameter includes a group chat identifier sub-parameter.
In this embodiment of the present invention, the analyzing the MSRP message to obtain at least two offline messages with the receiver as the terminal includes: analyzing the MSRP message to obtain at least two different types of offline messages of which the receiving party is the terminal; wherein the at least two different types of offline messages comprise at least one of a paging mode message, a large text mode message, and a file transfer message; the service 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; feeding back a response message to the server according to the end notification message; and the all MSRP messages are at least one MSRP message obtained by the server according to all offline messages of the terminal by a receiver.
This can significantly improve message transmission efficiency.
The offline message transmission method provided by the embodiment of the invention is further described below with reference to the server and the terminal.
In view of the above technical problems, an embodiment of the present invention provides an offline message transmission method, which relates to an offline message batch issuing mode, and in particular to: the terminal informs the server of the batch offline Message receiving capacity when registering, the server detects that the server has a plurality of offline messages (including one-to-one messages and group chat messages), the offline messages are coded in batch, and the messages are continuously sent to the client through an MSRP (Message Session Relay Protocol) Message. When the multimedia messages are more, the method can obviously improve the message transmission efficiency. Tests show that the optimized scheme has obvious reduction in terminal power consumption, flow and transmission time.
The scheme provided by the embodiment of the invention mainly relates to the following steps:
one is to extend a new feature tag to represent offline message services, such as "mncn000. mcc460.":
Figure BDA0002131843030000141
when the client (i.e. the terminal) registers, the new feature tag is carried in a SIP (Session Initiation Protocol) register message (i.e. the registration message) to notify the server that the client has the optimized offline message receiving capability (i.e. has the capability of receiving offline messages issued in batches).
The embodiment of the present invention provides an example of a REGISTER request, 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
(II) after the client is online, an offline message session is created, and the server packages and issues offline messages in batch, specifically as shown in FIG. 3, the method 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 (offflexemsg) to the client;
step 34: the client replies a 200OK message to the server to establish an offline message session with the server;
step 351: the server sends MSRP Send information to the client to Send off-line 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 so as to Send off-line information M + 1-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-M + N;
step (transmission of the remaining offline message);
step 37: the server sends a BYE message to the client to inform the client that the off-line message is sent;
step 38: the client replies a 200OK message to the server to notify the server of successful reception of the BYE message and know that the sending of the offline message is finished (i.e. the transmission process of the offline message is finished).
And (III) the MSRP message is coded according to MIME (Multipurpose Internet Mail Extensions) type, and a plurality of offline messages can be separated by separators.
In the MSRP message body, the contents of each offline message are encoded, the following parameters (see the following table) are extended to correspond to important header parameters in the original SIP message (so that the client can identify each offline message), and a shorthand parameter format is provided (optionally used when the client supports) to reduce the message body size:
Figure BDA0002131843030000161
Figure BDA0002131843030000171
for special Service messages such as burn after reading, public account and the like, the X-Rcs-Service-Type can simultaneously carry a plurality of mark parameters (see the following table) so as to obtain a data message; "separate (e.g., sending a text message for a public account, it is necessary to carry: P; pub).
Character string Shorthand writing 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 mark after reading
publicmsg pub Public account message sign
For group chat services (including Pager, Large, file transfer and other services), an isfocus parameter (namely the group chat identifier sub-parameter) can be carried in 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: 12520001 XXXXXXXXXXXXX @ as1.gc. Rcs. china mobile. 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 the service types include 1-1 message, group chat message (including group chat invite, offline notification, etc.).
(IV) offline message packing (bulk) transport mechanisms 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 receiving party (i.e., the terminal) first to determine whether the receiving party has the capability of receiving the message.
Specifically, the session is established by performing capability negotiation at SIP INVITE. An example INVITE request for offline message session creation 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
// SDP, having performed media negotiation with the recipient;
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 From field value is the address of the instant message server to which the user belongs;
Accept-Contact; + g.3gpp.iari-ref ═ urn% 3 Aurn-7% 3A3 gpp-application.ims.iari.rcs.mncn000. mcc460. offlinemg ", indicates an extended fixed value, and the flag is an offline message delivered in bulk.
In the embodiment of the invention, after the session is established, the instant message server sends offline messages to the receiver terminal in batch through the MSRP; an example of a typical MSRP message carrying different message types is as follows:
(1) and (3) sending a message by an off-line MSRP (message Server) carrying the original SIP File Transfer message information:
// 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 related 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 original SIP message: CPIM, optional; this means 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 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) the off-line MSRP carrying the original SIP group chat message information sends down the message:
// 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 related 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 original SIP message: CPIM, optional, here 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 original SIP message: content to be transmitted;
Content-Type:text/plain;charset=“UTF-8”
Content-Length:11
msrpcontent
--BY--
(3) and mixed offline message sending with the message information of the types:
// 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 related 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 original SIP message: CPIM, optional, here 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 original SIP message: content to be transmitted;
Content-type:text/plain;charset=UTF-8
Content-length:14
11111111111111
// second picture message
--BY
The message header of the original SIP message is mapped to the related 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 original SIP message: CPIM, optional, here 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 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 related 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 original SIP message: CPIM, optional
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 original SIP message: content to be transmitted;
Content-Type:text/plain;charset=UTF-8
Content-Length:5
hello
// fourth group chat message;
--BY
the message header of the original SIP message is mapped to the related 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 original SIP message: CPIM, optional
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 original SIP message: content to be transmitted;
Content-Type:text/plain;charset=“UTF-8”
Content-Length:11
msrpcontent
v/fifth group chat message (group invite);
--BY
the message header of the original SIP message is mapped to the related 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--
as can be seen from the above, the scheme provided by the embodiment of the present invention mainly relates to:
1. a new feature tag is extended to represent bulk offline message traffic. The client supporting this function carries this new feature tag in the SIP REGESTER message when registering to inform the server that the client has the optimized offline message reception capability.
2. After the client is on line, an offline message session is established, and various offline messages are issued in a MSRP mixed Mode, such as a Pager Mode message, a Large Mode message and a file transfer message, wherein the service types comprise a 1-1 message and a group chat message (including group chat invitation, offline notification and the like). One MSRP message may contain multiple original SIP messages.
3. In the MSRP message body, each offline message content is encoded, some parameters are extended to correspond to important header parameters in the original SIP message, and a shorthand parameter format (optionally used when supported by the client) is provided to reduce the message body size. Each MSRP message carries the key message head (after mapping) and message body of the original SIP message, and the terminal can map the message back to the original SIP message after receiving the message.
4. For group chat messages (including Pager, Large and file transfer), an isfocus parameter is carried in X-Rcs-From, and the group chat messages and the one-to-one messages are distinguished through the parameter.
In summary, in the prior art, offline messages are issued through the SIP protocol, each SIP message can only carry one offline message, if there are many multimedia files, SIP sessions need to be re-established for transmitting each multimedia file, and media negotiation is performed, which is inefficient, takes long time, and affects user experience. According to the scheme, only one SIP session needs to be established, and then all the off-line messages are borne through the MSRP and are sent to a receiver; and a plurality of off-line messages are also supported to be transmitted in one MSRP message through a technical means, so that the transmission efficiency is greatly improved.
In addition, the test data shows that (taking sending 50 pieces of picture messages 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%.
An embodiment of the present invention further provides an offline message transmission apparatus, which is applied to a server, and as shown in fig. 4, the offline message transmission apparatus includes:
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 which a receiver is the terminal into a message session relay protocol MSRP message under the condition 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 the offline message session between the server and the terminal; under the condition that the terminal supports batch issuing of the offline messages, at least two offline messages of which the receiving party is the terminal are coded into a Message Session Relay Protocol (MSRP) message; sending the MSRP message to the terminal; the batch transmission of the off-line messages can be realized, the message transmission efficiency can be obviously improved under the condition of more multimedia messages, and the power consumption, the flow, the transmission time and the like of the terminal are reduced; the problem that an offline message transmission scheme in the prior art is low in efficiency is well solved.
Further, the offline message transmission apparatus further includes: a first receiving module, configured to receive a registration message sent by a terminal before an offline message session between the server and the terminal is established, where 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 batch issuing of the offline message according to the newly added feature identifier.
Specifically, the first encoding module includes: the first coding submodule is used for coding at least two off-line 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 parameter corresponding relation comprises: a first corresponding relation between a preset header field parameter and a preset extension parameter in the off-line message, wherein the MSRP message includes at least one preset extension parameter.
Further, the offline message transmission apparatus further includes: the first agreement module is used for agreeing the preset parameter corresponding relation 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 preset parameter corresponding relation.
Wherein the preset header parameters include at least one of the following parameters: message sender information parameters; message receiver information parameters; a session identification information parameter; an identification parameter identifying a mode or a service type of the offline message; a file selector information parameter; file transmission identification information parameters; a service initiator information parameter; a group meeting place name information parameter; and file characteristic information parameters.
Specifically, in a 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 comprise at least one of a paging mode message, a large text mode message, and a file transfer message; the service 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 apparatus further includes: the second processing module is used for sending an end notification message to the terminal after all the MSRP messages are sent to the terminal; a second receiving module, configured to receive a response message fed back by the terminal according to the end notification message; and the all MSRP messages are at least one MSRP message obtained according to all offline messages of the terminal of the receiver.
This can significantly improve message transmission efficiency.
The implementation embodiments of the server-side offline message transmission method are all applicable to the embodiment of the offline message transmission device, and the same technical effects can be achieved.
An embodiment of the present invention further provides an offline message transmission apparatus, which is applied to a terminal, and as shown in fig. 5, the apparatus includes:
a second establishing module 51, configured to establish an offline message session between the terminal and the server;
a third receiving module 52, configured to receive a message session relay protocol MSRP message sent by the server;
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 the offline message session between the terminal and the server; receiving a Message Session Relay Protocol (MSRP) message sent by the server; analyzing the MSRP message to obtain at least two off-line messages of which the receiving party is the terminal; the batch transmission of the off-line messages can be realized, the message transmission efficiency can be obviously improved under the condition of more multimedia messages, and the power consumption, the flow, the transmission time and the like of the terminal are reduced; the problem that an offline message transmission scheme in the prior art is low in efficiency is well solved.
Further, the offline message transmission apparatus 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; and the registration message carries a newly added feature identifier, and the newly added feature identifier is used for indicating that the terminal supports batch issuing of the offline message.
Specifically, the first parsing module includes: the first analysis submodule is used for analyzing the MSRP message according to the corresponding relation of preset parameters to obtain at least two off-line messages of which the receiving party is the terminal; wherein, the preset parameter corresponding relation comprises: a first corresponding relation between a preset header field parameter and a preset extension parameter in the off-line message, wherein the MSRP message includes at least one preset extension parameter.
Further, the offline message transmission apparatus further includes: and the second agreement module is used for agreeing the corresponding relation of the preset parameters with the server before the MSRP message is analyzed to obtain at least two offline messages of which the receiving party is the terminal.
Wherein the preset header parameters include at least one of the following parameters: message sender information parameters; message receiver information parameters; a session identification information parameter; an identification parameter identifying a mode or a service type of the offline message; a file selector information parameter; file transmission identification information parameters; a service initiator information parameter; a group meeting place name information parameter; and file characteristic information parameters.
Specifically, in a 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 different types of offline messages of which the receiving party is the terminal; wherein the at least two different types of offline messages comprise at least one of a paging mode message, a large text mode message, and a file transfer message; the service 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 apparatus 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 end notification message; and the all MSRP messages are at least one MSRP message obtained by the server according to all offline messages of the terminal by a receiver.
This can significantly improve message transmission efficiency.
The implementation embodiments of the offline message transmission method at the terminal side are all applicable to the embodiment of the offline message transmission device, and the same technical effect can be achieved.
An embodiment of the present invention further 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 the offline messages, at least two offline messages of which the receiving party is the terminal are coded 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 the offline messages, at least two offline messages of which the receiving party is the terminal are coded into a Message Session Relay Protocol (MSRP) message; sending the MSRP message to the terminal; the batch transmission of the off-line messages can be realized, the message transmission efficiency can be obviously improved under the condition of more multimedia messages, and the power consumption, the flow, the transmission time and the like of the terminal are reduced; the problem that an offline message transmission scheme in the prior art is low in efficiency is well solved.
Further, the processor is further configured to: before an offline message session between the server and a 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 performing network registration on the terminal 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: coding at least two offline messages of which the receiving party is the terminal into one MSRP message according to the corresponding relation of preset parameters; wherein, the preset parameter corresponding relation comprises: a first corresponding relation between a preset header field parameter and a preset extension parameter in the off-line message, wherein the MSRP message includes at least one preset extension parameter.
Further, the processor is further configured to: and appointing the preset parameter corresponding relation 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 preset parameter corresponding relation.
Wherein the preset header parameters include at least one of the following parameters: message sender information parameters; message receiver information parameters; a session identification information parameter; an identification parameter identifying a mode or a service type of the offline message; a file selector information parameter; file transmission identification information parameters; a service initiator information parameter; a group meeting place name information parameter; and file characteristic information parameters.
Specifically, in a 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: at least two different types of offline messages of which the receiving party is the terminal are coded to obtain an MSRP message; wherein the at least two different types of offline messages comprise at least one of a paging mode message, a large text mode message, and a file transfer message; the service 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; and the all MSRP messages are at least one MSRP message obtained according to all offline messages of the terminal of the receiver.
This can significantly improve message transmission efficiency.
The implementation embodiments of the offline message transmission method on the server side are all applicable to the embodiment of the server, and the same technical effect can be achieved.
An embodiment of the present invention further 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 the server;
receiving a Message Session Relay Protocol (MSRP) message sent by the server through the transceiver 72;
and analyzing the MSRP message to obtain at least two offline messages of which the receiving party is the terminal.
The terminal 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 sent by the server; analyzing the MSRP message to obtain at least two off-line messages of which the receiving party is the terminal; the batch transmission of the off-line messages can be realized, the message transmission efficiency can be obviously improved under the condition of more multimedia messages, and the power consumption, the flow, the transmission time and the like of the terminal are reduced; the problem that an offline message transmission scheme in the prior art is low in efficiency is well solved.
Further, the processor is further configured to: sending a registration message to a server through the transceiver before establishing an offline message session between the terminal and the server; and the registration message carries a newly added feature identifier, and the newly added feature identifier is used for indicating that the terminal supports batch issuing of the offline message.
Specifically, the processor is specifically configured to: analyzing the MSRP message according to the corresponding relation of preset parameters to obtain at least two off-line messages of which the receiving party is the terminal; wherein, the preset parameter corresponding relation comprises: a first corresponding relation between a preset header field parameter and a preset extension parameter in the off-line message, wherein the MSRP message includes at least one preset extension parameter.
Further, the processor is further configured to: and agreeing the preset parameter corresponding relation with the server before analyzing the MSRP message and obtaining at least two offline messages of which the receiving party is the terminal.
Wherein the preset header parameters include at least one of the following parameters: message sender information parameters; message receiver information parameters; a session identification information parameter; an identification parameter identifying a mode or a service type of the offline message; a file selector information parameter; file transmission identification information parameters; a service initiator information parameter; a group meeting place name information parameter; and file characteristic information parameters.
Specifically, in a 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 different types of offline messages of which the receiving party is the terminal; wherein the at least two different types of offline messages comprise at least one of a paging mode message, a large text mode message, and a file transfer message; the service 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 an end notification message sent by the server after all MSRP messages are sent through the transceiver; feeding back a response message to the server through the transceiver according to the end notification message; and the all MSRP messages are at least one MSRP message obtained by the server according to all offline messages of the terminal by a receiver.
This can significantly improve message transmission efficiency.
The implementation embodiments of the offline message transmission method at the terminal side are all applicable to the embodiment of the terminal, and the same technical effect can be achieved.
The embodiment of the invention also provides communication equipment, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor; the processor realizes the off-line message transmission method of the server side when executing the program; or
The processor implements the above-described offline message transmission method at 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 all applicable to the embodiment of the communication device, and the same technical effects can be achieved correspondingly.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the program realizes the steps in the server-side offline message transmission method; or
The program realizes the steps of the terminal-side offline message transmission method when executed by a processor.
The implementation embodiments of the offline message transmission method on the server side or the terminal side are all applicable to the embodiment of the computer-readable storage medium, and the 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 constructed 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 the 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, and may exist, at least partially, merely as electronic signals on a system or network.
When a module can be implemented by software, considering the level of existing hardware technology, a module implemented by software may build a corresponding hardware circuit to implement a corresponding function, without considering cost, and the hardware circuit may include a conventional Very Large Scale Integration (VLSI) circuit or a gate array and an existing semiconductor such as a logic chip, a transistor, or other discrete components. 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 preferred embodiments of the present invention have been described, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.

Claims (22)

1. An offline message transmission method applied to a server is characterized by comprising the following steps:
establishing an offline message session between the server and the terminal;
under the condition that the terminal supports batch issuing of the offline messages, at least two offline messages of which the receiving party is the terminal are coded into a Message Session Relay Protocol (MSRP) message;
and sending the MSRP message to the terminal.
2. The offline message transmission method according to claim 1, further comprising, before establishing the offline message session between the server and the terminal:
receiving a registration message sent by the terminal, wherein the registration message carries a newly-added feature identifier;
and performing network registration on the terminal 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 method of claim 1, wherein the encoding at least two offline messages whose recipients are the terminals into one Message Session Relay Protocol (MSRP) message comprises:
coding at least two offline messages of which the receiving party is the terminal into one MSRP message according to the corresponding relation of preset parameters;
wherein, the preset parameter corresponding relation comprises: a first corresponding relation between a preset header field parameter and a preset extension parameter in the off-line message, wherein the MSRP message includes at least one preset extension parameter.
4. The offline message transmission method of claim 3, wherein said preset header parameters comprise at least one of the following parameters:
message sender information parameters;
message receiver information parameters;
a session identification information parameter;
an identification parameter identifying a mode or a service type of the offline message;
a file selector information parameter;
file transmission identification information parameters;
a service initiator information parameter;
a group meeting place name information parameter; and
file characteristic information parameters.
5. The offline message transmission method of claim 4, wherein in case that the offline message is a group chat message, the message sender information parameter comprises a group chat identification sub-parameter.
6. The method of claim 1 or 3, wherein the encoding at least two offline messages whose receiving party is the terminal into one Message Session Relay Protocol (MSRP) message comprises:
at least two different types of offline messages of which the receiving party is the terminal are coded to obtain an MSRP message;
wherein the at least two different types of offline messages comprise at least one of a paging mode message, a large text mode message, and a file transfer message;
the service 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.
7. An offline message transmission method is applied to a terminal, and is characterized by comprising the following steps:
establishing an offline message session between the terminal and the server;
receiving a Message Session Relay Protocol (MSRP) message sent by the server;
and analyzing the MSRP message to obtain at least two offline messages of which the receiving party is the terminal.
8. The offline message transmission method according to claim 7, further comprising, before establishing the offline message session between the terminal and the server:
sending a registration message to the server;
and the registration message carries a newly added feature identifier, and the newly added feature identifier is used for indicating that the terminal supports batch issuing of the offline message.
9. The method of claim 7, wherein the parsing the MSRP message to obtain at least two offline messages whose recipients are the terminals comprises:
analyzing the MSRP message according to the corresponding relation of preset parameters to obtain at least two off-line messages of which the receiving party is the terminal;
wherein, the preset parameter corresponding relation comprises: a first corresponding relation between a preset header field parameter and a preset extension parameter in the off-line message, wherein the MSRP message includes at least one preset extension parameter.
10. The method of claim 9, wherein the preset header parameters comprise at least one of the following parameters:
message sender information parameters;
message receiver information parameters;
a session identification information parameter;
an identification parameter identifying a mode or a service type of the offline message;
a file selector information parameter;
file transmission identification information parameters;
a service initiator information parameter;
a group meeting place name information parameter; and
file characteristic information parameters.
11. The offline message transmission method of claim 10, wherein in case that the offline message is a group chat message, the message sender information parameter comprises a group chat identification sub-parameter.
12. The method of claim 7 or 9, wherein the parsing the MSRP message to obtain at least two offline messages whose recipients are the terminals comprises:
analyzing the MSRP message to obtain at least two different types of offline messages of which the receiving party is the terminal;
wherein the at least two different types of offline messages comprise at least one of a paging mode message, a large text mode message, and a file transfer message;
the service 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.
13. An offline message transmission apparatus applied to a server, comprising:
the first establishing module is used for establishing an offline message session between the server and the terminal;
the first coding module is used for coding at least two pieces of offline messages of which the receiving party is the terminal into a Message Session Relay Protocol (MSRP) message under the condition that the terminal supports batch issuing of the offline messages;
and the first sending module is used for sending the MSRP message to the terminal.
14. The offline message transmission apparatus of claim 13, further comprising:
a first receiving module, configured to receive a registration message sent by a terminal before an offline message session between the server and the terminal is established, where 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 batch issuing of the offline message according to the newly added feature identifier.
15. The offline message transmission apparatus of claim 13, wherein said first encoding module comprises:
the first coding submodule is used for coding at least two off-line 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 parameter corresponding relation comprises: a first corresponding relation between a preset header field parameter and a preset extension parameter in the off-line message, wherein the MSRP message includes at least one preset extension parameter.
16. An offline message transmission apparatus applied to a terminal, comprising:
the second establishing module is used for establishing an offline message session between the terminal and the 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.
17. The offline message transmitting device of claim 16, 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;
and the registration message carries a newly added feature identifier, and the newly added feature identifier is used for indicating that the terminal supports batch issuing of the offline message.
18. The offline message transmission apparatus of claim 16, wherein said first parsing module comprises:
the first analysis submodule is used for analyzing the MSRP message according to the corresponding relation of preset parameters to obtain at least two off-line messages of which the receiving party is the terminal;
wherein, the preset parameter corresponding relation comprises: a first corresponding relation between a preset header field parameter and a preset extension parameter in the off-line message, wherein the MSRP message includes at least one preset extension parameter.
19. 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 the offline messages, at least two offline messages of which the receiving party is the terminal are coded into a Message Session Relay Protocol (MSRP) message;
and sending the MSRP message to the terminal through the transceiver.
20. 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 sent by the server through the transceiver;
and analyzing the MSRP message to obtain at least two offline messages of which the receiving party is the terminal.
21. 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 of any of claims 1 to 6; or
The processor, when executing the program, implements the offline message transmission method of any of claims 7 to 12.
22. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the steps in the offline message transmission method according to any one of claims 1 to 6; or
The program when executed by a processor implements the steps in the offline message transmission method of any of claims 7 to 12.
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 true CN112243012A (en) 2021-01-19
CN112243012B 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)

Cited By (1)

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

Citations (9)

* 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
CN1863176A (en) * 2006-03-03 2006-11-15 华为技术有限公司 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
CN101300797A (en) * 2005-09-30 2008-11-05 诺基亚公司 Method and apparatus for instant messaging
CN102685138A (en) * 2012-05-21 2012-09-19 华为技术有限公司 Offline message pushing method and device
US20140018046A1 (en) * 2012-07-13 2014-01-16 Telefonaktiebolaget L M Ericsson (Publ) System and method for offline voicemail deposit
CN105471841A (en) * 2015-11-12 2016-04-06 中国电子科技集团公司第三十研究所 Multi-service transmission method and device based on MSRP protocol
CN108632304A (en) * 2017-03-16 2018-10-09 中国移动通信有限公司研究院 A kind of media data Multipath Transmission method and its system

Patent Citations (9)

* 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
CN101300797A (en) * 2005-09-30 2008-11-05 诺基亚公司 Method and apparatus for instant messaging
CN1801814A (en) * 2005-10-11 2006-07-12 华为技术有限公司 Off-line message transmitting and receiving method
CN1863176A (en) * 2006-03-03 2006-11-15 华为技术有限公司 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
CN102685138A (en) * 2012-05-21 2012-09-19 华为技术有限公司 Offline message pushing method and device
US20140018046A1 (en) * 2012-07-13 2014-01-16 Telefonaktiebolaget L M Ericsson (Publ) System and method for offline voicemail deposit
CN105471841A (en) * 2015-11-12 2016-04-06 中国电子科技集团公司第三十研究所 Multi-service transmission method and device based on MSRP protocol
CN108632304A (en) * 2017-03-16 2018-10-09 中国移动通信有限公司研究院 A kind of media data Multipath Transmission method and its system

Cited By (2)

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

Also Published As

Publication number Publication date
CN112243012B (en) 2023-06-30

Similar Documents

Publication Publication Date Title
US20070226295A1 (en) Method and apparatuses for retrieving messages
US20070070988A1 (en) Method For Transmitting Deferred Messages
US7469299B2 (en) Bridging user agent and a proxy server for supporting network services
US7634564B2 (en) Systems and methods for invoking a service from a plurality of event servers in a network
EP2342883B1 (en) File transfer in conference services
CN101232413B (en) Server, system and method for transferring conversation control power
CN100542172C (en) A kind of deferred information method of sending and receiving
US9204264B2 (en) Exchange of messages and sessions
US20080270553A1 (en) Method and System for Instant Notification of Communication Block Information
US8014775B2 (en) Method and system for implementing messaging services and a message application server
CN104468145A (en) Group message processing method and device based on RCS
CN102664899B (en) A kind of method for processing business, Apparatus and system
CN110875914B (en) Method and device for transmitting messages based on shared session link
US9350695B2 (en) Method for transferring and storing CPM service message and service thereof
RU2404549C2 (en) Mechanism for deletion of message or file in multimedia services that operate according to sip protocol
CN101834730A (en) Multimedia conferencing control method and system
CN102223293A (en) Routing method of information requests and processing system
WO2008074235A1 (en) Interconnection methods and message interconnection gateways between message systems
CN101355533B (en) Communication interconnect method and apparatus
US20130080513A1 (en) Multi-party communication sessions via broadcast notification network
CN112243012B (en) Offline message transmission method and device, server and terminal
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
CN105282115A (en) Method and device for realization of RCS (Rich Communication Suite) system communication
KR100690793B1 (en) Method for transmitting data in multimedia system

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