CN103929505A - Message handling method - Google Patents

Message handling method Download PDF

Info

Publication number
CN103929505A
CN103929505A CN201310500087.4A CN201310500087A CN103929505A CN 103929505 A CN103929505 A CN 103929505A CN 201310500087 A CN201310500087 A CN 201310500087A CN 103929505 A CN103929505 A CN 103929505A
Authority
CN
China
Prior art keywords
message
address
com
value
account
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.)
Pending
Application number
CN201310500087.4A
Other languages
Chinese (zh)
Inventor
王正伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN201310500087.4A priority Critical patent/CN103929505A/en
Publication of CN103929505A publication Critical patent/CN103929505A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a message handling method. According to the message handling method, activating information of an account is registered in an HSvr, a message is handled according to the registered activated information, and then a user can select another account for receiving the message through an IUsr by controlling the activating state of the account of the user. The invention further discloses a new address determining method. According to the new address determining method, an address of an account which is newly selected by a target user is determined through a received exception report. The invention further discloses a message sending method. According to the message sending method, a target address of the message is renewed through the received exception report, and therefore it is ensured that the message is sent to the account newly selected by the target user. The invention further discloses an address automatic renewing method. According to the address automatic renewing method, the contact address of the target user is automatically renewed through the received exception report. The invention further discloses an address compensation method. According to the address compensation method, addresses to be compensated for are matched by setting an address list, and therefore the addresses are compensated for.

Description

