Summary of the invention
Technical problem to be solved by this invention is: overcome that can't to carry out instant message between the prior art international member mutual or carry out the inconvenience that instant message exists when mutual by MSN Messenger.
For solving the problems of the technologies described above, a kind of instant message interoperability methods that the embodiment of the invention provides may further comprise the steps:
After second instant information gateway in second cordless communication network receives the instant message of the sender mobile terminal transmission in first cordless communication network, the described instant message that is applicable to first agreement of described first cordless communication network is converted to the instant message of second agreement that is applicable to described second cordless communication network, and send to recipient's portable terminal by second server of instant message of described second cordless communication network, carry the recipient's user ID in transmit leg user ID and described second cordless communication network in the instant message of described first agreement;
Transmit leg or recipient's portable terminal carry target presence information with corresponding first or second server of instant message that sends to of the update request information that is updated in line states of user's input in the described update inquiry information; First or second server of instant message is updated to the target presence with described user's current presence, return to described transmit leg or recipient's portable terminal and to upgrade successful renewal results messages, and send to second or first instant information gateway by first or second instant information gateway with the presence information after described user's renewal is corresponding; Presence information translation after second or first instant information gateway upgrades described user is to send to second or first server of instant message after the presence information of second or first agreement; Second or first server of instant message upgrades the presence in whole contacts lists at described user place, and the presence information after will upgrading sends to whole contacts list corresponding mobile terminal.
For solving the problems of the technologies described above, a kind of instant information gateway that the embodiment of the invention provides comprises:
Access module, be used for information that the server of instant message with the cordless communication network at described instant information gateway place sends and be transmitted to other instant information gateway in other cordless communication network, and the information of request initiation protocol that this other instant information gateway is sent carries out protocol conversion, and the information of target protocol after the protocol conversion is sent to described server of instant message;
Memory module is used for the contrast relationship information between storing initial agreement and the switch target agreement;
Modular converter, be connected with described access module and described memory module respectively, be used for according to described contrast relationship information, the information translation of the initiation protocol that described other instant information gateway is sent is the information of target protocol, and the presence information after receiving user that described server of instant message sends by described other instant information gateway and upgrading, the presence information after described user upgraded carries out sending to described server of instant message after the protocol conversion.
For solving the problems of the technologies described above, a kind of server of instant message that the embodiment of the invention provides comprises:
Subscriber information storing module, the cordless communication network that is used for storing described server of instant message place is ordered the user profile of instant messaging;
Send and identify module, be connected, be used for user profile, judge whether the user who receives instant message is online according to described order instant messaging with described subscriber information storing module;
Cache module is used to store described instant message;
Service Processing Module identifies that with described transmission module and described cache module are connected respectively, is used for sending described instant message to recipient's portable terminal when the user who receives described instant message is online; And when described user is not online, described instant message is stored in the described cache module, send the announcement information that receives instant message to described recipient's portable terminal, and when the described user's on-line message that receives that described transmission identifies that module sends, the described instant message of storing in the described cache module is sent to described recipient's portable terminal, and reception transmit leg or the transmission of recipient's portable terminal, the update request information that is updated in line states of user's input, carry target presence information in the described update inquiry information, described user's current presence is updated to the target presence, return the successful renewal results messages of renewal to described transmit leg or recipient's portable terminal, and the presence information after described user upgraded is corresponding sends to other instant information gateway in other cordless communication network by the instant information gateway in the cordless communication network at place, and the presence information of the instant information gateway transmission in the cordless communication network at reception place, upgrade the presence in whole contacts lists at described user place, and the presence information after will upgrading sends to whole contacts list corresponding mobile terminal.
Based on technique scheme.The present invention can obtain following beneficial technical effects:
By the protocol conversion between cordless communication network, can between any two cordless communication networks, realize the instant message intercommunication, therefore, satisfied the demand of the instant message intercommunication between domestic user and the international member;
Realize the intercommunication of instant message by cordless communication network, because the user carries portable terminal, can carry out instant message transrecieving by portable terminal at any time, do not overcome in the prior art when either party user carries computer and maybe can't be connected to the internet and can't carry out the mutual defective of instant message, made things convenient for the user by MSN Messenger and external user.
Embodiment
The present invention realizes IM intercommunication with communication by protocol conversion between two cordless communication networks, be applicable to any two cordless communication networks.Below each embodiment be example with China Mobile's network and international telecommunication VODAFONE communication network as first cordless communication network and second cordless communication network respectively only, describe technical scheme of the present invention.
The basic procedure of IM interoperability methods of the present invention is: after the VODAFONE IM gateway in the VODAFONE communication network receives the IM of the sender mobile terminal transmission in China Mobile's network, the SIP-C protocol of I M that is applicable to China Mobile's network is converted to the SIP-V protocol of I M that is applicable to the VODAFONE communication network, and the VODAFONE IM server by the VODAFONE communication network sends to the recipient's portable terminal in the VODAFONE communication network, carries transmit leg user ID and recipient's user ID among the SIP-C protocol of I M.
By the protocol conversion between cordless communication network, realized carrying out the IM intercommunication between any two cordless communication networks, certainly, also satisfied the demand of the instant message intercommunication between domestic user and the international member; By the intercommunication of cordless communication network realization IM, because the user carries portable terminal, can carry out the IM transmitting-receiving by portable terminal at any time, made things convenient for the user.
Figure 1 shows that the flow chart of IM interoperability methods embodiment of the present invention, it may further comprise the steps:
Step 101, the sender mobile terminal in the China Mobile's network IM of the China Mobile server in this China Mobile's network sends IM, carries the recipient's user ID in transmit leg user ID and the VODAFONE communication network among this IM.User ID wherein can be user ID or MSISDN, and for example: the transmit leg user ID is 1350XXXXX, and recipient's user ID is 00135YYY, and the IM content is " you are good ".
Step 102, the IM of China Mobile server sends to the IM of China Mobile gateway with IM.
Step 103, the IM of China Mobile gateway is transmitted to VODAFONE IM gateway in the VODAFONE communication network with IM.
Step 104, VODAFONE IM gateway is converted to SIP-V protocol of I M with SIP-C protocol of I M, and this IM is sent to VODAFONE IM server in the VODAFONE communication network.
Step 105, VODAFONE IM server sends to recipient's portable terminal with SIP-V protocol of I M.
Wherein, in thestep 105, after VODAFONE IM server receives IM, judge according to recipient's user's online state information whether recipient user is current online,, then directly IM is sent to recipient's portable terminal if online; Otherwise, send the announcement information that receives IM to recipient's portable terminal, for example: " you receive new IM "; After recipient user logined VODAFONE IM server, VODAFONE IM server sent to recipient's portable terminal with IM.
After recipient's portable terminal receives IM, send out to China Mobile's IM gateway by VODAFONE IM server and VODAFONE IM gateway successively and pick the response message of receiving IM, the IM of China Mobile gateway sends to sender mobile terminal by China Mobile's IM server after the response message that receives IM of SIP-V is converted to the response message of SIP-C agreement.Figure 2 shows that the structural representation of an IM intercommunicating system realizing that the present invention is embodiment illustrated in fig. 1.
Beforestep 101, promptly sender mobile terminal sends before the IM, comprises that also sender mobile terminal and recipient's portable terminal add the other user the into operation of contacts list respectively, and as shown in Figure 3, this interpolation contact person's operation specifically comprises:
Step 201, sender mobile terminal send to the IM of China Mobile server adds contact person's solicited message, carries transmit leg user ID 1350XXXXX and the side of picking user ID 00135YYY in this interpolation contact person solicited message.
Step 202, the IM of China Mobile server sends the requests verification side of picking user ID by the IM of China Mobile gateway to VODAFONE IM gateway and whether effectively verifies solicited message, carries the side of picking user ID 00135YYY in this checking solicited message.
Step 203, VODAFONE IM gateway sends to VODAFONE IM server with the checking solicited message that the checking solicited message of SIP-C agreement is converted to SIP-V.
Step 204, whether the side of picking user ID 00135YYY is effective in VODAFONE IM server authentication, is that then execution instep 205; Otherwise, execution instep 213.
Step 205, VODAFONE IM server are passed through VODAFONE IM gateway to the effectively effective object information of the IM of China Mobile gateway forwards user ID 00135YYY and recipient's user profile.
Send to the IM of China Mobile server after effective object information that step 206, the IM of China Mobile gateway are converted to the SIP-C agreement with effective object information and recipient's user profile of SIP-V agreement and the recipient's user profile.
Step 207, the IM of China Mobile server adds recipient's user profile in the transmit leg contacts list, sends to sender mobile terminal then and adds success message.
Step 208, sender mobile terminal send the subscribe request information of subscribing to recipient's user's online state by the IM of China Mobile gateway and the IM of China Mobile server successively to VODAFONE IM gateway.
Step 209, VODAFONE IM gateway send to VODAFONE IM server after with this subscribe request information translation subscribe request information that is the SIP-C agreement.
Step 210, VODAFONE IM server sends to the IM of China Mobile gateway by VODAFONE IM gateway with recipient's user's online state information.
Step 211, the IM of China Mobile gateway are to send to the IM of China Mobile server after the SIP-C agreement with this presence information translation.
Step 212, the recipient's user's online state in the IM of the China Mobile server update transmit leg contacts list, and this presence information sent to sender mobile terminal.
Step 213, VODAFONE IM server sends user ID invalid null result information in the side's of picking by VODAFONE IM gateway to the IM of China Mobile gateway.
Step 214, the IM of China Mobile gateway are to send to the IM of China Mobile server after the null result information of SIP-C agreement with the null result information translation of SIP-V agreement.
Step 215, the IM of China Mobile server sends the invalid notification message of recipient's user ID to sender mobile terminal.
In flow process shown in Figure 3, sender mobile terminal promptly also comprises after the step 212 after recipient user is added into the transmit leg contacts list:
Sender mobile terminal sends the notification message that receives recipient's user's online state by the IM of China Mobile server, the IM of China Mobile gateway, VODAFONE IM gateway and VODAFONE IM server successively to recipient's portable terminal.Wherein, VODAFONE IM gateway just can send to VODAFONE IM server after this notification message need being converted to the SIP-V agreement.Then, recipient's portable terminal can add into recipient's contacts list with the transmit leg user by with sender mobile terminal recipient user being added the into identical method of transmit leg contacts list.
Before sender mobile terminal sends IM, further, beforestep 201, also carry out the operation that transmit leg user and recipient user order the IM business, as shown in Figure 4, order the idiographic flow of IM business for the user, with China Mobile's network is example, and it may further comprise the steps:
Step 301, the user of China Mobile is by the portable terminal login IM of China Mobile server, and input user profile also sends subscription request information, carries user profile in this subscription request information.
Step 302, IM server judge whether user profile is effective, is, execution instep 303; Otherwise, execution instep 304.
Step 303, this user profile of IM server stores also send to be ordered successful communication information to portable terminal.
Step 304, IM server send the communication information of ordering failure to portable terminal.The idiographic flow of order IM business shown in Figure 3 is equally applicable to comprise other any cordless communication network of VODAFONE communication network.
Based on technique scheme, the user can upgrade its presence after ordering the professional success of IM at any time, and as shown in Figure 5, for the user upgrades the flow process of its presence, it specifically comprises:
Step 401, portable terminal in China Mobile or the VODAFONE communication network carries the target presence information after asking to upgrade with the corresponding China Mobile or the VODAFONE IM server of sending to of the update request information that is updated in line states of user's input in this update request information.
Step 402, the current presence that China Mobile or VODAFONE IM server will send the terminal use of update request information is updated to the target presence, and with corresponding China Mobile or the VODAFONE IM gateway of sending to of presence information after this user's renewal.
Step 403, the presence information that China Mobile or VODAFONE IM gateway are corresponding after will upgrading is transmitted to VODAFONE or the IM of the China Mobile gateway in the other side's communication network.
Step 404, the presence information translation that VODAFONE or China Mobile's IM gateway are corresponding after will upgrading are after the presence information after the renewal of SIP-V or SIP-C agreement, corresponding VODAFONE or the IM of the China Mobile server of sending to.
Step 405, presence in All Contacts's tabulation at the terminal use place of VODAFONE or the IM of China Mobile server update transmission update request information, and the presence information after will upgrading sends to the customer mobile terminal of each contacts list correspondence at place.
In addition, the user can also delete the other side at any time from contacts list.As shown in Figure 6, for the present invention deletes the other user's flow process from contacts list, it specifically comprises:
Step 501, the portable terminal in China Mobile or the VODAFONE communication network is with the corresponding China Mobile or the VODAFONE IM server of sending to of removal request information of deleting the other user from contacts list of user's input.
Step 502, VODAFONE that the cancellation of China Mobile or VODAFONE IM server is deleted or the user of China Mobile be to the access rights of transmit leg or recipient's user profile, and correspondingly send the cancel subscriptions solicited message that cancels subscriptions of deleted VODAFONE or China Mobile's user's online state information of China Mobile or VODAFONE user by China Mobile or VODAFONE IM gateway to VODAFONE or the IM of China Mobile gateway.
Step 503, the corresponding solicited message that will cancel subscriptions of VODAFONE or China Mobile's IM gateway sends to VODAFONE or the IM of China Mobile server after being converted to SIP-V or SIP-C agreement.
Step 504, VODAFONE or China Mobile's IM server are corresponding deletes China Mobile or VODAFONE user from VODAFONE or China Mobile's user's online state subscription tabulation.
Step 505, VODAFONE or the IM of China Mobile server send the success message that cancels subscriptions by VODAFONE or the IM of China Mobile gateway, China Mobile or VODAFONE IM gateway to China Mobile or VODAFONE IM server accordingly successively, wherein, China Mobile or VODAFONE IM gateway need the corresponding success message that will cancel subscriptions to be converted to SIP-C or SIP-V agreement.
Step 506, China Mobile or the VODAFONE IM server portable terminal in China Mobile or VODAFONE communication network sends the successful notification message of deletion.
Simultaneously, China Mobile or VODAFONE user can also add the other user in the blacklist to.As shown in Figure 7, be the flow process that the present invention adds the user to blacklist, it specifically comprises:
Step 601, the corresponding transmission to China Mobile or VODAFONE IM server of the portable terminal among China Mobile or the VODAFONE added VODAFONE or the user of China Mobile in the blacklist interpolation solicited message.
Step 602, corresponding VODAFONE that request is added of China Mobile or VODAFONE IM server or the user of China Mobile add in the blacklist that sends the China Mobile that adds solicited message or VODAFONE user, and the corresponding presence information that sends China Mobile or VODAFONE user's off-line by China Mobile or VODAFONE IM gateway to VODAFONE or the IM of China Mobile gateway.
Step 603, after the corresponding presence information translation with China Mobile or VODAFONE user's off-line of VODAFONE or China Mobile's IM gateway is SIP-V or SIP-C agreement, corresponding VODAFONE or the IM of the China Mobile server of sending to.
Step 604, VODAFONE or China Mobile's IM server are corresponding to change to off-line state with China Mobile in VODAFONE or the user's of China Mobile the contacts list or VODAFONE user's online state, and the notification message of the VODAFONE in being added to blacklist or portable terminal transmission China Mobile of China Mobile or VODAFONE user's off-line.
Step 605, VODAFONE or China Mobile's IM server be corresponding will to be added to the push-notification-answer message that VODAFONE in the blacklist or China Mobile's portable terminal return and to send to China Mobile or VODAFONE IM server by VODAFONE or the IM of China Mobile gateway, China Mobile or VODAFONE IM gateway successively, wherein, VODAFONE or the IM of China Mobile gateway need be with corresponding SIP-V or the SIP-C agreements of being converted to of push-notification-answer message.
Step 606, China Mobile or VODAFONE IM server are corresponding to send the successful object information of interpolation request to sending the China Mobile or the VODAFONE portable terminal that add solicited message.
After China Mobile or VODAFONE user order the IM business, order cancellation IM business at any time.As shown in Figure 8, be the flow process of order cancellation IM business of the present invention, it specifically comprises:
Step 701, China Mobile or VODAFONE user are by the corresponding order cancellation solicited message of logining China Mobile or VODAFONE IM server and sending order cancellation IM business of portable terminal.
Step 702, China Mobile or VODAFONE IM server should be the user who sends the order cancellation solicited message mutually and cancel the notification message that the IM service concurrence send the order cancellation success, and correspondingly send the China Mobile of order cancellation IM business or the presence information of VODAFONE user's off-line by China Mobile or VODAFONE IM gateway to VODAFONE or the IM of China Mobile gateway.
Step 703, the corresponding presence information translation with China Mobile or VODAFONE user's off-line of VODAFONE or China Mobile's IM gateway is to send to VODAFONE or the IM of China Mobile server after SIP-CV agreement or the SIP-C agreement.
Step 704, China Mobile or VODAFONE user's online state that VODAFONE or the IM of China Mobile server will comprise this order cancellation IM business in All Contacts's tabulation of the China Mobile of order cancellation IM business or VODAFONE user change to off-line state, and send the China Mobile of this order cancellation IM business or the notification message of VODAFONE user's off-line to each contacts list corresponding user terminal.
After the step 704, the corresponding push-notification-answer message that VODAFONE or China Mobile's user terminal are returned of VODAFONE or China Mobile's IM server sends to China Mobile or VODAFONE IM server by VODAFONE or the IM of China Mobile gateway, China Mobile or VODAFONE IM gateway successively, wherein, China Mobile or VODAFONE IM gateway are in requisition for being SIP-C or SIP-V agreement with the push-notification-answer message conversion.
In the step 702, China Mobile or VODAFONE IM server should be the user who sends the order cancellation solicited message mutually cancel instant messaging after, also delete this user's user profile, and the corresponding announcement information that sends deletion China Mobile or VODAFONE user's contact list data by China Mobile or VODAFONE IM gateway to VODAFONE or the IM of China Mobile gateway; VODAFONE or China Mobile's IM gateway are corresponding to be converted to corresponding VODAFONE of sending to or the IM of China Mobile server after SIP-V or the SIP-C agreement with this announcement information; VODAFONE or China Mobile's IM server corresponding deletion China Mobile or VODAFONE user's IM service related data.
Perhaps, after the step 702, the corresponding user profile that will send the user of order cancellation solicited message of China Mobile or VODAFONE IM server places pool period, the user profile that in this pool period, still keeps this user, and correspondingly send the announcement information that this China Mobile or VODAFONE user profile enter pool period to VODAFONE or China Mobile's IM gateway by China Mobile or VODAFONE IM gateway; China Mobile or VODAFONE gateway are corresponding to be converted to corresponding VODAFONE of sending to or the IM of China Mobile server behind SIP-V or the SIP-C with this notification message; When freezing expiration, corresponding China Mobile or VODAFONE IM server are deleted this China Mobile or VODAFONE user's user profile, VODAFONE or this China Mobile of the corresponding deletion of IM server of China Mobile or VODAFONE user's instant messaging related data comprises: the user's of the order cancellation IM business of preserving in this VODAFONE or the IM of the China Mobile server the data in corresponding VODAFONE or the All Contacts of China Mobile tabulation, order in the other side contact person's the authorization data of subscription data and the presence information that is authorized to obtain the other side contact person of presence one or more.
Figure 9 shows that the structural representation of IM gateway embodiment of the present invention, the foregoing description that it can be used for realizing IM interoperability methods of the present invention comprises the access module 11, themodular converter 12 andmemory module 13 that connect successively.Wherein, access module is used for the information that the IM server of the cordless communication network at this IM gateway place sends is transmitted to other IM gateway in other cordless communication network, and the information translation of request initiation protocol that this other IM gateway is sent be the suitable agreement of cordless communication network at this IM gateway place, and the information after the protocol conversion is sent to IM server in this cordless communication network;Memory module 13 be used for the storing initial agreement and the target protocol that is converted between contrast relationship information;Modular converter 12 is used for the contrast relationship information according tomemory module 13 storage, and the information translation of the initiation protocol that other IM gateway is sent is the information of target protocol.
Figure 10 shows that the structural representation of IM gateway embodiment of the present invention, wherein, be provided withserver interface 111 that is respectively applied for the cordless communication network IM server that connects its place and the gateway interface 112 that inserts other IM gateway in other cordless communication network in the access module 11;Server interface 111 and gateway interface 112 are connected withmodular converter 12 respectively.In addition, also be provided with thewebmaster module 14 andaccounting module 15 that are connected withmodular converter 12 respectively in the IM gateway, wherein,webmaster module 14 is used formodular converter 12 is monitored and managed, monitor its cpu performance and message throughput, and alarm during greater than preset value, and carry out message control in cpu performance or message throughput; The expense that information flow produced on 16 pairs ofmodular converters 12 of accounting module is monitored, extraction, expense are calculated, and the output Fee Amount etc.
Figure 11 shows that the structural representation of IM server implementation example of the present invention, it comprises cache module 21, Service Processing Module 22, the transmission evaluation module 23 and subscriber information storing module 24 that connects successively.Wherein, the cordless communication network that subscriber information storing module 24 is used for storing this IM server place is ordered the user profile of IM business, comprise contacts list, presence etc., and subscription data and the authorization data of ordering other user of user profile in this IM server in other cordless communication network; Cache module 21 is used to store IM; Send and identify that module 23 is used for according to the user profile of ordering the IM business, judges whether the user who receives IM is online; Service Processing Module 22 be used for and portable terminal or IM gateway between carry out information transmit-receive, when the recipient's mobile phone users that receives IM is online, send IM to recipient's portable terminal; When this recipient's mobile phone users is not online, the IM that sends to it is stored in the cache module 21, and send the announcement information that receives IM to this recipient's portable terminal, when receiving the recipient's mobile phone users on-line message that sends 23 transmissions of evaluation module, the IM that stores in the cache module 21 is sent to this recipient's portable terminal.
Again referring to Figure 11, the IM server can also compriseauthentication module 25, be connected withService Processing Module 22 and subscriberinformation storing module 24 respectively, be used to verify whether user ID is effective, further whether the user profile of checking request order IM business is effective.
Further, the IM server can also comprise serviceorder management module 26, is connected withauthentication module 25 and subscriberinformation storing module 24 respectively, is used for when the user profile that receives is effective, for this user orders the IM business, and be this user's order cancellation IM business according to user's request.
Again referring to Figure 11, the IM server can also compriseadministration module 27, be connected withService Processing Module 22 and subscriberinformation storing module 24 respectively, be used for upgrading cordless communication network and order the user's online state information of IM business, and the user profile that receives added in the contacts list that sends the terminal use who adds request, deletion specified contact person and add specified contact person to blacklist from the user's that orders the IM business contacts list.
It should be noted last that: above embodiment is only in order to illustrating technical scheme of the present invention, but not the present invention is made restrictive sense.Although the present invention is had been described in detail with reference to above-mentioned preferred embodiment, those of ordinary skill in the art is to be understood that: it still can make amendment or be equal to replacement technical scheme of the present invention, and this modification or be equal to the spirit and scope that replacement does not break away from technical solution of the present invention.