Embodiment
      The embodiment of the invention provides a kind of method for routing, by interconnecting gateway the messaging service that receives is carried out route and handles, and makes the SMS terminal can understand real message originator, and as shown in Figure 2, this method comprises:
      201, between sip terminal and SMS terminal, carry out message communicating in, sip terminal can be to the sip message business of initiating to initiate to the SMS terminal, interconnecting gateway need receive above-mentioned sip message business.
      Generally speaking, all be provided with interconnecting gateway in territory, sip terminal place and the territory, SMS terminal place, the processing mode that different interconnecting gateways receive after this sip message business is incomplete same, and specifically face is described in detail as follows.
      If 202 interconnecting gateways that receive described sip message business are the interconnecting gateway in territory, sip terminal place, represent so described sip message business to be carried out route by the interconnecting gateway in territory, sip terminal place, if can obtain the E.164 number of sip terminal in such cases, then the E.164 number of described sip terminal is carried out the route of described sip message business as transmit leg.
      If 203 interconnecting gateways that receive described sip message business are the interconnecting gateway in territory, SMS terminal place, represent so described sip message business to be carried out route by the interconnecting gateway in territory, SMS terminal place, if can obtain the E.164 number of sip terminal in such cases, the E.164 number combination that then will carry out the interconnecting gateway number of the professional route of sip message and sip terminal is carried out the route of described sip message business as transmit leg.The interconnecting gateway number that carries out the professional route of sip message in this process is the interconnecting gateway number in territory, SMS terminal place.
      The embodiment of the invention also provides a kind of route device, and as shown in Figure 3, this device comprises receiving element 31 and control unit 32.
      Wherein, receiving element 31 is used to receive the sip message business that sip terminal is initiated to the SMS terminal; Control unit 32 is used at the interconnecting gateway by territory, sip terminal place described sip message business being carried out route, and in the time of can obtaining the E.164 number of sip terminal, the E.164 number of described sip terminal is carried out the route of described sip message business as transmit leg; Described control unit 32 also is used at the interconnecting gateway by territory, SMS terminal place described sip message business being carried out route, and in the time of can obtaining the E.164 number of sip terminal, the E.164 number combination that will carry out the interconnecting gateway number of the professional route of sip message and sip terminal is carried out the route of described sip message business as transmit leg.
      Sip message business described in the embodiment of the invention can be for: SIP initialization request or based on the IMS messaging services of SIP.
      Further, control unit 32 in the embodiment of the invention also is used in the time can not obtaining the E.164 number of sip terminal, will carry out the interconnecting gateway number of the professional route of sip message and described sip message business is carried out in the session identification number combination as transmit leg route.So that when can not get E.164 number, message can be carried out correct route, and owing to comprise the interconnecting gateway number among the initiator, the message that guarantees the message receiver answer can be handled by same interconnecting gateway, has guaranteed that the session of sip terminal initiation can be carried out association in same interconnecting gateway.
      Further, the control unit 32 in the embodiment of the invention also is used for when described sip terminal request is anonymous, will carry out the interconnecting gateway number of the professional route of sip message and described sip message business is carried out in the session identification number combination as transmit leg route.So that when sending anonymous message, carry out correct route, and owing to comprise the interconnecting gateway number among the initiator, the message that guarantees the message receiver answer can be handled by same interconnecting gateway, has demonstrate,proved the session of sip terminal initiation and can carry out association in same interconnecting gateway.
      In order to guarantee that the recipient can learn the message sender identity more accurately, the route device in the embodiment of the invention also comprises: acquiring unit 33, adding device 34.
      Described acquiring unit 33 is used for when described sender number comprises interconnecting gateway number and described sip terminal and do not ask anonymity, according to the transmit leg sip address or E.164 number from recipient's network address book or in the From header field of SIP initialization request, obtain the transmit leg title; Adding device 34 is used for adding the transmit leg title that gets access in the message that is sent.
      Thus, just can comprise the transmit leg title in the message that the recipient receives, and record is consistent in this title and the recipient's network address book or in the From header field of SIP initialization request, be the title that recipient user is familiar with, can be so that the recipient can learn the message sender identity more accurately.
      The embodiment of the invention also provides a kind of route system, comprises sip terminal, route device and SMS terminal shown in Figure 3.Sip terminal wherein, the sip message business that is used to initiate.Route device is used to receive sip terminal sip message business; At interconnecting gateway described S IP message business is carried out route, and can obtain the E.164 number of sip terminal the time, the E.164 number of described sip terminal is carried out route as transmit leg to described sip message business by territory, sip terminal place; At interconnecting gateway described sip message business is carried out route by territory, SMS terminal place, and in the time of can obtaining the E.164 number of sip terminal, will carry out the interconnecting gateway number of the professional route of sip message and the E.164 number combination of sip terminal and described sip message business be carried out route as transmit leg.The SMS terminal is used to receive the described sip message business by described route device route.
      Route device in the embodiment of the invention in the route system also is used for when E.164 number that can not obtain sip terminal or described sip terminal request anonymity, will carry out the interconnecting gateway number and the session identification number combination of the professional route of sip message and as transmit leg described sip message business be carried out route.
      For the ease of understanding the implementation of scheme provided by the present invention, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
      Embodiment 1:
      The utilization scene of the embodiment of the invention is seen Fig. 4, and the terminal that IMS user A uses is sip terminal, and the terminal that SMS user B uses is the SMS terminal, terminal A sends session invitation to terminal B, and after accepting the invitation, terminal B carries out message communicating, as shown in Figure 4, and specifically the comprising of the embodiment of the invention:
      401, IMS user A sends SIP INVITE request by sip terminal to SMS user B, the MSRP session is set up in request, this SIP INVITE request is when the S-CSCF (serving session control entity) that belongs to through user A, S-CSCF judges user B can not pass through IMS territory route, so SIP INVITE request is routed to the interconnecting gateway IP_SM_GW A in the affiliated territory of user A.
      And SIP INVITE request adds the E.164 number of user A at the P-Asserted-Identity header field through the ownership S-CSCF of A the time, in the present embodiment supposition this E.164 number be: 13900000001.
      402, interconnecting gateway IP_SM_GW A asks to handle to SIP INVITE according to predetermined flow process, convert SIP INVITE request to SMS message, because request is not anonymous for user A in the embodiment of the invention, and can get access to the E.164 number of user A, so the embodiment of the invention is made as the transmit leg of SMS message the E.164 number 13900000001 of user A.
      Concrete interconnecting gateway IP_SM_GW A sees various SIP INVITE processing of request mode and detailed description among Fig. 5 is not described in detail herein.
      403, IP_SM_GW A sends MO_SUBMIT to the SC A of short message service center in territory, user A place, in MO_SUBMIT, carry the SMS message content after the conversion, and be used in the note trunk protocol of carrying MO_SUBMIT to represent that the RP_OA field of the transmit leg of SMS message is set as the E.164 number 13900000001 of user A.
      404, after described SC A receives MO_SUBMIT, will carry the mobile switching centre (MSC, Mobile Switching Center) that the SMS message content sends to the described territory of user B, be called for short MSC B by MT_DELIVER.
      405, MSC B will show the E.164 number 13900000001 of SMS message sender for user A with the SMS terminal that described MT_DELIVER is routed to user B on the SMS terminal of user B.
      If the session invitation of user A is accepted in 406 user B decision, can reply according to the invitation note of receiving, suppose that the invitation note of receiving is: please participate in session, reply 1 representative and accept, reply 2 representative refusals.User B can reply 1 expression and accepts the invitation so, and the answer SMS message content of user B can only comprise 1, and the SMS messaging of replying is carried on and is routed to MSC B among the MO_SUBMIT then.
      407, the MSC B MO_SUBMIT that will carry the SMS messaging that user B replys sends to the SC B of short message service center of user B.
      408, SC B issues SMS message to the note recipient with MT_DELIVER, and this MT_DELIVER is routed to IP_SM_GW A.
      409, the SMS messaging received by the flow processing that configures of IP_SM_GW A, IP_SM_GW A can draw user B invitations that accepts session by judging, therefore returns SIP 200OK to the sip terminal of user A and responds, and sets up the MSRP session; At this moment user A and user B can utilize the session of foundation to come pass-along message.
      The processing mode that concrete interconnecting gateway IP_SM_GW A replys the difference of user B is seen the detailed description among Fig. 6, is not described in detail herein.
      410, user A sends message by the MSRP session of setting up to user B, and message is routed to IP_SM_GW A by session channel.
      411, IP_SM_GW A is after setting up session, can create corresponding session information mapping table, so that carry out the message route when IMS message and the interconnection of SMS message session, exist the mapping relations table of SIP session information and SMS virtual session information as shown in the table at interconnecting gateway IP_SM_GW A.
      
      By the mapping relations table above this, interconnecting gateway IP_SM_GW A can associate the message and the IMS territory conversation message of SMS territory virtual session.
      In this process, IP_SM_GW A will become the SMS information and sending to give the SMS terminal of user B by the message conversion that the MSRP session receives, and in the SMS message in the present embodiment after conversion transmit leg will be set as the E.164 number 13900000001 of user A.
      The detailed description that concrete setting SMS message sender process is seen Fig. 5.
      412, user B replys SMS message to user A, and the SMS message of answer is routed to IP_SM_GW A.
      413, there is session in IP_SM_GW A judgement, and the SMS message that IP_SM_GW A receives by the flow processing that configures becomes MSRP message to send to the sip terminal of user A the SMS message conversion that receives.
      The message process mode that concrete interconnecting gateway IP_SM_GW A replys user B is seen the detailed description among Fig. 6, is not described in detail herein.
      In order to understand the handling process of interconnecting gateway IP_SM_GW A better, below to the idiographic flow of interconnecting gateway IP_SM_GW A treatment S IP operation message in 403 and 411, wherein the SIP service message comprises the SIP initialization request or based on the IMS messaging services of SIP.As shown in Figure 5, this flow process comprises:
      501, interconnecting gateway IP_SM_GW A receives SIP INVITE request or receives user A and sends message by the MSRP session to user B, carry out the processing of SIP session, when result needs further when SMS user sends the session invitation message of SMS form, earlier judge whether user A asks anonymity, if user A asks anonymous, carry out 502; If user A does not ask anonymity, then carry out 503.
      502, the SMS message sender is made as number and the session identification number of interconnecting gateway IP_SM_GW A, and carries out 505.Described session identification number can by interconnecting gateway IP_SM_GW A at random or according to certain algorithm generate, can be in this interconnecting gateway the decimal number of the SIP session initiated to user B of unique identification user A, shape is not limit as E.164 number and length, such as 987654321.
      If the SIP service message of above-mentioned processing is SIP INVITE request, this process can also increase record simultaneously in the session information mapping table, wherein the SMS source address is the number of IP_SM_GW A and the combination of session identification number, and the SMS destination address is the E.164 number of user B.
      503, can judgement obtain the E.164 number of user A, if can not obtain the E.164 number of user A, then carries out 506; If can obtain the E.164 number of user A, then obtain the E.164 number of user A, and carry out 504.
      Above-mentionedly obtain specifically can in the P-Asserted-Identity header field of SIP INVITE request, searching of number E.164, also can pass through home subscriber server (HSS, Home Subscriber Server) and search.
      504, the transmit leg of SMS message is made as the E.164 number of the user A that is obtained.If the SIP service message of above-mentioned processing is SIP INVITE request, this process increases record simultaneously in the session information mapping table, and wherein the SMS source address is the E.164 number of the user A that obtained, and the SMS destination address is the E.164 number of user B.
      505, the SIP service message is converted to the message of SMS form, and carry out 508.If this process SIP service message then can be changed the invitation message that draws the SMS form at last for SIP INVITE request, for example: for example " please participate in session, agree to reply 1, disagree with and reply 2 ".
      506, the SMS message sender is made as number and the session identification number of interconnecting gateway IP_SM_GW A, and carries out 507.Described session identification number can by interconnecting gateway IP_SM_GW A at random or according to certain algorithm generate, can be in this interconnecting gateway the decimal number of the SIP session initiated to user B of unique identification user A, and length do not limit, such as 987654321.
      If the SIP service message of above-mentioned processing is SIP INVITE request, this process increases record simultaneously in the session information mapping table, wherein the SMS source address is the number of IP_SM_GW A and the combination of session identification number, and the SMS destination address is the E.164 number of user B.
      507, the SIP service message is converted to the message of SMS form, and carry out 508.If this process SIP service message is SIP INVITE request, then SIP INVITE request can be converted to the request of messaging format, the SIP URI and the title that wherein comprise the initiator are described, respectively from P-Asserted-Identity and From header field, for example " SIP:zhangsan@example.com (Zhang San) woulds you please participate in session; agree to reply 1, disagree with and reply 2 ".
      Transmit leg title in the embodiment of the invention can be come to recipient's network address book or the From header field of SIP initialization request, and the title here is that recipient user is familiar with, identity that can clear and definite message sender.
      508, send the message of SMS form, and wait for the answer of user B.
      Below interconnecting gateway IP_SM_GW A process user B in 409 and 413 is replied the idiographic flow of message, as shown in Figure 6, this flow process comprises:
      601, interconnecting gateway IP_SM_GW A is after receiving SMS message, SMS source address in the session information mapping table and SMS destination address judge whether to exist and the session of this SMS message relating by searching, if the session of existence and this SMS message relating then carries out 604; If there is no, then carry out 602 with the session of this SMS message relating.
      602, whether the recipient who judges this SMS message is interconnecting gateway self, if the previous section of note recipient number is the number of interconnecting gateway IP_SM_GW A, then the recipient is an interconnecting gateway self, carries out 610; If the recipient is not an interconnecting gateway self, then carry out 603.
      603, by non-session interconnection mode treatment S MS message, send to the recipient after the SMS message conversion become the non-conversation message of IMS, flow process finishes.
      604, whether the content of judging described SMS message is the instruction of control session status, if the content of SMS message then carries out 605 for the instruction of control session status; Otherwise carry out 607.
      605, press commands for controlling session status in the SMS message, for example set up session, interrupt session.
      606, send the change that sip message shows session status to the sip terminal of user A, show the change of session status to SMS terminal answer short message, flow process finishes.
      607, judge whether session has set up state,, then carry out 608 if session is not also set up; If session is set up, then carry out 609.
      608, to SMS terminal answer short message, illustrate that session do not set up, need set up session earlier by control command; Flow process finishes.
      609, convert note to conversation message and send to sip terminal, flow process finishes.
      610, to SMS terminal answer short message, illustrate that session does not exist, flow process finishes.
      After session was set up, when interconnecting gateway converted the SIP conversation message to note, the transmit leg of note was set according to the SMS source address of the SMS territory virtual session in the session information mapping table.If according to strategy decision invitations that accepts session, just being equivalent to reply according to the invitation that accepts session that interconnecting gateway has received short-message users, interconnecting gateway handles session status.
      Method for routing that the embodiment of the invention provides and device, when the interconnecting gateway by territory, sip terminal place carries out route, in order to guarantee recipient's user experience as far as possible, as long as present embodiment can get access to the E.164 number and the transmit leg of sip terminal and not ask anonymity, it is the E.164 number of sip terminal that message sender just is set; Guarantee that as much as possible message sender that the SMS terminal is received is shown as the E.164 number of sip terminal, can improve the user experience of SMS terminal.And, so, the user just can know whom message sender is as long as understanding the E.164 number of sip terminal, and then can avoid not refusing to invite because the user of SMS terminal does not understand the interconnecting gateway number, can be because of not understanding the interconnecting gateway number the SMS message screening yet.
      The embodiment of the invention when the interconnecting gateway by territory, sip terminal place carries out route only with the E.164 number of sip terminal as transmit leg, this is when arriving sip terminal place network domains because of the message that the SMS terminal is replied, the relevant border server can know that the recipient of this answer message is a sip terminal, therefore this answer message can be automatically routed to the interconnecting gateway in territory, sip terminal place, make that mutual message sends and can both carry out route by same interconnecting gateway between sip terminal and the SMS terminal, guaranteed that the session of sip terminal initiation can be carried out association in same interconnecting gateway.
      Embodiment 2:
      The utilization scene of the embodiment of the invention is seen Fig. 7, and the terminal that IMS user A uses is sip terminal, and the terminal that SMS user B uses is the SMS terminal, terminal A sends session invitation to terminal B, and after accepting the invitation, terminal B carries out message communicating, as shown in Figure 7, and specifically the comprising of the embodiment of the invention:
      701, IMS user A sends SIP INVITE request by sip terminal to SMS user B, the MSRP session is set up in request, this SIP INVITE request is when the S-CSCF (serving session control entity) that belongs to through user A, S-CSCF judges not registration of user B, need interconnect, so SIP INVITE request is routed to the interconnecting gateway IP_SM_GW B in the affiliated territory of user B.
      And SIP INVITE request adds the E.164 number of user A at the P-Asserted-Identity header field through the ownership S-CSCF of A the time, in the present embodiment supposition this E.164 number be: 13900000001.
      702, interconnecting gateway IP_SM_GW B is by looking for predetermined flow process that SIP INVITE is asked to handle, convert SIP INVITE request to SMS message, because request is not anonymous for user A in the embodiment of the invention, and can get access to the E.164 number of user A, so the embodiment of the invention is made as the combination of the E.164 number 13900000001 of the number (that is: the note routing number 10086001) of IP_SM_GW B and user A with the transmit leg of SMS message, promptly 1008600113900000001.
      Concrete interconnecting gateway IP_SM_GW B sees various SIP INVITE processing of request mode and detailed description among Fig. 8 is not described in detail herein.
      703, IP_SM_GW B is called for short MSC B by MT_DELIVER carrying SMS message content and send to the mobile switching centre (MSC, Mobile Switching Center) in the described territory of user B.The TP_OA field that is used to represent the transmit leg of SMS message among the MT_DELIVER is set as 1008600113900000001, the title " Zhang San " that has comprised simultaneously number 13900000001 and the user B of user A in the short message content, wherein the network address book of the number searching user B that the title of user B can be by user A obtains.
      704, MSC B is routed to described MT_DELIVER the SMS terminal of user B.
      If the session invitation of user A is accepted in 705 user B decision, can reply according to the invitation note of receiving, suppose that the invitation note of receiving is: 13900000001 (Zhang San) send session invitation to you, reply 1 representative and accept, and reply 2 representative refusals.User B can reply 1 expression and accepts the invitation so, and the answer SMS message content of user B can only comprise 1, and the SMS messaging of replying is carried on and is routed to MSC B among the MO_SUBMIT then.
      706, the MSC B MO_SUBMIT that will carry the SMS messaging that user B replys sends to the SC B of short message service center of user B.
      707, owing to comprise the number of IP_SM_GW B in the message sender in the received SMS message of user B, so SC B issues SMS message to the note recipient with MT_DELIVER, this MT_DELIVER can be routed to IP_SM_GW B.
      708, the SMS messaging received by the flow processing that configures of IP_SM_GW B, IP_SM_GW B can draw user B invitations that accepts session by judging, therefore returns SIP 200OK to the S of user A IP terminal and responds, and sets up the MSRP session; At this moment user A and user B can utilize the session of foundation to come pass-along message.
      Concrete interconnecting gateway IP_SM_GW B repeats no more the detailed description among Fig. 6 above the processing mode of the difference answer of user B herein.
      709, user A sends message by the MSRP session of setting up to user B, and message is routed to IP_SM_GW B by session channel.
      710, IP_SM_GW B is after setting up session, can create corresponding session information mapping table, so that carry out the message route when IMS message and the interconnection of SMS message session, exist the mapping relations table of SIP session information and SMS virtual session information as shown in the table at interconnecting gateway IP_SM_GW B.
      
        
      
      By the mapping relations table above this, interconnecting gateway IP_SM_GW B can associate the message and the IMS territory conversation message of SMS territory virtual session.
      In this process, IP_SM_GW B will become the SMS information and sending to give the SMS terminal of user B by the message conversion that the MSRP session receives, and in the SMS message in the present embodiment after conversion transmit leg will be set as the number of IP_SM_GW B and the E.164 number 13900000001 of user A.
      The detailed description that concrete setting SMS message sender process is seen Fig. 8.
      711, user B replys SMS message to user A, because transmit leg has comprised the number of IP_SM_GW B in the SMS message that user B receives, so the SMS message of replying can be routed to IP_SM_GW B.
      712, there is session in IP_SM_GW B judgement, and the SMS message that IP_SM_GW B receives by the flow processing that configures becomes MSRP message to send to the sip terminal of user A the SMS message conversion that receives.
      The message process mode that concrete interconnecting gateway IP_SM_GW B replys user B is seen the description of top Fig. 6, repeats no more herein.
      In order to understand the handling process of interconnecting gateway IP_SM_GW B better, below to the idiographic flow of interconnecting gateway IP_SM_GW B treatment S IP operation message in 702 and 710, wherein the SIP service message comprises S IP initialization request or based on the IMS messaging services of SIP.As shown in Figure 8, this flow process comprises:
      801, interconnecting gateway IP_SM_GW B receives SIP INVITE request or receives user A and sends message by the MSRP session to user B, carry out the processing of SIP session, when result needs further when SMS user sends the session invitation message of SMS form, earlier judge whether user A asks anonymity, if user A asks anonymous, carry out 806; If user A does not ask anonymity, then carry out 802.
      802, can judgement obtain the E.164 number of user A, if can not obtain the E.164 number of user A, then carries out 804; If can obtain the E.164 number of user A, then obtain the E.164 number of user A, and carry out 803.
      Above-mentionedly obtain specifically can in the P-Asserted-Identity header field of SIP INVI TE request, searching of number E.164, also can pass through home subscriber server (HSS, Home Subscriber Server) and search.
      803, the SMS message sender is made as the number (being the note routing number) of interconnecting gateway IP_SM_GW B and the E.164 number of the above-mentioned user A that gets access to, and carries out 805.
      If the SIP service message of above-mentioned processing is SIP INVITE request, this process can also increase record simultaneously in the session information mapping table, wherein the SMS source address is the combination of the E.164 number of the number of IP_SM_GW B and user A, and the SMS destination address is the E.164 number of user B.
      804, the SMS message sender is made as number (being the note routing number) and the session identification number of interconnecting gateway IP_SM_GW B, and carries out 805.Described session identification number can by interconnecting gateway IP_SM_GW B at random or according to certain algorithm generate, can be in this interconnecting gateway the decimal number of the SIP session initiated to user B of unique identification user A, and length do not limit, such as 987654321.
      If the SIP service message of above-mentioned processing is SIP INVITE request, this process increases record simultaneously in the session information mapping table, wherein the SMS source address is the number of IP_SM_GW B and the combination of session identification number, and the SMS destination address is the E.164 number of user B.
      805, the SIP service message is converted to the message of SMS form, and carry out 808.If this process SIP service message is SIP INVITE request, then SIP INVITE request can be converted to the request of messaging format, the SIP URI and the title that wherein comprise the initiator are described, respectively from P-Asserted-Identity and From header field, for example " SIP:zhangsan@example.com (Zhang San) woulds you please participate in session; agree to reply 1; disagree with and reply 2 ", sponsor party name also can obtain by the network address book of searching the recipient, if search less than, the value setting of pressing the From header field again.
      806, the SMS message sender is made as number and the session identification number of interconnecting gateway IP_SM_GW B, and carries out 807.Described session identification number can by interconnecting gateway IP_SM_GW B at random or according to certain algorithm generate, can be in this interconnecting gateway the decimal number of the SIP session initiated to user B of unique identification user A, and length do not limit, such as 987654321.
      If the SIP service message of above-mentioned processing is the SIPINVITE request, this process increases record simultaneously in the session information mapping table, and wherein the SMS source address is the number of IP_SM_GW B and the combination of session identification number, and the SMS destination address is the E.164 number of user B.
      807, the SIP service message is converted to the message of SMS form, and carry out 808.If this process SIP service message is SIP INVITE request, SIP INVITE request can be converted to the request of SMS message format, for example " please participate in session, agree to reply 1, disagree with and reply 2 ".
      808, send the message of SMS form, and wait for the answer of user B.
      Interconnecting gateway by territory, SMS terminal place carries out route, the transmit leg of message must be made as the routing number of interconnecting gateway; In order to improve recipient's user experience, the embodiment of the invention is not also asked under the anonymous situation at E.164 number that gets access to sip terminal and transmit leg as much as possible, in message sender, add the E.164 number of sip terminal or in the message content that sends, increase the E.164 number of sip terminal, to improve the user experience of SMS terminal.So just can know whom message sender is, and then can avoid not refusing to invite because the user of SMS terminal does not understand the interconnecting gateway number as long as the user understands the E.164 number of sip terminal.
      The embodiment of the invention will be carried out the E.164 number combination of the interconnecting gateway number of the professional route of sip message and sip terminal as transmit leg when the interconnecting gateway by territory, SMS terminal place carries out route, and the interconnecting gateway number that carries out the professional route of sip message here is exactly the interconnecting gateway number in territory, SMS terminal place.This is because when carrying out route by the interconnecting gateway by territory, SMS terminal place in the prior art, if only the E.164 number with sip user is made as transmit leg, the SMS terminal reply this E.164 the message of number can arrive sip terminal place network domains, the relevant border server can know that certainly the recipient of this answer message is a sip terminal, and this answer message can be automatically routed to the interconnecting gateway in territory, sip terminal place.Thus, mutual message sends and does not carry out route by same interconnecting gateway between sip terminal and the SMS terminal, and the session that makes sip terminal initiate can not be carried out association in same interconnecting gateway.Adopt after the embodiment of the invention, because the interconnecting gateway number in territory, SMS terminal place is also as transmit leg, the message that the SMS terminal is replied just can be automatically routed to the interconnecting gateway in territory, SMS terminal place, make that mutual message sends and can both carry out route by same interconnecting gateway between sip terminal and the SMS terminal, guaranteed that the session of sip terminal initiation can be carried out association in same interconnecting gateway.
      The embodiment of the invention is mainly used in the system that sip message is professional and the SMS messaging service interconnects.
      Through the above description of the embodiments, the those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential common hardware, can certainly pass through hardware, but the former is better execution mode under a lot of situation.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium that can read, floppy disk as computer, hard disk or CD etc., comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
      The above; only be the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by described protection range with claim.