Message treatment method
Technical field
The present invention relates to internet communication, relate to or rather the processing method of message, and method, message method, address automatic update method are determined in the new address proposing based on the method.
Background technology
In internet communication, relate to global Unified Identity (GUID, Global Unified Identity), described GUID comprises two parts: ownership code (HCode, Home Code) and user code (UCode, User Code).Wherein, HCode indicates this GUID, also Internet user (the IUsr that this GUID is corresponding, Internet User) belong to instant messaging network (IMN, Instant Messenger Network) in which instantaneous communication system (IMS, Instant Messenger System) which attribution server (HSvr, Home Server); UCode is used to indicate GUID or IUsr different under a HCode.By setting up the corresponding relation of HCode and HSvr, can obtain a HSvr pointed according to a HCode.
Shadow code is as a kind of special GUID, and its corresponding HCode is ownership two tuples (H2T, Home Two-Tuple).Described H2T comprises two parts: national code (CC, Country Code) and state's inside trade code (NBC, National Business Code), i.e. (CC, NBC) or CC*NBC.The representation of shadow code is generally: CC*NBC*UCode, * is shadow code designator or separator here.
More information, is 201210041577.8 or " communication means and system " patent of invention of 201310037232.X referring to application number, and application number is 201210041677.0 or " shadow code addressing method " patent of invention of 201310049772.X.
About IMN networking diagram, shown in Figure 5.In the figure:
The HSvr of A service provider (SP-A) is HSvr-A, and wherein, registration has user A(UsrA) and user X(UsrX);
The HSvr of B service provider (SP-B) is HSvr-B, and wherein, registration has user B(UsrB) and user Y(UsrY);
The HSvr of C service provider (SP-C) is HSvr-C, and wherein, registration has user C(UsrC) and user Z(UsrZ);
The HSvr of D service provider (SP-D) is HSvr-D, and wherein, registration has user D(UsrD) and user O(UsrO).
For example, SP-A is that Tengxun, SP-B are that Netease, SP-C are that Microsoft, SP-D are Googles, also for example, HCode value qq.com belongs to HSvr-A, HCode value 163.com belongs to HSvr-B, and HCode value Outlook.com belongs to HSvr-C, and HCode value gmail.com belongs to HSvr-D etc.
The migration source HSvr(MSSvr that the HSvr of a GUID ownership is this GUID, Migration Source HSvr).The source account that the account of registering in its MSSvr according to a GUID is this GUID.For example, according to GUID value liubei@Outlook.com, the account of registering in HSvr-C is the source account of liubei@Outlook.com.In HSvr outside the MSSvr of a GUID, the migration account that the account of registering according to this GUID is this GUID, the migration object HSvr(MDSvr that this HSvr is this GUID, Migration Destination HSvr).For example, according to GUID value liubei@Outlook.com, the account of registering in HSvr-A, HSvr-B and HSvr-D is all the migration account of liubei@Outlook.com.About more descriptions of GUID migration, " supporting network and the related news processing method of the GUID migration " patent of invention that is 201310079118.3 referring to application number.
The account that GUID is identical is the account of the same clan based on this GUID, that is, the source account of the GUID migration account all with it forms the account family of this GUID jointly.In the account family of a GUID, this GUID is the root of migration account all in account family.The account family of the GUID that the account family of an IUsr is this IUsr.Described source account is the source account of described migration account.Described migration account is the migration account of described source account.
Cross-domain address code (CDAddr, Cross-domain Address) be called for short cross-domain code, be cross-domain address two tuples, comprise across last HSvr information (CeSvrDesc, Cross-end HSvr Description) and this base GUID(BaseGUID, The Base GUID) two parts.Wherein, CeSvrDesc be used to indicate this CDAddr corresponding across last HSvr, can be host IP address or the host domain name of this HSvr, usually, be any one HCode that this HSvr has." auxiliary addressing method " patent of invention that is 201310073334.7 referring to application number.
Below taking a CeSvrDesc be a HCode being had of corresponding HSvr as example, but be not used in restriction the present invention.
Usually, a CDAddr can write (CeSvrDesc, BaseGUID) form, or the form of writing BaseGUID $ CeSvrDesc, and wherein, " $ " is separator.
E-mail address is made up of three parts: user name@domain name.The CDAddr that the present invention is E-mail address by BaseGUID is called the cross-domain code of E-mail address.
CeSvrDesc is that the cross-domain code of the E-mail address of domain name is called the cross-domain code of two domain names, is called for short the cross-domain code in two territories or two territory CDAddr.
A CDAddr also can write the form of BaseGUID@CeSvrDesc, and wherein, "@" is separator.Like this, search forward first "@" separator from the CDAddr afterbody of this form, the part that intercepts this separator back obtains corresponding CeSvrDesc, intercepts this separator part in front and obtains corresponding BaseGUID.For example, in the cross-domain code guanyc@Outlook.com@163.com of two territories, BaseGUID is guanyc@Outlook.com, and CeSvrDesc is 163.com.
In the middle of reality, in the time that liubei logins its migration account in HSvr-A, do not wish that other people send to the message of oneself to be sent to other migration account of oneself.But, that in the directory of machao, record is but the CDAddr value liubei@Outlook.com@163.com of liubei, like this, when machao posts a letter to liubei, can send a message to HSvr-B according to liubei@Outlook.com@163.com, like this, even according to the mutual operation method in " with informing mechanism implementation method between base account ", liubei by it migration account in HSvr-A can obtain the message of own account in HSvr-B, but real-time cannot ensure.
Also for example, zhaoyun basis is at Chinese phone number 8613316882012, in HSvr-A, HSvr-C and HSvr-D, registered mailbox respectively, corresponding E-mail address is respectively 8613316882012@qq.com, 8613316882012@Outlook.com and 8613316882012@gmail.com.In the time that zhaoyun logins its mailbox in HSvr-A according to phone number, do not wish that other people send to the message of oneself to be sent to other mailbox of oneself.But, the E-mail address of the zhaoyun recording in the directory of machao is 8613316882012@Outlook.com, like this, when machao posts a letter to zhaoyun, can send a message to HSvr-C according to E-mail address 8613316882012@Outlook.com, like this, even if described message has been transmitted to the account of zhaoyun in HSvr-A by the account of zhaoyun in HSvr-C, still there is the roundabout problem of message.This is also that current mail is withheld existing problem in fact.
Summary of the invention
In view of this, the invention discloses a kind of message treatment method: by register the active information of account in HSvr, and carry out processing messages according to the active information of registration, and make IUsr by the state of activation of the account that draws oneself up, just can select the account for receipt message.
A kind of message treatment method, is characterized in that, registers the active information of account in HSvr, is used to indicate in the same base account family of an account, and which account is in state of activation; Said method comprising the steps of:
Step a, described HSvr judge that the target account of described message, whether in state of activation, if so, performs step b; Otherwise, execution step c;
This message is ended in this target account by step b, described HSvr;
Step c, described HSvr reply the active information of described target account according to the source address of message; Or described HSvr replys unexpected message according to the source address of message.
Whether in described message, further carry pressure terminated flag, being used to indicate this message is to force ending message;
Correspondingly, before step a, further comprise: described HSvr judges whether described message is to force ending message, if so, directly described message is ended in to the target account of this message, then finishes.
The present invention also open a kind of new address determines method: by receiving exception reporting, determine the address of the account of the up-to-date selection of object user.
Method is determined in a kind of new address, it is characterized in that, said method comprising the steps of:
A, a message is sent, receive and reply message.
B, according to described reply message, determine new address according to the AddrBase of the destination address of described message.
In described reply message, contain corresponding active information.Correspondingly, described step b further: determine new address according to the AddrBase of the destination address of described message and described active information.
In described reply message, contain corresponding active information, correspondingly, step b further: judge that whether described active information effective, if effectively, directly the AddrHome of the destination address of described message is replaced into described active information obtains new address; Otherwise, directly determine new address according to the AddrBase value of the destination address of described message.
The AddrBase value of the destination address of described message is a GUID, and the described AddrBase value according to the destination address of described message determines that new address is: directly using the AddrBase value of the destination address of this message as new address;
Or, the AddrBase value of the destination address of described message is one and covers E-mail address, territory, the described AddrBase value according to the destination address of described message determines that new address is: decoding, this is covered E-mail address, territory and obtains corresponding E-mail address, and the E-mail address that decoding is obtained is as described new address;
Or the AddrBase value of the destination address of described message is a telephone number, the described AddrBase value according to the destination address of described message determines that new address is: using shadow code corresponding this telephone number as described new address;
Or, the AddrBase value of the destination address of described message is a GUID, the described AddrBase value according to the destination address of described message determines that new address is: according to this GUID, by migration recognition methods, obtain the CeSvrDesc value that this GUID is corresponding, directly the AddrHome of the destination address of described message is replaced into described CeSvrDesc value obtains described new address;
Or, the AddrBase value of the destination address of described message is one and covers E-mail address, territory, the described AddrBase value according to the destination address of described message determines that new address is: this is covered territory E-mail address decoder and obtains an E-mail address type GUID, according to this GUID, by migration recognition methods, obtain the CeSvrDesc value that this GUID is corresponding, directly the AddrHome of the destination address of described message is replaced into described CeSvrDesc value obtains described new address;
Or, the AddrBase value of the destination address of described message is a telephone number, the described AddrBase value according to the destination address of described message determines that new address is: the shadow code corresponding according to this telephone number, by migration recognition methods, obtain the CeSvrDesc value of this shadow code correspondence, directly the AddrHome of the destination address of described message is replaced into described CeSvrDesc value obtains described new address;
Or, the AddrBase value of the destination address of described message is a telephone number, the described AddrBase value according to the destination address of described message determines that new address is: according to ENUM protocol, telephone number is converted to a domain name, by domain name mapping, obtain the address that this domain name is pointed to, using this address as described new address.
The present invention also discloses a kind of message method: by receiving exception reporting, carry out the destination address of updating message, thereby ensure a message to send to the account of the up-to-date selection of object user.
A kind of message method, is characterized in that, said method comprising the steps of:
A, a message is sent, receive and reply message.
B, according to described reply message, determine new address according to the AddrBase of the destination address of described message.
The destination address of c, described message is set to described new address, sends this message.
In described reply message, contain corresponding active information.Correspondingly, described step b further: determine new address according to the AddrBase of the destination address of described message and described active information.
In described reply message, contain corresponding active information.Correspondingly, described step b further: judge that whether described active information is effective, if effectively, directly the AddrHome of the destination address of described message is replaced into described active information obtains new address; Otherwise, determine new address according to the AddrBase value of the destination address of described message.
The present invention also discloses a kind of address automatic update method: by receiving exception reporting, automatically upgrade object user's contact address.
A kind of address automatic update method, is characterized in that, said method comprising the steps of:
A, after a message is sent, receive reply message.
B, according to described reply message, determine new address according to the AddrBase of the destination address of described message.
C, determine corresponding address record according to the destination address of described message, the address of this record is updated to described new address.
In described reply message, contain corresponding active information.Correspondingly, described step b further: determine new address according to the AddrBase of the destination address of described message and described active information.
In described reply message, contain corresponding active information.Correspondingly, described step b further: judge that whether described active information is effective, if effectively, directly the AddrHome of the destination address of described message is replaced into described active information obtains new address; Otherwise, determine new address according to the AddrBase value of the destination address of described message.
The present invention also discloses the compensation method of a kind of address: by address list is set, address to be compensated is mated, thereby realize address compensation.
A kind of address compensation method, is characterized in that, address list is set; In the time of executive address compensation flow process, according to address to be compensated, from described address list, select left match address, judge whether to exist left match address, if existed, the address after by way of compensation by the left match address of choosing; Otherwise, the directly address after by way of compensation by this address to be compensated.
By method provided by the invention, can make IUsr by the state of activation of the account that draws oneself up, select the account for receipt message, thereby facilitated user to select different operators, facilitate the integration of user account.
Brief description of the drawings
Shown in Fig. 1, it is message treatment method execution mode flow chart of the present invention.
Shown in Fig. 2, for determining method execution mode flow chart in the new address of the present invention.
Shown in Fig. 3, it is message method execution mode flow chart of the present invention.
Shown in Fig. 4, it is address list automatic update method execution mode flow chart of the present invention.
Shown in Fig. 5, it is IMN networking diagram.
Embodiment
The present invention proposes message treatment method, according to the method, make IUsr by the state of the account that draws oneself up, just can select one to receive with corresponding account in base account family the message that other people send.
Each account has an account address (AccountAddr, Account Address).In the account family of a GUID, the AccountAddr of source account is this GUID, and the AccountAddr of migration account is CDAddr corresponding to this migration account, is a certain CDAddr of this GUID.
The present invention writes BaseGUID@CeSvrDesc form as example taking CDAddr, but is not used in restriction the present invention.
For example:
1, liubei has registered source account according to GUID value liubei@Outlook.com in HSvr-C, and corresponding AccountAddr is liubei@Outlook.com; In HSvr-A, HSvr-B and HSvr-D, registered respectively migration account according to GUID value liubei@Outlook.com, corresponding AccountAddr is respectively: liubei@Outlook.com@qq.com, liubei@Outlook.com@163.com and liubei@Outlook.com@gmail.com.
2, guanyunchang has registered source account according to GUID value guanyc@Outlook.com in HSvr-C, and corresponding AccountAddr is guanyc@Outlook.com; According to GUID value guanyc@Outlook.com, in HSvr-A and HSvr-B, register respectively migration account, corresponding AccountAddr is respectively: guanyc@Outlook.com@qq.com and guanyc@Outlook.com@163.com.
3, zhaoyun basis is at Chinese phone number 8613316882012, in HSvr-A, HSvr-C and HSvr-D, register mailbox respectively, also be source account, corresponding AccountAddr is respectively: 8613316882012@qq.com, 8613316882012@Outlook.com and 8613316882012@gmail.com.
4, machao has registered source account according to GUID value machao@gmail.com in HSvr-D, and corresponding AccountAddr is machao@gmail.com.
Each address is made up of an address base (AddrBase, Address Base) and an address ownership (AddrHome, Address Home).In the time that an address is a GUID, the AddrBase of this address is the UCode of this GUID, and the AddrHome of this address is the HCode of this GUID; In the time that an address is a CDAddr, the AddrBase of this address is the BaseGUID of this CDAddr, and the AddrHome of this address is the CeSvrDesc of this CDAddr.
The AddrHome of an AccountAddr points to a HSvr, claims this AccountAddr to belong to this HSvr.
The AddrHome of an account is the AddrHome of the AccountAddr of the account; The AddrBase of an account is the AddrBase of the AccountAddr of the account.The AddrBase value of an account is AB, claims that the account is the account based on AddrBase value AB.For example, the account based on AddrBase value 8613316882012 has three accounts that AccountAddr value is corresponding such as 8613316882012@qq.com, 8613316882012@Outlook.com and 8613316882012@gmail.com; Account based on AddrBase value liubei@Outlook.com has liubei@Outlook.com@qq.com, three accounts that AccountAddr value is corresponding such as liubei@Outlook.com@163.com and liubei@Outlook.com@gmail.com.
The present invention claims: the Wei Tong base address, address that AddrBase is identical, the account that AddrBase is identical is called same base account.Obviously, in an account family all migration account with base.
One of all accounts composition based on an AddrBase value is with base account family, and this is called as the same base account family based on this AddrBase value with base account family, and this AddrBase value is this AddrBase value with base account family.
The same base account family of an account is the same base account family of AddrBase value based on the account.Obviously, each account belongs to the same base account family of the account oneself.
As shown in Figure 1, be message treatment method execution mode flow chart of the present invention.In this embodiment, register the active information of account in HSvr, by described active information, in the same base account family of an account of instruction, which account is in state of activation.
Usually, an accounts information comprises these base attributes: AddrBase, AddrHome, Password, ClientIP and ClientPort.Wherein AddrBase and AddrHome form the AccountAddr of the account.Password is account password, ClientIP and ClientPort are the online information of the account, when the account is in the time logining state, IP address and the port numbers of the client of the corresponding account of ClientIP and ClientPort, when the account is in the time publishing state, usually, ClientIP and/or ClientPort are null value null or 0.
If unified agreement port numbers is a certain particular value, ClientPort attribute can omit.In the time that a HSvr only has a HCode value, AddrHome attribute also can omit.
Usually, HSvr can obtain IP address and the port numbers of corresponding client in the time of an account login, and the IP address obtaining and port numbers are kept in the ClientIP and ClientPort attribute of the account.
In the time that client and HSvr set up TCP and be connected, HSvr can also be with corresponding connection identifier, and for example corresponding socket descriptor (SktD, Socket Descriptor) substitutes ClientIP and ClientPort attribute, as the online information of proper account.
The present invention is { be used as the online information of proper account by client ip address and port numbers, and when an account is in the time publishing state, corresponding ClientIP and ClientPort to be that 0} is example, but are not used in restriction the present invention.
It should be noted that, the attribute information of an account can be kept in a table, also the attribute information of an account can be kept at respectively in multiple tables.Referring to " with base account informing mechanism implementation method " patent of invention.
HSvr can, by ActiveAddrHome attribute is set in accounts information, preserve the active information of an account.Like this, according to the ActiveAddrHome attribute of an account, can learn, in the same base account family of the account, which account is in state of activation.
Mode one: preserve one with the AddrHome value dictionary sequence number Activating Account in base account family in ActiveAddrHome attribute
For example, the AddrHome value with base account based on three of AddrBase value liubei@Outlook.com of liubei is respectively qq.com, 163.com and gmail.com, press dictionary sequence for 163.com, gmail.com, qq.com, therefore, can dictionary sequence number corresponding to AddrHome value 163.com be set to 1, the dictionary sequence number that AddrHome value gmail.com is corresponding is set to the dictionary sequence number that 2, AddrHome value qq.com is corresponding and is set to 3.In OtherAddrHomes attribute, also for the corresponding dictionary sequence number of each AddrHome value registration, like this, by the sequence number in ActiveAddrHome attribute, can determine in the same base account family of an account which account is in state of activation.For example, the ActiveAddrHome property value of an account is 0, all same base accounts in the same base account family of the account is considered as in resting state; If the ActiveAddrHome property value of an account is not 0, and from the OtherAddrHomes attribute of the account, can not find corresponding AddrHome value according to the ActiveAddrHome property value of the account, will the account be considered as state of activation.
Mode two, the AddrHome value that preservation Activates Account in ActiveAddrHome attribute
For convenience of safeguarding, preferably, in ActiveAddrHome attribute, preserve the AddrHome value Activating Account.
In the time that the ActiveAddrHome of account attribute contains effective HCode value, represent that the AccountAddr that this ActiveAddrHome property value is corresponding with the AddrBase of the account is an AccountAddr value Activating Account; In the time that the ActiveAddrHome of account property value is invalid HCode value, for example, during for null value null, represent that in the same base account family of the account, all accounts are all in resting state.
For example,, in HSvr-A:
The accounts information of sunquan is: AddrBase=sunquan; AddrHome=qq.com; Password=********; The corresponding IP of ClientIP=; ClientPort=corresponding port; ActiveAddrHome=qq.com.
The accounts information of zhouyu is: AddrBase=zhouyu; AddrHome=qq.com; Password=********; The corresponding IP of ClientIP=; ClientPort=corresponding port; ActiveAddrHome=qq.com.
The accounts information of liubei is: AddrBase=liubei@Outlook.com; AddrHome=qq.com; Password=********; The corresponding IP of ClientIP=; ClientPort=corresponding port; ActiveAddrHome=qq.com.
The accounts information of guanyunchang is: AddrBase=guanyc@Outlook.com; AddrHome=qq.com; Password=********; ClientIP=0; ClientPort=0; ActiveAddrHome=null.
The accounts information of zhaoyun is: AddrBase=8613316882012; AddrHome=qq.com; Password=********; The corresponding IP of ClientIP=; ClientPort=corresponding port; ActiveAddrHome=qq.com.
Also for example, in HSvr-B:
The accounts information of caocao is: AddrBase=caocao; AddrHome=163.com; Password=********; The corresponding IP of ClientIP=; ClientPort=corresponding port; ActiveAddrHome=163.com.
The accounts information of zhangliao is: AddrBase=zhangliao; AddrHome=163.com; Password=********; The corresponding IP of ClientIP=; ClientPort=corresponding port; ActiveAddrHome=163.com.
The accounts information of liubei is: AddrBase=liubei@Outlook.com; AddrHome=163.com; Password=********; ClientIP=0; ClientPort=0; ActiveAddrHome=qq.com.
The accounts information of guanyunchang is: AddrBase=guanyc@Outlook.com; AddrHome=163.com; Password=********; ClientIP=0; ClientPort=0; ActiveAddrHome=null.
Also for example, in HSvr-C:
The accounts information of liubei is: AddrBase=liubei; AddrHome=Outlook.com; Password=********; ClientIP=0; ClientPort=0; ActiveAddrHome=null.
The accounts information of guanyunchang is: AddrBase=guanyc; AddrHome=Outlook.com; Password=********; The corresponding IP of ClientIP=; ClientPort=corresponding port; ActiveAddrHome=Outlook.com.
The accounts information of zhaoyun is: AddrBase=8613316882012; AddrHome=Outlook.com; Password=********; ClientIP=0; ClientPort=0; ActiveAddrHome=qq.com.
Also for example, in HSvrD:
The accounts information of machao is: AddrBase=machao; AddrHome=gmail.com; Password=********; The corresponding IP of ClientIP=; ClientPort=corresponding port; ActiveAddrHome=gmail.com.
The accounts information of liubei is: AddrBase=liubei@Outlook.com; AddrHome=gmail.com; Password=********; ClientIP=0; ClientPort=0; ActiveAddrHome=qq.com.
The accounts information of zhaoyun is: AddrBase=8613316882012; AddrHome=gmail.com; Password=********; ClientIP=0; ClientPort=0; ActiveAddrHome=qq.com.
Will be in mode two as example after the present invention, but be not used in restriction the present invention.
If do not consider autgmentability, in an accounts information, also can substitute AddrBase attribute and AddrHome attribute with GUID attribute and CeSvrDesc attribute, like this, formed the AccountAddr of the account by GUID and CeSvrDesc.In the time that CeSvrDesc is null value null, illustrate that corresponding AccountAddr is a GUID; In the time that CeSvrDesc is an effective HCode value, illustrate that corresponding AccountAddr is a CDAddr.
For example,, in HSvr-A:
The accounts information of sunquan is: GUID=sunquan@qq.com; CeSvrDesc=null; Password=********; The corresponding IP of ClientIP=; ClientPort=corresponding port; ActiveAddrHome=qq.com.
The accounts information of zhouyu is: GUID=zhouyu@qq.com; CeSvrDesc=null; Password=********; The corresponding IP of ClientIP=; ClientPort=corresponding port; ActiveAddrHome=qq.com.
The accounts information of liubei is: GUID=liubei@Outlook.com; CeSvrDesc=qq.com; Password=********; The corresponding IP of ClientIP=; ClientPort=corresponding port; ActiveAddrHome=qq.com.
The accounts information of guanyunchang is: GUID=guanyc@Outlook.com; CeSvrDesc=qq.com; Password=********; ClientIP=0; ClientPort=0; ActiveAddrHome=null.
The accounts information of zhaoyun is: GUID=8613316882012@qq.com; CeSvrDesc=null; Password=********; The corresponding IP of ClientIP=; ClientPort=corresponding port; ActiveAddrHome=qq.com.
The present invention is so that { in an accounts information, the AccountAddr} that deposits the account with AddrBase attribute and AddrHome attribute is example, but is not intended to limit the present invention.
Can also in accounts information, increase address style (AddrType, Address Type) attribute, indicate the AccountAddr type of proper account.For example: AddrType=1, represents that corresponding AccountAddr is E-mail address code; AddrType=2, represents that corresponding AccountAddr is shadow code; AddrType=3, represents that corresponding AccountAddr is principal and subordinate's code; AddrType=11, represents that corresponding AccountAddr is for the cross-domain code in two territories; AddrType=21, represents that corresponding AccountAddr is the cross-domain code of shadow code, and BaseGUID is the CDAddr of shadow code; AddrType=31, represents that corresponding AccountAddr is for the cross-domain code of principal and subordinate's code, and BaseGUID is the CDAddr of principal and subordinate's code.
In the middle of reality, by resolving an AccountAddr, can obtain the type of this AccountAddr.For example, agreement: 1, principal and subordinate's code separator is " # ", and shadow code separator is " * "; 2, the CeSvrDesc of CDAddr can only be domain name.Like this, as follows to the resolving of an AccountAddr:
One,, in the time that "@" symbol appears in AccountAddr, the part after rightmost "@" symbol, as the AddrHome of this AccountAddr, is then resolved the AddrBase of this AccountAddr:
In the time containing "@" in this AddrBase, AddrType=11 is described; In the time containing " * " in this AddrBase, AddrType=21 is described; In the time containing " # " in this AddrBase, AddrType=31 is described.In the time not containing one of " * ", " # " and "@" in this AddrBase, AddrType=1 is described.
Two, in the time not there is "@" symbol in AccountAddr, if AccountAddr contains " * ", AddrType=2; If AccountAddr contains " # ", AddrType=3.
Like this, the AddrType that sunquan@qq.com is corresponding is 1, and AddrType corresponding to Liubei@Outlook.com@qq.com is 11.
According to an AccountAddr, can determine an account.For example: in the time that the login account number of liubei is the AccountAddr value liubei@Outlook.com@qq.com of its account in HSvr-A, HSvr-A judges that liubei@Outlook.com@qq.com belongs to oneself, therefore, using liubei@Outlook.com@qq.com as an AccountAddr value, and determine corresponding logon account according to this AccountAddr value.
In a HSvr, according to an AddrBase, can determine one or more accounts, in the time that this HSvr only has a HCode, can determine an account according to an AddrBase.For example, in the time that the login account of liubei is the AddrBase value liubei@Outlook.com of its account in HSvr-A, HSvr-A judges that liubei@Outlook.com does not belong to oneself, therefore, using liubei@Outlook.com as an AddrBase value, and determine corresponding logon account according to AddrBase value liubei@Outlook.com.In this case, in the time that HSvr-A only has a HCode, HSvr-A can only determine an account according to AddrBase value liubei@Outlook.com.
So that { all GUID are E-mail address codes, all CDAddr are the cross-domain codes in two territories } be example, HSvr searches forward first "@" character from the afterbody of login account character string, intercept this at symbol part below, obtain a HCode value, if this HCode belongs to this HSvr, this login account belongs to this HSvr.If there is no "@" character in login account character string, illustrate that this login account is a user name, corresponding certain account's of possibility AddrBase value.
When the ActiveAddrHome value of an account is null, the source account of the account can be considered as to state of activation.For example, the ActiveAddrHome of the account of guanyunchang is null, at this moment, in HSvr-C, the corresponding source of guanyc@Outlook.com account can be labeled as to state of activation.
The ActiveAddrHome value of an account is not null, illustrates in the same base account family of the account and has an account in state of activation.Especially, if in an account family, have one migration account in state of activation, also can by the account family source account be considered as resting state.For example, the ActiveAddrHome value of the account of liubei in HSvr-B is qq.com, illustrates, in the same base account family of the account, has an account in HSvr-A in state of activation.In this case, if consider source account factor, liubei can be considered as to resting state at the source account in HSvr-C.For example, in HSvr-C, the account based on AddrBase value liubei of liubei, the source account of liubei, is labeled as resting state.
In Fig. 1, HSvr belongs to the message of oneself for destination address, carries out following steps:
Step 11, described HSvr judge that the target account of described message, whether in state of activation, if so, performs step 12: this message is ended in to this target account; Otherwise, execution step 19.
Step 19, described HSvr reply the active information of described target account according to the source address of message; Or described HSvr replys unexpected message according to the source address of message.For example, by this unexpected message, tell sender of the message, " the AccountAddr value of use is invalid ", or " corresponding account enters resting state ".
The ActiveAddrHome value of an account and the AddrHome value of the account are consistent, illustrate that the account is in state of activation, otherwise, illustrate that the account is in resting state.For example, liubei and the zhaoyun account in HSvr-A, ActiveAddrHome value and AddrHome value are all qq.com, therefore, all in state of activation; Liubei and the zhaoyun account in HSvr-D, ActiveAddrHome value is qq.com, AddrHome value is gmail.com, therefore, all in resting state; The account of guanyunchang in HSvr-A and HSvr-B, AddrHome value is respectively qq.com and 163.com, and ActiveAddrHome value is all null, and therefore, also all in resting state.
In step 11, in state of activation further whether the target account that described HSvr judges described message: described HSvr judges that whether the ActiveAddrHome value of described target account is consistent with AddrHome value, if consistent, illustrate that this target account is in state of activation, otherwise, illustrate that this target account is in resting state.
Lifting example in detail below describes purposes of the present invention and usage.
Machao has logined the source account in HSvr-D, makes this source account in state of activation.
Example 1.1:liubei marries into and lives with the bride's family to Wu, and its contact address is replaced by two territories cross-domain code Liubei@Outlook.com@qq.com.Machao, owing to guarding the frontier, does not still know that the contact address of liubei changes, two territories cross-domain code Liubei Outlook.com 163.com that the contact address of the liubei recording in its numbering directory or liubei use while living away from home Cao Ying.The process that machao sends out message to liubei is as follows:
The destination address of step 1-101, machao client message is set to Liubei@Outlook.com@163.com, the source address of message is set to machao@gmail.com, and set corresponding message body, then this message is sent to HSvr-D.
Step 1-102, HSvr-D receive after described message, judge that the AddrHome value 163.com of the destination address Liubei@Outlook.com@163.com of message points to HSvr-B, so this message is sent to HSvr-B.
Step 1-103, HSvr-B receive after described message, determine target account according to AccountAddr value Liubei@Outlook.com@163.com, because the ActiveAddrHome value of determined target account is qq.com, not the AddrHome value 163.com of this target account, therefore, confirm that this target account is in resting state, so, execution step 1-104.
Step 1-104:HSvr-B structure is replied message, and the destination address of this reply message is machao@gmail.com, and source address is Liubei@Outlook.com@163.com, and message body comprises the active information qq.com of described target account; This reply message is sent to HSvr-D.
Step 1-105, HSvr-D receive after described reply message, according to the destination address machao@gmail.com of this reply message, determine the client of machao, this reply message are sent to the client of maochao.
The client of maochao is received after described reply message, just can be according to the destination address of described message, also be the AddrBase value Liubei@Outlook.com and the active information qq.com returning of the source address Liubei@Outlook.com@163.com of described reply message, obtain two territories cross-domain code Liubei@Outlook.com@qq.com, and use two territories cross-domain code Liubei@Outlook.com@qq.com to send out message to liubei.
The client of machao is received after described reply message, the contact address of liubei in directory can also be updated to new address Liubei@Outlook.com@qq.com.For example, from directory, search the same base address of Liubei@Outlook.com@qq.com, can find directory record corresponding to Liubei@Outlook.com@163.com, or directly search corresponding directory record according to the source address Liubei@Outlook.com@163.com that replys message.
Described step 1-105 can also be: HSvr-D receives after described reply message, according to the AddrBase value Liubei@Outlook.com of the source address Liubei@Outlook.com@163.com of the active information qq.com returning and described reply message, obtain two territories cross-domain code Liubei@Outlook.com@qq.com, then use two territories cross-domain code Liubei@Outlook.com@qq.com again to send out message described to liubei.Here, if HSvr-D has preserved directory or the routing table of machao, HSvr-D can also be by the directory of machao or routing table, and the contact address of liubei is updated to new address Liubei@Outlook.com@qq.com.
In the directory of example 1.2:machao, the contact address of liubei is updated to two territories cross-domain code Liubei@Outlook.com@qq.com.The process that machao sends out message to liubei is as follows:
The destination address of step 1-201, machao client message is set to Liubei@Outlook.com@qq.com, and the source address of message is set to machao@gmail.com, and sets corresponding message body, then this message is sent to HSvr-D.
Step 1-202, HSvr-D receive after described message, judge that the AddrHome value qq.com of the destination address Liubei@Outlook.com@qq.com of message points to HSvr-A, so this message is sent to HSvr-A.
Step 1-203, HSvr-A receive after described message, determine target account according to AccountAddr value Liubei@Outlook.com@qq.com; Because the ActiveAddrHome value of determined target account is qq.com, qq.com is consistent with its AddrHome value, therefore, confirms that this target account is in state of activation, so, described message is ended in to this target account.
In the present invention, it can be one of following several situations that a message is ended in to an account:
One, this message is sent to the client of the account.For example, described message is for sending request to the client of the account or the message of transmission of information.
Two, this message is saved in to the inbox of the account.For example, described message is for sending mail or short message to the account, like this, just the mail carrying in message and short message can be saved in to the inbox of the account.In this case, described target account is also provided with inbox attribute.
Three, the attribute information corresponding account is replied to the HSvr of sender's ownership of message.Usually, described attribute information is effective during in state of activation in proper account, and for example, described message is the IP address of the client for obtaining the account, in this case, the IP address of the client of the account can be replied to the HSvr of sender's ownership of message.
Described message is to send short message.
For example, in described message body, contain short message command code ShortMsg and content of short message " Your Majesty; army provisions can maintain January ", in step 1-203, describedly described message is ended in to this target account refer to: the client that this message is sent to this target account.For example, according to the ClientIP attribute of this target account and ClientPort attribute, described message is sent to the client that liubei is corresponding.If this target account is in publishing state, for example, corresponding ClientIP property value is 0, described message can be saved in to the inbox of this target account, and in this case, described target account is also provided with inbox attribute.
Described message is to obtain the attribute data of an account, for example, obtains the IP address of an account client.
For example, in described message body, contain the command code GetIP that represents IP address requesting, in step 1-203, describedly described message is ended in to this target account refer to: the ClientIP property value of this target account is replied to machao as the content of replying message.For example, HSvr-A structure is replied message, the destination address of this reply message is machao@gmail.com, source address is Liubei@Outlook.com@qq.com, and message body comprises corresponding to the commands in return code ResGetIP of command code GetIP and the ClientIP property value of this target account; This reply message is sent to HSvr-D; HSvr-D receives after described reply message, this reply message is sent to the client of maochao.Like this, this side of machao just can be according to the client of the IP address call liubei receiving, to set up voice or video conversation.
The contact address of the guanyunchang recording in example 1.3:machao numbering directory is guanyc@Outlook.com@163.com, and guanyunchang is after forcing five passes and slay six captains, get back to again the camp of liubei, and contact address has been updated to guanyc@Outlook.com.Like this, the process that machao sends out message to guanyunchang is as follows:
The destination address of step 1-301, machao client message is set to guanyc@Outlook.com@163.com, the source address of message is set to machao@gmail.com, and set corresponding message body, then this message is sent to HSvr-D.
Step 1-302, HSvr-D receive after described message, judge that the AddrHome value 163.com of the destination address guanyc@Outlook.com@163.com of message points to HSvr-B, so this message is sent to HSvr-B.
Step 1-303, HSvr-B receive after described message, determine target account according to AccountAddr value guanyc@Outlook.com@163.com, because the ActiveAddrHome value of determined target account is null, therefore, confirm that this target account is in resting state, so, execution step 1-304.
Step 1-304:HSvr-B structure is replied message, and the destination address of this reply message is machao@gmail.com, and source address is guanyc@Outlook.com@163.com, and message body comprises the active information null of described target account; This reply message is sent to HSvr-D.
Step 1-305, HSvr-D receive after described reply message, according to the destination address machao@gmail.com of this reply message, determine the client of machao, this message are sent to the client of maochao.
The ActiveAddrHome value of an account is null, illustrates in the same base account family of the account that all accounts are all in resting state.Especially, if all migration account is all in resting state in an account family, can by the account family source account be considered as state of activation.For example, the ActiveAddrHome value of the account of guanyunchang in HSvr-B is null, illustrates, the account based on AddrBase value guanyc@Outlook.com is all in resting state.In this case, if consider source account factor, guanyunchang can be considered as to state of activation at the source account in HSvr-C.For example, in HSvr-C, the account based on AddrBase value guanyc of guanyunchang, the source account of guanyunchang, is labeled as state of activation.
The client of maochao is received after described reply message, when judging the active information returning and being null value null, can again send out message to guanyunchang according to the AddrBase value guanyc@Outlook.com of the source address guanyc@Outlook.com@163.com of this reply message.
Equally, the client of machao is received after described reply message, when judging the active information returning and being null, the contact address of guanyunchang in directory can also be updated to the AddrBase value guanyc@Outlook.com of guanyc@Outlook.com@163.com by guanyc@Outlook.com@163.com.
For a HSvr, the message that described destination address belongs to oneself can be the message from other HSvr.For example, in step 1-103, the described message of what HSvr-B received come from HSvr-D.
For a HSvr, the message that described destination address belongs to oneself can be the message from client.
Example 1.4:caocao logins the source account in HSvr-B, makes this source account in state of activation.The process that caocao uses contact address Liubei@Outlook.com@163.com to send out message to liubei is as follows:
The destination address of step 1-401, caocao client message is set to Liubei@Outlook.com@163.com, and the source address of message is set to caocao@163.com, and sets corresponding message body, then this message is sent to HSvr-B.
Step 1-402, HSvr-B receive after described message, the AddrHome value 163.com that judges the destination address Liubei@Outlook.com@163.com of message points to oneself, so, determine target account according to AccountAddr value Liubei@Outlook.com@163.com; Because the ActiveAddrHome value of determined target account is qq.com, not the AddrHome value 163.com of this target account, therefore, confirm that this target account is in resting state, so, execution step 1-403.
Step 1-403:HSvr-B structure is replied message, and the destination address of this reply message is caocao@163.com, and source address is Liubei@Outlook.com@163.com, and message content comprises the active information qq.com of described target account; This reply message is sent to the client of caocao.
Example 1.5:sunquan logins the source account in HSvr-A, makes this source account in state of activation.The process that sunquan uses contact address Liubei@Outlook.com@qq.com to send out message to liubei is as follows:
The destination address of step 1-501, sunquan client message is set to Liubei@Outlook.com@qq.com, and the source address of message is set to sunquan@qq.com, and sets corresponding message body, then this message is sent to HSvr-A.
Step 1-502, HSvr-A receive after described message, the AddrHome value qq.com that judges the destination address Liubei@Outlook.com@qq.com of message points to oneself, so, directly determine target account according to AccountAddr value Liubei@Outlook.com@qq.com; Because the ActiveAddrHome value of determined target account is qq.com, qq.com is consistent with its AddrHome value, therefore, confirms that this target account is in state of activation, so, described message is ended in to this target account.
HSvr, receiving while not belonging to the message of oneself from the destination address of client, usually, sends to this message other HSvr of described destination address ownership, processes described message by described other HSvr according to the method for the invention described above.For example, in step 1-102, HSvr-D, receiving after the described message that client sends, judges that the destination address of message does not belong to oneself, so, the HSvr-B that just this message is sent to described destination address to belong to.
In the middle of reality, the destabilizing factor of communication system, may cause an inconsistent situation of the active information with each account in base account family to occur.For example, liubei is in the account of HSvr-B, the active information of record is " qq.com ", and liubei is in the account of HSvr-A, the active information of record is " 163.com ", in this case, when machao sends out message according to contact address Liubei@Outlook.com@163.com to liubei, can receive active information qq.com, when machao is replaced by the destination address of message after Liubei@Outlook.com@qq.com, while resending message, can receive active information 163.com, in this case, just there will be endless loop.
To this, the present invention proposes this solution: whether in described message, further carry and force termination (ForceEnd) mark, being used to indicate this message is to force ending message.
Whether for example, a flag bit can be set in message, being used to indicate this message is to force ending message, and this is masked as 1, represents that this message is for forcing ending message, otherwise, be not.Or, for forcing ending message, in message, insert a special marking " ForceEnd ", for optional ending message, in message, do not insert this mark, like this, by checking in a message whether contain this special marking, can judge whether this message is to force ending message.
Correspondingly, before step 11, can further include: described HSvr judges whether described message is to force ending message, if so, directly described message is ended in to the target account of this message, otherwise, just perform step 11.
For forcing ending message, because HSvr ignores the active information of the target account of described message, and this message is forced to end in this target account, therefore, the sender of message sends message for the first time, and receives after corresponding active information, just can be according to the destination address of described active information updating message, and message is set to force ending message, then sends this message, thereby this message is sent to the account of locking.
Before step 11, can further include step 10: described HSvr determines the target account of message according to the destination address of message.
In step 10, can also further judge according to the destination address of message whether determine described target account, if do not had, process ends.Especially, before described process ends, can also further reply according to the source address of message the cause value that represents " target account does not exist ", like this, sender of the message has received after the reply message of the cause value that contains expression " target account does not exist ", can also further determine new address according to the AddrBase value of the destination address of described message, and send corresponding message according to determined new address.Determine the operation of new address about how according to the AddrBase value of the destination address of described message, determine method patent of invention referring to the new address of mentioning below.
Before step 11, can further include: judge whether described message is the attribute data for asking described target account, for example active information, if, described HSvr directly replys the attribute data of described target account according to the source address of message, then finishes; Otherwise, just perform step 11.
As the better implementation of a kind of autgmentability, preferably, by by message marking for forcing ending message to realize the object of " attribute data of asking described target account ".Like this, in the time not needing target account to be state of activation, can be by corresponding message marking for forcing ending message; In the time that needs target account is state of activation, allow the corresponding message be optional ending message.
The present invention also provides a kind of new address to determine method, by the method, after finding that an address is invalid, according to the active information of replying, obtains the new address that this address is relevant.
As shown in Figure 2, for method execution mode flow chart is determined in the new address of the present invention.In this embodiment:
First in step 21, after a message is sent, receive reply message.
Step 22, according to described reply message, determine new address according to the AddrBase of the destination address of described message.
Under normal circumstances, in described reply message, carry destination address and source address.Usually, the source address that the destination address of described reply message is described message; The source address of described reply message and the destination address of described message are with base, and the source address of described reply message can be directly the destination address of described message.In this case, described step 22 can be directly: determine new address according to described reply message.
In step 21, in described reply message, contain corresponding active information.Correspondingly, described step 22 is: determine new address according to the AddrBase of the destination address of described message and described active information.For example, the AddrBase using the AddrBase of the destination address of described message as described new address, the AddrHome using described active information as described new address.
Machao has logined the source account in HSvr-D, makes this source account in state of activation.
Example 2.1:liubei marries into and lives with the bride's family to Wu, and its contact address is replaced by two territories cross-domain code Liubei@Outlook.com@qq.com.Machao, owing to guarding the frontier, does not still know that the contact address of liubei changes, two territories cross-domain code Liubei Outlook.com 163.com that the contact address of the liubei recording in its numbering directory or liubei use while living away from home Cao Ying.When machao sends out message to liubei, determine that the process of new address of liubei is as follows:
Step 2-101 to step 2-104, with step 1-101 to step 1-104.
Step 2-105, HSvr-D receive after described reply message, the AddrHome of the source address Liubei@Outlook.com@163.com of this reply message is replaced into the active information qq.com that described reply message is carried, obtains new address Liubei@Outlook.com@qq.com.
Example 2.2:liubei marries into and lives with the bride's family to Wu, and its contact address is replaced by two territories cross-domain code Liubei@Outlook.com@qq.com.Machao, owing to guarding the frontier, does not still know that the contact address of liubei changes, two territories cross-domain code Liubei Outlook.com 163.com that the contact address of the liubei recording in its numbering directory or liubei use while living away from home Cao Ying.When machao sends out message to liubei, determine that the process of new address of liubei is as follows:
Step 2-201 to step 2-205, with step 1-101 to step 1-105.
The client of step 2-206, maochao is received after described reply message, the AddrHome of the source address Liubei@Outlook.com@163.com of this reply message is replaced into the active information qq.com that described reply message is carried, obtains new address Liubei@Outlook.com@qq.com.
In step 21, in described reply message, contain corresponding active information.Correspondingly, described step 22 is further step 22A: judge that whether described active information is effective, if effectively, directly the AddrHome of the destination address of described message is replaced into described active information obtains new address; Otherwise, finish.
In step 21, in described reply message, contain corresponding active information.Correspondingly, described step 22 is further step 22B: judge that whether described active information is effective, if effectively, directly the AddrHome of the destination address of described message is replaced into described active information obtains new address; Otherwise, determine new address according to the AddrBase value of the destination address of described message.
The AddrBase value of the destination address of described message is a GUID, and in step 22B, the described AddrBase value according to the destination address of described message determines that new address is: directly using the AddrBase value of the destination address of this message as new address.
The contact address of the guanyunchang recording in example 2.3:machao numbering directory is guanyc@Outlook.com@163.com, and guanyunchang is after forcing five passes and slay six captains, get back to again the camp of liubei, and contact address has been updated to guanyc@Outlook.com.Like this, when machao sends out message to guanyunchang, determine that the process of new address of guanyunchang is as follows:
Step 2-301 to step 2-304, with step 1-301 to step 1-304.
Step 2-305, HSvr-D receive after described reply message, be that null learns that this active information is invalid according to the active information carrying in this reply message, so, using the AddrBase value guanyc@Outlook.com of the source address guanyc@Outlook.com@163.com of described reply message as new address.
The contact address of the guanyunchang recording in example 2.4:machao numbering directory is guanyc@Outlook.com@163.com, and guanyunchang is after forcing five passes and slay six captains, get back to again the camp of liubei, and contact address has been updated to guanyc@Outlook.com.Like this, when machao sends out message to guanyunchang, determine that the process of new address of guanyunchang is as follows:
Step 2-401 to step 2-405, with step 1-301 to step 1-305.
The client of step 2-406, maochao is received after described reply message, be that null learns that this active information is invalid according to the active information carrying in this reply message, so, using the AddrBase value guanyc@Outlook.com of the source address guanyc@Outlook.com@163.com of described reply message as new address.
The AddrBase value of the destination address of described message is one and covers E-mail address, territory, in step 22B, the described AddrBase value according to the destination address of described message determines that new address is: decoding, this is covered E-mail address, territory and obtains corresponding E-mail address, and the E-mail address that decoding is obtained is as new address.
For the cross-domain code in mentioned two territories, can be encoded to the territory cross-domain code form of covering.Taking with two continuous underscores: " _ _ " substitute code as at as example.Like this, for CDAddr value guanyc@Outlook.com@163.com, after coding, obtain be form be guanyc__Outlook.com@163.com cover the cross-domain code in territory.
About covering territory E-mail address decoder method, and more descriptions of the cross-domain code encoding method in two territories, be " E-mail address coding method " patent of invention of 201210378120.6 or 201310435356.3 referring to application number.
If cross-domain all pairs of territories above code is all equal to and replaces with the corresponding cross-domain code in territory of covering, described step 2-305 further: HSvr-D receives after described reply message, be that null learns that this active information is invalid according to the active information carrying in this reply message, so, the AddrBase value guanyc__Outlook.com of source address guanyc__Outlook.com@163.com to described reply message decodes and obtains corresponding E-mail address guanyc@Outlook.com, using guanyc@Outlook.com as new address.
The AddrBase value of the destination address of described message is a telephone number, and in step 22B, the described AddrBase value according to the destination address of described message determines that new address is: using shadow code corresponding this telephone number as described new address.
For example, replace above-mentioned " guanyc Outlook.com " with telephone number " 8613923812365 ", described step 2-305 further: HSvr-D receives after described reply message, be that null learns that this active information is invalid according to the active information carrying in this reply message, so, using the shadow code 86*139*23812365 of AddrBase value 8613923812365 correspondences of the source address of described reply message 8613923812365@163.com as new address.
It should be noted that, according to a telephone number, coupling global telephones national code code table can intercept corresponding phone national code, the CC value using this phone national code as corresponding shadow code from this telephone number.Then mate by remaining part after intercepting phone national code the national landline telephone area code (FAC of phone national code institute correspondence intercepting, Fixed Area Code) table and mobile Number for access (MAN, Mobile Access Number) code table, obtain the NBC value of corresponding shadow code.A telephone number is intercepting after corresponding CC value and NBC value, and the part obtaining is the UCode value of corresponding shadow code.
In step 21, in described reply message, there is no described activation message, for example, after a message is sent, do not receive the reply message that contains accordingly active information, but receive the reply message of a cause value that contains expression " target account does not exist ", at this moment, in step 22, can directly determine new address according to the AddrBase value of the destination address of described message.
The present invention also provides a kind of message method, by the method, a message is sent to Activating Account of an IUsr.
As shown in Figure 3, be message method execution mode flow chart of the present invention.In this embodiment:
First in step 31, a message is sent, receive and reply message.
Step 32, according to described reply message, determine new address according to the AddrBase of the destination address of described message.
The destination address of step 33, described message is set to described new address, sends this message.
Under normal circumstances, in described reply message, carry destination address and source address.Usually, the source address that the destination address of described reply message is described message; The source address of described reply message and the destination address of described message are with base, and the source address of described reply message can be directly the destination address of described message.In this case, described step 32 can be directly: determine new address according to described reply message.
In step 31, in described reply message, contain corresponding active information.Correspondingly, described step 32 is: determine new address according to the AddrBase of the destination address of described message and described active information.For example, the AddrBase using the AddrBase of the destination address of described message as described new address, the AddrHome using described active information as new address.
Give an example for background with { machao has logined the source account in HSvr-D, makes this source account in state of activation } below.
Example 3.1:liubei marries into and lives with the bride's family to Wu, and its contact address is replaced by two territories cross-domain code Liubei@Outlook.com@qq.com.Machao, owing to guarding the frontier, does not still know that the contact address of liubei changes, two territories cross-domain code Liubei Outlook.com 163.com that the contact address of the liubei recording in its numbering directory or liubei use while living away from home Cao Ying.The process that machao sends out message to liubei is as follows:
Step 3-101 to step 3-104, with step 1-101 to step 1-104.
Step 3-105, HSvr-D receive after described reply message, obtain new address Liubei@Outlook.com@qq.com according to the AddrBase value Liubei@Outlook.com of the source address Liubei@Outlook.com@163.com of this reply message and entrained active information qq.com.
Step 3-106, the destination address of described message is updated to described new address Liubei@Outlook.com@qq.com by HSvr-D, resends this message,, sends to the HSvr-A of described new address ownership by this message that is.
Step 3-107, with step 1-203.
In example 3.1, if ensure that the active information in described reply message is effective AddrHome value, described step 3-105 and described step 3-106 can be merged into step a: HSvr-D receives after described reply message, the AddrHome value of the destination address of described message is updated to described active information qq.com, resends this message.
Consider that a HSvr can have a lot of Messages-Waiting processing at one time, therefore, preferably, an account may further include outbox attribute.In the time that an account sends message, the message that will send is kept in outbox.After a message sends, if receive a reply message of having carried active information, this transmit operation can be regarded as extremely.Then, obtain new address according to the AddrBase value of the source address of this reply message and entrained active information; Determine corresponding account according to the destination address of described reply message, and from the outbox of the account, search the message of the source address of the artificial described reply message of addressee, the addressee of found message is updated to described new address, then send again this message.
For example, in step 3-102, HSvr-D, in the time that described message is sent to HSvr-B, also preserves this message in the outbox of the account of machao.Correspondingly, in step 3-106, HSvr-D is according to the destination address machao@gmail.com of described reply message, find the account of machao, the message of searching the source address Liubei Outlook.com 163.com of the artificial described reply message of addressee from the outbox of the account of machao, the destination address of found message is updated to described new address Liubei@Outlook.com@qq.com, resends this message.
Example 3.2:liubei marries into and lives with the bride's family to Wu, and its contact address is replaced by two territories cross-domain code Liubei@Outlook.com@qq.com.Machao, owing to guarding the frontier, does not still know that the contact address of liubei changes, two territories cross-domain code Liubei Outlook.com 163.com that the contact address of the liubei recording in its numbering directory or liubei use while living away from home Cao Ying.The process that machao sends out message to liubei is as follows:
Step 3-201 to step 3-205, with step 1-101 to step 1-105.
The client of step 3-206, maochao is received after described reply message, obtains new address Liubei@Outlook.com@qq.com according to the AddrBase value Liubei@Outlook.com of the source address Liubei@Outlook.com@163.com of this reply message and entrained active information qq.com.
Step 3-207, the destination address of described message is updated to described new address Liubei@Outlook.com@qq.com by the client of maochao, resends this message,, sends to HSvr-D by this message that is.
Step 3-208, with step 1-202.
Step 3-209, with step 1-203.
In example 3.2, if ensure that the active information in described reply message is effective AddrHome value, the client that described step 3-106 and described step 3-107 can be merged into step a: maochao is received after described reply message, the AddrHome value of the destination address of described message is updated to described active information qq.com, resends this message.
In step 31, in described reply message, contain corresponding active information.Correspondingly, described step 32 is further step 32A: judge that whether described active information is effective, if effectively, directly the AddrHome of the destination address of described message is replaced into described active information obtains new address; Otherwise, finish.
In step 31, in described reply message, contain corresponding active information.Correspondingly, described step 32 is further step 32B: judge that whether described active information is effective, if effectively, directly the AddrHome of the destination address of described message is replaced into described active information obtains new address; Otherwise, determine new address according to the AddrBase value of the destination address of described message.
The AddrBase value of the destination address of described message is a GUID, and in step 32B, the described AddrBase value according to the destination address of described message determines that new address is: directly using the AddrBase value of the destination address of this message as new address.
The contact address of the guanyunchang recording in example 3.3:machao numbering directory is guanyc@Outlook.com@163.com, and guanyunchang is after forcing five passes and slay six captains, get back to again the camp of liubei, and contact address has been updated to guanyc@Outlook.com.Like this, the process that machao sends out message to guanyunchang is as follows:
Step 3-301 to step 3-304, with step 1-301 to step 1-304.
Step 3-305, HSvr-D receive after described reply message, be that null learns that this active information is invalid according to the active information carrying in this reply message, so, using the AddrBase value guanyc@Outlook.com of the source address guanyc@Outlook.com@163.com of described reply message as new address.
Step 3-306, the destination address of described message is updated to described new address guanyc@Outlook.com by HSvr-D, resends this message, sends to the HSvr-C of described new address ownership by this message.
Step 3-307, HSvr-C receive after described message, determine target account according to AccountAddr value guanyc@Outlook.com; Because the ActiveAddrHome value of determined target account is Outlook.com, Outlook.com is consistent with its AddrHome value, therefore, confirms that this target account is in state of activation, so, described message is ended in to this target account.
The contact address of the guanyunchang recording in example 3.4:machao numbering directory is guanyc@Outlook.com@163.com, and guanyunchang is after forcing five passes and slay six captains, get back to again the camp of liubei, and contact address has been updated to guanyc@Outlook.com.Like this, the process that machao sends out message to guanyunchang is as follows:
Step 3-401 to step 3-405, with step 1-301 to step 1-305.
The client of step 3-406, maochao is received after described reply message, be that null learns that this active information is invalid according to the active information carrying in this reply message, so, using the AddrBase value guanyc@Outlook.com of the source address guanyc@Outlook.com@163.com of described reply message as new address.
Step 3-407, the destination address of described message is updated to described new address guanyc@Outlook.com by the client of maochao, resends this message,, sends to HSvr-D by this message that is.
Step 3-408, HSvr-D receive after described message, judge that the AddrHome value Outlook.com of the destination address guanyc@Outlook.com of message points to HSvr-C, so this message is sent to HSvr-C.
Step 3-409, HSvr-C receive after described message, determine target account according to AccountAddr value guanyc@Outlook.com; Because the ActiveAddrHome value of determined target account is Outlook.com, Outlook.com is consistent with its AddrHome value, therefore, confirms that this target account is in state of activation, so, described message is ended in to this target account.
The AddrBase value of the destination address of described message is one and covers E-mail address, territory.Correspondingly, in step 32B, the described AddrBase value according to the destination address of described message determines that new address is: decoding, this is covered E-mail address, territory and obtains corresponding E-mail address, and the E-mail address that decoding is obtained is as described new address.
For the cross-domain code in mentioned two territories, can be encoded to the territory cross-domain code form of covering.Taking with two continuous underscores: " _ _ " substitute code as at as example.Like this, for CDAddr value guanyc@Outlook.com@163.com, after coding, obtain be form be guanyc__Outlook.com@163.com cover the cross-domain code in territory.
If cross-domain all pairs of territories above code is all equal to and replaces with the corresponding cross-domain code in territory of covering, described step 3-305 further: HSvr-D receives after described reply message, be that null learns that this active information is invalid according to the active information carrying in this reply message, so, the AddrBase value guanyc__Outlook.com of source address guanyc__Outlook.com@163.com to described reply message decodes and obtains corresponding E-mail address guanyc@Outlook.com, using guanyc@Outlook.com as new address.
The AddrBase value of the destination address of described message is a telephone number, and in step 32B, the described AddrBase value according to the destination address of described message determines that new address is: using shadow code corresponding this telephone number as described new address.
For example, replace above-mentioned " guanyc Outlook.com " with telephone number " 8613923812365 ", described step 3-305 further: HSvr-D receives after described reply message, be that null learns that this active information is invalid according to the active information carrying in this reply message, so, using the shadow code 86*139*23812365 of AddrBase value 8613923812365 correspondences of the source address of described reply message 8613923812365@163.com as new address.
In step 33, before sending described message, further this message is set to force ending message.Like this, just described message can be locked onto to the account corresponding to destination address of this message.
For example, in step 3-106, HSvr-D, resending before described message, also inserts and forces terminal label " ForceEnd " in message body, is set to force ending message with this message.Correspondingly, described step 3-107 is, and: HSvr-A receives after described message, determines target account according to AccountAddr value Liubei@Outlook.com@qq.com; Because described message is marked as pressure ending message, therefore, directly this message is ended in to this target account.
In step 31, described message is further the message of the attribute data for obtaining target account, and this message is marked as pressure ending message.
For example, described step 3-101 is further: the destination address of machao client message is set to Liubei@Outlook.com@163.com, the source address of message is set to machao@gmail.com, comprise the command code of request target account active information: GetActiveAddrHome message body, and pressure terminal label: " ForceEnd ", then sends to HSvr-D by this message.Correspondingly, described step 3-103 is further: HSvr-B receives after described message, determine target account according to AccountAddr value Liubei@Outlook.com@163.com, because described message is marked as pressure ending message, and corresponding command code is GetActiveAddrHome, therefore performs step 3-104.
In step 31, in described reply message, there is no described activation message, for example, after a message is sent, do not receive the reply message that contains accordingly active information, but receive the reply message of a cause value that contains expression " target account does not exist ", at this moment, in step 32, can directly determine new address according to the AddrBase value of the destination address of described message.
The present invention also provides a kind of address automatic update method, by the method, after appropriate address changes in discovery address list, can automatically upgrade this address, thereby remove the trouble that address list is safeguarded from.
Usually, described address list is directory.Certainly, described address list can be also a routing table.
As shown in Figure 4, be address list automatic update method execution mode flow chart of the present invention.In this embodiment:
First in step 41, after a message is sent, receive reply message.
Step 42, according to described reply message, determine new address according to the AddrBase of the destination address of described message.
Step 43, according to the destination address of described message from address list determine corresponding record, the address of this record is updated to described new address.
Under normal circumstances, in described reply message, carry destination address and source address.Usually, the source address that the destination address of described reply message is described message; The source address of described reply message and the destination address of described message are with base, and the source address of described reply message can be directly the destination address of described message.In this case, described step 42 can be directly: determine new address according to described reply message.
In step 41, in described reply message, contain corresponding active information.Correspondingly, described step 42 is: determine new address according to the AddrBase of the destination address of described message and described active information.For example, the AddrBase using the AddrBase of the destination address of described message as described new address, the AddrHome using described active information as new address.
In step 43, if cannot determine corresponding record according to the destination address of described message from described address list, can also further determine corresponding record according to the AddrBase value of the destination address of described message.
Usually, in HSvr, described directory is the directory arranging respectively for different accounts, and each account can have independently directory.For example, in HSvr, in an accounts information, also comprise directory list attribute, preserve the directory information of the account by this list attribute.In this case, determining after corresponding account, the directory list that the scale that can obtain is less, thus improve directory recall precision.
In the middle of reality, in HSvr, described directory can be also that the public number arranging for all accounts is thin.In this case, HSvr usually uses this directory as a route list.
Describe for example below.
Give an example for background with { machao has logined the source account in HSvr-D, makes this source account in state of activation } below.
Described method is implemented by HSvr, corresponding, in step 43, in the time that definite directory records, further carries out according to the source address of described message.
Example 4.1: in this example, also comprise directory list attribute in the accounts information in HSvr.Liubei marries into and lives with the bride's family to Wu, and its contact address is replaced by two territories cross-domain code Liubei@Outlook.com@qq.com.Machao, owing to guarding the frontier, does not still know that the contact address of liubei changes, two territories cross-domain code Liubei Outlook.com 163.com that the contact address of the liubei recording in its numbering directory or liubei use while living away from home Cao Ying.When machao sends out message to liubei, carry out following flow process:
Step 4-101 to step 4-105, with step 3-101 to step 3-105.
Step 4-106, HSvr-D is according to the destination address machao@gmail.com of described reply message and source address Liubei@Outlook.com@163.com, determine the corresponding directory record of destiny account, the contact address of determined record is updated to new address Liubei@Outlook.com@qq.com.For example, determine the account of machao according to the destination address machao@gmail.com of described reply message, in the account, search corresponding directory record according to the source address Liubei@Outlook.com@163.com of described reply message, the contact address of determined record is updated to new address Liubei@Outlook.com@qq.com.
After step 4-106, can further include step 4-107 and step 4-108.
Described step 4-107 is: HSvr-D sends address to the client of machao and upgrades instruction, and instruction comprises AddrBase value Liubei@Outlook.com and the described active information qq.com of address to be updated.
Described step 4-108 is: the client of machao is received after the renewal instruction of described address, search corresponding directory record according to the AddrBase value Liubei@Outlook.com of address to be updated, the AddrHome value of corresponding address in the directory record finding is updated to described active information qq.com.
If in HSvr, described directory is owned together by the multiple account in this HSvr, described step 4-106 further: HSvr-D is directly according to the source address Liubei@Outlook.com@163.com of described reply message, from described directory, determine corresponding directory record, the contact address of determined record is updated to new address Liubei@Outlook.com@qq.com.
Example 4.2:liubei marries into and lives with the bride's family to Wu, and its contact address is replaced by two territories cross-domain code Liubei@Outlook.com@qq.com.Machao, owing to guarding the frontier, does not still know that the contact address of liubei changes, two territories cross-domain code Liubei Outlook.com 163.com that the contact address of the liubei recording in its numbering directory or liubei use while living away from home Cao Ying.When machao sends out message to liubei, carry out following flow process:
Step 4-201 to step 4-206, with step 3-201 to step 3-206.
Step 4-207, the client of maochao is searched corresponding directory record according to the source address Liubei@Outlook.com@163.com that replys message, and the contact address of determined record is updated to new address Liubei@Outlook.com@qq.com.
If also comprise directory list attribute in the accounts information in HSvr,, after step 4-207, can further include step 4-208 and step 4-209.
Described step 4-208 is: the client of machao sends address to HSvr-D and upgrades instruction, and instruction comprises AddrBase value Liubei@Outlook.com and the described active information qq.com of address to be updated.
Described step 4-209 is: HSvr-D receives after the renewal instruction of described address, in the directory of machao, search corresponding directory record according to the AddrBase value Liubei@Outlook.com of address to be updated, the AddrHome value of corresponding address in the directory record finding is updated to described active information qq.com.
In step 41, in described reply message, contain corresponding active information.Correspondingly, described step 42 is further step 42A: judge that whether described active information is effective, if effectively, directly the AddrHome of the destination address of described message is replaced into described active information obtains new address; Otherwise, finish.
In step 41, in described reply message, contain corresponding active information.Correspondingly, described step 42 is further step 42B: judge that whether described active information is effective, if effectively, directly the AddrHome of the destination address of described message is replaced into described active information obtains new address; Otherwise, determine new address according to the AddrBase value of the destination address of described message.
The AddrBase value of the destination address of described message is a GUID.In step 42B, the described AddrBase value according to the destination address of described message determines that new address is: directly using the AddrBase value of the destination address of this message as new address.
Example 4.3: in this example, also comprise directory list attribute in the accounts information in HSvr.The contact address of the guanyunchang recording in machao numbering directory is guanyc@Outlook.com@163.com, and guanyunchang is after forcing five passes and slay six captains, get back to again the camp of liubei, and contact address has been updated to guanyc@Outlook.com.Like this, when machao sends out message to guanyunchang, carry out following flow process:
Step 4-301 to step 4-305, with step 3-301 to step 3-305.
Step 4-306, HSvr-D is according to the destination address machao@gmail.com of described reply message and source address guanyc@Outlook.com@163.com, determine the corresponding directory record of destiny account, the contact address of determined record is updated to described new address guanyc@Outlook.com.For example, determine the account of machao according to the destination address machao@gmail.com that replys message, in the account, search corresponding directory record according to the source address guanyc@Outlook.com@163.com that replys message, the contact address of the record finding is updated to described new address guanyc@Outlook.com.
After step 4-306, can further include step 4-307 and step 4-308.
Described step 4-307 is: HSvr-D sends address to the client of machao and upgrades instruction, and instruction comprises AddrBase value guanyc@Outlook.com and described active information: the null value null of address to be updated.
Described step 4-308 is: the client of machao is received after the renewal instruction of described address, search corresponding directory record according to the AddrBase value guanyc@Outlook.com of address to be updated, in the time judging described active information and be null, the AddrHome part of corresponding address in the directory record finding is deleted,, only using the AddrBase part of described corresponding address as new address.
The contact address of the guanyunchang recording in example 4.4:machao numbering directory is guanyc@Outlook.com@163.com, and guanyunchang is after forcing five passes and slay six captains, get back to again the camp of liubei, and contact address has been updated to guanyc@Outlook.com.Like this, when machao sends out message to guanyunchang, carry out following flow process:
Step 4-401 to step 4-406, with step 3-401 to step 3-406.
Step 4-407, the client of maochao is searched corresponding directory record according to the source address guanyc@Outlook.com@163.com of described reply message, and the contact address of the record finding is updated to described new address guanyc@Outlook.com.
If also comprise directory list attribute in the accounts information in HSvr,, after step 4-407, can further include step 4-408 and step 4-409.
Described step 4-408 is: the client of machao sends address to HSvr-D and upgrades instruction, and instruction comprises AddrBase value guanyc@Outlook.com and described active information: the null value null of address to be updated.
Described step 4-409 is: HSvr-D receives after the renewal instruction of described address, in the directory of machao, search corresponding directory record according to the AddrBase value guanyc@Outlook.com of address to be updated, in the time judging described active information and be null, the AddrHome part of corresponding address in the directory record finding is deleted,, only using the AddrBase part of described corresponding address as new address.
The AddrBase value of the destination address of described message is one and covers E-mail address, territory, in step 42B, the described AddrBase value according to the destination address of described message determines that new address is: decoding, this is covered E-mail address, territory and obtains corresponding E-mail address, and the E-mail address that decoding is obtained is as described new address.
For the cross-domain code in mentioned two territories, can be encoded to the territory cross-domain code form of covering.Taking with two continuous underscores: " _ _ " substitute code as at as example.Like this, for CDAddr value guanyc@Outlook.com@163.com, after coding, obtain be form be guanyc__Outlook.com@163.com cover the cross-domain code in territory.
If cross-domain all pairs of territories above code is all equal to and replaces with the corresponding cross-domain code in territory of covering, described step 4-305 further: HSvr-D receives after described reply message, be that null learns that this active information is invalid according to the active information carrying in this reply message, so, the AddrBase value guanyc__Outlook.com of source address guanyc__Outlook.com@163.com to described reply message decodes and obtains corresponding E-mail address guanyc@Outlook.com, using guanyc@Outlook.com as new address.
The AddrBase value of the destination address of described message is a telephone number, and in step 42B, the described AddrBase value according to the destination address of described message determines that new address is: using shadow code corresponding this telephone number as described new address.
For example, replace above-mentioned " guanyc Outlook.com " with telephone number " 8613923812365 ", described step 4-305 further: HSvr-D receives after described reply message, be that null learns that this active information is invalid according to the active information carrying in this reply message, so, using the shadow code 86*139*23812365 of AddrBase value 8613923812365 correspondences of the source address of described reply message 8613923812365@163.com as new address.
In step 41, described message is further the message of the attribute information for obtaining target account, and this message is marked as pressure ending message.
For example, described step 4-101 is further: the destination address of machao client message is set to Liubei@Outlook.com@163.com, the source address of message is set to machao@gmail.com, comprise the command code of request target account active information: GetActiveAddrHome message body, and pressure terminal label: " ForceEnd ", then sends to HSvr-D by this message.Correspondingly, described step 4-103 is further: HSvr-B receives after described message, determine target account according to AccountAddr value Liubei@Outlook.com@163.com, because described message is marked as pressure ending message, and corresponding command code is GetActiveAddrHome, therefore performs step 4-104.
In step 41, in described reply message, there is no described activation message, for example, after a message is sent, do not receive the reply message that contains accordingly active information, but receive the reply message of a cause value that contains expression " target account does not exist ", at this moment, in step 42, can directly determine new address according to the AddrBase value of the destination address of described message.
Especially, the AddrBase value of the destination address of described message is a GUID, in step 22B, or in step 32B, or in step 42B, the described AddrBase value according to the destination address of described message determines that new address is: according to this GUID, by migration recognition methods, obtain the CeSvrDesc value that this GUID is corresponding, directly the AddrHome of the destination address of described message is replaced into described CeSvrDesc value obtains described new address.About more descriptions of migration recognition methods, participate in " message addressing method " patent of invention that described " GUID moving method " patent of invention or application number are 201310362788.6.
Especially, the AddrBase value of the destination address of described message is one and covers E-mail address, territory, in step 22B, or in step 32B, or in step 42B, the described AddrBase value according to the destination address of described message determines that new address is: this is covered territory E-mail address decoder and obtains an E-mail address type GUID, according to this GUID, by migration recognition methods, obtain the CeSvrDesc value that this GUID is corresponding, directly the AddrHome of the destination address of described message is replaced into described CeSvrDesc value obtains described new address.
Especially, the AddrBase value of the destination address of described message is a telephone number, in step 22B, or in step 32B, or in step 42B, the described AddrBase value according to the destination address of described message determines that new address is: the shadow code corresponding according to this telephone number, by migration recognition methods, obtain the CeSvrDesc value of this shadow code correspondence, directly the AddrHome of the destination address of described message is replaced into described CeSvrDesc value obtains described new address.
Especially, the AddrBase value of the destination address of described message is a telephone number, in step 22B, or in step 32B, or in step 42B, the described AddrBase value according to the destination address of described message determines that new address is: according to ENUM(Telephone Number Mapping) agreement, this telephone number is converted to a domain name, by domain name mapping, obtain the address that this domain name is pointed to, using the address obtaining as described new address.
For example, for telephone number 8613316882012, first according to ENUM protocol, this telephone number is converted to domain name 2.1.0.2.8.8.6.1.3.3.1.6.8.e164.tld, then resolves this domain name.If in advance in corresponding dns server, this domain name is pointed to certain AccountAddr value of zhaoyun, for example 8613316882012@qq.com, so, by searching corresponding dns server, can obtain this domain name AccountAddr value pointed 8613316882012@qq.com.
About more descriptions of ENUM, referring to RFC2916 document.
The present invention also provides the compensation method of a kind of address, and the method is by address list is set, and in the time of executive address compensation flow process, according to address to be compensated, selects left match address from described address list, the address by the left match address of choosing after by way of compensation.If search the address less than left coupling, the direct address after by way of compensation by this address to be compensated.
The left coupling word string of word string A B refers to, in word string A, part or all that has a left side equates with word string B.For example, the word strings such as the left coupling of word string abcd123 a, ab, abc, abcd, abcd1, abcd12, abcd123, therefore, word string abcd123 is the left coupling word string of the word strings such as a, ab, abc, abcd, abcd1, abcd12, abcd123.
In order to show better meaning of the present invention and usage, below by embodiment 5.1 and 5.2, method, message method, directory automatic update method are determined in above-mentioned message treatment method, new address, and the compensation method of described address combines demonstration, to help technical staff to understand and to implement the present invention.
In this embodiment, in HSvr, also preserve address list.
Example 5.1: also preserve address list in HSvr-D, compensate for address.In this address list, contain address Liubei@Outlook.com@163.com.Liubei marries into and lives with the bride's family to Wu, and its contact address is replaced by two territories cross-domain code Liubei@Outlook.com@qq.com.Machao is disinclined to remember the cross-domain address of liubei, and its process of sending out message to liubei according to contact address Liubei@Outlook.com is as follows:
The destination address of step 5-101, machao client message is set to Liubei@Outlook.com, and the source address of message is set to machao@gmail.com, and sets corresponding message body, then this message is sent to HSvr-D.
Step 5-102, HSvr-D receive after described message, executive address compensation flow process: according to the destination address Liubei Outlook.com of described message, from described address list, search the address of left coupling, obtain Liubei@Outlook.com@163.com, upgrade the destination address of described message with Liubei@Outlook.com@163.com.
Step 5-103, HSvr-D judge that the AddrHome value 163.com of the destination address Liubei@Outlook.com@163.com of message points to HSvr-B, so this message is sent to HSvr-B.
Step 5-104, with step 1-103.
Step 5-105, with step 1-104.
Step 5-106, receive after described reply message with step 3-105:HSvr-D, obtain new address Liubei Outlook.com qq.com according to the AddrBase value Liubei Outlook.com of the source address Liubei Outlook.com 163.com of this reply message and entrained active information qq.com.
Step 5-107, HSvr-D are according to the source address Liubei@Outlook.com@163.com of described reply message, search described address list, determine corresponding record, the address of determined record is updated to new address Liubei@Outlook.com@qq.com by Liubei@Outlook.com@163.com.
Step 5-108, with step 3-106:HSvr-D, the destination address of described message is updated to described new address Liubei Outlook.com qq.com by Liubei Outlook.com 163.com, resend this message,, send to the HSvr-A of described new address ownership by this message.
Step 5-109, receive after described message with step 3-107:HSvr-A, determine target account according to AccountAddr value Liubei Outlook.com qq.com; Because the ActiveAddrHome value of determined target account is qq.com, qq.com is consistent with its AddrHome value, therefore, confirms that this target account is in state of activation, so, described message is ended in to this target account.
Described address list can be also to arrange respectively for different accounts.For example, in the accounts information in HSvr, also comprise directory list attribute, preserve the directory information of proper account by this directory list attribute.Referring to example 4.1 and example 4.3.
Address of the present invention compensation method also can be used for client, for user's input checking and work are compensated accordingly.
In order not affect user's impression, in mobile terminal number is thin, mailing address part is still only preserved phone number, and preserves address list in the client of HSvr.When user selects directory number, or a telephone number of input is while making a call, and client, using this number as address to be compensated, is carried out address compensation, then, calls out according to the address after compensation.
Example 5.2:machao client storage address list, for address compensation, this address list can be local preservation, can be also to login after the account in HSvr-D at machao, downloads to local interim preservation from HSvr-D.In this address list, contain address 8613316882012@Outlook.com.Zhaoyun protects liubei and marries into and lives with the bride's family to Wu, and its contact address is replaced by 8613316882012@qq.com.Machao input or the process of selecting directory phone number 8613316882012 to send out message to zhaoyun are as follows:
Step 5-201, machao client obtain after called number 8613316882012, executive address compensation flow process: according to called number 8613316882012, from described address list, search the address of left coupling, obtain 8613316882012@Outlook.com, the address by 8613316882012@Outlook.com after by way of compensation.
The destination address of step 5-202, machao client message is set to 8613316882012@Outlook.com, and the source address of message is set to machao@gmail.com, and sets corresponding message body, then this message is sent to HSvr-D.
Step 5-203, HSvr-D judge that the AddrHome value Outlook.com of the destination address 8613316882012@Outlook.com of message points to HSvr-C, so this message is sent to HSvr-C.
Step 5-204, HSvr-C receive after described message, according to AccountAddr value, 8613316882012@Outlook.com determine target account, because the ActiveAddrHome value of determined target account is qq.com, not the AddrHome value Outlook.com.com of this target account, therefore, confirm that this target account is in resting state, so, execution step 5-205.
Step 5-205, HSvr-C structure is replied message, and the destination address of this reply message is machao@gmail.com, and source address is 8613316882012@Outlook.com, and message content comprises the active information qq.com of described target account; This reply message is sent to HSvr-D.
Step 5-206, HSvr-D receive after described reply message, according to the destination address machao@gmail.com of this reply message, determine the client of machao, this reply message are sent to the client of maochao.
The client of step 5-207, maochao is received after described reply message, obtains new address 8613316882012@qq.com according to the AddrBase value 8613316882012 of the source address 8613316882012@Outlook.com of this reply message and entrained active information qq.com.
Step 5-208, the client of maochao is searched described address list according to the source address 8613316882012@Outlook.com that reply message, determines corresponding record, and the address of this record is updated to new address 8613316882012@qq.com.
Step 5-209, machao client are updated to 8613316882012@qq.com by the destination address of described message by 8613316882012@Outlook.com, the source address machao@gmail.com of message, corresponding message body is constant, then this message is sent to HSvr-D.
Step 5-210, HSvr-D receive after described message, judge that the AddrHome value qq.com of the destination address 8613316882012@qq.com of message points to HSvr-A, so this message is sent to HSvr-A.
Step 5-211, HSvr-A receive after described message, according to AccountAddr value, 8613316882012@qq.com determine target account, because the ActiveAddrHome value of determined target account is qq.com, qq.com is consistent with its AddrHome value, therefore, confirm that this target account is in state of activation, so, described message is ended in to this target account.
In step 5-209, if contain in described message body to be used to indicate and obtain the ClientIP property value of an account and the command code GetIP_Port of ClientPort property value, correspondingly, in step 5-211, described message is ended in to this target account and refers to:
HSvr-A structure is replied message, the destination address of this reply message is machao@gmail.com, source address is 8613316882012@qq.com, message content comprises ClientIP property value and the ClientPort property value of described target account, and response operation code ResGetIP_Port corresponding to command code GetIP_Port; This reply message is sent to HSvr-D.HSvr-D receives after described reply message, according to the destination address machao@gmail.com of this reply message, determines the client of machao, this reply message is sent to the client of maochao.Like this, the client of maochao just can make a call according to the IP address and the port numbers that obtain, thereby sets up session with the client of zhaoyun.
Can be found out by explanation above, even in the directory of machao, there is variation in Related Contact's address, pass through the inventive method, machao sends message still can to corresponding directory user, and automatically upgrade by address, correct in time the directory address of machao, thereby can effectively avoid message detour problem.Like this, for liubei, he just can select arbitrarily own account in different operators to receive the message that other people send, and has facilitated the selection of liubei.
Especially, if the GUID of liubei is replaced by a shadow code by liubei@Outlook.com, or a telephone number, can reach same technique effect.Like this, the long-expected number migration of the people problem of carrying has just solved.As can be seen here, series methods of the present invention is conducive to for the business development that promotes the communications industry.
These are only preferred embodiments of the present invention or embodiment, be not intended to limit protection scope of the present invention.All in the spirit and principles in the present invention and so on, any amendment of doing, improve, be equal within replacement etc. all should be included in protection scope of the present invention.

