Summary of the invention
The object of the present invention is to provide method and the multimedia message mail service gateway of realizing the multimedia message mail, make and to support the terminal of multimedia message can support the mobile phone mail, be convenient to the promotion and application of mobile phone mail.
A kind of method that realizes the multimedia message mail of the present invention receives log-on message, and this method comprises:
Reception is from the message of mailbox server;
According to the size of described message, judge whether and to carry out format analysis processing to described message;
According to judged result, described message is carried out format analysis processing;
Qualified message after need not to carry out the message of format analysis processing or format analysis processing is sent to the multimedia messaging service, MMS center.
Further, according to the size of described message, judge whether that need carry out format analysis processing to described message comprises:
When the size of described message surpasses the higher limit of wall scroll multimedia message, then judge and to carry out format analysis processing; Otherwise, then judge to need not to carry out format analysis processing.
Further, need carry out format analysis processing to described message when judging, this method also comprises:
Send the mobile phone terminal information inquiring request to described multimedia messaging service, MMS center;
According to the response at described multimedia messaging service, MMS center, obtain the attachment format that described mobile phone terminal is supported.
Further, describedly described message carried out format analysis processing comprise:
The annex of the unsupported form of mobile phone terminal is judged message size afterwards again in the deletion message, if the size of message does not surpass the higher limit of wall scroll multimedia message, then this message is qualified message after the format analysis processing; Otherwise,
If the size of message surpasses the higher limit of wall scroll multimedia message, then the annex in the message is carried out format conversion, again message size is judged that afterwards if the size of message does not surpass the higher limit of wall scroll multimedia message, then this message is qualified message after the format analysis processing; Otherwise,
If the size of message surpasses the higher limit of wall scroll multimedia message, then delete the annex of message, again message size is judged that afterwards if the size of message does not surpass the higher limit of wall scroll multimedia message, then this message is qualified message after the format analysis processing; Otherwise, abandon this message.
Further, after the step of described reception from the message of mailbox server, this method also comprises:
According to described log-on message, described message is carried out authentication; If failed authentication then abandons described message; If the authentication success then continues to carry out subsequent step.
Further, described log-on message comprises phone number, email address, another name and signing type, described signing type comprises that transmit leg is signatory, the recipient is signatory and/or two-way contracting, described message comprises source email address and destination address, described according to described log-on message, described message is carried out authentication comprise:
According to described log-on message, judge that it still is recipient's authentication that described message adopts the transmit leg authentication;
If adopt the transmit leg authentication, check then whether described message satisfies following two conditions, the one, source email address in the described message and phone number binding, the 2nd, the signing type of described message is that transmit leg is signatory or two-way signatory; Satisfy this two conditions, then authentication success; Otherwise, failed authentication then;
If adopt recipient's authentication, then search corresponding phone number according to the destination address in the described message; Signatory or two-way signatory for the recipient when the signing type of described message, then authentication is successful; Otherwise, failed authentication then.
Further, the described message employing of described judgement transmit leg authentication still is that recipient's authentication comprises:
Whether the domain name of source email address is consistent with the domain name of described mailbox server in the more described message;
If consistent, then described message adopts the transmit leg authentication; If inconsistent, then described message adopts recipient's authentication.
Further, this method also comprises:
If adopt the transmit leg authentication, then with the phone number of described source email address binding as charge number; If adopt recipient's authentication, then with the phone number of described destination address binding as charge number.
Further, this method also comprises:
According to described charge number, carry out wholesale price to Integrated Service Management Platform.
The present invention also provides a kind of multimedia message mail service gateway, and this gateway comprises: Registering modules is used to receive log-on message; It is characterized in that this gateway also comprises:
Receiver module is used to receive the message from mailbox server;
Judge module is used for the size according to the message of described receiver module reception, judges whether and need carry out format analysis processing to described message;
The format analysis processing module is used for the judged result according to described judge module, and described message is carried out format analysis processing;
Sending module, described judge module judged the message that need not to carry out format analysis processing or described format analysis processing module format analysis processing after qualified message send to the multimedia messaging service, MMS center.
Further, this gateway also comprises:
Enquiry module is used for sending the mobile phone terminal information inquiring request to described multimedia messaging service, MMS center when described judge module judgement need be carried out format analysis processing to described message; And, obtain the attachment format that described mobile phone terminal is supported according to the response at described multimedia messaging service, MMS center.
Further, described format analysis processing module comprises:
First deletes submodule, is used for deleting the annex of the unsupported form of message mobile phone terminal;
The conversion submodule if the size of the message after the deletion submodule is handled surpasses the higher limit of wall scroll multimedia message, then carries out format conversion to the annex in the message;
The second deletion submodule if the size of the message after the conversion submodule is handled surpasses the higher limit of wall scroll multimedia message, is then deleted the annex of message;
Judge submodule, the message size that is used for after order is handled the first deletion submodule, conversion submodule and the second deletion submodule is judged, after judging from the message of the first deletion submodule or conversion submodule, if the size of message does not surpass the higher limit of wall scroll multimedia message, then this message is qualified message after the format analysis processing, otherwise, change the next son module over to and handle; After judging from the message of the second deletion submodule, if the size of message does not surpass the higher limit of wall scroll multimedia message, then this message is qualified message after the format analysis processing; Otherwise, abandon this message.
Further, this gateway also comprises:
Authentication module is used for according to described log-on message described message being carried out authentication; If failed authentication then abandons described message; If the authentication success then sends to judge module with described message.
Further, described authentication module comprises:
Judge submodule, be used for log-on message, judge that it still is recipient's authentication that described message adopts the transmit leg authentication according to described Registering modules reception;
The first authentication submodule, if be used for adopting the transmit leg authentication, check then whether described message satisfies following two conditions, the one, source email address in the described message and phone number binding, the 2nd, the signing type of described message is that transmit leg is signatory or two-way signatory; Satisfy this two conditions, then authentication success; Otherwise, failed authentication then;
The second authentication submodule if be used for adopting recipient's authentication, is then searched corresponding phone number according to the destination address in the described message; Signatory or two-way signatory for the recipient when the signing type of described message, then authentication is successful; Otherwise, failed authentication then.
Further, if adopt the transmit leg authentication, then with the phone number of described source email address binding as charge number; If adopt recipient's authentication, then with the phone number of described destination address binding as charge number, this gateway also comprises:
Accounting module is used for carrying out wholesale price according to described charge number to Integrated Service Management Platform.
Adopt the method and the multimedia message mail service gateway of realization multimedia message mail provided by the invention, can be by the mode of multimedia message, on one's own initiative mail push is arrived user mobile phone terminal in real time, because the message size of coming from mailbox server does not limit, mobile phone terminal often can't normally show, the present invention handles by the form to message, makes to support the terminal of multimedia message can support the mobile phone mail, is convenient to the promotion and application of mobile phone mail.
Embodiment
Below in conjunction with accompanying drawing the specific embodiment of the present invention is done and to be elaborated.Multimedia messaging service, MMS (Multimedia Messaging Service, MMS) be a kind of can between mobile phone and the mobile phone and mobile phone and Email server etc. other transmit the messenger service of content of multimedia between using, that is to say usually said multimedia message.Multimedia messaging service, MMS is divided according to the operator of user attaching and the zone at place, provides multimedia messaging service, MMS by the Multimedia Message center (MMSC) of user attaching for the user.MM3 message interface among the MMSC is the interface between mail server (EmailServer) and the MMSC, Simple Mail Transfer protocol (Simple Mail Transfer Protocol, SMTP) realize that the user can carry out the mutual of information by this interface and EmailServer.
The present invention increases a multimedia message mail service gateway (Multimedia Email ServiceGateway, MESG), between MMSC and EmailServer, play the function of an Email information and cellphone subscriber's information binding, the user sends mail on the internet to before the mobile phone, at first in multimedia message mail service gateway registration relevant information, these relevant informations (log-on message) comprise phone number, email address, another name, signing type, include but not limited to phone number, email address, another name and signing type, wherein, another name comprises the another name of phone number and/or the another name of email address; Signing type comprises that transmit leg is signatory, the recipient is signatory and/or two-way contracting, if the addresses of items of mail of the message that the multimedia message mail service gateway receives is registration not, then this message is directly refused by system, do not transmit, have only the message that those addresses of items of mail of having registered information are sended over just to transmit, thereby realize the multimedia message mail.
Fig. 1 illustrates the schematic flow sheet that the present invention realizes the method for multimedia message mail.See also Fig. 1, a kind of method that realizes the multimedia message mail, the multimedia message mail service gateway receives log-on message, and this method comprises:
101, the multimedia message mail service gateway receives the message from mailbox server, and message comprises source email address, destination address and CAMEL-Subscription-Information, and destination address comprises email address, another name or phone number.
102, the multimedia message mail service gateway carries out authentication according to log-on message to message.
Concrete method for authenticating can include but not limited to:
Check log-on message, judge whether the domain name of the source email address in the message is consistent with the domain name of the mailbox server of submitting message to, if consistent, then this mailbox server is the original mailboxes server that sends message; If inconsistent, then this mailbox server is the mailbox server of transmitting message.
If consistent, think that then this message should be the transmit leg authentication; So, check whether message satisfies following two conditions: the one, source email address in the message and phone number binding, the 2nd, the signing type of message is that transmit leg is signatory or two-way signatory; Satisfy this two conditions, then authentication success; Otherwise, failed authentication then; Wherein, the setting of condition one is used in order to guarantee the charging of message, and source email address and phone number binding then can be chargeed to the phone number that the transmit leg of this multimedia message mail (message) is bound.
If inconsistent, think that then this message should be by recipient's authentication; So, check the CAMEL-Subscription-Information of destination address, judge it is email address, another name, phone number according to the form of destination address, when destination address is email address or another name, search corresponding phone number according to destination address, signatory or two-way signatory for the recipient when the signing type of message, then authentication is successful; Otherwise, failed authentication then.
If the success of 103 message authentications, the multimedia message mail service gateway judges whether and need carry out format analysis processing to message according to the size of message; If judge to need not message is carried out format analysis processing, then change step 105 over to; Otherwise, change step 104 over to.
When giving the multimedia messaging service, MMS center with forwards, because size that may this message can exceed the restriction (for example 100k) of multimedia messaging service, MMS center for wall scroll multimedia message size, thereby cause mobile phone terminal can't normally show this message, therefore, when the size of message surpasses the higher limit of wall scroll multimedia message, then judge and to carry out format analysis processing.
104,, message is carried out format analysis processing according to judged result.
At first the multimedia message mail service gateway sends the mobile phone terminal information inquiring request to the multimedia messaging service, MMS center; According to the response at multimedia messaging service, MMS center, obtain the attachment format that mobile phone terminal is supported.
Concrete format analysis processing comprises:
The annex of the unsupported form of mobile phone terminal is judged message size afterwards again in the deletion message, if the size of message does not surpass the higher limit of wall scroll multimedia message, then this message is qualified message after the format analysis processing; Otherwise,
If the size of message surpasses the higher limit of wall scroll multimedia message, then the annex in the message is carried out format conversion, the principle of format conversion is for to be converted to little form annex with big form annex, and the annex after the conversion is the form annex that mobile phone terminal is supported, for example picture file is changed between different-format, the picture file after the conversion is littler than the picture file before changing; Perhaps video file is compressed or the like; When two or more annex is arranged, can carry out format conversion to whole annexes and also can carry out format conversion the part annex; Annex is carried out again message size being judged after the format conversion if the size of message does not surpass the higher limit of wall scroll multimedia message, then this message is qualified message after the format analysis processing; Otherwise,
If the size of message surpasses the higher limit of wall scroll multimedia message, then delete the annex of message, again message size is judged that afterwards if the size of message does not surpass the higher limit of wall scroll multimedia message, then this message is qualified message after the format analysis processing; Otherwise, abandon this message.
105, will need not to carry out the message of format analysis processing or format analysis processing after qualified message send to the multimedia messaging service, MMS center.
Adopt the technical scheme of present embodiment, mode by format analysis processing, avoid mobile phone can't discern problem from the multimedia message of mailbox, can be by the mode of multimedia message, on one's own initiative mail push is arrived user mobile phone terminal in real time, and can support to receive and dispatch whenever and wherever possible on the mobile phone terminal of multimedia message, consult, reply, forwarding and managing email and annex, convenient, efficient, flexibly, safety.Make simultaneously and can support the terminal of multimedia message can support the mobile phone mail, be convenient to the promotion and application of mobile phone mail.
Further, can also increase the flow process of charging.
Authentication type during according to authentication, if the transmit leg authentication, then with the phone number of source email address binding as charge number; If recipient's authentication, then with the phone number of destination address binding as charge number.According to charge number, (ISMP) carries out wholesale price to Integrated Service Management Platform.
After having increased charging flow, also can realize chargeing, the multimedia message mail be included in the whole mobile charge system, and then quicken the popularization of multimedia message mail service thereby be convenient to operator for the Email user on the Internet.
Fig. 2 illustrates the structural representation of multimedia message mail service gateway of the present invention.See also Fig. 2, a kind of multimedia message mail service gateway, this gateway comprises:
Registering modules 201 is used to receive log-on message;
Receiver module 202 is used to receive the message from mailbox server;
Authentication module 203 is used for according to log-on message, and the message that receiver module receives is carried out authentication; If failed authentication then abandons message; If the authentication success then sends to judge module with message.
Judge module 204 is used for the size according to message, judges whether to carry out format analysis processing to message;
Format analysis processing module 205 is used for the judged result according to judge module, and message is carried out format analysis processing;
Sending module 206, judge module judged the message need not to carry out format analysis processing or format analysis processing module format analysis processing after qualified message send to the multimedia messaging service, MMS center.
Further, this gateway also comprises:
Enquiry module is used for sending the mobile phone terminal information inquiring request to the multimedia messaging service, MMS center when the judge module judgement need be carried out format analysis processing to message; And, obtain the attachment format that mobile phone terminal is supported according to the response at multimedia messaging service, MMS center.
Further, the format analysis processing module comprises:
First deletes submodule, is used for deleting the annex of the unsupported form of message mobile phone terminal;
The conversion submodule if the size of the message after the deletion submodule is handled surpasses the higher limit of wall scroll multimedia message, then carries out format conversion to the annex in the message;
The second deletion submodule if the size of the message after the conversion submodule is handled surpasses the higher limit of wall scroll multimedia message, is then deleted the annex of message;
Judge submodule, the message size that is used for after order is handled the first deletion submodule, conversion submodule and the second deletion submodule is judged, after judging from the message of the first deletion submodule or conversion submodule, if the size of message does not surpass the higher limit of wall scroll multimedia message, then this message is qualified message after the format analysis processing, otherwise, change the next son module over to and handle; After judging from the message of the second deletion submodule, if the size of message does not surpass the higher limit of wall scroll multimedia message, then this message is qualified message after the format analysis processing; Otherwise, abandon this message.
Further, authentication module comprises:
Judge submodule, be used for log-on message, judge that it still is recipient's authentication that message adopts the transmit leg authentication according to the Registering modules reception;
The first authentication submodule if be used for adopting the transmit leg authentication, checks then whether message satisfies following two conditions, the one, and source email address in the message and phone number binding, the 2nd, the signing type of message is that transmit leg is signatory or two-way signatory; Satisfy this two conditions, then authentication success; Otherwise, failed authentication then;
The second authentication submodule if be used for adopting recipient's authentication, is then searched corresponding phone number according to the destination address in the message; Signatory or two-way signatory for the recipient when the signing type of message, then authentication is successful; Otherwise, failed authentication then.
Further, if adopt the transmit leg authentication, then with the phone number of source email address binding as charge number; If adopt recipient's authentication, then with the phone number of destination address binding as charge number, this gateway also comprises:
Accounting module is used for according to charge number, carries out wholesale price to Integrated Service Management Platform.
When concrete application, the multimedia message mail service gateway can be an independently system, also can be integrated on operator's management platform; Multimedia message mail service gateway among the above embodiment can be divided into four modules separately and form: from service module, database module, interface module and business module.
From service module, it mainly is the platform that a log-on message is provided for the user, be used for the binding of cellphone subscriber and Email information, the user can be by browser access from service module, and the customer account management personnel also can be by carrying out unified management, batch operation from service module to mobile phone user profile and Email information;
Database module belongs to internal module, is used for the actual storage log-on message, for providing interface from service module, business module, increases, inquiry, deletion action, guarantees the performance of multimedia message mail service gateway;
Interface module, realization and external entity (such as EmailServer, MMSC) are carried out transmission control protocol (Transmission Control Protocol, TCP) communication, can send packet to external entity as client, can encode to the bag that will send, can receive the packet of external entity as server, can decode to the bag that receives, for business module provides standard interface to native system;
Business module to the actual module of controlling of operation flow, all has interaction message with interface module and database module, carries out different business control according to different situations.
Wherein, realize the function of Registering modules among the above embodiment from service module and database module, interface module realizes the function of receiver module and sending module among the above embodiment, and business module is realized the function of authentication module among the above embodiment, judge module and format analysis processing module.
When specific implementation, can relate to following three business processing flows:
One, the EmailServer issuing message comprises to the business processing flow of mobile phone terminal:
The first step: the Internet mailbox sends a message to the multimedia message mail service gateway, and the form of this message is that (Multipurpose Internet MailExtensions MIME), transmits by smtp protocol multi-functional internet mail expansion service format messages.
Second step: the multimedia message mail service gateway carries out authentication to the Email address, if authentication is passed through, then forwards the message to MMSC, and multimedia message mail service gateway smtp protocol is transmitted message.
The 3rd step: MMSC is handed down to mobile phone terminal to message, and MMSC becomes the message of the form that mobile phone terminal can discern with the message conversion of MIME form, and (HypertextTransfer Protocol HTTP) is handed down to mobile phone terminal by HTML (Hypertext Markup Language).
On the specific implementation, Fig. 3 illustrates the schematic flow sheet of EmailServer issuing message to the mobile phone terminal.See also Fig. 3, comprising:
Step 1: the domain name of supposing this multimedia message mail service gateway is: ctmms.com.cn, the Internet mailbox (sender address for addresses of items of mail) arbitrarily sends mail to mobile phone terminal, and (destination address can be 189******@ctmms.com.cn, perhaps another name is zhangsan), mailbox sends to multimedia message mail service gateway (MESG) by the Internet.
Step 2:MESG checks CAMEL-Subscription-Information, judges at first whether the source mailbox is bound with a phone number, if binding, then charge number is the phone number of binding with the source mailbox; If not binding, then go the database module authentication according to destination address, check whether the recipient is signatory or two-way signatory, if destination address binding phone number, then charge number is the phone number of destination address binding, if the recipient is not signatory yet, then abandon this message, in the process of authentication, if destination address is another name, also to find the corresponding phone number of this another name, be used for the MMS center of follow-up inquiry ownership.
Step 3: after the CAMEL-Subscription-Information inspection was passed through, MESG carried out wholesale price according to charge number to ISMP, if authenticating result is incorrect, then this flow process finishes.
Step 4: if this message has surpassed the restriction (for example be 100K) of MMSC to wall scroll multimedia message size, then MESG can carry out format conversion to this message, the annex that compression sizes or deletion mobile phone can not be discerned, to guarantee that MMSC can receive, MESG can send a 189 mailboxes to recipient user to the message that does not have conversion simultaneously.
Step 5: after format conversion was finished, MESG inquired the MMSC of destination Mobile Station International ISDN Number ownership by Enumdns, and will change later forwards and give this MMSC.
Step 6:MMSC is that a multimedia message sends to the user by normal multimedia message transmitting-receiving flow process with message conversion.
Two, the EmailServer copy message comprises to the business processing flow of mobile phone terminal:
The first step: the Internet mailbox sends the mobile phone mailbox of message to the user, in should using, is that 189 mailboxes are that example describes with the mobile phone mailbox.
Second step: 189 mailboxes are given to the multimedia message mail service gateway to this message, and the form of this message is MIME, transmits by smtp protocol.
The 3rd step: the multimedia message mail service gateway carries out authentication to the Email address, if authentication is passed through, then forwards the message to MMSC, and the multimedia message mail service gateway is transmitted this message by smtp protocol.
The 4th step: MMSC is handed down to mobile phone terminal to message, and MMSC becomes the message of the form that mobile phone terminal can discern with the message conversion of MIME form, is handed down to mobile phone terminal by http protocol.
Fig. 4 illustrates the schematic flow sheet of EmailServer copy message to the mobile phone terminal.See also Fig. 4, comprising:
Step 1: the Internet mailbox sends message (destination address can be 189******@189.com.cn) to 189 mailboxes, and mailbox sends to 189 mail servers by the Internet.
Step 2:189 mail server receives after this message, and message forwarding is a to multimedia message Mail Gateway MESG.
Step 3:MESG directly checks recipient's CAMEL-Subscription-Information, judge whether the called subscriber has opened the business that 189 mails are withheld in multimedia message, if the called subscriber is not signatory, then flow process finishes, if called number is signatory, then inquire the phone number information of binding, be used for inquiring about the MMS center of called ownership to ENUMDNS according to recipient's addresses of items of mail.
Step 4: if the called user subscription information inspection is passed through, then MESG carries out wholesale price according to charge number (called subscriber just) to ISMP.
Step 5: after finishing wholesale price, if message size is greater than 100K, then carry out the annex that format conversion or deletion mobile phone can not be discerned, MESG inquires the MMSC of destination Mobile Station International ISDN Number ownership by Enumdns then, and will change later forwards and give this MMSC, note not needing here to change a origination message again to 189 mailboxes.
Step 6: MMS center is that a multimedia message sends to the user by normal multimedia message transmitting-receiving flow process with message conversion.
Three, the business processing flow that sends a message to EmailServer from mobile phone terminal comprises:
The first step: mobile phone terminal submits to message to MMSC, by http protocol message is submitted to MMSC.
Second step: MMSC is given to the multimedia message mail service gateway to this message, and MMSC becomes the MIME form with the format conversion of message, and is transferred to the multimedia message mail service gateway by smtp protocol.
The 3rd step: the multimedia message mail service gateway forwards the message to mailbox server then through authentication, and the form of this message is MIME, transmits by smtp protocol.
Fig. 5 illustrates the schematic flow sheet that sends a message to EmailServer from mobile phone terminal.See also Fig. 5, comprising:
Step 1: the terminal use edits the mail that will send, and the mode by multimedia message sends out (the destination address form is zhangsan@163.com).
Step 2: MMS center is received the multimedia message that the user submits to, finds it is a mail behind the inspection destination address, directly is forwarded to multimedia message Mail Gateway MESG.
Step 3:MESG goes wholesale price to ISMP, and the message for mobile phone sends does not up need to inquire about CAMEL-Subscription-Information here, directly passes through.
Step 4: after the wholesale price success, MESG is to the server forwards message of target mailbox.
The terminal of mobile phone mailbox service of the prior art must be an intelligent terminal, and the client software of appointment is installed simultaneously, and threshold is very high.And adopt the color business of posting provided by the invention can face at present the support multimedia message terminal of all standards on the market, MMS customer all is the color professional potential user that posts, the trend that MMS developed in these several years at home is fine, can further develop the color service-user of posting by this good impetus; Use extremely convenient and simple, the same with the business experience of multimedia message, as long as the multimedia message use experience is arranged, can use easily color post professional, so this business has great practicality and market popularization value.
The above only is the specific embodiment of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.