CN103517225A - Multimedia message retry method and apparatus thereof - Google Patents

Multimedia message retry method and apparatus thereof Download PDF

Info

Publication number
CN103517225A
CN103517225A CN201210214938.4A CN201210214938A CN103517225A CN 103517225 A CN103517225 A CN 103517225A CN 201210214938 A CN201210214938 A CN 201210214938A CN 103517225 A CN103517225 A CN 103517225A
Authority
CN
China
Prior art keywords
multimedia message
memory
retry
message
message body
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
CN201210214938.4A
Other languages
Chinese (zh)
Other versions
CN103517225B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201210214938.4A priority Critical patent/CN103517225B/en
Publication of CN103517225A publication Critical patent/CN103517225A/en
Application granted granted Critical
Publication of CN103517225B publication Critical patent/CN103517225B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a multimedia message retry method and an apparatus thereof. The method comprises the following steps that a multimedia message body which is sent unsuccessful is acquired from a memory, wherein the multimedia message body is a MM7 protocol code stream generated through coding an attachment of the multimedia message after the multimedia message is sent unsuccessful at the first time; the multimedia message body is sent to a MMSC. By using the method and the apparatus of the invention, the coded message code stream is stored in the memory; the code stream which is coded is directly sent; coding again is not needed and there is no time consumption; an IO bottleneck problem caused by reading the attachment repeatedly from a NAS memory during a retry process is avoided; system resources are saved; simultaneously, times of coding a multimedia message content file are reduced, a processing capability of a multimedia message service processing system is greatly increased and a user experience is increased too.

Description

