WO2009070991A1 - Method and device for transmitting delivery report of message - Google Patents
Method and device for transmitting delivery report of message Download PDFInfo
- Publication number
- WO2009070991A1 WO2009070991A1 PCT/CN2008/071164 CN2008071164W WO2009070991A1 WO 2009070991 A1 WO2009070991 A1 WO 2009070991A1 CN 2008071164 W CN2008071164 W CN 2008071164W WO 2009070991 A1 WO2009070991 A1 WO 2009070991A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- delivery report
- message
- delivery
- sent
- 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.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/16—Arrangements for providing special services to substations
- H04L12/18—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
- H04L12/1863—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast comprising mechanisms for improved reliability, e.g. status reports
- H04L12/1868—Measures taken after transmission, e.g. acknowledgments
Definitions
- the present invention relates to mobile communication technologies, and more particularly to a method and apparatus for transmitting a delivery report of a message.
- SMS Short Message Service
- EMS Enhanced Messaging Service
- multimedia messages include images, audio, video, and data; functionally, multimedia messaging services cover end-to-end, terminal-to-application devices (eg, value-added service providers SP, Ema il servers, etc.) , application device to terminal multimedia message communication.
- terminal-to-application devices eg, value-added service providers SP, Ema il servers, etc.
- MMS can generate more colorful content service applications with the interaction of mobile users and Internet content providers. Since the user can be either a consumer of Li S or a content developer, it will undoubtedly increase the user's interest in using the business.
- FIG. 1 is a schematic diagram of a protocol interface between a related circuit and a related network device in the prior art.
- the MMSC interacts with the terminal through the WAP gateway.
- the protocol used is MM1; between the MMSC and the mail server.
- the bearer protocol is the Email Transfer Protocol (SMTP);
- the MMSC interacts with the Provider/Content Provider (SP/CP) using the MM7 protocol, and the bearer protocol is generally a hypertext transfer protocol. (HTTP), other protocols can also be used.
- SMTP Email Transfer Protocol
- SP/CP Provider/Content Provider
- HTTP hypertext transfer protocol
- Step 1 The SP submits the multimedia message that needs to be sent to a terminal to the multimedia message server.
- Step 2 The multimedia message server sends a multimedia message to the terminal according to the number of the terminal;
- Step 3 The terminal notifies the multimedia message from the multimedia message server according to the received multimedia message notification
- Step 4 The multimedia message server sends a delivery report to the SP, informing that the terminal has received the multimedia message.
- the SP can send multimedia messages to multiple users at a time, for example, SP-times to send weather forecast multimedia messages to 100,000 users.
- step 1 only needs to be executed once, but steps 2 to 4 must be executed 10000 times.
- the multimedia message server can only send one delivery report to the SP at a time, the multimedia message server needs to return the delivery report of each terminal to extract the multimedia message to the SP in 1 000 times.
- the short message server also needs to return the message delivery report of each terminal to extract the short message to the SP in 1 000 times.
- embodiments of the present invention provide a method and apparatus for transmitting a delivery report of a message, so that the message server can send multiple delivery reports at a time.
- a method of delivering a message comprising:
- the aggregate is output.
- An embodiment of the present invention further provides an apparatus for transmitting a delivery report of a message, the apparatus comprising: an obtaining module, a generating module, and an output module;
- the obtaining module is configured to obtain a delivery report of at least two messages to be sent
- the generating module is configured to generate, according to a delivery report of the message acquired by the acquiring module, a delivery report including at least two messages to be sent Aggregate
- the output module is configured to output the aggregate.
- an embodiment of the present invention provides a method and apparatus for transmitting a delivery report of a message.
- the delivery report to be sent may be cached first, and the cached multiple delivery reports are outputted at one time, so that the message server can simultaneously send multiple delivery reports at a time, thereby improving the success of sending the delivery report.
- the rate increases the efficiency of processing the delivery report, while also reducing the waste of network resources and improving system performance.
- FIG. 2 is a flowchart of a method for transmitting a delivery report of a multimedia message according to an embodiment of the present invention
- FIG. 3 is a structural diagram of an apparatus for transmitting a delivery report of a multimedia message according to an embodiment of the present invention
- the delivery of the message described in the embodiment of the present invention may be a delivery of a multimedia message, or a delivery of a short message.
- the processing of the two delivery messages is basically the same, but is described. Conveniently, the following is only an example of a delivery report of a multimedia message.
- FIG. 2 is a flow chart of a method for transmitting a delivery report of a multimedia message in the embodiment. As shown in FIG. 2, the process of the method in this embodiment includes the following steps:
- Step 201 Cache a delivery report of the multimedia message to be sent.
- the MMSC when receiving the delivery report, the MMSC does not immediately send the received delivery report to the corresponding application device, but caches the delivery report that needs to be sent, and does not send it.
- Step 202 Obtain a delivery report of at least two multimedia messages to be sent.
- the delivery report of the at least two multimedia messages to be sent may be obtained by using a preset method, and the preset manner may be a timing mode or a fixed length mode, or a combination of the foregoing two modes.
- the timing manner may be: according to the advance Setting a time interval (for example, 5 minutes) to obtain a delivery report of at least two multimedia messages to be sent from the delivery report of the cached multimedia message;
- the fixed length may be: when the cached multimedia message is When the total length of the delivery report reaches a predetermined threshold (eg, 2M), a delivery report of at least two of the cached multimedia messages is obtained.
- a predetermined threshold eg, 2M
- the combination of the two modes may be: setting the timing mode and the fixed length mode at the same time, that is, when the delivery report of the buffered multimedia message reaches the set time interval first, the delivery report is obtained in a timed manner, when the cached multimedia is used.
- the delivery report of the message reaches the set threshold first, the delivery report is obtained in a fixed length manner.
- Step 203 Generate an aggregate of delivery reports including at least two multimedia messages to be sent.
- a message or file including a delivery report of the at least two cached multimedia messages may be generated according to the delivery report of the multimedia message acquired in step 202. That is, the cached delivery reports of at least two multimedia messages that need to be sent may be set in the same message or file to form a message or file including at least two delivery messages.
- the delivery request message is extended to form an extended delivery report request message including at least two delivery reports; a file including at least two delivery reports may also be directly established. Specific to existing delivery report The manner in which the request message is set, and the manner in which the file including at least two delivery reports are established, will be described in detail in the first and second preferred embodiments below, respectively.
- Step 204 Output the aggregate.
- the above method may also be used for sending, that is, the delivery report of the short message to be sent is first cached; then, at least two delivery reports of the short message to be sent are obtained. And then generating an aggregate of delivery reports including at least two short messages to be sent; and finally outputting the above aggregate.
- Existing delivery reports support multiple protocol interfaces, such as the Hypertext Transfer Protocol (HTTP) interface, the Simple Object Access Protocol (SOAP, S imp le Obecec Accs ss Pro toco l) interface, etc., ie the delivery report It can be transmitted through a variety of protocol interfaces.
- HTTP Hypertext Transfer Protocol
- SOAP Simple Object Access Protocol
- S imp le Obecec Accs ss Pro toco l Simple Object Access Protocol
- S imp le Obecec Accs ss Pro toco l Simple Object Access Protocol
- S imp le Obecec Accs ss Pro toco l Simple Object Access Protocol
- S imp le Obecec Accs ss Pro toco l Simple Object Access Protocol
- S imp le Obecec Accs ss Pro toco l Simple Object Access Protocol
- S imp le Obecec Accs ss Pro toco l Simple Object Access Protocol
- Transaction ID is the transaction ID
- Message-Type is the message type
- Version is the version
- MMS Relay/Server ID is the server ID
- Message ID is the message ID.
- Recipient address is the recipient address
- Sender address is the sender address
- Date and time is the date and time
- MM Status is the multimedia message status
- MMS Status Error Code is the multimedia message service status error code
- Status text is the status text.
- the MM 7 Version is the version of the MM7 protocol
- the Request Status is the request information status
- the Request Status text is the request information status text
- the StatusCode is the status code.
- the delivery service For the delivery of the message request message, the delivery service is guaranteed to be processed normally.
- the five mandatory fields are divided into: Sender addres s, Recipient address, Mes sagelD, MMStatus, and StatusText.
- an existing delivery report request message includes only the above five mandatory fields of one delivery report, so one delivery report request message can only transmit one delivery report. Therefore, if the above delivery report request message is extended, so that the above five mandatory fields of the plurality of delivery reports can be included in the extended delivery report request message, it is possible to transmit more in one delivery report request message. Delivery reports.
- a specific extension method for the delivery report request message is: expanding a portion of the delivery report request message that records five mandatory field information of the delivery report, in which the ⁇ (n>1) delivery reports are continuously recorded The above five mandatory field information.
- the number of recorded delivery reports can be pre-set according to the actual application.
- a new label can be set for the above extension, and the name of the new label can be set to "MultiDR", that is, " ⁇ MultiDR>” and " ⁇ /" are respectively set in the header and the tail of the above extension.
- the label of MultiDR> the SP can know that the delivery report request message is an extended delivery report request message including multiple delivery reports according to the new label described above.
- the foregoing plurality of delivery reports that are required to be sent are first cached in the local memory; and then the delivery of the plurality of multimedia messages to be sent is obtained from the local memory according to a preset timing and/or a fixed length manner. Reporting; generating the extended delivery report request message including the plurality of delivery reports according to the obtained plurality of delivery reports and the expansion method described above; and then outputting the extended delivery report request message.
- the timing is: obtaining, according to a preset time interval (for example, 5 minutes), a delivery report of a plurality of multimedia messages to be sent from the cached delivery report of the multimedia message; Long
- the mode is: when the total length of the delivery report of the cached multimedia message reaches a preset threshold (for example, 2M), the delivery report of the plurality of multimedia messages to be sent is obtained from the delivery report of the cached multimedia message.
- the delivery report of multiple multimedia messages to be sent may be obtained by using the above-mentioned timing mode or fixed length method, or the delivery of multiple multimedia messages to be sent may be acquired by using the above-mentioned timing mode and fixed length mode.
- the use of the timing mode and the fixed length manner to obtain a plurality of delivery reports of the multimedia message to be sent is: when the delivery report of the cached multimedia message reaches the set time interval first, the delivery report is obtained in a timed manner. The delivery report is obtained in a fixed length manner when the delivery report of the cached multimedia message reaches the set threshold first.
- the delivery report response message corresponding to the delivery report request message needs to be extended (after the message server sends the delivery report to each application device, each application device returns a delivery report response message to The message server), that is, according to the extended delivery report request message, the part of the StatusCode field information is recorded in the corresponding delivery report response message, and n statusCode fields are sequentially recorded, and the recorded n ta tusCode fields are corresponding to The n delivery reports in the extended delivery report request message - corresponding, and in the same order.
- the S0AP interface message of the extended delivery report request message is as follows:
- the part of the content identified by the horizontal line as the strikethrough is the part of the five mandatory field information of the delivery report recorded in the delivery report request message before the expansion; and ⁇ Mu 11 i DR> and ⁇ The content recorded between /Mu 11 i DR> is the extension in the extended delivery report request message.
- Soap-env: mustUnderstand "l">0110000000006020908131404302 ⁇ /mm7: Transaction ID>
- the order of arrangement of the plurality of StatusCodes in the extended delivery response message is consistent with the order of arrangement of the plurality of delivery messages in the extended delivery request message.
- the application device does not support the bulk transmission delivery report, at this time, the multimedia message server (Li SC)
- the delivery report will still be sent in the original single transmission.
- the above message delivery report may be a multimedia message delivery report or a short message delivery report, and if a short message delivery report, the short message delivery report is processed by the short message server.
- the multimedia message server may record the field information of the plurality of delivery reports to be sent into the same local file according to a preset arrangement order, and the file may be referred to as a record file.
- each record corresponds to a delivery report and contains all the field information of the delivery report.
- the record file may be a text file or may be binary file.
- the format of each record in the record file may be in the format shown below:
- each record in the record file includes all the field information in a delivery report.
- the content of a log file with three records can be:
- the recording format in the above text file is only a preferred embodiment. In the actual application, the recording format in the text file can be set according to requirements.
- all the field information of the plurality of delivery reports of the above-mentioned required records can be compiled into a binary format and recorded in a binary file in a preset arrangement order.
- the plurality of delivery reports that are required to be sent are cached in a local memory of the multimedia message server; and then multiple transmissions are required to be obtained from the local memory according to a preset timing and/or a fixed length manner.
- a delivery report of the multimedia message based on the acquired plurality of delivery reports and the method described above, establishing the above-described recording file including the plurality of delivery reports; and then outputting the above-mentioned recording file.
- the timing is: obtaining, according to a preset time interval (for example, 5 minutes), a delivery report of the plurality of multimedia messages to be sent from the cached delivery report of the multimedia message;
- a preset time interval for example, 5 minutes
- the way of the fixed length is as follows: When the length of the record file reaches a preset threshold (for example, 2M), a delivery report of a plurality of multimedia messages to be transmitted is acquired from the cached delivery report of the multimedia message. In the delivery report of the actual message, the delivery report of the plurality of multimedia messages to be transmitted may also be acquired by using the above-mentioned timing mode and fixed length method.
- the output record file may be: outputting the record file to a storage directory provided by the application device.
- the above recorded files can also be transferred to the application device using a variety of transfer methods, such as:
- Method 1 the application device periodically obtains the foregoing record file at a specified time interval of the multimedia message server according to a preset time interval (for example, 5 minutes), and deletes the record file in the multimedia message server after successfully acquiring the record file.
- a preset time interval for example, 5 minutes
- the above method of obtaining a file may be performed by using various methods such as File Transfer Protocol (FTP).
- FTP File Transfer Protocol
- Mode 2 after outputting the foregoing record file, sending a modified delivery report request message to the application device, in the modified delivery report request message, content of four fields: Sender address, Recipient address, MessagelD, MMStatus Is empty, and the content in the field StatusText is the storage path of the above record file in the multimedia message server; after receiving the modified delivery report request message, the application device directly returns a delivery report response message, and returns Is an error code whose content is "message format error", indicating that the application device does not support the above method for transmitting multiple delivery reports, and still needs to send the delivery report in a single manner; if the application device supports the above transmission a method for delivering a report, the application device extracts a corresponding record file according to the storage path in the modified delivery report request message to the multimedia message server; The application device then returns a delivery report response message to the multimedia message server.
- the extraction method can be various, for example: File Transfer Protocol (FTP), Hypertext Transfer Protocol (HTTP), Upload/Down (
- log files can be named according to the naming method as follows: MMSDev i ce lDyyy ⁇ ddHHMI SS. XXXX .
- the name of a log file can be: 91000020070606174500. 0019 0
- FIG. 3 is a schematic diagram of an apparatus for transmitting a delivery report of a multimedia message according to an embodiment of the present invention.
- the apparatus for transmitting a delivery report of a multimedia message in the embodiment of the present invention includes: an obtaining module 31, a generating module 32, and an output module 33;
- the obtaining module 31 is configured to obtain a delivery report of at least two multimedia messages to be sent, and send the obtained delivery report of the multimedia message to the generating module 32;
- the generating module 32 is configured to generate an aggregate of delivery reports including at least two multimedia messages to be sent according to the delivery report of the multimedia message acquired by the obtaining module 31, and send the generated aggregate to the output module 33. ;
- the output module 33 is configured to output the aggregate.
- the obtaining module 31 further includes: a threshold setting module 310.
- the threshold setting module 310 is configured to send an acquisition command to the obtaining module 31 according to the set time interval; or, when the total length of the delivery report of the buffered desired multimedia message reaches a set threshold Sending an acquisition command to the acquisition module 31; or, when the interval time reaches a set time interval, or when the total length of the cached delivery report of the multimedia message to be transmitted reaches a set threshold Sending an acquisition command to the obtaining module 31;
- the obtaining module 31 is further configured to obtain, according to the received obtaining command, a delivery of at least two multimedia messages to be sent.
- the means for transmitting a delivery report of the multimedia message may further include a storage module 34.
- the storage module 34 is configured to cache a delivery report of a plurality of multimedia messages to be sent, and the obtaining module 31 is further configured to obtain, from the storage module 34, a delivery report of at least two multimedia messages to be sent.
- the apparatus for transmitting a delivery report of a short message includes: an obtaining module 41, a generating module 42 and an output module 43;
- the obtaining module 41 is configured to obtain a delivery report of at least two short messages to be sent; and send the obtained delivery report of the short message to the generating module 42;
- the generating module 42 is configured to generate an aggregate of delivery reports including at least two short messages to be sent according to the delivery report of the short message acquired by the obtaining module 41, and send the generated aggregate to the output module 43. ;
- the output module 43 is configured to output the aggregate.
- the obtaining module 41 further includes: a threshold setting module 410.
- the threshold setting module 410 is configured to send an acquisition command to the obtaining module 41 according to the set time interval; or, when the total length of the delivery report of the cached short message to be sent reaches a set threshold Sending an acquisition command to the acquisition module 41; or, when the interval time reaches a set time interval, or when the total length of the cached delivery report of the short message to be sent reaches a set threshold Sending an acquisition command to the obtaining module 41;
- the obtaining module 41 is further configured to obtain, according to the received obtaining command, a delivery advertisement of at least two short messages to be sent.
- the device for transmitting a report of a short message may further include a storage module
- the storage module 44 is configured to cache a delivery report of a plurality of short messages to be sent, and the obtaining module 41 is further configured to obtain, from the storage module 44, the delivery of at least two short messages to be sent. .
- the delivery report to be sent may be first buffered, and the cached multiple delivery reports are output once. Therefore, it is possible to transmit multiple delivery reports at the same time, thereby improving the success rate of transmitting the delivery report, improving the processing efficiency of the delivery report, and reducing the waste of network resources and improving system performance.
- the embodiment of the present invention may be implemented by using software.
- the corresponding software program may be stored in a readable storage medium.
- the software includes the following steps: buffering a delivery report of a message to be sent; acquiring at least two to be sent a delivery report of the message; generating an aggregate of delivery reports including at least two messages to be sent; outputting the aggregate.
- the storage medium may be a hard disk, a cache or an optical disk of a computer.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
一种发送消息的递送报告的方法及装置 Method and device for transmitting delivery report of message
技术领域 本发明涉及移动通信技术, 尤其是指一种发送消息的递送报告的方法 及装置。 背景技术 多媒体消息服务 (丽 S )是短信息服务 ( SMS )和增强型消息服务 ( EMS ) 的进一步发展, 为个人多媒体移动通信服务提供了完整的端到端解决方 案。 从通信内容上讲, 多媒体消息包括图像、 音频、 视频和数据等; 从功 能上讲, 多媒体消息服务涵盖了终端到终端、 终端到应用设备(例如, 增 值业务提供商 SP、 Ema i l服务器等)、应用设备到终端的多媒体消息通信。 它不仅实现了终端之间、 终端和应用设备之间的信息传递, 还实现了内容 的多样性, 包括图片、 语音、 图像、 数据和文本的各种组合。 作为一个开 放的媒体接入平台, MMS可以在移动用户和互联网内容提供商的互动下, 衍生出更丰富多彩的内容服务应用。 由于用户既可以是丽 S的消费者, 又 可以是内容开发者, 所以无疑会提高用户对业务的使用兴趣。 TECHNICAL FIELD The present invention relates to mobile communication technologies, and more particularly to a method and apparatus for transmitting a delivery report of a message. BACKGROUND OF THE INVENTION Multimedia Messaging Service (SES) is a further development of Short Message Service (SMS) and Enhanced Messaging Service (EMS), providing a complete end-to-end solution for personal multimedia mobile communication services. In terms of communication content, multimedia messages include images, audio, video, and data; functionally, multimedia messaging services cover end-to-end, terminal-to-application devices (eg, value-added service providers SP, Ema il servers, etc.) , application device to terminal multimedia message communication. It not only realizes the information transfer between terminals, terminals and application devices, but also realizes the diversity of content, including various combinations of pictures, voice, images, data and text. As an open media access platform, MMS can generate more colorful content service applications with the interaction of mobile users and Internet content providers. Since the user can be either a consumer of Li S or a content developer, it will undoubtedly increase the user's interest in using the business.
在运营商实际开展业务时, 经常需要使用多个消息服务器, 如使用多 媒体消息服务器 (MMSC ) 分别向用户提供 MMS业务, 各个 MMSC分别管理 部分用户, 提供相应用户的接入功能。 图 1所示为现有技术中丽 SC与相 关的各个网络设备之间的协议接口的示意图。如图 1所示, MMSC与终端之 间通过 WAP网关进行交互, 所使用的协议为 MM1 ; MMSC与邮件服务器之间 釆用 MM3协议进行交互, 承载协议为电子邮件传输协议(SMTP ) ; MMSC 与服务商提供商 /内容提供商 (SP/CP )之间釆用 MM7协议进行交互, 承载 协议一般为超文本传输协议 (HTTP ) , 也可以使用其它的协议。 When an operator actually conducts a service, it is often necessary to use multiple message servers, such as a multimedia message server (MMSC) to provide MMS services to users respectively, and each MMSC manages some users separately, and provides access functions of corresponding users. FIG. 1 is a schematic diagram of a protocol interface between a related circuit and a related network device in the prior art. As shown in Figure 1, the MMSC interacts with the terminal through the WAP gateway. The protocol used is MM1; between the MMSC and the mail server. 交互 Interact with the MM3 protocol, the bearer protocol is the Email Transfer Protocol (SMTP); the MMSC interacts with the Provider/Content Provider (SP/CP) using the MM7 protocol, and the bearer protocol is generally a hypertext transfer protocol. (HTTP), other protocols can also be used.
以增值业务提供商 (SP )到某个终端的业务为例, 在现有技术中的多 媒体消息业务中, 现有多媒体消息业务的递送报告的处理流程为: Taking the service of a value-added service provider (SP) to a terminal as an example, in the multimedia message service in the prior art, the processing flow of the delivery report of the existing multimedia message service is:
步骤 1 , SP将需要发送给某个终端的多媒体消息提交给多媒体消息服 务器; Step 1: The SP submits the multimedia message that needs to be sent to a terminal to the multimedia message server.
步骤 2 , 多媒体消息服务器根据上述终端的号码下发多媒体消息通知 给该终端; Step 2: The multimedia message server sends a multimedia message to the terminal according to the number of the terminal;
步骤 3 , 该终端根据接收到的多媒体消息通知从多媒体消息服务器提 取多媒体消息; Step 3: The terminal notifies the multimedia message from the multimedia message server according to the received multimedia message notification;
步骤 4 , 多媒体消息服务器向 SP发送递送报告, 告知该终端已经接收 了多媒体消息。 Step 4: The multimedia message server sends a delivery report to the SP, informing that the terminal has received the multimedia message.
然而, 在多媒体消息业务中 SP可以一次给多个用户发送多媒体消息, 例如, SP—次给 1 0000个用户发送天气预报多媒体消息。 此时, 在上述的 处理流程中, 步骤 1只需执行 1次, 但步骤 2 ~ 4则必须执行 1 0000次。 由于多媒体消息服务器每次只能向 SP发送 1个递送报告, 因此多媒体消 息服务器就需要分 1 0000次将各个终端提取多媒体消息的递送报告返回给 SP。 对于发送短消息如上类似的情形, 短信服务器亦需要分 1 0000次将各 个终端提取短消息的消息递送报告返回给 SP。 However, in the multimedia message service, the SP can send multimedia messages to multiple users at a time, for example, SP-times to send weather forecast multimedia messages to 100,000 users. At this time, in the above processing flow, step 1 only needs to be executed once, but steps 2 to 4 must be executed 10000 times. Since the multimedia message server can only send one delivery report to the SP at a time, the multimedia message server needs to return the delivery report of each terminal to extract the multimedia message to the SP in 1 000 times. For the case where the short message is sent as above, the short message server also needs to return the message delivery report of each terminal to extract the short message to the SP in 1 000 times.
在曰渐繁忙的移动通信网络中, 频繁的发送递送报告, 将会降低发送 递送 告的成功率, 而且由于每次仅能发送一个递送 4艮告, 因此发送效率 较低, 对系统性能和网络资源也造成较大的浪费。 发明内容 有鉴于此, 本发明实施例提供了一种发送消息的递送报告的方法及装 置, 使得消息服务器可以一次发送多个递送报告。 In a busy mobile communication network, frequent delivery of delivery reports will reduce the success rate of sending delivery announcements, and since only one delivery can be sent at a time, the transmission efficiency is Lower, it also causes a great waste of system performance and network resources. SUMMARY OF THE INVENTION In view of this, embodiments of the present invention provide a method and apparatus for transmitting a delivery report of a message, so that the message server can send multiple delivery reports at a time.
本发明实施例中的技术方案是这样实现的: The technical solution in the embodiment of the present invention is implemented as follows:
一种发送消息的递送 告的方法, 该方法包括: A method of delivering a message, the method comprising:
緩存所需发送的消息的递送报告; Cache a delivery report of the message that needs to be sent;
获取至少两个需发送的消息的递送报告; Obtain a delivery report of at least two messages to be sent;
生成包括至少两个需发送的消息的递送报告的集合体; Generating a collection of delivery reports including at least two messages to be sent;
输出所述集合体。 The aggregate is output.
本发明的实施例中还提供了一种发送消息的递送报告的装置, 该装置 包括: 获取模块、 生成模块和输出模块; An embodiment of the present invention further provides an apparatus for transmitting a delivery report of a message, the apparatus comprising: an obtaining module, a generating module, and an output module;
所述获取模块, 用于获取至少两个需发送的消息的递送报告; 所述生成模块, 用于根据获取模块所获取的消息的递送报告, 生成包 括至少两个需发送的消息的递送报告的集合体; The obtaining module is configured to obtain a delivery report of at least two messages to be sent, and the generating module is configured to generate, according to a delivery report of the message acquired by the acquiring module, a delivery report including at least two messages to be sent Aggregate
所述输出模块, 用于输出所述的集合体。 The output module is configured to output the aggregate.
综上可知, 本发明的实施例中提供了一种发送消息的递送报告的方法 及装置。 通过上述的方法和装置, 可首先緩存所需发送的递送报告, 并将 所緩存的多个递送报告一次输出, 从而可以实现消息服务器一次同时发送 多个递送报告, 因而提高了发送递送报告的成功率, 提高了对递送报告的 处理效率, 同时还减少了对网络资源的浪费, 提高了系统性能。 附图说明 图 1所示为现有技术中 MMSC与相关的各个网络设备之间的协议接口 的示意图; In summary, an embodiment of the present invention provides a method and apparatus for transmitting a delivery report of a message. Through the foregoing method and apparatus, the delivery report to be sent may be cached first, and the cached multiple delivery reports are outputted at one time, so that the message server can simultaneously send multiple delivery reports at a time, thereby improving the success of sending the delivery report. The rate increases the efficiency of processing the delivery report, while also reducing the waste of network resources and improving system performance. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic diagram of a protocol interface between an MMSC and related network devices in the prior art;
图 2为本发明实施例中发送多媒体消息的递送报告的方法的流程图; 图 3为本发明实施例中发送多媒体消息的递送报告的装置的结构图; 图 4为本发明实施例中发送短消息的递送报告的装置的结构图。 具体实施方式 为使本发明实施例的技术方案和优点表达得更加清楚明白,下面结合 附图及具体实施例对本发明再作进一步详细的说明。 2 is a flowchart of a method for transmitting a delivery report of a multimedia message according to an embodiment of the present invention; FIG. 3 is a structural diagram of an apparatus for transmitting a delivery report of a multimedia message according to an embodiment of the present invention; A structural diagram of the device that delivers the report of the message. DETAILED DESCRIPTION OF THE EMBODIMENTS In order to make the technical solutions and advantages of the embodiments of the present invention more clearly, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
本发明实施例所描述的消息的递送 ^艮告可以为多媒体消息递送 4艮告 , 也可以为短消息的递送 ^艮告, 这两种递送 ^艮告的处理过程基本相同, 但为 描述的方便, 下面仅以多媒体消息的递送报告为例进行说明。 The delivery of the message described in the embodiment of the present invention may be a delivery of a multimedia message, or a delivery of a short message. The processing of the two delivery messages is basically the same, but is described. Conveniently, the following is only an example of a delivery report of a multimedia message.
图 2为本实施例中发送多媒体消息的递送报告的方法的流程图。如图 2所示, 本实施例中方法的流程包括如下所述的步骤: 2 is a flow chart of a method for transmitting a delivery report of a multimedia message in the embodiment. As shown in FIG. 2, the process of the method in this embodiment includes the following steps:
步骤 201 , 緩存所需发送的多媒体消息的递送报告。 Step 201: Cache a delivery report of the multimedia message to be sent.
即 MMSC在接收到递送报告时, 并不马上将所接收到的递送报告发送 给相应的应用设备, 而是緩存该所需发送的递送报告, 暂不发送。 That is, when receiving the delivery report, the MMSC does not immediately send the received delivery report to the corresponding application device, but caches the delivery report that needs to be sent, and does not send it.
步骤 202 , 获取至少两个需发送的多媒体消息的递送报告。 Step 202: Obtain a delivery report of at least two multimedia messages to be sent.
在本步骤中, 可以使用预先设置的方法获取上述至少两个需发送的多 媒体消息的递送报告, 所述的预先设置的方式可以为定时方式或定长方 式, 或是上述两种方式的结合。 例如, 所述的定时方式可以为: 根据预先 设定的时间间隔 (例如, 5分钟)从上述緩存的多媒体消息的递送报告中 获取至少两个需发送的多媒体消息的递送报告; 所述定长的方式可以为: 当上述緩存的多媒体消息的递送报告的总长度达到预先设定的阈值 (例 如, 2M ) 时, 获取至少两个所述緩存的多媒体消息的递送报告。 所述的两 种方式的结合可以为: 同时设置定时方式和定长方式, 即当緩存的多媒体 消息的递送报告先达到设定的时间间隔时则按照定时方式获取该递送报 告, 当緩存的多媒体消息的递送报告先达到设定的阀值时则按照定长方式 获取该递送报告。 In this step, the delivery report of the at least two multimedia messages to be sent may be obtained by using a preset method, and the preset manner may be a timing mode or a fixed length mode, or a combination of the foregoing two modes. For example, the timing manner may be: according to the advance Setting a time interval (for example, 5 minutes) to obtain a delivery report of at least two multimedia messages to be sent from the delivery report of the cached multimedia message; the fixed length may be: when the cached multimedia message is When the total length of the delivery report reaches a predetermined threshold (eg, 2M), a delivery report of at least two of the cached multimedia messages is obtained. The combination of the two modes may be: setting the timing mode and the fixed length mode at the same time, that is, when the delivery report of the buffered multimedia message reaches the set time interval first, the delivery report is obtained in a timed manner, when the cached multimedia is used. When the delivery report of the message reaches the set threshold first, the delivery report is obtained in a fixed length manner.
步骤 203 , 生成包括至少两个需发送的多媒体消息的递送报告的集合 体。 Step 203: Generate an aggregate of delivery reports including at least two multimedia messages to be sent.
在步骤 203中, 可根据步骤 202中所获取的多媒体消息的递送报告生 成一个包括上述至少两个緩存的多媒体消息的递送报告的消息或文件。 也 就是说, 可将所緩存的所需发送的至少两个多媒体消息的递送报告设置在 同一个消息或文件中, 形成包括至少两个递送"¾告的消息或文件。 例如: 可以对现有的递送 ^告请求消息进行扩展, 形成一个包括至少两个递送才艮 告的扩展后的递送报告请求消息; 也可以直接建立一个包括至少两个递送 报告的文件。 具体的对现有的递送报告请求消息的设置方式, 以及包括至 少两个递送报告的文件的建立方式将分别在以下的第一、 第二较佳实施例 中进行详细地说明。 In step 203, a message or file including a delivery report of the at least two cached multimedia messages may be generated according to the delivery report of the multimedia message acquired in step 202. That is, the cached delivery reports of at least two multimedia messages that need to be sent may be set in the same message or file to form a message or file including at least two delivery messages. For example: The delivery request message is extended to form an extended delivery report request message including at least two delivery reports; a file including at least two delivery reports may also be directly established. Specific to existing delivery report The manner in which the request message is set, and the manner in which the file including at least two delivery reports are established, will be described in detail in the first and second preferred embodiments below, respectively.
步骤 204 , 输出所述集合体。 Step 204: Output the aggregate.
对于短消息的递送报告, 亦可以釆用上述方法进行发送, 即先緩存所 需发送的短消息的递送报告; 接着获取至少两个需发送的短消息的递送报 告; 接着生成包括至少两个需发送的短消息的递送报告的集合体; 最后输 出上述集合体。 For the delivery report of the short message, the above method may also be used for sending, that is, the delivery report of the short message to be sent is first cached; then, at least two delivery reports of the short message to be sent are obtained. And then generating an aggregate of delivery reports including at least two short messages to be sent; and finally outputting the above aggregate.
以下将结合具体实施例对上述的发送多媒体消息的递送报告的方法 进行更进一步的介绍。 为了叙述的方便, 在以下的实施例中, 将以所述的 消息服务器为多媒体消息服务器, 所述的多媒体消息的递送报告为多媒体 消息的递送报告为例对本发明的技术方案进行详细的介绍。 由于对于其他 的非多媒体消息服务器的消息服务器以及其他的多媒体消息的递送报告, 所使用的方法是相同的, 因此将不再赘述。 第一较佳实施例 The above method of transmitting a multimedia message delivery report will be further described below in conjunction with a specific embodiment. For the convenience of the description, in the following embodiments, the technical solution of the present invention will be described in detail by taking the message server as a multimedia message server and the delivery report of the multimedia message as a delivery report of the multimedia message. Since the message server for other non-multimedia message servers and other multimedia message delivery reports are the same, they will not be described again. First preferred embodiment
现有的递送报告支持多种协议接口, 例如, 超文本传输协议 ( HTTP ) 接口、 简单对象访问协议 ( SOAP , S imp l e Obj ec t Acce s s Pro toco l ) 接 口等, 即所述的递送报告可通过多种协议接口进行传送。 为了实现一次传 送多个递送报告, 在本实施例中, 需要对现有的对传送递送报告的协议接 口进行扩展。 为了叙述的简便, 在如下所述的本发明实施例中, 将以 S0AP 接口为例进行说明, 对于其他协议接口的扩展方法与对 S0AP接口的扩展 方法相同, 因此将不再赘述。 Existing delivery reports support multiple protocol interfaces, such as the Hypertext Transfer Protocol (HTTP) interface, the Simple Object Access Protocol (SOAP, S imp le Obecec Accs ss Pro toco l) interface, etc., ie the delivery report It can be transmitted through a variety of protocol interfaces. In order to achieve delivery of multiple delivery reports at a time, in the present embodiment, an existing protocol interface for transmitting delivery reports needs to be extended. For the simplicity of the description, in the embodiment of the present invention as described below, the S0AP interface will be taken as an example. The extension method for other protocol interfaces is the same as the extension method for the S0AP interface, and therefore will not be described again.
在 S0AP协议接口中, 常用的递送报告请求消息的格式如表 1所示: 表 1 In the S0AP protocol interface, the format of the commonly used delivery report request message is as shown in Table 1: Table 1
其中, 表 1中递送 4艮告中的各个字段的名称分别为: Transaction ID 为事务标识, Message-Type 为消息类型, Version 为版本, MMS Relay/Server ID 为服务器标识, Message ID 为消息标识, Recipient address 为接收方地址, Sender address 为发送方地址, Date and time 为日期和时间, MM Status 为多媒体消息状态, MMS Status Error Code 为多媒体消息服务状态错误码, Status text为状态文本。 The names of the fields in the delivery report in Table 1 are: Transaction ID is the transaction ID, Message-Type is the message type, Version is the version, MMS Relay/Server ID is the server ID, and Message ID is the message ID. Recipient address is the recipient address, Sender address is the sender address, Date and time is the date and time, MM Status is the multimedia message status, MMS Status Error Code is the multimedia message service status error code, and Status text is the status text.
在 S0AP协议接口中, 常用的递送 告响应消息的格式如表 2所示: 表 2 In the S0AP protocol interface, the format of the commonly used delivery response message is shown in Table 2: Table 2
其中, MM 7 Version为 MM7协议的版本, Request Status为请求信息 状态, Request Status text为请求信息状态文本, StatusCode为状态码。 The MM 7 Version is the version of the MM7 protocol, the Request Status is the request information status, the Request Status text is the request information status text, and the StatusCode is the status code.
对于递送 ^艮告请求消息来说, 保证业务可以正常处理的递送^艮告中的 五个必选字段分另 ll为: Sender addres s、 Recipient address、 Mes sagelD, MMStatus和 StatusText。 在 SOAP协议接口中, 一个现有的递送报告请求 消息中, 仅包括一个递送报告的上述的五个必选字段, 因此一个递送报告 请求消息只能传送一个递送报告。 所以, 如果对上述递送报告请求消息进 行扩展, 使得在被扩展后的递送报告请求消息中, 能够包括多个递送报告 的上述五个必选字段, 就可实现在一个递送报告请求消息中传送多个递送 报告。 For the delivery of the message request message, the delivery service is guaranteed to be processed normally. The five mandatory fields are divided into: Sender addres s, Recipient address, Mes sagelD, MMStatus, and StatusText. In the SOAP protocol interface, an existing delivery report request message includes only the above five mandatory fields of one delivery report, so one delivery report request message can only transmit one delivery report. Therefore, if the above delivery report request message is extended, so that the above five mandatory fields of the plurality of delivery reports can be included in the extended delivery report request message, it is possible to transmit more in one delivery report request message. Delivery reports.
对递送报告请求消息的具体扩展方法为: 将递送报告请求消息中记录 递送报告的五个必选字段信息的部分进行扩展, 在该扩展部分中, 连续记 录 η (η>1 )个递送报告的上述五个必选字段信息。 所记录的递送报告的数 目 n可根据实际应用情况预先进行设置。 此外, 为了进行区别和标识, 可 为上述扩展部分设置一个新标签, 该新标签的名称可设为 "MultiDR" , 即在上述扩展部分的首部和尾部分别设置 "<MultiDR>" 和 "</MultiDR>" 的标签, SP根据上述的新标签即可知该递送报告请求消息为扩展后的包括 多个递送报告的递送报告请求消息。 A specific extension method for the delivery report request message is: expanding a portion of the delivery report request message that records five mandatory field information of the delivery report, in which the η (n>1) delivery reports are continuously recorded The above five mandatory field information. The number of recorded delivery reports can be pre-set according to the actual application. In addition, in order to distinguish and identify, a new label can be set for the above extension, and the name of the new label can be set to "MultiDR", that is, "<MultiDR>" and "</" are respectively set in the header and the tail of the above extension. The label of MultiDR>", the SP can know that the delivery report request message is an extended delivery report request message including multiple delivery reports according to the new label described above.
在具体的实施方式中, 首先在本地内存中緩存上述所需发送的多个递 送报告; 然后根据预先设置的定时和 /或定长的方式从本地内存中获取多 个需发送的多媒体消息的递送报告; 根据所获取的多个递送报告以及上述 的扩展方法, 生成上述扩展后的包括多个递送报告的递送报告请求消息; 接着输出上述扩展后的递送报告请求消息。 在本实施例中, 所述定时的方 式为: 根据预先设定的时间间隔 (例如, 5分钟) , 从上述緩存的多媒体 消息的递送报告中获取多个需发送的多媒体消息的递送报告; 所述定长的 方式为: 当上述緩存的多媒体消息的递送报告的总长度达到预先设定的阈 值(例如, 2M) 时, 从上述緩存的多媒体消息的递送报告中获取多个需发 送的多媒体消息的递送报告。 在实际应用时, 可单独使用上述的定时方式 或定长方式获取多个需发送的多媒体消息的递送报告, 也可同时使用上述 的定时方式和定长方式获取多个需发送的多媒体消息的递送报告, 所述同 时使用定时方式和定长方式获取多个需发送的多媒体消息的递送报告为, 当緩存的多媒体消息的递送报告先达到设定的时间间隔时则按照定时方 式获取该递送报告, 当緩存的多媒体消息的递送报告先达到设定的阀值时 则按照定长方式获取该递送报告。 In a specific implementation, the foregoing plurality of delivery reports that are required to be sent are first cached in the local memory; and then the delivery of the plurality of multimedia messages to be sent is obtained from the local memory according to a preset timing and/or a fixed length manner. Reporting; generating the extended delivery report request message including the plurality of delivery reports according to the obtained plurality of delivery reports and the expansion method described above; and then outputting the extended delivery report request message. In this embodiment, the timing is: obtaining, according to a preset time interval (for example, 5 minutes), a delivery report of a plurality of multimedia messages to be sent from the cached delivery report of the multimedia message; Long The mode is: when the total length of the delivery report of the cached multimedia message reaches a preset threshold (for example, 2M), the delivery report of the plurality of multimedia messages to be sent is obtained from the delivery report of the cached multimedia message. In actual application, the delivery report of multiple multimedia messages to be sent may be obtained by using the above-mentioned timing mode or fixed length method, or the delivery of multiple multimedia messages to be sent may be acquired by using the above-mentioned timing mode and fixed length mode. Reporting, the use of the timing mode and the fixed length manner to obtain a plurality of delivery reports of the multimedia message to be sent is: when the delivery report of the cached multimedia message reaches the set time interval first, the delivery report is obtained in a timed manner. The delivery report is obtained in a fixed length manner when the delivery report of the cached multimedia message reaches the set threshold first.
在对递送报告请求消息进行扩展后, 还需对与递送报告请求消息相对 应的递送报告响应消息进行扩展(当消息服务器发送递送报告给各应用设 备后, 各应用设备会返回递送报告响应消息给消息服务器) , 即根据扩展 后的递送报告请求消息, 在与之相应的递送报告响应消息中记录 StatusCode字段信息的部分, 顺序记录 n条 StatusCode字段, 所记录的 n条 S ta tusCode字段与相应的扩展后的递送报告请求消息中的 n条递送报 告——对应, 且排列顺序也相同。 After the delivery report request message is extended, the delivery report response message corresponding to the delivery report request message needs to be extended (after the message server sends the delivery report to each application device, each application device returns a delivery report response message to The message server), that is, according to the extended delivery report request message, the part of the StatusCode field information is recorded in the corresponding delivery report response message, and n statusCode fields are sequentially recorded, and the recorded n ta tusCode fields are corresponding to The n delivery reports in the extended delivery report request message - corresponding, and in the same order.
以 SOAP接口为例, 上述扩展后的递送报告请求消息的 S0AP接口报文 ^下所示: Taking the SOAP interface as an example, the S0AP interface message of the extended delivery report request message is as follows:
<?xml version="l.0" encoding="UTF-8 " ?> <?xml version="l.0" encoding="UTF-8 " ?>
<env: Envelope xmlns: env="ht tp: / / schemas. xml soap, org/ soap/ envelope/"> <env: Envelope xmlns: env="ht tp: / / schemas. xml soap, org/ soap/ envelope/">
<env: Header> <env: Header>
<mm7: Transact ionID <mm7: Transact ionID
xmlns: mm7 = "ht tp: //www.3gpp. org/ftp/Specs/archive/23_series/23.140/ schema/ REL-6-MM7-1-0" env: mustUnderstand="l">0110000000006020908131404302</mm7: Transact ionID>Xmlns: mm7 = "ht tp: //www.3gpp. org/ftp/Specs/archive/23_series/23.140/ schema/ REL-6-MM7-1-0" Env: mustUnderstand="l">0110000000006020908131404302</mm7: Transact ionID>
</ env: Header> </ env: Header>
<env: Body> <env: Body>
<DeliveryReportReq <DeliveryReportReq
xmlns = "ht tp: //www.3gpp. org/ ftp/ Specs/archi ve/23_ser ies/23.140/ schema/REL- 6-MM7-l-0"> Xmlns = "ht tp: //www.3gpp. org/ ftp/ Specs/archi ve/23_ser ies/23.140/ schema/REL- 6-MM7-l-0">
<MM7Version>6.3.0</MM7Vers ion> <MM7Version>6.3.0</MM7Vers ion>
<TimeStamp>2002-09-08T05: 14: 04-04: 00</TimeStamp> <TimeStamp>2002-09-08T05: 14: 04-04: 00</TimeStamp>
<MMSRelayServerID>913000</MMSRelayServerID> <MMSRelayServerID>913000</MMSRelayServerID>
<Sender>515121K/Sender> <Sender>515121K/Sender>
<Recipient> <Recipient>
<Number>+86138102^1123^1</Number> <Number>+86138102^1123^1</Number>
<Mes sage ID>0908131 ^10^19130000110^</Mes sage ID> <Mes sage ID>0908131 ^10^19130000110^</Mes sage ID>
<MMStatus>Retr ieved</MMStatus> <MMStatus>Retr ieved</MMStatus>
<StatusText>1000</StatusText> <StatusText>1000</StatusText>
<MultiDR> <MultiDR>
<Sender>888800K/Sender> <Sender>888800K/Sender>
<MessageID>082715595591300001146</MessageID> <MessageID>082715595591300001146</MessageID>
<MMStatus>Retrieved</MMStatus> <MMStatus>Retrieved</MMStatus>
<StatusText>1000</StatusText> <StatusText>1000</StatusText>
<Sender>7777123</Sender> <Sender>7777123</Sender>
<MessageID>082716035691300001190</MessageID> <MessageID>082716035691300001190</MessageID>
<MMStatus>Retrieved</MMStatus> <MMStatus>Retrieved</MMStatus>
<StatusText>1000</StatusText> <StatusText>1000</StatusText>
<Sender>6666007</Sender> <Sender>6666007</Sender>
<MessageID>082716590091300001235</MessageID> <MMStatus>Retrieved</MMStatus> <MessageID>082716590091300001235</MessageID> <MMStatus>Retrieved</MMStatus>
<StatusText>1000</StatusText> <StatusText>1000</StatusText>
</MultiDR> </MultiDR>
</Del iveryRepor tReq> </Del iveryRepor tReq>
</ env: Body> </ env: Body>
</env: Envelope> </env: Envelope>
在上述报文中, 以横线为删除线进行标识的部分内容, 即为扩展前的 递送报告请求消息中记录递送报告的五个必选字段信息的部分; 而 <Mu 11 i DR>和 < /Mu 11 i DR>之间所记录的内容, 即为扩展后的递送报告请求 消息中的扩展部分。 In the above message, the part of the content identified by the horizontal line as the strikethrough is the part of the five mandatory field information of the delivery report recorded in the delivery report request message before the expansion; and <Mu 11 i DR> and < The content recorded between /Mu 11 i DR> is the extension in the extended delivery report request message.
与上述扩展后的递送报告请求消息相对应的递送报告响应消息的 Delivery report response message corresponding to the extended delivery report request message described above
SOAP接口 文如下所示: The SOAP interface text is as follows:
<?xml version="l.0" encoding="UTF-8 " ?> <?xml version="l.0" encoding="UTF-8 " ?>
<soap-env: Envelope <soap-env: Envelope
xmlns: soap-env="ht tp: / / schemas. xml soap, org/ soap/ envelope/ "> Xmlns: soap-env="ht tp: / / schemas. xml soap, org/ soap/ envelope/ ">
<soap-env: Header> <soap-env: Header>
<mm7: Transact ionID <mm7: Transact ionID
xmlns: mm7 = "ht tp: //www.3gpp. org/ftp/Specs/archive/23_series/23.140/ schema/ REL- 6-丽 7- 1-0" Xmlns: mm7 = "ht tp: //www.3gpp. org/ftp/Specs/archive/23_series/23.140/ schema/ rel- 6-丽 7- 1-0"
soap-env: mustUnderstand="l">0110000000006020908131404302</mm7: Transaction ID> Soap-env: mustUnderstand="l">0110000000006020908131404302</mm7: Transaction ID>
</ soap-env: Header> </ soap-env: Header>
<soap-env: Body> <soap-env: Body>
<DeliveryReportRsp <DeliveryReportRsp
xmlns = "ht tp: //www.3gpp. org/ ftp/ Specs/archi ve/23_ser ies/23.140/ schema /REL- 6-MM7-l-0"> Xmlns = "ht tp: //www.3gpp. org/ ftp/ Specs/archi ve/23_ser ies/23.140/ schema /REL- 6-MM7-l-0">
<MM7Version>6.3.0</MM7Vers ion> <MM7Version>6.3.0</MM7Vers ion>
<Status> <StatusCode>1000</StatusCode> <Status> <StatusCode>1000</StatusCode>
<StatusCode>1000</StatusCode> <StatusCode>1000</StatusCode>
<StatusCode>1000</StatusCode> <StatusCode>1000</StatusCode>
</Status> </Status>
</Del iveryRepor tRs > </Del iveryRepor tRs >
</ soap-env: Body> </ soap-env: Body>
</ soap-env: Envelope> </ soap-env: Envelope>
现有的递送 ^艮告响应消息中只有一条 StatusCode,而上述扩展后的递 送才艮告响应消息中具有多条 StatusCode,即针对上述扩展后的递送 告请 求消息中的每一条递送报告, 在扩展后的递送报告响应消息中都会有一条 对应的 StatusCode。 而且, 扩展后的递送 ^艮告响应消息中的多条 StatusCode 的排列顺序与扩展后的递送 4艮告请求消息中的多条递送 4艮告 的排列顺序是一致的。 There is only one StatusCode in the existing delivery response message, and the above-mentioned extended delivery response message has multiple StatusCodes, that is, each delivery report in the extended delivery request message is expanded. There will be a corresponding StatusCode in the subsequent delivery report response message. Moreover, the order of arrangement of the plurality of StatusCodes in the extended delivery response message is consistent with the order of arrangement of the plurality of delivery messages in the extended delivery request message.
此外, 如果扩展后的递送报告响应消息中仅有一条 StatusCode, 且返 回的错误信息为 "消息格式错误" , 则说明该应用设备不支持批量传输递 送报告, 此时, 多媒体消息服务器(丽 SC)仍将以原来的单条发送方式发 送递送报告。 上述消息递送报告可以是多媒体消息递送报告, 亦可以是短 消息递送报告, 若为短消息递送报告, 则由短消息服务器来处理短消息递 送报告。 第二较佳实施例 In addition, if there is only one StatusCode in the extended delivery report response message, and the returned error message is "message format error", the application device does not support the bulk transmission delivery report, at this time, the multimedia message server (Li SC) The delivery report will still be sent in the original single transmission. The above message delivery report may be a multimedia message delivery report or a short message delivery report, and if a short message delivery report, the short message delivery report is processed by the short message server. Second preferred embodiment
在本实施例中, 多媒体消息服务器可将要发送的多条递送报告的字段 信息按照预先设定的排列顺序记录到同一个本地文件中, 该文件可称之为 记录文件。 在所述的记录文件中, 每一条记录均对应一个递送报告并包含 该递送报告的所有字段信息。 所述的记录文件可以是文本文件, 也可以是 二进制文件。 当所述的记录文件为文本文件时, 所述记录文件中的每条记 录的格式可以为如下所示的格式: In this embodiment, the multimedia message server may record the field information of the plurality of delivery reports to be sent into the same local file according to a preset arrangement order, and the file may be referred to as a record file. In the record file, each record corresponds to a delivery report and contains all the field information of the delivery report. The record file may be a text file or may be binary file. When the record file is a text file, the format of each record in the record file may be in the format shown below:
Mes sage-Type I MM 7 Vers ion I MMS Relay/Server ID I Date and time I Sender address I Mes sage ID I Recipient address I MM Status I Status text Mes sage-Type I MM 7 Vers ion I MMS Relay/Server ID I Date and time I Sender address I Mes sage ID I Recipient address I MM Status I Status text
由上述记录的格式可知, 记录文件中的每条记录中都包括了某条递送 报告中所有的字段信息。例如,一个具有三条记录的记录文件的内容可为: According to the format of the above record, each record in the record file includes all the field information in a delivery report. For example, the content of a log file with three records can be:
501051234 iRetrievedl 1000 501051234 iRetrievedl 1000
701050001 iRetrievedl 1000 701050001 iRetrievedl 1000
810240001 IRetrievedl 1000 810240001 IRetrievedl 1000
上述的文本文件中的记录格式只是一个较佳的实施方式, 在实际应用 情况中, 可根据需求设置文本文件中的记录格式。 The recording format in the above text file is only a preferred embodiment. In the actual application, the recording format in the text file can be set according to requirements.
此外, 还可将上述所需记录的多个递送报告的所有字段信息, 编译成 二进制格式, 并按照预先设置的排列顺序记录在一个二进制文件中。 In addition, all the field information of the plurality of delivery reports of the above-mentioned required records can be compiled into a binary format and recorded in a binary file in a preset arrangement order.
在具体的实施方式中, 首先在多媒体消息服务器的本地内存中緩存上 述所需发送的多个递送报告; 然后根据预先设置的定时和 /或定长的方式 从本地内存中获取多个需发送的多媒体消息的递送报告; 根据所获取的多 个递送报告以及上述的方法, 建立上述包括多个递送报告的记录文件; 接 着输出上述记录文件。 在上述的实施方式中, 所述定时的方式为: 根据预 先设定的时间间隔 (例如, 5分钟) , 从上述緩存的多媒体消息的递送报 告中获取多个需发送的多媒体消息的递送报告; 所述定长的方式为: 当上 述记录文件的长度达到预先设定的阈值(例如, 2M) 时, 从上述緩存的多 媒体消息的递送报告中获取多个需发送的多媒体消息的递送报告。 在实际 消息的递送报告, 也可同时使用上述的定时方式和定长方式获取多个需发 送的多媒体消息的递送报告。 所述的输出记录文件可以是: 将上述记录文 件输出到应用设备所提供的存放目录中。 In a specific implementation, first, the plurality of delivery reports that are required to be sent are cached in a local memory of the multimedia message server; and then multiple transmissions are required to be obtained from the local memory according to a preset timing and/or a fixed length manner. a delivery report of the multimedia message; based on the acquired plurality of delivery reports and the method described above, establishing the above-described recording file including the plurality of delivery reports; and then outputting the above-mentioned recording file. In the foregoing embodiment, the timing is: obtaining, according to a preset time interval (for example, 5 minutes), a delivery report of the plurality of multimedia messages to be sent from the cached delivery report of the multimedia message; The way of the fixed length is as follows: When the length of the record file reaches a preset threshold (for example, 2M), a delivery report of a plurality of multimedia messages to be transmitted is acquired from the cached delivery report of the multimedia message. In the delivery report of the actual message, the delivery report of the plurality of multimedia messages to be transmitted may also be acquired by using the above-mentioned timing mode and fixed length method. The output record file may be: outputting the record file to a storage directory provided by the application device.
除了上述的主动输出的模式外, 还可使用多种传送方式将上述记录文 件传送到应用设备上, 例如: In addition to the active output mode described above, the above recorded files can also be transferred to the application device using a variety of transfer methods, such as:
方式 1、 应用设备按照预先设定的时间间隔 (例如, 5分钟) , 定期 到多媒体消息服务器的指定位置获取上述记录文件, 并在成功获取上述记 录文件后删除多媒体消息服务器中的所述记录文件。 上述获取文件的方法 可以为使用文件传输协议 (FTP) 等多种手段。 Method 1, the application device periodically obtains the foregoing record file at a specified time interval of the multimedia message server according to a preset time interval (for example, 5 minutes), and deletes the record file in the multimedia message server after successfully acquiring the record file. . The above method of obtaining a file may be performed by using various methods such as File Transfer Protocol (FTP).
方式 2、 当输出上述记录文件后, 可发送一个修改后的递送报告请求 消息给应用设备, 在该修改后的递送报告请求消息中, Sender address, Recipient address, MessagelD, MMStatus等四个字段的内容为空, 而字 段 StatusText中的内容为上述记录文件在多媒体消息服务器中的存放路 径; 所述应用设备在接收到上述经过修改的递送报告请求消息后, 如果直 接返回一个递送报告响应消息, 且返回的是一个内容为 "消息格式错误" 的错误码, 则说明所述应用设备不支持上述传输多条递送报告的方法, 则 仍需以单条的方式发送递送报告; 如果所述应用设备支持上述传输多条递 送报告的方法, 则所述应用设备将根据上述修改后的递送报告请求消息中 的存放路径到多媒体消息服务器中提取相应的记录文件; 成功提取后, 所 述应用设备再向多媒体消息服务器返回递送报告响应消息。 所述的提取方 式可以有多种, 例如: 文件传输协议(FTP ) 、 超文本传输协议(HTTP ) 、 上传 /下传 (POST/GET )或其他可实现文件内容传送的方式。 Mode 2, after outputting the foregoing record file, sending a modified delivery report request message to the application device, in the modified delivery report request message, content of four fields: Sender address, Recipient address, MessagelD, MMStatus Is empty, and the content in the field StatusText is the storage path of the above record file in the multimedia message server; after receiving the modified delivery report request message, the application device directly returns a delivery report response message, and returns Is an error code whose content is "message format error", indicating that the application device does not support the above method for transmitting multiple delivery reports, and still needs to send the delivery report in a single manner; if the application device supports the above transmission a method for delivering a report, the application device extracts a corresponding record file according to the storage path in the modified delivery report request message to the multimedia message server; The application device then returns a delivery report response message to the multimedia message server. The extraction method can be various, for example: File Transfer Protocol (FTP), Hypertext Transfer Protocol (HTTP), Upload/Down (POST/GET) or other ways of transferring file content.
此外, 由于是连续地产生不同的记录文件, 因此需要通过文件名称来 区分不同的记录文件, 因此, 可根据如下所示的命名方法来命名不同的记 录文件: MMSDev i ce lDyyyy匪 ddHHMI SS. XXXX。 例如, 某个记录文件的名称 可为: 91000020070606174500. 00190 In addition, since different log files are continuously generated, it is necessary to distinguish different log files by file names, and therefore, different log files can be named according to the naming method as follows: MMSDev i ce lDyyyy匪ddHHMI SS. XXXX . For example, the name of a log file can be: 91000020070606174500. 0019 0
图 3为本发明实施例中发送多媒体消息的递送报告的装置的示意图。 如图 3所示, 本发明实施例中发送多媒体消息的递送报告的装置包括: 获 取模块 31、 生成模块 32和输出模块 33; FIG. 3 is a schematic diagram of an apparatus for transmitting a delivery report of a multimedia message according to an embodiment of the present invention. As shown in FIG. 3, the apparatus for transmitting a delivery report of a multimedia message in the embodiment of the present invention includes: an obtaining module 31, a generating module 32, and an output module 33;
所述获取模块 31 , 用于获取至少两个需发送的多媒体消息的递送报 告; 并将所获取的多媒体消息的递送报告发送给生成模块 32 ; The obtaining module 31 is configured to obtain a delivery report of at least two multimedia messages to be sent, and send the obtained delivery report of the multimedia message to the generating module 32;
所述生成模块 32 , 用于根据获取模块 31所获取的多媒体消息的递送 报告, 生成包括至少两个需发送的多媒体消息的递送报告的集合体; 并将 所生成的集合体发送给输出模块 33; The generating module 32 is configured to generate an aggregate of delivery reports including at least two multimedia messages to be sent according to the delivery report of the multimedia message acquired by the obtaining module 31, and send the generated aggregate to the output module 33. ;
所述输出模块 33 , 用于输出所述的集合体。 The output module 33 is configured to output the aggregate.
其中, 所述获取模块 31还包括: 阈值设定模块 310。 The obtaining module 31 further includes: a threshold setting module 310.
所述阈值设定模块 310,用于根据设定的时间间隔向获取模块 31发送 获取命令; 或者, 用于当所述緩存的所需发送的多媒体消息的递送报告的 总长度达到设定的阈值时, 向获取模块 31 发送获取命令; 或者, 用于当 间隔的时间达到设定的时间间隔时, 或当所述緩存的所需发送的多媒体消 息的递送报告的总长度达到设定的阈值时, 向获取模块 31发送获取命令; 所述获取模块 31 ,还用于根据接收到的获取命令, 获取至少两个需发 送的多媒体消息的递送 "^告。 The threshold setting module 310 is configured to send an acquisition command to the obtaining module 31 according to the set time interval; or, when the total length of the delivery report of the buffered desired multimedia message reaches a set threshold Sending an acquisition command to the acquisition module 31; or, when the interval time reaches a set time interval, or when the total length of the cached delivery report of the multimedia message to be transmitted reaches a set threshold Sending an acquisition command to the obtaining module 31; The obtaining module 31 is further configured to obtain, according to the received obtaining command, a delivery of at least two multimedia messages to be sent.
此外, 所述发送多媒体消息的递送报告的装置还可以包括一个存储模 块 34。 Moreover, the means for transmitting a delivery report of the multimedia message may further include a storage module 34.
所述存储模块 34 , 用于緩存多个所需发送的多媒体消息的递送报告; 而所述获取模块 31 ,还用于从存储模块 34中获取至少两个需发送的 多媒体消息的递送报告。 The storage module 34 is configured to cache a delivery report of a plurality of multimedia messages to be sent, and the obtaining module 31 is further configured to obtain, from the storage module 34, a delivery report of at least two multimedia messages to be sent.
图 4为本发明实施例中发送短消息的递送报告的装置的示意图。 如图 4所示, 本实施例中发送短消息的递送报告的装置包括: 获取模块 41、 生 成模块 42和输出模块 43 ; 4 is a schematic diagram of an apparatus for transmitting a delivery report of a short message according to an embodiment of the present invention. As shown in FIG. 4, the apparatus for transmitting a delivery report of a short message in this embodiment includes: an obtaining module 41, a generating module 42 and an output module 43;
所述获取模块 41 , 用于获取至少两个需发送的短消息的递送报告; 并 将所获取的短消息的递送报告发送给生成模块 42; The obtaining module 41 is configured to obtain a delivery report of at least two short messages to be sent; and send the obtained delivery report of the short message to the generating module 42;
所述生成模块 42 ,用于根据获取模块 41所获取的短消息的递送报告, 生成包括至少两个需发送的短消息的递送报告的集合体; 并将所生成的集 合体发送给输出模块 43 ; The generating module 42 is configured to generate an aggregate of delivery reports including at least two short messages to be sent according to the delivery report of the short message acquired by the obtaining module 41, and send the generated aggregate to the output module 43. ;
所述输出模块 43 , 用于输出所述的集合体。 The output module 43 is configured to output the aggregate.
其中, 所述获取模块 41还包括: 阈值设定模块 410。 The obtaining module 41 further includes: a threshold setting module 410.
所述阈值设定模块 410 ,用于根据设定的时间间隔向获取模块 41发送 获取命令; 或者, 用于当所述緩存的所需发送的短消息的递送报告的总长 度达到设定的阈值时, 向获取模块 41 发送获取命令; 或者, 用于当间隔 的时间达到设定的时间间隔时, 或当所述緩存的所需发送的短消息的递送 报告的总长度达到设定的阈值时, 向获取模块 41发送获取命令; 所述获取模块 41 ,还用于根据接收到的获取命令, 获取至少两个需发 送的短消息的递送 告。 The threshold setting module 410 is configured to send an acquisition command to the obtaining module 41 according to the set time interval; or, when the total length of the delivery report of the cached short message to be sent reaches a set threshold Sending an acquisition command to the acquisition module 41; or, when the interval time reaches a set time interval, or when the total length of the cached delivery report of the short message to be sent reaches a set threshold Sending an acquisition command to the obtaining module 41; The obtaining module 41 is further configured to obtain, according to the received obtaining command, a delivery advertisement of at least two short messages to be sent.
此外, 所述发送短消息的递送报告的装置还可以包括一个存储模块 In addition, the device for transmitting a report of a short message may further include a storage module
44。 44.
所述存储模块 44 , 用于緩存多个所需发送的短消息的递送报告; 而所述获取模块 41 ,还用于从存储模块 44中获取至少两个需发送的 短消息的递送 4艮告。 The storage module 44 is configured to cache a delivery report of a plurality of short messages to be sent, and the obtaining module 41 is further configured to obtain, from the storage module 44, the delivery of at least two short messages to be sent. .
综上可知,通过上述本发明实施例中所提供的方法和装置, 当需要发 送多个消息的递送报告时, 可首先緩存所需发送的递送报告, 并将所緩存 的多个递送报告一次输出, 从而可以实现一次同时发送多个递送报告, 因 而提高了发送递送报告的成功率, 提高了对递送报告的处理效率, 同时还 减少了对网络资源的浪费, 提高了系统性能。 In summary, by the method and apparatus provided in the foregoing embodiments of the present invention, when a delivery report of multiple messages needs to be sent, the delivery report to be sent may be first buffered, and the cached multiple delivery reports are output once. Therefore, it is possible to transmit multiple delivery reports at the same time, thereby improving the success rate of transmitting the delivery report, improving the processing efficiency of the delivery report, and reducing the waste of network resources and improving system performance.
本发明实施例可以利用软件实现, 相应的软件程序可以存储在可读取 的存储介质中, 该软件在执行时, 包括以下步骤: 緩存所需发送的消息的 递送报告; 获取至少两个需发送的消息的递送报告; 生成包括至少两个需 发送的消息的递送报告的集合体; 输出所述集合体。 所述的存储介质可以 为计算机的硬盘、 緩存或光盘。 The embodiment of the present invention may be implemented by using software. The corresponding software program may be stored in a readable storage medium. When executed, the software includes the following steps: buffering a delivery report of a message to be sent; acquiring at least two to be sent a delivery report of the message; generating an aggregate of delivery reports including at least two messages to be sent; outputting the aggregate. The storage medium may be a hard disk, a cache or an optical disk of a computer.
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。 凡在本发明的精神和原则之内, 所作的任何修改、 等同替换、 改 进等, 均应包含在本发明的保护范围之内。 The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and scope of the invention are intended to be included within the scope of the invention.
Claims
Priority Applications (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US12/258,583 US20090137259A1 (en) | 2007-11-26 | 2008-10-27 | Method and apparatus for sending message delivery reports |
| EP08168456A EP2063589A1 (en) | 2007-11-26 | 2008-11-06 | Method and apparatus for sending message delivery reports |
| IL197144A IL197144A0 (en) | 2007-11-26 | 2009-02-19 | Method and apparatus for sending message delivery reports |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200710167394.X | 2007-11-26 | ||
| CN200710167394XA CN101448207B (en) | 2007-11-26 | 2007-11-26 | Method and device for sending delivery report of multimedia message |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2009070991A1 true WO2009070991A1 (en) | 2009-06-11 |
Family
ID=40717295
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2008/071164 Ceased WO2009070991A1 (en) | 2007-11-26 | 2008-06-02 | Method and device for transmitting delivery report of message |
Country Status (3)
| Country | Link |
|---|---|
| CN (1) | CN101448207B (en) |
| IL (1) | IL197144A0 (en) |
| WO (1) | WO2009070991A1 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101527691B (en) * | 2009-03-26 | 2012-05-23 | 中兴通讯股份有限公司 | message status report processing method and network server |
| CN101917681B (en) * | 2010-08-23 | 2014-12-10 | 中兴通讯股份有限公司 | Multimedia message center and message issuing method |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1677962A (en) * | 2004-03-30 | 2005-10-05 | 乐金电子(中国)研究开发中心有限公司 | Method for transmitting multimedium information service |
| CN1910885A (en) * | 2001-01-18 | 2007-02-07 | 艾利森电话股份有限公司 | Multimedia messaging service routing system and method |
| CN101035127A (en) * | 2007-01-16 | 2007-09-12 | 中兴通讯股份有限公司 | Method for transferring the report message to the service provider in the multimedia message service |
-
2007
- 2007-11-26 CN CN200710167394XA patent/CN101448207B/en not_active Expired - Fee Related
-
2008
- 2008-06-02 WO PCT/CN2008/071164 patent/WO2009070991A1/en not_active Ceased
-
2009
- 2009-02-19 IL IL197144A patent/IL197144A0/en unknown
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1910885A (en) * | 2001-01-18 | 2007-02-07 | 艾利森电话股份有限公司 | Multimedia messaging service routing system and method |
| CN1677962A (en) * | 2004-03-30 | 2005-10-05 | 乐金电子(中国)研究开发中心有限公司 | Method for transmitting multimedium information service |
| CN101035127A (en) * | 2007-01-16 | 2007-09-12 | 中兴通讯股份有限公司 | Method for transferring the report message to the service provider in the multimedia message service |
Also Published As
| Publication number | Publication date |
|---|---|
| CN101448207B (en) | 2010-08-18 |
| IL197144A0 (en) | 2011-07-31 |
| CN101448207A (en) | 2009-06-03 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN1643877B (en) | Method, device and system for providing multimedia messages to incompatible terminals | |
| CN101330662B (en) | Business content information inquiry method, system and service provider platform | |
| CN100488177C (en) | Method and device for realizing pocket transmission news service | |
| JP5246332B2 (en) | Enhanced messaging platform | |
| WO2008040248A1 (en) | A method and system for transmitting email and a push mail server | |
| CN101754107A (en) | Method and system for real-time publishing and sharing files in mobile communication terminal | |
| CN101155348B (en) | A system and method for sending multimedia messages in groups | |
| CN102014345B (en) | Message conversion method, system and equipment | |
| CN101594583B (en) | Method, device and system for processing multimedia messages | |
| CN106817689B (en) | High-reliability data subscription and release method and system | |
| KR101005986B1 (en) | Multimedia message transmission method in mobile communication system | |
| WO2014135016A1 (en) | Service message transmitting method and device | |
| WO2009070991A1 (en) | Method and device for transmitting delivery report of message | |
| CN100490447C (en) | Method and system for realizing information transfer service and a terminal | |
| CN101222660B (en) | Method and device for receiving multimedia messages | |
| WO2009103196A1 (en) | System and method for sending multimedia message storage address | |
| CN102244844A (en) | Method for transmitting multimedia message, device and system | |
| CN100512521C (en) | Apparatus and method for multimedia message processing | |
| CN101674547B (en) | Method and device for tracing multimedia messages | |
| CN101156400B (en) | A method and system for processing messages in multimedia message service | |
| WO2013131429A1 (en) | Spam message processing method and system | |
| WO2011110131A2 (en) | Method and apparatus for processing a multimedia message | |
| CN101106753B (en) | A method, system and device for realizing multimedia message service | |
| CN101483837A (en) | Method, mobile terminal and system for multimedia message reading report | |
| CN1901595B (en) | Method for sending fax to radio fax device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| WWE | Wipo information: entry into national phase |
Ref document number: 197144 Country of ref document: IL |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 2293/KOLNP/2009 Country of ref document: IN |
|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 08757575 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 08757575 Country of ref document: EP Kind code of ref document: A1 |