Embodiment
Fig. 1 is according to the flow chart of the instant message sending method 100 of one embodiment of the invention, specifies as follows at present.
Step 102 receives the instant message of importing;
Step 104 is searched by the transmit leg sip address of said instant message and the SIP of the common sign of recipient's sip address and is talked with (Early Dialog) in early days;
Particularly, above-mentioned transmit leg sip address and recipient's sip address can be transmit leg SIP URI (Uniform Resource Identifier, unified resource identifier) and recipient SIP URI.
In addition, talk with in early days, can be this SIP and talk with session log of generation in early days, comprise the dialogue both sides' of the early stage dialogue identifier of talking with of this SIP, the early stage dialogue of this SIP sip address in this session log for each SIP that makes up.Thus, just can when searching SIP by the transmit leg sip address of said instant message and the common sign of recipient's sip address and talk with in early days, search the dialogue identifier that the common corresponding SIP of said transmit leg sip address and recipient's sip address talks with in early days.
Step 106; Session features parameter according to the early stage dialogue of said SIP generates SIP renewal (UPDATE) message or SIP information (INFO) message; Wherein, said SIP UPDATE message or said SIP INFO comprise preset header field, comprise said instant message in the said preset header field;
Specifically; Each SIP for making up talks with in early days; Can write down the session features parameter of the early stage dialogue of this SIP, this session features parameter comprises call identification (being included in the CALL-ID header field), transmit leg sip address (being included in the From header field), transmit leg label (From tag parameter), recipient's sip address (being included in the To header field) and recipient's label (To tag parameter) at least.Simultaneously, the dialogue identifier of this group session features parameter with the early stage dialogue of this SIP is associated.Thus, when the dialogue identifier of the early stage dialogue of SIP that finds the common correspondence of said transmit leg sip address and recipient's sip address, can directly find corresponding session features parameter through this dialogue identifier.
SIP UPDATE message and SIP INFO all comprise header field part and message body part two parts; Wherein, Comprise a plurality of header fields in the header field part; The information that comprises in each header field is resolved according to Session Initiation Protocol, and the information that comprises in the message body is then resolved according to other agreements (such as but not limited to SDP (Session DescriptionProtocol, Session Description Protocol)).If instant message is loaded in the message body, the information analysis mode of then multiple relevant other agreements all need be carried out corresponding improvement.Load instant message and increase preset header field, then can only carry out corresponding improvement to the information analysis mode of Session Initiation Protocol, it is littler therefore to improve the scope that relates to.
Step 108 is sent the said SIP UPDATE message or the said SIP INFO that generate, and method 100 finishes subsequently.
The embodiment of the invention is loaded in instant message in SIP UPDATE message that the session features parameter according to the early stage dialogue of SIP makes up or the SIP INFO and sends, and therefore can before session is set up, promptly begin to transmit instant message.In addition; Compare instant message is loaded in the method that transmits in the message body; Instant message is loaded in the method for sending in the preset header field of SIP UPDATE message or SIP INFO only to be needed the information analysis mode of Session Initiation Protocol is improved; And need not the information analysis mode of multiple other agreements (these agreements are used for resolving the information of message body) is improved, therefore improved scope is littler, and the improvement cost of generation is lower.
Fig. 2 is the flow chart according to the instant message sending method 200 of one embodiment of the invention.In method 200, step 202,204,206 and 208 is the step 102,104,106 and 108 in the corresponding method 100 respectively, and the difference between method 200 and the method 100 shown in Figure 1 is to have increased step 2032,2034 and 2036.
Step 202 receives the instant message of importing;
Step 2032 is searched MSRP (The Message Session Relay Protocol, the message session trunk protocol) session by said transmit leg sip address and the common sign of said recipient's sip address;
Specifically,, can be this MSRP session and generate a conversation recording, comprise session both sides' the sip address of session identification, this MSRP session of this MSRP session in this conversation recording for each the MSRP session that makes up.Thus, just can when the MSRP session of searching by the transmit leg sip address of said instant message and the common sign of recipient's sip address, search the dialogue identifier of the MSRP session of the common correspondence of said transmit leg sip address and recipient's sip address.
Step 2034 judges whether to find said MSRP session, if then forward step 2036 to, otherwise forward step 204 to;
As indicated above, if find said MSRP session in step 2034 judgement, then method 200 forwards step 2036 to, sends said instant message through said MSRP session, and subsequently, method 200 finishes.
As indicated above; If do not find said MSRP session in step 2034 judgement, then method 200 forwards step 204 to, searches by the transmit leg sip address of said instant message and the SIP of the common sign of recipient's sip address and talks with in early days; Subsequently, method 200 forwards step 206 to.
Step 206; Session features parameter according to the early stage dialogue of said SIP generates SIP UPDATE message or SIP INFO; Wherein, said SIP UPDATE message or said SIP INFO comprise preset header field, comprise said instant message in the said preset header field; Subsequently, method 200 forwards step 208 to.
Step 208 is sent the said SIP UPDATE message or the said SIP INFO that generate, and method 200 finishes subsequently.
SIP is a kind of signaling protocol, and its purpose of design is to be used to set up media session.Real media data transmits through media session quasi-protocol (for example MSRP agreement), and SIP is the not responsible media data of script in setting up the process of session.Therefore, when receiving instant message to be sent,, then should transmit instant message through the MSRP session if there is the MSRP session; Only there is not the MSRP session but exists under the situation of the early stage dialogue of SIP, just need transmit instant message through the technical scheme that method 200 provides.
Fig. 3 is the flow chart according to the instant message sending method 300 of one embodiment of the invention.In method 300, step 302,304,306 and 308 is the step 102,104,106 and 108 in the corresponding method 100 respectively, and the difference between method 300 and the method 100 shown in Figure 1 is to have increased step 305,310,312 and 314.
Step 302 receives the instant message of importing;
Step 304 is searched by the transmit leg sip address of said instant message and the SIP of the common sign of recipient's sip address and is talked with in early days;
Step 305 judges whether to find said SIP and talks with in early days, if then forward step 306 to, otherwise forward step 310 to.
As indicated above; If judge that in step 305 finding said SIP talks with in early days; Then forward step 306 to, according to the session features parameter generation SIP UPDATE message or the SIP INFO of the early stage dialogue of said SIP, wherein; Said SIP UPDATE message or said SIP INFO comprise preset header field, comprise said instant message in the said preset header field.Subsequently, method 300 forwards step 308 to.
Step 308 is sent the said SIP UPDATE message or the said SIP INFO that generate, and method 300 finishes subsequently.
As indicated above; If do not find said SIP to talk with in early days in step 305 judgement, then forward step 310 to, generate SIP invitation (INVITE) message according to said transmit leg sip address and said recipient's sip address; Wherein, Said SIP INVITE comprises above-mentioned preset header field, comprises said instant message in the said preset header field, and method 300 forwards step 312 to subsequently.
Step 312 is sent said SIP INVITE, and method 300 forwards step 314 to subsequently;
Step 314 receives the SIP provisional response that responds said SIP INVITE, sets up said SIP according to said SIP provisional response and talks with in early days, and method 300 finishes subsequently.
Particularly, above-mentioned SIP provisional response can be that the SIP answer back code is that 183 SIP session progress message or SIP answer back code are 180 SIP ring-back message.
As indicated above, talk with in early days for the SIP that makes up, will generate a dialogue record for it, write down its session features parameter simultaneously.Related content has been carried out detailed description at preamble, therefore repeats no more here.
Optional; After step 314; Method 300 also can comprise; When the SIP that receives the said SIP INVITE of response successfully handles (SIP 200OK) message, the early stage dialogue of said SIP is updated to SIP confirms (Confirmed) dialogue, and set up said MSRP session according to said SIP 200OK message.
Specifically, in the time of can importing the instant message of answer at the instant message that responds transmit leg user transmission such as but not limited to recipient user, send SIP 200OK message.
As indicated above, the MSRP session for making up will generate a session record for it.Related content has been carried out detailed description at preamble, therefore repeats no more here.
Do not exist SIP to talk with in early days between transmit leg and the recipient, explain and do not transmit instant message between transmit leg and the recipient in the near future.In the case, should attempt between transmit leg and recipient, setting up the MSRP session, so that between transmit leg and recipient, transmit instant message through the MSRP session.Method 300 shown in Figure 3 showed in each stage of setting up the MSRP session, and how the instant message of input transmits.Method 200 shown in Figure 2 then shows after the MSRP session is set up (promptly under the situation that has the MSRP session), and how the instant message of input transmits.Therefore through Fig. 2 and method 200 and 300 shown in Figure 3 are merged, just can obtain between transmit leg and recipient, setting up each stage of MSRP session front and back, how the instant message of input transmits.
Fig. 4 is the flow chart according to the instant message method of reseptance 400 of one embodiment of the invention.
Step 402; Receive SIP UPDATE message or SIP INFO; Wherein, said SIPUPDATE message or said SIP INFO comprise preset header field, comprise instant message in the said preset header field; And said SIP UPDATE message or said SIP INFO are to generate according to the early stage session features parameter of talking with of SIP, and the early stage dialogue of said SIP is identified by transmit leg sip address and recipient's sip address of said instant message jointly;
Carried out detailed description with relevant contents of ins and outs such as transmit leg sip address, recipient's sip address and session features parameters, therefore repeated no more here at preamble.
Step 404 is extracted said instant message from the preset header field of above-mentioned SIP UPDATE message or SIP INFO, subsequently, method 400 finishes.
The embodiment of the invention is loaded in instant message in SIP UPDATE message that the session features parameter according to the early stage dialogue of SIP makes up or the SIP INFO and sends, and therefore can before session is set up, promptly begin to transmit instant message.In addition; Compare instant message is loaded in the method that transmits in the message body; Instant message is loaded in the method for sending in the preset header field of SIP UPDATE message or SIP INFO only to be needed the information analysis mode of Session Initiation Protocol is improved; And need not the information analysis mode of multiple other agreements (these agreements are used for resolving the information of message body) is improved, therefore improved scope is littler, and the improvement cost of generation is lower.
Fig. 5 is the flow chart according to the instant message transrecieving method 500 of one embodiment of the invention.
Step 502, the instant message dispensing device receives the instant message of input;
The SIP that step 504, instant message dispensing device are searched by the transmit leg sip address of said instant message and the common sign of recipient's sip address talks with in early days;
Step 506; The instant message dispensing device generates SIP UPDATE message or SIP INFO according to the session features parameter of the early stage dialogue of said SIP; Wherein, said SIP UPDATE message or said SIPINFO message comprise preset header field, comprise said instant message in the said preset header field;
Step 508, instant message dispensing device are sent said SIP UPDATE message or said SIP INFO;
Step 510, instant message receiving system receive said SIP UPDATE message or said SIP INFO;
Step 512, the instant message receiving system extracts said instant message, and method 500 finishes subsequently.
Be understood that method 500 is to be combined to generate by method 100 and method 400, the technology contents of method 100 and method 400 has carried out detailed description at preamble, therefore repeats no more here.Similarly, also can method 200, method 300 and method 200 be combined with method 400 with the combined method of method 300, to obtain new instant message transrecieving method.
The embodiment of the invention is loaded in instant message in SIP UPDATE message that the session features parameter according to the early stage dialogue of SIP makes up or the SIP INFO and sends, and therefore can before session is set up, promptly begin to transmit instant message.In addition; Compare instant message is loaded in the method that transmits in the message body; Instant message is loaded in the method for sending in the preset header field of SIP UPDATE message or SIP INFO only to be needed the information analysis mode of Session Initiation Protocol is improved; And need not the information analysis mode of multiple other agreements (these agreements are used for resolving the information of message body) is improved, therefore improved scope is littler, and the improvement cost of generation is lower.
It should be noted that those skilled in the art should be understood that the session log between transmit leg and the recipient, conversation recording etc. will be deleted after stopping instant messaging (promptly stopping to transmit instant message) between transmit leg and the recipient.
Fig. 6 is the logical construction block diagram according to the instant message dispensing device 600 of one embodiment of the invention.As shown in Figure 6, device 600 comprises input interface 602, searches module 604, generation module 606 and sending module 608.
Input interface 602 is used to receive the instant message of input;
Searching module 604 is used to search by the transmit leg sip address of said instant message and the SIP of the common sign of recipient's sip address and talks with in early days;
Generation module 606 is used for generating SIP UPDATE message or SIP INFO according to the session features parameter of the early stage dialogue of said SIP; Wherein, Said SIP UPDATE message or said SIP INFO comprise preset header field, comprise said instant message in the said preset header field;
Sending module 608 is used to send said SIP UPDATE message or said SIP INFO.
In concrete implementation procedure, input interface 602, search module 604, generation module 606 and sending module 608 performed operations and correspond respectively to step 102~108 in the method 100.The details of the technology contents that each step in the method 100 and each step are related has been carried out detailed description at preamble, therefore repeats no more here.
The embodiment of the invention is loaded in instant message in SIP UPDATE message that the session features parameter according to the early stage dialogue of SIP makes up or the SIP INFO and sends, and therefore can before session is set up, promptly begin to transmit instant message.In addition; Compare instant message is loaded in the method that transmits in the message body; Instant message is loaded in the method for sending in the preset header field of SIP UPDATE message or SIP INFO only to be needed the information analysis mode of Session Initiation Protocol is improved; And need not the information analysis mode of multiple other agreements (these agreements are used for resolving the information of message body) is improved, therefore improved scope is littler, and the improvement cost of generation is lower.
Optional, search module 604 and also be used to search MSRP session by said transmit leg sip address and the common sign of said recipient's sip address, when finding said MSRP session, control said sending module 608 and send said instant message through said MSRP session; When not finding said MSRP session, search said SIP and talk with in early days.Search the performed in this case operation of module 604 corresponding to the step of describing in the method 200 2032,2034 and 2036.The content of relevant these steps has been carried out detailed description at preamble, therefore repeats no more here.
Fig. 7 is the logical construction block diagram according to the instant message dispensing device 700 of one embodiment of the invention.As shown in Figure 7, device 700 comprises input interface 702, searches module 704, generation module 706, sending module 708, receiver module 710 and make up module 712.Than instant message dispensing device 700 shown in Figure 6, device 700 shown in Figure 7 has increased receiver module 710 and has made up module 712.
Input interface 702 is used to receive the instant message of input;
Search module 704, be used to search and talk with in early days by the transmit leg sip address of said instant message and the SIP of the common sign of recipient's sip address;
Generation module 706; Be used for generating SIPUPDATE message or SIP INFO according to the session features parameter of the early stage dialogue of said SIP; Wherein, said SIP UPDATE message or said SIP INFO comprise preset header field, comprise said instant message in the said preset header field;
Sending module 708 is used to send said SIP UPDATE message or said SIP INFO.
Simultaneously; Generation module 706 also is used in the said module 704 of searching when not finding said SIP to talk with in early days; Generate the SIP INVITE according to said transmit leg sip address and said recipient's sip address, and control said sending module 708 and send said SIP INVITE, wherein; Said SIP INVITE comprises above-mentioned preset header field, comprises said instant message in the said preset header field;
Receiver module 710 is used to receive the said SIP INVITE of response and the SIP provisional response that returns, and the early stage dialogue of said SIP is updated to SIP has confirmed dialogue;
Structure module 712 is used for making up said SIP according to said SIP provisional response and talks with in early days.
Optional, receiver module 710 also is used to receive the SIP 200OK message of the said SIP INVITE of response.In the case, making up module 712 also is used for according to the said MSRP session of said SIP 200OK message construction.
Receiver module 710 and the 712 performed operations of structure module have been carried out detailed description in the step 305 in preceding text associated methods 300, step 310~314, therefore repeat no more here.
As indicated above, can be through Fig. 2 and method 200 shown in Figure 3 be merged with 300, obtain between transmit leg and recipient, to set up the concrete grammar of each stage transmission instant message before and after the MSRP session.In like manner, also can Fig. 6 and instant message dispensing device shown in Figure 7 be merged, so that each stage of between transmit leg and recipient, setting up before and after the MSRP session all can be transmitted instant message.
Fig. 8 is the logical construction block diagram according to the instant message receiving system 800 of one embodiment of the invention.As shown in Figure 8, device 800 comprises receiver module 802 and extraction module 804.
Receiver module 802 is used to receive SIP UPDATE message or SIP INFO; Wherein, Said SIP UPDATE message or said SIP INFO comprise preset header field; Comprise instant message in the said preset header field, and said SIP UPDATE message or said SIP INFO be that session features parameter according to the early stage dialogue of SIP generates, the early stage dialogue of said SIP is identified by transmit leg sip address and recipient's sip address of said instant message jointly;
Extraction module 804 is used for extracting said instant message from the preset header field of SIP UPDATE message or said SIP INFO.
Above-mentioned instant message dispensing device, instant message receiving system can be main process equipments; For example PC or portable terminal; Main process equipment comprises memory with storage execution code of the present invention, and one or more microprocessors reach a communication interface access to netwoks is provided to carry out said code.
Fig. 9 is the logical construction block diagram according to the instant message transrecieving system 900 of one embodiment of the invention.As shown in Figure 9, system 900 comprises dispensing device 902 and receiving system 904.
Dispensing device 902 is used to receive the instant message of input; Search by the transmit leg sip address of said instant message and the SIP of the common sign of recipient's sip address and talk with in early days; Session features parameter according to the early stage dialogue of said SIP generates SIP UPDATE message or SIP INFO; And send said SIPUPDATE message or said SIP INFO; Wherein, said SIP UPDATE message or said SIP INFO comprise preset header field, comprise said instant message in the said preset header field;
Receiving system 904 is used to receive said SIP UPDATE message or said SIP INFO, from the preset header field of said SIP UPDATE message or said SIP INFO, extracts said instant message.
Be understood that system 900 is combined to generate by device 600 and device 800, relative assembly 600 has carried out detailed description at preamble with the technology contents of device 800, therefore repeats no more here.Similarly, also can with device 700 and install 600 with device 700 composite set with install 800 and combine, to obtain new instant message transrecieving system.
Figure 10 is a signaling diagram of setting up process 1000 according to the session of one embodiment of the invention.Session shown in Figure 10 is set up process 1000 and is occurred between transmit leg instant message transrecieving system (hereinafter referred transmit leg IM system) and the recipient's instant message transrecieving system (hereinafter referred recipient IM system).In scene shown in Figure 10, carry out instant messaging (perhaps last time the instant messaging process finishes) between transmit leg user and the recipient user first, so neither have the MSRP session between transmit leg user and the recipient user, do not exist SIP to talk with in early days yet.
Step 1002, receive the instant message of transmit leg user input (for example, How are you?) after, transmit leg IM system at first judges whether to exist the MSRP session by transmit leg sip address and the common sign of recipient's sip address.Relevant related content of searching said MSRP session combines Fig. 1 to carry out detailed description at preamble, therefore repeats no more here.Owing to carry out instant messaging first between transmit leg user and the recipient user, therefore do not have said MSRP session.Next, transmit leg IM system continues to judge whether to exist the SIP by transmit leg sip address and the common sign of recipient's sip address to talk with in early days.Relevant related content of searching the early stage dialogue of said SIP combines Fig. 1 to carry out detailed description at preamble, therefore repeats no more here.In like manner, owing to carry out instant messaging first between transmit leg user and the recipient user, therefore do not exist said SIP to talk with in early days.Judging the MSRP session that neither has correspondence; Do not exist again under the situation of the early stage dialogue of corresponding SIP; Transmit leg IM system will generate the SIP INVITE according to transmit leg sip address and recipient's sip address; Wherein, this SIP INVITE comprises preset header field, comprise instant message (the How are you of transmit leg input in the said preset header field?).
In concrete implementation procedure, above-mentioned SIP INVITE can comprise such as but not limited to following content:
The header field of above-mentioned SIP INVITE partly comprises sets up the required subdialogue characteristic parameter of SIP dialog; Value in Call-ID header field, From header field and From tag parameter and the To header field etc. for example; Wherein write down the call identification of this dialogue in the Call-ID header field; Write down transmit leg user's sip address in the From header field, From tag parameter is the transmit leg label, has write down recipient user's sip address in the To header field.In addition, also comprise preset header field SUBJECT in the SIP INVITE, comprise the transmit leg user among this preset header field SUBJECT and mail to recipient user's instant message (How are you?).Also comprise the Content-Type header field in the above-mentioned SIP INVITE; This Content-Type header field is used to define information how to explain that message body partly comprises; For example; The Content-Type header field shows and should use SDP (Session DescriptionProtocol, Session Description Protocol) to explain the information that message body partly comprises.
The message body part of above-mentioned SIP INVITE has then comprised sets up the required parameter of MSRP session, for example transmit leg user's MSRP address, port etc.
Step 1004, after receiving the SIP INVITE that transmit leg IM system sends, recipient IM system returns SIP session progress message (Session Progress, SIP answer back code are 183).This message is used to point out the progress msg of setting up SIP dialog.
SIP session progress message is a kind of provisional response (Provisional Response) that defines among the SIP.In concrete implementation procedure,, except can returning SIP session progress message, also can return other message that are fit to of stipulating among the SIP, such as but not limited to SIP ring-back message (Ringing, SIP answer back code are 180) as what substitute.
In addition, after receiving the SIP INVITE that transmit leg IM system sends, recipient IM system will extract instant message from the SUBJECT header field of this SIP INVITE, so that show to recipient user.
In concrete implementation procedure, above-mentioned SIP session progress message can comprise such as but not limited to following content:
SIP/2.0?183?Session?Progress
Via:SIP/2.0/UDP?10.137.20.88:5060;branch=z9hG4bKx433lxw6cl3p5bdb665lq6dal
From:<sip:alicefoo.com>;tag=d0029959
To:<sip:jackfoo.com>tag=409880035
Call-ID:326508DC7147CE41A7F67220F50B433F10.137.20.129
CSeq:1?INVITE
Contact:<sip:jack10.138.17.34:5060>
Server:IM-client/OMA1.0
Allow:ACK,BYE,CANCEL,INFO,INVITE,MESSAGE,NOTIFY,OPTIONS,PRACK,UPDATE,SUBSCRIBE
Content-Length:0
Used the session characteristics parameter of carrying in the SIP INVITE in the above-mentioned SIP session progress message, for example the value of the value of the value of Call-ID header field, From header field, From tag, the value of To header field.Special, also comprise recipient's label (To tag) parameter in the To header field of above-mentioned SIP session progress message.Thus, just exchanged necessary session features parameter between transmit leg IM system and the recipient IM system, thus successfully make up transmit leg sip address and recipient's sip address common corresponding SIP talk with in early days.
If the transmit leg user the follow-up instant message of the early stage talking phase of SIP input (for example, Are youthere?), then the MSRP session by transmit leg sip address and the common sign of recipient's sip address is still at first searched by transmit leg IM system.Because still do not exist the MSRP session this moment, so the SIP that next transmit leg IM system will search by transmit leg sip address and the common sign of recipient's sip address talks with in early days.Because the early stage dialogue of SIP this moment is set up; Therefore in step 1006; Transmit leg IM system will generate SIP UPDATE message according to the session features parameter of the early stage dialogue of this SIP; And the instant message of follow-up input is encapsulated in the preset header field (for example, SUBJECT header field) of this SIP UPDATE message and mails to recipient IM system.
As indicated above, in concrete implementation procedure,, also can wait to substitute SIP UPDATE message such as but not limited to the SIP INFO as what substitute.
In concrete implementation procedure, above-mentioned SIP UPDATE message can comprise such as but not limited to following content:
UPDATE?sip:alice10.138.17.34:5060?SIP/2.0
Via:SIP/2.0/UDP?10.137.20.88:5060;branch=z9hG4bKw9a6l559q645p9abx9qq93bdp
Call-ID:326508DC7147CE41A7F67220F50B433F10.137.20.129
From:<sip:alicefoo.com>;tag=d0029959
To:<sip:jackfoo.com>tag=409880035
CSeq:2?UPDATE
Max-Forwards:67
Subject:Are?you?there?
Content-Length:0
Visible by above-mentioned SIP UPDATE message, the value of corresponding header field and parameter is identical in the value of CALL-ID header field, From header field, From tag, To header field and the To tag that comprises in this SIP UPDATE message and aforementioned SIP INVITE and the SIP session progress message.In addition, also comprise instant message (the Are you there of follow-up input among the preset header field SUBJECT of this SIP UPDATE message?).
Step 1008, after receiving the SIP UPDATE message that transmit leg IM system sends, recipient IM system will return to the successful processing messages of this SIP UPDATE message (SIP 200OK).
Particularly; After receiving the SIP UPDATE message that transmit leg IM system sends; Will recipient IM system extract instant message (the Are you there of the follow-up input of transmit leg user from the SUBJECT header field of this SIP UPDATE message?), so that show to recipient user.
In concrete implementation procedure, the transmit leg user can transmit through SIP UPDATE message at the follow-up instant message of the early stage talking phase input of SIP.
In concrete implementation procedure, above-mentioned SIP 200OK message can comprise such as but not limited to following content:
SIP/2.0?200OK
Via:SIP/2.0/UDP?10.137.20.88:5060;branch=z9hG4bKw9a6l559q645p9abx9qq93bdp
From:<sip:alicefoo.com>;tag=d0029959
To:<sip:jackfoo.com>tag=409880035
Call-ID:326508DC7147CE41A7F67220F50B433F10.137.20.129
CSeq:2UPDATE
Content-Length:0
If recipient user replys (can be considered the SIP INVITE that transmit leg is sent replys) to the instant message that the transmit leg user sends; For example; Recipient user imports Fine; And you?, then in step 1010, recipient IM system will make up SIP success processing messages (SIP 200OK) according to the early stage session features parameter of talking with of SIP of transmit leg sip address and the common sign of recipient's sip address.
In concrete implementation procedure, above-mentioned SIP 200OK message can comprise such as but not limited to following content:
SIP/2.0?200OK
Via:SIP/2.0/UDP?10.137.20.88:5060;branch=z9hG4bKx433lxw6cl3p5bdb665lq6dal
From:<sip:alicefoo.com>;tag=d0029959
To:<sip:jackfoo.com>tag=409880035
Call-ID:326508DC7147CE41A7F67220F50B433F10.137.20.129
CSeq:1?INVITE
Contact:<sip:jack10.138.17.34:5060>
Server:IM-client/OMA1.0
Allow:ACK,BYE,CANCEL,INFO,INVITE,MESSAGE,NOTIFY,OPTIONS,PRACK,UPDATE,SUBSCRIBE
Content-Type:application/sdp
Content-Length:208
v:0
o:-28908445262890842807?IN?IP4?10.138.17.34
s:-
c:IN?IP4?10.138.17.34
t:00
m:message?13003?TCP/MSRP
*
a:accept-types:message/cpim
a:path:msrp://10.138.17.34:13003/959680203;tcp
Visible by above-mentioned SIP 200OK message, comprise important parameters such as making up the required recipient MSRP address of MSRP session, port in the message body of this message, but do not comprised the content of the instant message of recipient user's answer in this message.Will explain that hereinafter the instant message of this answer will transmit in the MSRP session.Via said process; Through the SIP 200OK message of SIP INVITE with this SIP INVITE of response; Transmit leg IM system and recipient IM system have successfully exchanged MSRP address and port etc. and have made up the necessary session parameter of MSRP session, thereby can successfully set up the MSRP session.
Step 1012, receive that recipient IM system returns to after the successful processing messages of SIP INVITE, transmit leg IM system returns SIP ACK message to recipient IM system.At this moment, transmit leg IM system changes to SIP with the early stage dialogue of SIP and has confirmed dialogue (Confirmed Dialog).Meanwhile, transmit leg IM system makes up the MSRP session according to recipient user MSRP address of returning in transmit leg user MSRP address and port and the successful processing messages and port.
In step 1014, after receiving the ACK message that transmit leg IM system sends, recipient IM system uses transmit leg user MSRP address and port and and recipient user MSRP address and port structure MSRP session.After this, the answer message that recipient user imports before this (be Fine! And you?) will transmit through this MSRP session.
For example, recipient IM system will transmit a reply message through MSRP SEND (transmission) message, and this MSRP SEND message can comprise such as but not limited to following content:
MSRP?Asds6P5oLib21T7yv3oX9UBv0SEND
To-Path:msrp://10.138.20.88:13005/876766734;tcp
From-Path:msrp://10.138.17.34:13003/959680203;tcp
Message-ID:FzW0rGgGgc7HH?T?zBLylY3c.I0
Byte-Range:1-14/14
Content-Type:message/CPIM
From:<sip:jackfoo.com>
To:<sip:alicefoo.com>
content-type:text/plain;charset=UTF-8
content-transfer-encoding:plain
Fine!And?you?
-------Asds6P5oLib21T7yv3oX9UBv0$
Wherein, the answer IM message of recipient user's input: Fine! And you? In the message body that is included in MSRPSEND message.
After this, if the transmit leg user continues to import instant message, then owing to there has been the MSRP session, so this instant message will send through the MSRP session.
Those of ordinary skills can know that all or part of step in the said method can be accomplished through the relevant hardware of program command, and this program can be stored in the computer-readable recording medium, this computer-readable recording medium such as ROM, RAM and CD etc.
In sum, more than being merely preferred embodiment of the present invention, is not to be used to limit protection scope of the present invention.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.