Multimedia message retry method and device
Technical field
The present invention relates to the communications field, in particular to a kind of multimedia message retry method and device.
Background technology
Multimedia service (Multi Media Service, referred to as MMS) is a kind of MMS (Multimedia Message Service), supports abundant media function, can between mobile phone and mobile phone or between mobile phone and the Internet and other application, transmit.Multimedia function support comprises the transmission of the various multimedia form data such as word, image, video, sound.Along with the extensive use (as mobile phone newspaper) of MMS, MMS amount is increasing, and the handling property of tackling mutually MMS treatment system requires also more and more higher.
MM7 agreement is the agreement of intercommunication between service end SP and MMS center, this agreement is by HTML (Hypertext Markup Language) (Hypertext Transfer Protocol, referred to as HTTP) agreement carrying, adopt Simple Object Access Protocol (Simple Object Access Protocol, referred to as SOAP) protocol encapsulation transmission, for multimedia messages provides multiple value-added service.After will converting MM7 interface to by MMS treatment system, the multi-media value-added business request message that SP sends sends to multimedia business center (Multi Media Service Center, referred to as MMSC), i.e. MMS center.
When network congestion, network failure, parameter setting not at that time, when MMS treatment system sends a message to MMS center, often can send failure, or send MMS center response faultcode after message, cause mobile terminal to be received and dispatched unsuccessfully.Conventionally MMS treatment system can arrange retry mechanism and guarantee that multimedia message finally can send to mobile terminal.Multimedia message retry is different from note retry, during multimedia message retry, will carry large capacity multimedia message data, and storage and the processing of large capacity multimedia message data are difficult problems, and existing multimedia message retry technology has following deficiency:
In multimedia message retry procedure, number of retries can not carried out repeatedly retry before reaching set point.General Adoption Network additional storage (Network Attached Storage, referred to as NAS) storage multimedia message accessory, needs to read multimedia message accessory to nas server before each retry, then carries out message coding and be assembled into multimedia message data package and issue MMS center.For the MMS with a plurality of annexes (as mobile phone newspaper), retry need to carry out IO very frequently to NAS and call, the group bag that also will repeat a plurality of multimedia message accessories, has greatly affected the treatment effeciency of MMS treatment system, has reduced the ability of MMS treatment system.
Summary of the invention
The invention provides a kind of multimedia message retry method and device, at least to solve in correlation technique, adopt NAS memory to preserve multimedia message accessory, in retry procedure, repeatedly to NAS memory, read multimedia message accessory and cause that IO frequently calls, and each retry all will be encoded to multimedia message accessory, affects the problem of MMS treatment system treatment effeciency.
According to an aspect of the present invention, provide a kind of multimedia message retry method, having comprised: from memory, obtain and send failed multimedia message body, wherein, multimedia message body has been that multimedia message sends the MM7 agreement code stream of after failure, the annex of multimedia message being encoded and being formed first; To MMSC, send above-mentioned multimedia message body.
Preferably, from memory, obtaining the failed multimedia message body of transmission comprises: the information that stores multimedia message head in swept memory; From information, obtain the multimedia message head of above-mentioned multimedia message, wherein, the multimedia message head of multimedia message comprises: the storage index of multimedia message body in memory; According to storage index, from memory, obtain multimedia message body.
Preferably, multimedia message head also comprises: multimedia message is at effective time, the MMSC link information of memory stores, and before obtaining multimedia message body according to storage index from memory, whether said method also comprises: judge and exceed the time limit effective time; If exceeded the time limit, according to storage index, find and delete multimedia message body; If do not exceeded the time limit, according to storage index, from memory, obtain multimedia message body.
Preferably, the information that stores multimedia message head in swept memory comprises: according to storing the information of multimedia message head default sweep time in swept memory.
Preferably, after MMSC sends multimedia message body, said method also comprises: receive the response from MMSC; The associated multimedia message head that stores the multimedia message of obtaining in the information of multimedia message head from memory, wherein, the multimedia message head of multimedia message comprises: the storage index of multimedia message body in memory, multimedia message are at effective time, the MMSC link information of memory stores; In the situation that response is failure response, according to judging whether retry again effective time; In the situation that response is success response, according to storage index, find and delete multimedia message body.
Preferably, according to judging whether that retry comprises again effective time: judge and whether exceed the time limit effective time; If exceeded the time limit, according to storage index, find and delete multimedia message body; If do not exceeded the time limit, will be adjusted into the time of current residual effective time, and the multimedia message head that carries the effective time after adjustment is stored in information, wait for retry next time.
Preferably, obtain the multimedia message body that transmission is failed from memory before, said method also comprises: determine that multimedia message is to send first failure, encodes and obtains multimedia message body the annex of multimedia message, and store multimedia message body into memory; The storage index of the multimedia message body returning according to memory in memory, the multimedia message head of structure multimedia message, and the multimedia message head of multimedia message is stored in information.
Preferably, in memory, with the form storage multimedia message head of retry message queue, retry message queue is corresponding one by one with the service identification SPID that sends multimedia message.
Preferably, above-mentioned memory adopts distributed caching.
According to a further aspect in the invention, a kind of multimedia message retry device is provided, has comprised: acquisition module, has sent failed multimedia message body for obtaining from memory, wherein, multimedia message body is that multimedia message sends the MM7 agreement code stream of after failure, the annex of multimedia message being encoded and being formed first; Sending module, for sending this multimedia message body to MMSC.
By the present invention, message code stream after coding is stored in to memory, directly send the code stream encoding, without again encoding, without time loss, avoided repeatedly to NAS memory, reading the IO bottleneck problem that annex causes in retry procedure, saved system resource, reduce the number of times to MMS content document No. simultaneously, greatly improved the disposal ability of MMS treatment system, improved user's experience.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms the application's a part, and schematic description and description of the present invention is used for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is according to the flow chart of the multimedia message retry method of the embodiment of the present invention;
Fig. 2 is according to the structured flowchart of the multimedia message retry device of the embodiment of the present invention;
Fig. 3 is the structured flowchart one of multimedia message retry device according to the preferred embodiment of the invention;
Fig. 4 is the structured flowchart two of multimedia message retry device according to the preferred embodiment of the invention;
Fig. 5 is the structured flowchart of multimedia message retry system according to the preferred embodiment of the invention;
Fig. 6 is the flow chart one of multimedia message retry method according to the preferred embodiment of the invention;
Fig. 7 is the flowchart 2 of multimedia message retry method according to the preferred embodiment of the invention.
Embodiment
It should be noted that, in the situation that not conflicting, embodiment and the feature in embodiment in the application can combine mutually.Describe below with reference to the accompanying drawings and in conjunction with the embodiments the present invention in detail.
The embodiment of the present invention provides a kind of multimedia message retry method, and Fig. 1 is according to the flow chart of the multimedia message retry method of the embodiment of the present invention, as shown in Figure 1, comprises that following step S102 is to step S104.
Step S102 obtains and sends failed multimedia message body from memory, and wherein, multimedia message body is that multimedia message sends the MM7 agreement code stream of after failure, the annex of multimedia message being encoded and being formed first.
Step S104, sends this multimedia message body to MMSC.
In correlation technique, adopt NAS memory to preserve multimedia message accessory, in retry procedure, repeatedly to NAS memory, read multimedia message accessory and cause that IO frequently calls, and retry all will be encoded to multimedia message accessory, affects the treatment effeciency of MMS treatment system at every turn.In above-described embodiment, message code stream after coding is stored in to memory, directly send the code stream encoding, without again encoding, without time loss, avoided repeatedly to NAS memory, reading the IO bottleneck problem that annex causes in retry procedure, saved system resource, reduce the number of times to MMS content document No. simultaneously, greatly improved the disposal ability of MMS treatment system, improved user's experience.
Consider in prior art, it is local that multimedia message head is buffered in MMS treatment system, need to take part Installed System Memory.In the situation that system resource is limited, short buffer memory retry message effective time can only be set.Be set to several hours general effective time, like this, if network failure does not recover to cause retry message to be dropped because exceeding the time limit in time.In a preferred implementation of the embodiment of the present invention, utilize indirect index access to be stored in the multimedia message body in memory, from memory, obtain the failed multimedia message body of transmission and comprise: the information that stores multimedia message head in swept memory; From information, obtain the multimedia message head of multimedia message, wherein, the multimedia message head of multimedia message comprises: the storage index of multimedia message body in memory; According to storage index, from memory, obtain multimedia message body.The resource of MMS treatment system can be saved in indirect index, and message header is stored in memory, can be arranged longerly effective time, can be not influential to Installed System Memory.
Preferably, the multimedia message head of above-mentioned multimedia message also comprises: multimedia message is at effective time, the MMSC link information of memory stores, and before obtaining multimedia message body according to storage index from memory, whether said method also comprises: judge and exceed the time limit effective time; If exceeded the time limit, according to storage index, find and delete multimedia message body; If do not exceeded the time limit, according to storage index, from memory, obtain multimedia message body.In practical application, before obtaining message body, first detect the effective time of multimedia message and whether exceed the time limit, if exceed the time limit just directly to delete this message body, to avoid unnecessary operation.
Preferably, can be according to storing the information of multimedia message head default sweep time in swept memory.In actual applications, retry scanning timer is set in MMS treatment system, this timer then, starts new round scanning.Timing scan can realize the maximum times of every multimedia message retry, thereby improves the transmitting-receiving success rate of multimedia message.
After resending multimedia message body to MMSC, also need the response returned according to MMSC, judgement sends whether success, if unsuccessful, also to judge whether to carry out again retry, to guarantee that multimedia message can have enough large chance to send successfully, improve multimedia message transmitting-receiving success rate.If what MMSC returned is success response, delete the multimedia message body in memory, timely Free up Memory, to store other content.So after step S104, said method also comprises: receive the response from MMSC; The associated multimedia message head that stores the multimedia message of obtaining in the information of multimedia message head from memory, wherein, the multimedia message head of multimedia message comprises: the storage index of multimedia message body in memory, multimedia message are at effective time, the MMSC link information of memory stores; In the situation that response is failure response, according to judging whether retry again effective time; In the situation that response is success response, according to storage index, find and delete multimedia message body.
Preferably, according to judging whether that retry comprises again effective time: judge and whether exceed the time limit effective time; If exceeded the time limit, according to storage index, find and delete multimedia message body; If do not exceeded the time limit, will be adjusted into the time of current residual effective time, and the multimedia message head that carries the effective time after adjustment is stored in information, wait for retry next time.In this preferred implementation, if exceeded the time limit effective time, delete multimedia message body; If do not exceeded the time limit, readjust effective time (for example, be 10 hours effective time, if do not exceed the time limit and remain 1 hour, changed into 1 hour), again store multimedia message head, in order to next retry.Utilize can guarantee effective time retry message queue and memory can be because of junk data load too heavy.
For multimedia message, whether send first unsuccessfully, the content storing in memory is different, if send first unsuccessfully, multimedia message body and message header all should be deposited in to memory, particularly, obtain the multimedia message body that transmission is failed from memory before, said method also comprises: determine that multimedia message is to send first failure, the annex of multimedia message is encoded and obtained multimedia message body, and store multimedia message body into memory; The storage index of the multimedia message body returning according to memory in memory, the multimedia message head of structure multimedia message, and the multimedia message head of multimedia message is stored in information.In this preferred implementation, for sending first failed multimedia message, in memory, store multimedia message body and message header; And for non-failed multimedia message first, only need to judge whether exceed the time limit its effective time, and the message body of exceeding the time limit to delete, storing message head does not again exceed the time limit.For non-failed multimedia message first, only need to be after adjusting effective time, storing message head again, the burden that can effectively avoid repeated storage to bring to system.
Preferably, above-mentioned memory can adopt distributed caching.Distributed caching can provide the ability of distributed storage service and the high-speed read-write access of mass data, utilizes distributed caching can improve the treatment effeciency of system.
In order to obtain efficiently message header, can be with the form storage multimedia message head of retry message queue in memory, retry message queue is corresponding one by one with the SPID that sends multimedia message.In this preferred implementation, multimedia message head is stored in the retry message queue in memory, according to the feature of queue, from head of the queue, read message header successively, according to storage index, obtain message body, carry out retry, if retry failure, the message header after adjusting is stored into the tail of the queue of retry message queue, wait for and retry message queue being scanned next time.Adopt the form of queue, take SPID as keyword, a corresponding retry message queue of SPID, obtains message header more effective, rather than arbitrarily extracts message header and carry out retry, can improve the treatment effeciency of whole system.
The embodiment of the present invention also provides a kind of multimedia message retry device, and this multimedia message retry device can be for realizing above-mentioned multimedia message retry method.Fig. 2 is according to the structured flowchart of the multimedia message retry device of the embodiment of the present invention, as shown in Figure 2, comprises acquisition module 202 and sending module 204.Below its structure is described in detail.
Acquisition module 202, sends failed multimedia message body for obtaining from memory, and wherein, multimedia message body is that multimedia message sends the MM7 agreement code stream of after failure, the annex of multimedia message being encoded and being formed first; Sending module 204, is connected to acquisition module 202, for sending to MMSC the multimedia message body that acquisition module 202 obtains.
As shown in Figure 3, acquisition module 202 comprises: scanning element 2021, stores the information of multimedia message head for swept memory; The first acquiring unit 2022, is connected to scanning element 2021, and for obtain the multimedia message head of multimedia message from information, wherein, the multimedia message head of multimedia message comprises: the storage index of multimedia message body in memory; Second acquisition unit 2023, is connected to the first acquiring unit 2022, for obtaining multimedia message body according to storage index from memory.
In a preferred implementation, multimedia message head also comprises: multimedia message is at effective time, the MMSC link information of memory stores, as shown in Figure 4, acquisition module 202 also comprises: the first judging unit 2024, be connected to the first acquiring unit 2022, for judging, whether exceed the time limit the effective time of the multimedia message head that the first acquiring unit 2022 obtains; The first processing unit 2025, is connected to the first judging unit 2024, in the situation that exceeding the time limit effective time, according to storage index, finds and delete multimedia message body; Now, second acquisition unit 2023, is connected to the first judging unit 2024, in the situation that not exceeding the time limit effective time, according to storage index, obtains multimedia message body from memory.
Preferably, scanning element 2021 comprises: scan subelement, store the information of multimedia message head for swept memory sweep time according to default.
Preferably, said apparatus also comprises: receiver module, is connected to sending module, for receiving the response from MMSC; Relating module, be connected to receiver module, for associated, from memory, store the multimedia message head of the multimedia message of obtaining the information of multimedia message head, wherein, the multimedia message head of multimedia message comprises: the storage index of multimedia message body in memory, multimedia message are at effective time, the MMSC link information of memory stores; Judge module, is connected to relating module, in the situation that the response that receiver module receives is failure response, according to judging whether retry again the effective time in the multimedia message head of relating module association; Processing module, is connected to relating module, and in the situation that the response that receiver module receives is success response, the storage index in the multimedia message head obtaining according to relating module finds and delete multimedia message body.
Preferably, judge module comprises: whether the second judging unit, exceed the time limit for judging effective time; The second processing unit, is connected to the second judging unit, in the situation that exceeding the time limit effective time, according to storage index, finds and delete multimedia message body; The 3rd processing unit, is connected to the second judging unit, in the situation that not exceeding the time limit effective time, will be adjusted into the time of current residual effective time, and the multimedia message head that carries the effective time after adjustment is stored in information, waits for retry next time.
Preferably, said apparatus also comprises: determination module, for determining that multimedia message is to send first failure; Memory module, is connected to determination module, for the annex of multimedia message is encoded and obtained multimedia message body, and stores multimedia message body into memory; Constructing module, is connected to memory module, the storage index for the multimedia message body that returns according to memory at memory, and the multimedia message head of structure multimedia message, now, memory module is also for storing the multimedia message head of multimedia message into information.
Preferably, above-mentioned memory adopts distributed caching.
Preferably, in memory, with the form storage multimedia message head of retry message queue, retry message queue is corresponding one by one with the SPID that sends multimedia message.
In order to make object of the present invention, technical scheme and implementation method clearer, below in conjunction with preferred embodiment, be elaborated.In following preferred embodiment, the message header of take exists in the retry message queue of memory as example describes.
Fig. 5 is the structured flowchart of multimedia message retry system according to the preferred embodiment of the invention, and as shown in Figure 5, this system comprises MMS treatment system 52, memory 54 and MMS center 56.It should be noted that, memory 54 can be Cache, can adopt distributed storage.
Wherein, MMS treatment system 52 comprises buffer control module 522 and retry module 524.
Buffer control module 522(has realized the function of above-mentioned receiver module, determination module, constructing module, memory module, judge module, processing module) for the result of returning according to MMS center 56, judge whether multimedia message needs retry after failed, if desired retry and be failure first, MMS content file is packaged into MM7 code stream, store memory 54 into, the storage index then memory 54 being returned, message effective time etc., information was deposited to retry message queue as message header again.
Wherein, the situation of multimedia message failure comprises: MMS center response timeout or MMS center response faultcode.If MMS center response timeout can directly enter retry flow process; If MMS center response faultcode, buffer control module 522 by this error code with set in advance can the comparison of retry error code, if belong to can retry error code for this error code, judge that multimedia message needs retry.
Retry message queue be take SPID as keyword minute queue stores, and the multimedia message head that same SP sends is kept at same queue; Queue index information is stored in memory field and is convenient to retrieval, and message body is left distributed caching in by index dereference.Based on multimedia message failure, often because certain SP parameter arranges improper or SP other problem, cause, with SPID minute queue stores, be convenient to arrange according to SP situation the attribute of different queue, as message effective time, sending times etc. in queue.Message header comprises message body storage ID, message effective time and MMSC link information.
Whether first buffer control module 522, also for searching relevant information according to message SN in this locality, judges multimedia message failure.If belong to non-failure first, need to adjust the effective time in message header, message header is deposited to the tail of the queue of retry message queue corresponding to this SPID, only message header need to be deposited to retry message queue.If be judged to be failure first, 522 pairs of multimedia message bodies of buffer control module and message header carry out buffer memory.
It should be noted that, need retry multimedia message before carrying out buffer memory, judge that whether the retry queue that this SPID is corresponding is full.If full, flow process finishes; If less than, carry out buffer memory.Concrete operations are as follows: if failure is received and dispatched in multimedia message first, the annex carrying in the submit request message that buffer control module 522 sends according to SP indexes memory 54 and obtains multimedia message accessory (SP is kept at memory 54 by multimedia message accessory), multimedia message accessory is packaged into MM7 code stream, MM7 code stream buffer memory, to memory 54, and is deleted to multimedia message accessory.Memory 54 is preserved the message body receiving, and the content indexing that returns to self is to buffer control module 522.Buffer control module 522 is packaged into by the content indexing receiving (storage ID), effective time, MMSC link information the tail of the queue that message header deposits retry message queue in.
If judge, multimedia message receives and dispatches first failure and needs after retry, by assembled good multimedia message body MM7 code stream buffer memory to memory 54.Now, memory 54 is preserved after the message body receiving, and returned content storage index (storage ID) give buffer control module 522.Buffer control module 522 be take multimedia message head SPID again and is saved to retry message queue as keyword.Wherein, multimedia message head comprises: message body storage ID, retry multimedia message effective time and MMSC link information.Retry message queue is saved to memory 54 to avoid taking local resource, during multimedia message retry, directly from memory 54, obtains multimedia message body, directly sends the code stream encoding, without again encoding, without time loss.
It should be noted that, set effective time when each message is joined the team.If certain message is exceeded the time limit already when retry is taken out in retry message queue, abandon and to memory 54, remove MM7 code stream according to the storage ID in message header; If do not exceed the time limit, message is carried out to retry, if the message retry taking out failure is again adjusted and again joined the team effective time.Buffer memory can guarantee effective time retry message queue and message buffering district be unlikely to because of junk data load too heavy.
Retry module 524(has realized the function of above-mentioned the first acquisition module 202 and sending module 204) for the queue of timing scan retry message, take out the message header that comes head of the queue.If message is not exceeded the time limit, according to the multimedia message storage in message header, index memory 54 and search MM7 code stream, directly MM7 code stream is sent to MMS center.If retry multimedia message is failure again, retry module 524 deposits this message header to the tail of the queue of retry message queue, waits for that timing scan is carried out retry more next time.
The method of retry is, when system is idle, take SPID as the queue of keyword scan retry message.If whether the retry message queue non-NULL that this SPID is corresponding, takes out the message that comes retry message queue head of the queue to carry out retry, expired according to judging this message the effective time in message, if out of date, abandon and delete MM7 code stream corresponding to described message; If do not exceed the time limit, according to the storage ID in message, to memory 54, search MM7 code stream corresponding to this message, directly MM7 code stream is mail to MMSC, without again encoding.It should be noted that, once send a message, after message response returns, continue to take out the message retry of retry queue head of the queue, send next message, until the message of current queue scanning one time, then change next retry message queue scanning.Particularly, if retry success is searched message body and is deleted message body to memory 54 according to the storage ID of message; If retry is failure again, judge whether this message exceeds the time limit, if exceed the time limit, abandon and delete the message body of memory 54, otherwise adjust effective time, message header is stored in to the retry message queue tail of the queue that this SPID is corresponding, continue to process the next message of this retry message queue.
The original multimedia message accessory that memory 54 sends over for storing SP server; The MM7 code stream of also having encoded for memory buffers control module 522, and return self storage index and keyword SPID corresponding to retry message queue to buffer control module 522; Also for storing retry message queue; Also, for when receiving storage index or message queue and obtain request, return to corresponding message body to MMS treatment system 52.
Fig. 6 is the flow chart one of multimedia message retry method according to the preferred embodiment of the invention, as shown in Figure 6, what describe is that MMS treatment system 52 is received the errored response that MMSC returns, buffer control module 522 is carried out the handling process of retry judgement and message (being multimedia message) buffer memory, comprises the steps:
S602, receives the failure response that MMS center 56 is returned, and comprises the situation of response timeout.
S604, according to the error code returning, can search in retry error code to predefined, if can find (judging that this message needs retry), proceeds to step S606; Otherwise this Message Processing flow process finishes.
Whether first S606, judge message failure according to message SN, if so, proceeds to step S608; Otherwise this message belongs to after retry failed message again, proceeds to step S616.
S608, buffer control module 522 judge retry message queue that the SPID of this message is corresponding whether less than, if so, proceed to step S610; Otherwise abandon this message, this retry flow process finishes.
S610, while sending message according to SP, the multimedia message accessory index carrying in submit message is searched annex in memory 54.
S612, is packaged into MM7 code stream by multimedia message accessory coding, then MM7 code stream is sent to memory 54.
S614, memory 54 receives and store M M7 code stream, and the storage index (storage ID) that returns to self, to buffer control module 522, proceeds to step S622.
S616, buffer control module 522 judges that these message belong to after retry failed message again, according to judging whether this message exceeds the time limit the effective time in message header, if exceed the time limit, proceed to step S618; Otherwise proceed to step S620.
S618, the message body storage ID according in message header, searches MM7 code stream and deletes to memory 54, and to clear up junk data, this flow process finishes.
S620, adjusts remaining effective time in message header.
S622, buffer control module 522 is stored ID, effective time, MMSC link information using message body and is deposited the tail of the queue of the retry message queue that this message SPID is corresponding in as message header, and this message buffering flow process finishes.
Fig. 7 is the flowchart 2 of multimedia message retry method according to the preferred embodiment of the invention, as shown in Figure 7, description be retry module 524 timing scan retry message queues and the handling process of carrying out message (being multimedia message) retry, comprise the steps:
S702, system is idle, and retry scanning timer time arrives, and starts to execute the task.
S704, retry message queue corresponding to scanning SPID.
S706, judges whether non-NULL of retry message queue that this SPID is corresponding, if so, proceeds to step S708; Otherwise proceed to step S726.
S708, retry module 524 is taken out first multimedia message head of retry message queue, and according to judging whether message exceeds the time limit the effective time in this message header, if so, proceeds to step S722; Otherwise proceed to step S710.
S710, according to the storage index in obtained message header, searches MM7 code stream corresponding to message to memory 54.
S712, memory 54 returns to MM7 code stream that the SPID of storage is corresponding to retry module 524.
S714, retry module 524 is directly sent to MMS center 56 by MM7 code stream.
S716, judges whether success of response that MMS center 56 returns, if so, proceeds to step S722; Otherwise proceed to step S718.
S718, retry module 524 judges that whether this message exceeds the time limit, and if so, proceeds to step S722; Otherwise proceed to step S720.
S720, retry module is adjusted the residue effective time in message header, then message header is deposited in to the tail of the queue of the retry message queue that this message SPID is corresponding.
S722, indexes memory 54 according to the storage in message header and searches MM7 code stream, deletes junk data.
S724, judge whether the message header in the retry message queue that this SPID is corresponding has scanned one time, if scanned, change next SPID scanning for one time, judge whether the message header in the retry message queue of current all SPID has all scanned one time, if so, proceed to step S726; Otherwise proceed to step S706, continue the queue of scanning retry.
S726, this retry has scanned, and waits timer to be scanned to execute the task next time.
It should be noted that, in the step shown in the flow chart of accompanying drawing, can in the computer system such as one group of computer executable instructions, carry out, and, although there is shown logical order in flow process, but in some cases, can carry out shown or described step with the order being different from herein.
In sum, according to the abovementioned embodiments of the present invention, a kind of multimedia message retry method and device are provided.And feature that retry message content the same huge according to multimedia message data, the complete message code stream of coding is stored in to memory, by index dereference, avoided repeatedly to NAS memory, reading the IO bottleneck problem that annex causes in retry procedure, saved system resource, reduce the number of times to MMS content document No. simultaneously, greatly improved the disposal ability of MMS treatment system, improved the object that user experiences.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in storage device and be carried out by calculation element, or they are made into respectively to each integrated circuit modules, or a plurality of modules in them or step are made into single integrated circuit module to be realized.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. a multimedia message retry method, is characterized in that comprising:
From memory, obtain and send failed multimedia message body, wherein, described multimedia message body is that multimedia message sends the MM7 agreement code stream of after failure, the annex of described multimedia message being encoded and being formed first;
To MMS center MMSC, send described multimedia message body.
2. method according to claim 1, is characterized in that, obtains the failed multimedia message body of transmission and comprise from memory:
Scan the information that stores multimedia message head in described memory;
From described information, obtain the multimedia message head of described multimedia message, wherein, the multimedia message head of described multimedia message comprises: the storage index of described multimedia message body in described memory;
According to described storage index, from described memory, obtain described multimedia message body.
3. method according to claim 2, it is characterized in that, described multimedia message head also comprises: described multimedia message is at effective time, the MMSC link information of described memory stores, and before obtaining described multimedia message body according to described storage index from described memory, described method also comprises:
Judge and whether exceed the time limit described effective time;
If exceeded the time limit, according to described storage index, find and delete described multimedia message body;
If do not exceeded the time limit, according to described storage index, from described memory, obtain described multimedia message body.
4. method according to claim 2, is characterized in that, scans the information that stores multimedia message head in described memory and comprises:
According to default sweep time, scan the information that stores multimedia message head in described memory.
5. method according to claim 1, is characterized in that, send described multimedia message body to MMSC after, described method also comprises:
Receive the response from described MMSC;
The associated multimedia message head that stores the described multimedia message of obtaining in the information of multimedia message head from described memory, wherein, the multimedia message head of described multimedia message comprises: the storage index of described multimedia message body in described memory, described multimedia message are at effective time, the MMSC link information of described memory stores;
In the situation that described response is failure response, according to judging whether retry again described effective time;
In the situation that described response is success response, according to described storage index, find and delete described multimedia message body.
6. whether method according to claim 5, is characterized in that, according to judging whether that retry comprises again described effective time: judge and exceed the time limit described effective time;
If exceeded the time limit, according to described storage index, find and delete described multimedia message body;
If do not exceeded the time limit, be adjusted into the time of current residual described effective time, and the described multimedia message head that carries the effective time after adjustment is stored in described information, wait for retry next time.
7. according to the method described in any one in claim 2 to 6, it is characterized in that, obtain the multimedia message body that transmission is failed from memory before, described method also comprises:
Determine that described multimedia message is to send first failure, the annex of described multimedia message is encoded and obtained described multimedia message body, and store described multimedia message body into described memory;
The storage index of the described multimedia message body returning according to described memory in described memory, constructs the multimedia message head of described multimedia message, and the multimedia message head of described multimedia message is stored in described information.
8. according to the method described in any one in claim 2 to 6, it is characterized in that, in described memory, with the form of retry message queue, store described multimedia message head, described retry message queue is corresponding one by one with the service identification SPID that sends described multimedia message.
9. according to the method described in any one in claim 1 to 6, it is characterized in that, described memory adopts distributed caching.
10. a multimedia message retry device, is characterized in that comprising:
Acquisition module, sends failed multimedia message body for obtaining from memory, and wherein, described multimedia message body is that multimedia message sends the MM7 agreement code stream of after failure, the annex of described multimedia message being encoded and being formed first;
Sending module, for sending described multimedia message body to MMS center MMSC.
CN201210214938.4A 2012-06-27 2012-06-27 Multimedia message retries method and device Active CN103517225B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210214938.4A CN103517225B (en) 2012-06-27 2012-06-27 Multimedia message retries method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210214938.4A CN103517225B (en) 2012-06-27 2012-06-27 Multimedia message retries method and device

