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 said message, judge whether and to carry out format analysis processing to said message;
According to judged result, said message is carried out format analysis processing;
Qualified message after message that need not to carry out format analysis processing or the format analysis processing is sent to the multimedia messaging service, MMS center.
Further, according to the size of said message, judge whether that need carry out format analysis processing to said message comprises:
When the size of said message surpasses the higher limit of wall scroll multimedia message, then judgement need be carried out format analysis processing; Otherwise, then judge to need not to carry out format analysis processing.
Further, need carry out format analysis processing to said message when judgement, this method also comprises:
Send the mobile phone terminal information inquiring request to said multimedia messaging service, MMS center;
According to the response at said multimedia messaging service, MMS center, obtain the attachment format that said mobile phone terminal is supported.
Further, saidly said 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 said reception from the message of mailbox server, this method also comprises:
According to said log-on message, said message is carried out authentication; If failed authentication then abandons said message; If the authentication success then continues to carry out subsequent step.
Further; Said log-on message comprises phone number, email address, another name and signing type; Said signing type comprises that transmit leg is signatory, the recipient is signatory and/or two-way contracting; Said message comprises source email address and destination address, and is said according to said log-on message, said message carried out authentication comprise:
According to said log-on message, judge that it still is recipient's authentication that said message adopts the transmit leg authentication;
If adopt the transmit leg authentication, check then whether said message satisfies following two conditions, the one, source email address in the said message and phone number are bound, and the 2nd, the signing type of said 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 the corresponding mobile phone number according to the destination address in the said message; Signatory or two-way signatory for the recipient when the signing type of said message, then authentication is successful; Otherwise, failed authentication then.
Further, the said message employing of said 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 said mailbox server in the more said message;
If consistent, then said message adopts the transmit leg authentication; If inconsistent, then said message adopts recipient's authentication.
Further, this method also comprises:
If adopt the transmit leg authentication, the phone number of then binding with said source email address is as charge number; If adopt recipient's authentication, the phone number of then binding with said destination address is as charge number.
Further, this method also comprises:
According to said charge number, criticize valency 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 said receiver module reception, judges whether and need carry out format analysis processing to said message;
The format analysis processing module is used for the judged result according to said judge module, and said message is carried out format analysis processing;
Sending module, said judge module judged the message that need not to carry out format analysis processing or said 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 when said judge module judgement need be carried out format analysis processing to said message, sends the mobile phone terminal information inquiring request to said multimedia messaging service, MMS center; And, obtain the attachment format that said mobile phone terminal is supported according to the response at said multimedia messaging service, MMS center.
Further, said 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 perhaps changing the message determining of submodule from the first deletion submodule, if the size of message surpasses 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 the message determining from 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 said log-on message said message being carried out authentication; If failed authentication then abandons said message; If the authentication success then sends to judge module with said message.
Further, said authentication module comprises:
Judge submodule, be used for log-on message, judge that it still is recipient's authentication that said message adopts the transmit leg authentication according to said Registering modules reception;
The first authentication submodule; If be used for adopting the transmit leg authentication; Check then whether said message satisfies following two conditions, the one, source email address in the said message and phone number are bound, and the 2nd, the signing type of said 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 the corresponding mobile phone number according to the destination address in the said message; Signatory or two-way signatory for the recipient when the signing type of said message, then authentication is successful; Otherwise, failed authentication then.
Further, if adopt the transmit leg authentication, the phone number of then binding with said source email address is as charge number; If adopt recipient's authentication, the phone number of then binding with said destination address is as charge number, and this gateway also comprises:
Accounting module is used for criticizing valency according to said 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 on one's own initiative mail push be arrived user mobile phone terminal in real time through the mode of multimedia message, because the message size of coming from mailbox server does not limit; Mobile phone terminal often can't normally show; The present invention handles through 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
Do detailed elaboration below in conjunction with the accompanying drawing specific embodiments of the invention.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, for the user multimedia messaging service, MMS is provided by the Multimedia Message center (MMSC) of user attaching.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 through 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 that an Email information and cellphone subscriber's information are bound, the user sends mail on the internet and gives 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:
The inspection log-on message judges 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 whether inspection message satisfies following two conditions: the one, source email address in the message and phone number are bound, and 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 are bound, and then can the phone number that the transmit leg of this multimedia message mail (message) is bound be chargeed.
If inconsistent, think that then this message should be by recipient's authentication; So; The CAMEL-Subscription-Information of inspection destination address; Judge it is email address, another name, phone number according to the form of destination address,, search the corresponding mobile phone number according to destination address when destination address is an email address or when calling; 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 maybe 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 judgement need be carried 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 convert big form annex into little 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, and 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 message or the format analysis processing of format analysis processing after qualified message send to the multimedia messaging service, MMS center.
Adopt the technical scheme of present embodiment; Through the mode of format analysis processing, avoid mobile phone can't discern problem from the multimedia message of mailbox, can be through 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, the phone number of then binding with the source email address is as charge number; If recipient's authentication, the phone number of then binding with destination address is as charge number.According to charge number, (ISMP) criticizes valency to Integrated Service Management Platform.
After having increased charging flow, also can realize chargeing, the multimedia message mail 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 when the judge module judgement need be carried out format analysis processing to message, sends the mobile phone terminal information inquiring request to the multimedia messaging service, MMS center; 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 perhaps changing the message determining of submodule from the first deletion submodule, if the size of message surpasses 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 the message determining from 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 are bound, and 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 the corresponding mobile 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, the phone number of then binding with the source email address is as charge number; If adopt recipient's authentication, the phone number of then binding with destination address is as charge number, and this gateway also comprises:
Accounting module is used for criticizing valency according to charge number 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, DBM, 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 through browser access from service module, and the customer account management personnel also can be through carrying out unified management, batch operation from service module to mobile phone user profile and Email information;
DBM belongs to internal module, is used for the actual storage log-on message, for from service module, business module interface being provided, 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, and (Transmission Control Protocol, TCP) communication can be sent 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 DBM, carries out different service control according to condition of different.
Wherein, Realize the function of Registering modules among the above embodiment from service module and DBM; 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 concrete the realization, can relate to following three business processing flows:
One, the EmailServer issuing message comprises to the business processing flow at 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 through 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 through HTTP.
On concrete the realization, 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) through the Internet.
Step 2:MESG checks CAMEL-Subscription-Information, judges at first whether the source mailbox is bound with a phone number, if bind, then charge number is the phone number of binding with the source mailbox; If do not bind, then go the DBM authentication according to destination address, check whether the recipient is signatory or two-way signatory; If destination address is bound phone number, then charge number is the phone number that destination address is bound, 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 this another name corresponding mobile phone number, be used for the MMS center of follow-up inquiry ownership.
Step 3: after the CAMEL-Subscription-Information inspection was passed through, MESG criticized valency 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; Compression sizes is perhaps deleted the annex that 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 accomplished, MESG inquired the MMSC of destination Mobile Station International ISDN Number ownership through Enumdns, and will change later forwards and give this MMSC.
Step 6:MMSC is that a multimedia message sends to the user through normal multimedia message transmitting-receiving flow process with message conversion.
Two, the EmailServer copy message comprises to the business processing flow at mobile phone terminal:
The first step: the Internet mailbox sends the mobile phone mailbox that message is given 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 through 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 through 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 through 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 through 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 criticizes valency according to charge number (called subscriber just) to ISMP.
Step 5: after accomplishing batch valency; If message size is greater than 100K; Then carry out format conversion or delete the annex that mobile phone can not be discerned; MESG inquires the MMSC of destination Mobile Station International ISDN Number ownership through Enumdns then, and will change later forwards and give this MMSC, notes 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 through 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, through 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 through 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 through 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 through multimedia message sends out (the destination address form is zhangsan163.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 removes batch valency to ISMP, for the message that mobile phone sends up, need not inquire about CAMEL-Subscription-Information here, directly passes through.
Step 4: after batch valency 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; Development Trend was fine at home in these several years for MMS, 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 an 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 improvement and retouching, these improvement and retouching also should be regarded as protection scope of the present invention.