Claims (10)

1. a message treatment method, is characterized in that, registers the active information of account in HSvr, is used to indicate in the same base account family of an account, and which account is in state of activation; Said method comprising the steps of:
Step a, described HSvr judge that the target account of described message, whether in state of activation, if so, performs step b; Otherwise, execution step c;
This message is ended in this target account by step b, described HSvr;
Step c, described HSvr reply the active information of described target account according to the source address of message; Or described HSvr replys unexpected message according to the source address of message.
2. method according to claim 1, is characterized in that, further carries pressure terminated flag in described message, and whether be used to indicate this message is to force ending message;
Correspondingly, before step a, further comprise: described HSvr judges whether described message is to force ending message, if so, directly described message is ended in to the target account of this message, then finishes.
3. a method is determined in new address, it is characterized in that, said method comprising the steps of:
A, a message is sent, receive and reply message.
B, according to described reply message, determine new address according to the AddrBase of the destination address of described message.
4. method according to claim 3, it is characterized in that, in described reply message, contain active information, correspondingly, step b is further: judge that whether described active information is effective, if effectively, directly the AddrHome of the destination address of described message is replaced into described active information obtains new address; Otherwise, directly determine new address according to the AddrBase value of the destination address of described message.
5. method according to claim 4, it is characterized in that, the AddrBase value of the destination address of described message is a GUID, and the described AddrBase value according to the destination address of described message determines that new address is: directly using the AddrBase value of the destination address of this message as new address;
Or, the AddrBase value of the destination address of described message is one and covers E-mail address, territory, the described AddrBase value according to the destination address of described message determines that new address is: decoding, this is covered E-mail address, territory and obtains corresponding E-mail address, and the E-mail address that decoding is obtained is as described new address;
Or the AddrBase value of the destination address of described message is a telephone number, the described AddrBase value according to the destination address of described message determines that new address is: using shadow code corresponding this telephone number as described new address;
Or, the AddrBase value of the destination address of described message is a GUID, the described AddrBase value according to the destination address of described message determines that new address is: according to this GUID, by migration recognition methods, obtain the CeSvrDesc value that this GUID is corresponding, directly the AddrHome of the destination address of described message is replaced into described CeSvrDesc value obtains described new address;
Or, the AddrBase value of the destination address of described message is one and covers E-mail address, territory, the described AddrBase value according to the destination address of described message determines that new address is: this is covered territory E-mail address decoder and obtains an E-mail address type GUID, according to this GUID, by migration recognition methods, obtain the CeSvrDesc value that this GUID is corresponding, directly the AddrHome of the destination address of described message is replaced into described CeSvrDesc value obtains described new address;
Or, the AddrBase value of the destination address of described message is a telephone number, the described AddrBase value according to the destination address of described message determines that new address is: the shadow code corresponding according to this telephone number, by migration recognition methods, obtain the CeSvrDesc value of this shadow code correspondence, directly the AddrHome of the destination address of described message is replaced into described CeSvrDesc value obtains described new address;
Or, the AddrBase value of the destination address of described message is a telephone number, the described AddrBase value according to the destination address of described message determines that new address is: according to ENUM protocol, telephone number is converted to a domain name, by domain name mapping, obtain the address that this domain name is pointed to, using the address obtaining as described new address.
6. a message method, is characterized in that, said method comprising the steps of:
A, a message is sent, receive and reply message.
B, according to described reply message, determine new address according to the AddrBase of the destination address of described message.
The destination address of c, described message is set to described new address, sends this message.
7. method according to claim 6, it is characterized in that, in described reply message, contain active information, correspondingly, described step b is further: judge that whether described active information is effective, if effectively, directly the AddrHome of the destination address of described message is replaced into described active information obtains new address; Otherwise, determine new address according to the AddrBase value of the destination address of described message.
8. an address automatic update method, is characterized in that, said method comprising the steps of:
A, after a message is sent, receive reply message.
B, according to described reply message, determine new address according to the AddrBase of the destination address of described message.
C, determine corresponding address record according to the destination address of described message, the address of this record is updated to described new address.
9. method according to claim 8, it is characterized in that, in described reply message, contain active information, correspondingly, described step b is further: judge that whether described active information is effective, if effectively, directly the AddrHome of the destination address of described message is replaced into described active information obtains new address; Otherwise, determine new address according to the AddrBase value of the destination address of described message.
10. an address compensation method, is characterized in that, address list is set; In the time of executive address compensation flow process, according to address to be compensated, from described address list, select left match address, judge whether to exist left match address, if existed, the address after by way of compensation by the left match address of choosing; Otherwise, the directly address after by way of compensation by this address to be compensated.
CN201310500087.4A 2013-01-11 2013-10-23 Message handling method Pending CN103929505A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310500087.4A CN103929505A (en) 2013-01-11 2013-10-23 Message handling method

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN201310010001 2013-01-11
CN201310010001.X 2013-01-11
CN201310500087.4A CN103929505A (en) 2013-01-11 2013-10-23 Message handling method