Publications (2)

Publication Number Publication Date
CN103517225A true CN103517225A (en) 2014-01-15
CN103517225B CN103517225B (en) 2018-01-02

Family

ID=49899095

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210214938.4A Active CN103517225B (en) 2012-06-27 2012-06-27 Multimedia message retries method and device

Country Status (1)

Country Link
CN (1) CN103517225B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653198A (en) * 2014-11-13 2016-06-08 杭州迪普科技有限公司 Data processing method and device
CN107995537A (en) * 2017-12-22 2018-05-04 威创集团股份有限公司 Video playing control method and system
CN111510395A (en) * 2020-06-16 2020-08-07 腾讯科技(深圳)有限公司 Service message reporting method, device, equipment and medium
CN113068136A (en) * 2021-03-02 2021-07-02 Oppo广东移动通信有限公司 Method and device for transmitting multimedia message, terminal and readable storage medium
CN113823025A (en) * 2021-08-24 2021-12-21 广州市瑞立德信息系统有限公司 Command retry method, system, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1543238A (en) * 2003-04-30 2004-11-03 华为技术有限公司 Apparatus and method for multimedia message processing
EP2247124A1 (en) * 2008-03-18 2010-11-03 Huawei Technologies Co., Ltd. Method, system and related device for implementing multimedia messaging service
CN101888602A (en) * 2009-05-15 2010-11-17 华为技术有限公司 Message processing device and method, message service system and message center

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1543238A (en) * 2003-04-30 2004-11-03 华为技术有限公司 Apparatus and method for multimedia message processing
EP2247124A1 (en) * 2008-03-18 2010-11-03 Huawei Technologies Co., Ltd. Method, system and related device for implementing multimedia messaging service
CN101888602A (en) * 2009-05-15 2010-11-17 华为技术有限公司 Message processing device and method, message service system and message center

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653198A (en) * 2014-11-13 2016-06-08 杭州迪普科技有限公司 Data processing method and device
CN107995537A (en) * 2017-12-22 2018-05-04 威创集团股份有限公司 Video playing control method and system
CN111510395A (en) * 2020-06-16 2020-08-07 腾讯科技(深圳)有限公司 Service message reporting method, device, equipment and medium
CN113068136A (en) * 2021-03-02 2021-07-02 Oppo广东移动通信有限公司 Method and device for transmitting multimedia message, terminal and readable storage medium
CN113823025A (en) * 2021-08-24 2021-12-21 广州市瑞立德信息系统有限公司 Command retry method, system, equipment and storage medium