Publications (1)

Publication Number Publication Date
CN103929505A true CN103929505A (en) 2014-07-16

Family

ID=51147577

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310500087.4A Pending CN103929505A (en) 2013-01-11 2013-10-23 Message handling method

Country Status (1)

Country Link
CN (1) CN103929505A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114615221A (en) * 2020-12-07 2022-06-10 腾讯科技(深圳)有限公司 Reply content control method, device, equipment and computer storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020075151A1 (en) * 2000-09-29 2002-06-20 Lancos Kenneth J. System and method for transmitting messages from a guest to another party at a coverage area
CN101364186A (en) * 2008-09-27 2009-02-11 腾讯科技(深圳)有限公司 Data migration method, system, data migration server and data interface server
CN103684986A (en) * 2012-09-11 2014-03-26 王正伟 A message addressing method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020075151A1 (en) * 2000-09-29 2002-06-20 Lancos Kenneth J. System and method for transmitting messages from a guest to another party at a coverage area
CN101364186A (en) * 2008-09-27 2009-02-11 腾讯科技(深圳)有限公司 Data migration method, system, data migration server and data interface server
CN103684986A (en) * 2012-09-11 2014-03-26 王正伟 A message addressing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114615221A (en) * 2020-12-07 2022-06-10 腾讯科技(深圳)有限公司 Reply content control method, device, equipment and computer storage medium
CN114615221B (en) * 2020-12-07 2023-04-07 腾讯科技(深圳)有限公司 Reply content control method, device, equipment and computer storage medium

Similar Documents

Publication Publication Date Title
US10701011B2 (en) Re-routing incoming email for a multi-tenant database system
KR101965794B1 (en) Packet format and communication method of network node for compatibility of ip routing, and the network node
US20020188690A1 (en) System and method for checking and correcting electronic mail address
US20040167966A1 (en) Method and system for directing communications in a communications network
US6865594B1 (en) Methods and apparatus for automatically generating a routing table in a messaging server
SE503752C2 (en) Systems and host device for transmission of electronic mail over a mobile telephone network
EP1584039A2 (en) Method and system for facilitating instant messaging transactions between disparate service providers
PT1938536E (en) Retrieval of offline instant messages
WO2001067269A1 (en) Precedence rules in electronic messaging servers
BRPI0715843A2 (en) Computer program methods, system, and products to provide a country code identifier in an international enum system
EP1298873A2 (en) Method and apparatus for transferring messages between realms on a network
KR20160078511A (en) Platform independent idn e-mail storage translation
US20100049873A1 (en) Identifying network entities in a peer-to-peer network
CN103929505A (en) Message handling method
CN103391333A (en) Network supporting GUID (Global Unified Identity) migration and relevant message process methods
US20080189248A1 (en) Multi-site common directory and method for using the multi-site common directory
CN104125310B (en) Message method based on semi-permanent address
US7664880B2 (en) Lightweight address for widely-distributed ADHOC multicast groups
Postel Domain name system implementation schedule-revised
JP2003521844A (en) System and method for communicating across various communication applications using a single address string
JPH11220488A (en) Electronic mail distributing method and system and storage medium storing electronic mail distribution program
CN106657425A (en) Automatic finding method of residence code
EP1183615A1 (en) Methods and apparatus for automatically generating a routing table in a messaging server
Leon The Internet world: its protocols and mainstream services
Feinler Host Tables, Top-Level Domain Names, and the Origin of Dot Com

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: Wuhou District Shaoling road Chengdu city Sichuan province 610000 No. 29 2-2-3 Li Huaijiang

Applicant after: Wang Zhengwei

Address before: 610000 Sichuan city in Chengdu province Wuhou Temple Street No. 87 (empty Jiashuyuan) 1 Building 1 unit 3

Applicant before: Wang Zhengwei

C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140716

WD01 Invention patent application deemed withdrawn after publication