Also Published As

Publication number Publication date
CN103517225B (en) 2018-01-02

Similar Documents

Publication Publication Date Title
US7945673B2 (en) Reduced wireless internet connect time
US7711956B2 (en) Information processing apparatus, information system, proxy processing method, and program and recording medium therefor
CN1848719B (en) Distribution bitmap diagram memory device, method and system for generating response among network entities
US7636363B2 (en) Adaptive QoS system and method
JP3201265B2 (en) Data transmission apparatus and method
CN103517225A (en) Multimedia message retry method and apparatus thereof
CN105450785B (en) File transmission method and device
CN1113297C (en) Transmitter-receiver for electronic mail system
CN102891865B (en) A kind of information getting method and equipment
CN101997661A (en) Data packet sending method, data packet acquiring method and device
CN101136870A (en) Symbol based message transferring method and system
CN101753416A (en) Message sending method and device
CN101047611A (en) System and method for clustering RSS information
CN102685143B (en) Audio data transmission method, client side and server
CN1758801B (en) Apparatus and method for message transmission in a mobile communication terminal
WO2011116558A1 (en) Method and terminal for processing short message
US20230409459A1 (en) Distributed virtual data tank for cross service quota management
US20080201431A1 (en) Method and System For Providing Permanent Mail Service
CN1155211C (en) Goal filtering method, and customer device using same
CN101753561B (en) Business cluster processing method and cluster system
CN102088420A (en) Method and system for transmitting multi-media message as well as multi-media message service center (MMSC)
CN101257501B (en) Data leading-in method, system as well as Web server
US6735618B1 (en) Electronic mail system for rearranging stored mail data according to monitored data receiving condition
CN111385069A (en) Data transmission method and computer equipment
CN1529457A (en) Communication system base station and server database real-time synchronizing method

Legal Events

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