CN103916305A - Method and terminal for transmitting instant communication message - Google Patents

Method and terminal for transmitting instant communication message Download PDF

Info

Publication number
CN103916305A
CN103916305A CN201210593076.0A CN201210593076A CN103916305A CN 103916305 A CN103916305 A CN 103916305A CN 201210593076 A CN201210593076 A CN 201210593076A CN 103916305 A CN103916305 A CN 103916305A
Authority
CN
China
Prior art keywords
terminal
msrp
address
instant communication
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201210593076.0A
Other languages
Chinese (zh)
Inventor
王勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Feinno Communication Technology Co Ltd
Original Assignee
Beijing Feinno Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Feinno Communication Technology Co Ltd filed Critical Beijing Feinno Communication Technology Co Ltd
Priority to CN201210593076.0A priority Critical patent/CN103916305A/en
Publication of CN103916305A publication Critical patent/CN103916305A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a method and terminal for transmitting an instant communication message, and belongs to the field of communication. In the method, a first terminal acquires an instant communication message including a text and/or an image; SIP connection with a second terminal is established, and an MSRP address of the second terminal is acquired via the SIP connection; and MSRP connection with the second terminal is established in accordance with the MSRP address of the second terminal, and an MSRP packet containing the instant communication message is organized and transmitted to the second terminal via the MSRP connection. According to the invention, after the first terminal acquires the instant communication message, the SIP connection with the second terminal is established to acquire the MSRP address of the second terminal, the MSRP connection with the second terminal is established according to the address, and the MSRP packet containing the instant communication message is transmitted to the second terminal via the connection; in this way, a new method of transmitting the instant communication message based on the SIP protocol and the MSRP protocol is provided; and as a firewall can identify security of the MSRP and the SIP, the process of message transmission is not hindered and the efficiency of message transmission is improved.

Description

Transmit method and the terminal of instant communication information
Technical field
The present invention relates to the communications field, particularly a kind of method and terminal that transmits instant communication information.
Background technology
Along with the development of the communication technology, people can exchange by transmitting the instant communication informations such as picture and/or word whenever and wherever possible, in the process of this interchange, instant communication information need to be sent to receiving terminal by transmitting terminal.
In prior art transmitting when instant communication information, first terminal and the second terminal transmit instant communication information by self-defining agreement, concrete mode is that first terminal receives after the instant communication information of user's input, sends the connection request of self-defining agreement to the second terminal; The second terminal receives after this request, returns to the address of self-defining agreement; First terminal receives behind the address of the self-defining agreement that the second terminal returns, and first terminal is set up being connected of self-defining agreement with the second terminal; First terminal, by this connection, sends to the second terminal by instant communication information.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem:
The fail safe of self-defining agreement when therefore terminal transmits message by self-defining agreement, tend to suffer the interception of fire compartment wall because the fire compartment wall of terminal can not accurately judge, cause the process that transmits message to be hindered.
Summary of the invention
In order to solve the problem of prior art, the embodiment of the present invention provides a kind of method and terminal that transmits instant communication information.Described technical scheme is as follows:
On the one hand, provide a kind of method that transmits instant communication information, described method comprises:
First terminal obtains the instant communication information that comprises word and/or picture;
Set up SIP(Session Initiation Protocol with the second terminal, session initiation protocol) connect, connect the MSRP(Message Session Relay Protocol that obtains described the second terminal, message session delivery protocol by described SIP) address;
Set up MSRP according to the MSRP address of described the second terminal with described the second terminal and be connected, and set up the MSRP message that comprises described instant communication information, connect described MSRP message is sent to described the second terminal by described MSRP.
Particularly, the described MSRP address that obtains described the second terminal that connects by described SIP, comprising:
Connected to described the second terminal and sent the request of obtaining MSRP address by described SIP, the MSRP address of carrying described first terminal in described request, makes described the second terminal set up MSRP according to the MSRP address of described first terminal with described first terminal and is connected;
Receive the response of the MSRP address of carrying described the second terminal that described the second terminal returns according to described request.
Particularly, the MSRP message that described establishment comprises described instant communication information, comprising:
If described instant communication information comprises word and picture, by the ID(Identifier of the word comprising in described instant communication information and picture, mark) as the head section of MSRP message, content type field using the format information of described word as described head section, and subsequent segment using described picture as described MSRP message, obtain the MRSP message that comprises described instant communication information;
Wherein, the format information of described word at least comprises font, size and the color of described word.
On the other hand, provide a kind of terminal that transmits instant communication information, described terminal comprises:
The first acquisition module, for obtaining the instant communication information that comprises word and/or picture;
First sets up module, is connected for setting up SIP with the second terminal;
The second acquisition module, for connecting by the described first SIP that sets up module foundation the MSRP address that obtains described the second terminal;
Second sets up module, sets up MSRP be connected for the MSRP address of described the second terminal of getting according to described the second acquisition module with described the second terminal;
Set up module, for setting up the MSRP message that comprises the instant communication information that described the first acquisition module gets;
Sending module, sends to described the second terminal for connecting by the described second MSRP that sets up module foundation the MSRP message that described establishment module is set up.
Particularly, described the second acquisition module, comprising:
The first transmitting element, for connecting to described the second terminal and send the request of obtaining MSRP address by the described first SIP that sets up module foundation, in described request, carry the MSRP address of described first terminal, make described the second terminal set up MSRP according to the MSRP address of described first terminal with described first terminal and be connected;
The first receiving element, for receiving the response of the MSRP address of carrying described the second terminal returned of request that described the second terminal sends according to described the first transmitting element.
Particularly, described establishment module, if comprise word and picture for described message, the head section using the ID of the word comprising in described message and picture as MSRP message, content type field using the format information of described word as described head section, and subsequent segment using described picture as described MSRP message, obtain the MRSP message that comprises described instant communication information;
Wherein, the format information of described word at least comprises font, size and the color of described word.
On the other hand, provide a kind of method that transmits instant communication information, described method comprises:
The second terminal is set up SIP with first terminal and is connected, and connects by described SIP the MSRP address that obtains described first terminal;
Set up MSRP according to the MSRP address of described first terminal with described first terminal and be connected, and receive described first terminal the connects transmission MSRP message that comprises instant communication information by described MSRP, described instant communication information comprises word and/or picture.
Particularly, the described MSRP address that obtains described first terminal that connects by described SIP, comprising:
Receive described first terminal and connect the request of obtaining MSRP address sending, the MSRP address of carrying described first terminal in described request by described SIP;
Return to the response of the MSRP address of carrying described the second terminal according to described request to described first terminal, make described first terminal set up MSRP according to the MSRP address of described the second terminal with described the second terminal and be connected.
On the other hand, provide a kind of terminal that transmits instant communication information, described terminal comprises:
The 3rd sets up module, is connected for setting up SIP with first terminal;
The 3rd acquisition module, for connecting by the described the 3rd SIP that sets up module foundation the MSRP address that obtains described first terminal;
The 4th sets up module, sets up MSRP be connected for the MSRP address of the first terminal that gets according to described the 3rd acquisition module with described first terminal;
Receiver module, connects by the described the 4th MSRP that sets up module foundation the MSRP message that comprises instant communication information sending for receiving described first terminal, and described instant communication information comprises word and/or picture.
Particularly, described the 3rd acquisition module, comprising:
The second receiving element, connects the request of obtaining MSRP address sending, the MSRP address of carrying described first terminal in described request for receiving described first terminal by the described the 3rd SIP that sets up module foundation;
Second returns to unit, return to the response of the MSRP address of carrying described the second terminal for the request receiving according to described the second receiving element to described first terminal, make described first terminal set up MSRP according to the MSRP address of described the second terminal with described the second terminal and be connected.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
First terminal is obtaining after instant communication information, be connected by the SIP setting up with the second terminal the MSRP address that obtains the second terminal, and set up MSRP according to this address with the second terminal and be connected, by this connection, the MSRP message that comprises instant communication information of setting up is sent to the second terminal, a kind of method of the new transmission instant communication information based on Session Initiation Protocol and MSRP agreement is provided, has expanded the load mode of instant communication information; And because fire compartment wall can be identified the fail safe of Session Initiation Protocol and MSRP agreement, thereby the process that transmits instant communication information can not be hindered, improved the efficiency that transmits message.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is a kind of method flow diagram that transmits instant communication information that the embodiment of the present invention one provides;
Fig. 2 is the method flow diagram that the another kind that provides of the embodiment of the present invention one transmits instant communication information;
Fig. 3 is a kind of method flow diagram that transmits instant communication information that the embodiment of the present invention two provides;
Fig. 4 is a kind of terminal structure schematic diagram that transmits instant communication information that the embodiment of the present invention three provides;
Fig. 5 is the terminal structure schematic diagram that the another kind that provides of the embodiment of the present invention three transmits instant communication information;
Fig. 6 is a kind of terminal structure schematic diagram that transmits instant communication information that the embodiment of the present invention four provides;
Fig. 7 is the terminal structure schematic diagram that the another kind that provides of the embodiment of the present invention four transmits instant communication information;
Fig. 8 is a kind of system configuration schematic diagram that transmits instant communication information that the embodiment of the present invention five provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment mono-
The embodiment of the present invention provides a kind of method that transmits instant communication information, and the method, take the angle of first terminal that sends instant communication information as example, describes the method that transmits instant communication information.Referring to Fig. 1, method flow comprises:
101: first terminal obtains the instant communication information that comprises word and/or picture.
102: set up SIP with the second terminal and be connected, connect the MSRP address that obtains the second terminal by SIP.
Particularly, connect the MSRP address that obtains the second terminal by SIP, include but not limited to:
Connected to the second terminal and sent the request of obtaining MSRP address by SIP, the MSRP address of carrying first terminal in request, makes the second terminal set up MSRP according to the MSRP address of first terminal with first terminal and is connected;
Receive the response of the MSRP address of carrying the second terminal that the second terminal returns according to request.
103: set up MSRP according to the MSRP address of the second terminal with the second terminal and be connected, and set up the MSRP message that comprises instant communication information, connect MSRP message is sent to the second terminal by MSRP.
Particularly, set up the MSRP message that comprises instant communication information, include but not limited to:
If instant communication information comprises word and picture, the head section using the ID of the word comprising in instant communication information and picture as MSRP message, content type field using the format information of word as head section, and subsequent segment using picture as MSRP message, obtain the MRSP message that comprises instant communication information;
Wherein, the format information of word at least comprises font, size and the color of word.
The embodiment of the present invention also provides a kind of method that transmits instant communication information, and the method, take the angle of the second terminal that receives instant communication information as example, describes the method that transmits instant communication information.Referring to Fig. 2, method flow comprises:
201: the second terminals are set up SIP with first terminal and are connected, and connect by SIP the MSRP address that obtains first terminal.
202: set up MSRP according to MSRP address and the first terminal of first terminal and be connected, and receive first terminal the connects transmission MSRP message that comprises instant communication information by MSRP, instant communication information comprises word and/or picture.
Particularly, connect the MSRP address that obtains first terminal by SIP, include but not limited to:
Receive first terminal and connect the request of obtaining MSRP address sending, the MSRP address of carrying first terminal in request by SIP;
Return to the response of the MSRP address of carrying the second terminal according to request to first terminal, make first terminal set up MSRP according to the MSRP address of the second terminal with the second terminal and be connected.
In sum, the method that the embodiment of the present invention provides, first terminal is obtaining after instant communication information, be connected by the SIP setting up with the second terminal the MSRP address that obtains the second terminal, and set up MSRP according to this address with the second terminal and be connected, by this connection, the MSRP message that comprises instant communication information of setting up is sent to the second terminal, a kind of mode of the new transmission instant communication information based on Session Initiation Protocol and MSRP agreement is provided, expanded the load mode of instant communication information; And because fire compartment wall can be identified the fail safe of Session Initiation Protocol and MSRP agreement, thereby make the process that transmits instant communication information can not suffer the obstruction of fire compartment wall, improved the efficiency that transmits message.
Embodiment bis-
In order to realize efficiently, transmit in the clear instant communication information, and the load mode of instant communication information is expanded, the embodiment of the present invention provides a kind of method that transmits instant communication information.Wherein, first terminal and the second terminal all can be as sending the terminal of instant communication information and the terminal of reception instant communication information, in the present embodiment, only send instant communication information with first terminal, it is that example describes that the second terminal receives instant communication information.In conjunction with the content of above-described embodiment one, referring to Fig. 3, method flow comprises:
301: first terminal obtains the instant communication information that comprises word and/or picture.
Wherein, the form of word can be Chinese, English or character etc., in addition, can also be other forms.The form of picture can comprise JPEG(Joint Photographic Experts Group, joint image expert group), PNG(Portable Network Graphic, portable network graphic) etc. form, in addition, can also be extended formatting.The embodiment of the present invention this not the form of the form to word and picture specifically limit.
Particularly, first terminal obtains the instant communication information that comprises word and/or picture of user's input by the boundary layer of first terminal.In addition, first terminal can also obtain the instant communication information that comprises word and/or picture by other means.Specifically adopt which kind of mode to obtain the instant communication information that comprises word and/or picture for first terminal, the embodiment of the present invention does not specifically limit at this.
It should be noted that, the boundary layer of first terminal is after the instant communication information getting, if instant communication information comprises word and picture, for the every width picture in the picture comprising in instant communication information distributes different ID, and add asterisk wildcard in each the front and back of ID, thereby obtain the mixed characters string of the ID that comprises word and picture; For the every width picture in the picture comprising in instant communication information is named different filenames, preserve picture to first terminal, and the filename of picture is preserved with the form of list.Wherein, the ID of picture can be 1,2,3 etc., and the filename of picture can be pic1, pic2, pic3 etc., in addition, can also be other ID and other filename, the embodiment of the present invention this not the filename of the ID to picture and picture specifically limit.The concrete mode of preserving picture is the form that picture is converted to high compression, saves as local temporary files.Wherein, the form of high compression can include but not limited to PNG form.In addition,, if only include word in instant communication information, do not need the operation of said process; If only include picture in instant communication information, in said process, distribute different ID for every width picture, and after the front and back of each ID add asterisk wildcard, obtain the character string of the ID that only comprises picture.
Further, the boundary layer of first terminal is after the instant communication information getting, also comprise that reporting message sends the logical layer of notice to first terminal, wherein, message sends notice and comprises the first parameter, the second parameter, the 3rd parameter and the 4th parameter, and the first parameter is the sip address of the second terminal, and the second parameter is the mixed characters string of the ID of word and picture, the format information that the 3rd parameter is word, the filename that the 4th parameter is picture.The sip address of the second terminal can be to be kept in advance in the list of first terminal, or the boundary layer of first terminal is by after the sip address of web server requests the second terminal, receives the sip address of the second terminal that the webserver returns.In addition, if only include word in instant communication information, the second parameter in message transmission notice is the character string that only comprises word, and the 4th parameter is empty; If only include picture in instant communication information, the second parameter in message transmission notice is the character string that only comprises the ID of picture, and the 3rd parameter is empty.
302: first terminal is set up SIP with the second terminal and is connected, connect the MSRP address that obtains the second terminal by SIP.
Particularly, it is that first terminal is according to the sip address of the second terminal that first terminal and the second terminal are set up the concrete mode that SIP is connected, INVITE method by Session Initiation Protocol stack sends and sets up SIP connection request to the second terminal, the second terminal receives after this request, returns to success response to first terminal.The second terminal receives to be set up after SIP connection request, learns and needs local terminal to receive instant communication information.The concrete mode that connects the MSRP address that obtains the second terminal by SIP is to be connected to the second terminal and sent the request of obtaining MSRP address by SIP, in request, carry the MSRP address of first terminal, make the second terminal set up MSRP according to the MSRP address of first terminal with first terminal and be connected; Receive the response of the MSRP address of carrying the second terminal that the second terminal returns according to request.Wherein, connect and send the request of obtaining MSRP address to the second terminal and specifically refer to by the INVITE method of Session Initiation Protocol stack and send out the request of obtaining MSRP address to the second terminal by SIP.
In this step, the message that the logical layer of first terminal reports at the boundary layer that receives first terminal sends after notice, send the first parameter in notice according to message, the i.e. sip address of the second terminal, INVITE method by Session Initiation Protocol stack sends and sets up SIP connection request to the logical layer of the second terminal, the logical layer of the second terminal receives after this request, returns to the logical layer of success response to first terminal.The logical layer of first terminal is connected to the logical layer of the second terminal and is sent the request of obtaining MSRP address by SIP, in request, carry the MSRP address of first terminal, make the logical layer of the second terminal set up MSRP according to the MSRP address of first terminal with the logical layer of first terminal and be connected; The logical layer of first terminal receives the response of the MSRP address of the second terminal that the logical layer of the second terminal returns according to request.
It should be noted that, first terminal can be connected with the webserver respectively with the second terminal, in the time setting up SIP connection, the INVITE method of the logical layer of first terminal by Session Initiation Protocol stack to the webserver send carry the second terminal sip address set up SIP connection request, the webserver is according to the sip address of setting up second terminal of carrying in SIP connection request, will set up SIP connection request and be transmitted to the logical layer of the second terminal.
Except said method, first terminal can also adopt additive method to set up SIP with the second terminal to be connected, to connect the MSRP address that obtains the second terminal by SIP.Set up SIP for which kind of method of concrete employing with the second terminal and be connected, connect the MSRP address that obtains the second terminal by SIP, the embodiment of the present invention does not specifically limit at this.
303: first terminal is set up MSRP according to the MSRP address of the second terminal with the second terminal and is connected.
Particularly, first terminal, according to the MSRP address of the second terminal, sends and sets up MSRP connection request to the second terminal; The second terminal receives to be set up after MSRP connection request, returns to success response to first terminal, is connected thereby make first terminal set up MSRP with the second terminal.
For this step, when concrete enforcement, first terminal can be connected with the webserver respectively with the second terminal, the logical layer of first terminal to the webserver send carry the second terminal MSRP address set up MSRP connection request, make the webserver know that according to this MSRP address of setting up second terminal of carrying in MSRP connection request the logical layer request of first terminal sets up MSRP with the logical layer of the second terminal and be connected; And after the request of obtaining MSRP address that the logical layer of the second terminal sends at the logical layer that receives first terminal, obtain the MSRP address of the first terminal carrying in request, to the webserver send carry the second terminal MSRP address set up MSRP connection request, make the webserver know that according to this MSRP address of setting up the first terminal carrying in MSRP connection request the logical layer request of the second terminal sets up MSRP with the logical layer of first terminal and be connected; The webserver is set up that MSRP is connected and after the logical layer request of the second terminal and the logical layer of first terminal set up MSRP and be connected, sets up MSRP be connected for the logical layer of first terminal with the logical layer of the second terminal at the logical layer request of knowing first terminal and the logical layer of the second terminal.
In addition, can also adopt other modes to set up MSRP according to the MSRP address of the second terminal with the second terminal is connected.Set up MSRP according to the MSRP address of the second terminal with the second terminal for which kind of mode of concrete employing and be connected, the embodiment of the present invention does not specifically limit at this.
304: first terminal is set up the MSRP message that comprises instant communication information, is connected MSRP message is sent to the second terminal by MSRP.
Particularly, when MSRP message that first terminal comprises instant communication information in establishment, if instant communication information comprises word and picture, the head section using the ID of the word comprising in instant communication information and picture as MSRP message, content type field using the format information of word as head section, and subsequent segment using picture as MSRP message, obtain the MRSP message that comprises instant communication information.First terminal is connected MSRP message is sent to the second terminal by MSRP again; Wherein, the format information of word at least comprises font, size and the color of word.In addition, if only comprise word in instant communication information, the head section using word as MSRP, the content type field using the format information of word as head section, obtain the MSRP message that comprises instant communication information, connect MSRP message is sent to the second terminal by MSRP; If only comprise picture in instant communication information, the head section using the ID of picture as MSRP message, the content type field of head section is empty, and subsequent segment using picture as MSRP message, obtain the MSRP message that comprises instant communication information, connect MSRP message is sent to the second terminal by MSRP.Wherein, in subsequent segment, every width picture is a segmentation.
In this step, the message that the logical layer of first terminal reports the boundary layer of first terminal sends the head section of the second parameter read-in MSRP message comprising in notice, and the mixed characters string that is about to the ID that comprises word and picture writes the head section of MSRP message; Message is sent to the content type field in the 3rd parameter read-in head section comprising in notice, write the content type field in head section by the format information of word; Send the 4th parameter acquiring picture comprising in notice according to message, obtain picture according to the filename of picture, afterwards the picture getting is write to the subsequent segment of MSRP message, obtain the MSRP message that comprises instant communication information, then connect MSRP message is sent to the second terminal by MSRP.In addition, if only comprise word in instant communication information, the logical layer of first terminal sends message the head section of the second parameter read-in MSRP message comprising in notice, the character string that is about to only to comprise word writes the head section of MSRP message, message is sent to the content type field of the 3rd parameter read-in head section comprising in notice, write the content type field of head section by the format information of word, obtain the MSRP message that comprises instant communication information, connect MSRP message is sent to the second terminal by MSRP more afterwards, if only comprise picture in instant communication information, the logical layer of first terminal sends message the head section of the second parameter read-in MSRP message comprising in notice, the character string that is about to the ID that only comprises picture writes the head section of MSRP message, the content type field of head section is empty, and according to the 4th parameter acquiring picture comprising in message transmission notice, obtain picture according to the filename of picture, afterwards the picture getting is write to the subsequent segment of MSRP message, obtain the MSRP message that comprises instant communication information, connect MSRP message is sent to the second terminal by MSRP again.Wherein, in subsequent segment, every width picture is a segmentation.
Certainly,, except said method, the MSRP message that can also adopt other modes to set up to comprise instant communication information, is connected MSRP message is sent to the second terminal by MSRP.Set up the MSRP message that comprises instant communication information for which kind of mode of concrete employing, connected MSRP message is sent to the second terminal by MSRP, the embodiment of the present invention does not specifically limit at this.
Further, in the time that instant communication information comprises picture and word, the MSRP message of establishment is often longer, head section and the subsequent segment of the MSRP message that the logical layer of the second terminal sends the logical layer that successively receives first terminal.After the logical layer of the second terminal receives the head section of MSRP message, be saved in the ID of the picture in MSRP message head section successively in order in the list of the second terminal concrete also comprising, send message sink and notify the boundary layer to the second terminal, the sip address that the 5th parameter in this message sink notice is first terminal, the 6th parameter is the mixed characters string of the ID that comprises word and picture in MSRP message head section, and the 7th parameter is the format information of the word in the content type field of MSRP message head section, the boundary layer of the second terminal receives after message sink notice, according to the 5th parameter in this message sink notice, it is sip address, obtain the user profile of first terminal, and be presented at the interface of the second terminal, according to the 7th parameter in this message sink notice, it is the format information of word, revise after the form of the word comprising in the 6th parameter, word is presented to the interface of the second terminal, the ID of the picture comprising in the 6th parameter is replaced with downloading mark, identify by downloading the interface that is presented at the second terminal, and preserve the ID of picture and download the corresponding relation identifying.Wherein, the sip address of first terminal can be to be kept in advance in the list of the second terminal, or the boundary layer of the second terminal is by after the sip address of web server requests first terminal, receives the sip address of the first terminal that the webserver returns.User profile includes but not limited to the pet name of first terminal, the information such as head portrait, download the GIF(Graphics Interchange Format that mark includes but not limited to hourglass, graphic interchange format) icon etc., the embodiment of the present invention does not specifically limit user profile and download mark at this.In addition,, if instant communication information only comprises word,, in said process, omit the associative operation for picture; If instant communication information only comprises word,, in said process, omit the associative operation for word.
After the logical layer of the second terminal receives the subsequent segment of MSRP message, specifically also comprise and the subsequent segment that often receives a MSRP message picture in subsequent segment is saved in to local temporary files, and be the different filename of every width picture called after; Send message sink and notify the boundary layer to the second terminal, the 8th parameter of this message sink notice is the ID of the picture that obtains from the list of preserving in advance in order, the filename that the 9th parameter is picture; The boundary layer of the second terminal receives after message sink notice, according to the 9th parameter in this message sink notice, it is the filename of picture, get the picture of preservation, according to the 8th parameter in message sink notice, be the ID of picture, in the ID of the picture of preserving in advance and the corresponding relation of download mark, search corresponding download mark; The picture getting is replaced to corresponding download mark, be presented at the interface of the second terminal.Wherein, the corresponding message sink notice of each subsequent segment, thus make the logical layer of the second terminal often receive a width picture, report immediately the boundary layer of the second terminal, the boundary layer of the second terminal also can show the picture that this receives immediately.
It should be noted that, in the present embodiment, first terminal and the second terminal can directly communicate, also can all be connected to the webserver, first terminal and the second terminal are in the time carrying out said method, can select to send to the opposing party's communication data to send to the webserver, forward communication data to corresponding terminal by the webserver.
To sum up, the method that the embodiment of the present invention provides, first terminal is getting after instant communication information, be connected by the SIP setting up with the second terminal the MSRP address that obtains the second terminal, and set up MSRP according to this address with the second terminal and be connected, by this connection, the MSRP message that comprises instant communication information of setting up is sent to the second terminal, a kind of mode of the new transmission instant communication information based on Session Initiation Protocol and MSRP agreement is provided, expanded the load mode of instant communication information; And because fire compartment wall can be identified the fail safe of Session Initiation Protocol and MSRP agreement, thereby make the process that transmits instant communication information can not suffer the obstruction of fire compartment wall, improved the efficiency that transmits message.
Embodiment tri-
The embodiment of the present invention provides a kind of terminal that transmits instant communication information, and the performed method of terminal of instant communication information is provided for the transmission instant communication information of carrying out above-described embodiment one or embodiment bis-and providing this terminal.Referring to Fig. 4, this terminal comprises:
The first acquisition module 401, for obtaining the instant communication information that comprises word and/or picture;
First sets up module 402, is connected for setting up SIP with the second terminal;
The second acquisition module 403, connects for setting up by first the SIP that module 401 sets up the message MSRP address that obtains the second terminal;
Second sets up module 404, sets up MSRP be connected for the MSRP address of the second terminal of getting according to the second acquisition module 403 with the second terminal;
Set up module 405, for setting up the MSRP message that comprises the instant communication information that the first acquisition module 401 gets;
Sending module 406, connects and sends to the second terminal by setting up the MSRP message that module 405 sets up for setting up by second MSRP that module 404 sets up.
Particularly, referring to Fig. 5, the second acquisition module 403, comprising:
The first transmitting element 4031, connect to the second terminal and send the request of obtaining MSRP address for setting up by first SIP that module 402 sets up, in request, carry the MSRP address of first terminal, make the second terminal set up MSRP according to the MSRP address of first terminal with first terminal and be connected;
The first receiving element 4032, for receiving the response of the MSRP address of carrying the second terminal that request that the second terminal sends according to the first transmitting element 4031 returns.
Particularly, set up module 405, if comprise word and picture for message, the head section using the ID of the word comprising in message and picture as MSRP message, content type field using the format information of word as head section, and subsequent segment using picture as MSRP message, obtain the MRSP message that comprises instant communication information;
Wherein, the format information of word at least comprises font, size and the color of word.
In sum, the terminal of the embodiment of the present invention, getting after instant communication information, be connected by the SIP setting up with the second terminal the MSRP address that obtains the second terminal, and set up MSRP according to this address with the second terminal and be connected, by this connection, the MSRP message that comprises instant communication information of setting up is sent to the second terminal, a kind of mode of the new transmission instant communication information based on Session Initiation Protocol and MSRP agreement is provided, expanded the load mode of instant communication information; And because fire compartment wall can be identified the fail safe of Session Initiation Protocol and MSRP agreement, thereby make the process that transmits instant communication information can not suffer the obstruction of fire compartment wall, improved the efficiency that transmits message.
Embodiment tetra-
The embodiment of the present invention provides a kind of terminal that transmits instant communication information, and the performed method of terminal of instant communication information is provided for the transmission instant communication information of carrying out above-described embodiment one or embodiment bis-and providing this terminal.Referring to Fig. 6, this terminal comprises:
The 3rd sets up module 601, is connected for setting up SIP with first terminal;
The 3rd acquisition module 602, connects for setting up by the 3rd the SIP that module 601 sets up the MSRP address that obtains first terminal;
The 4th sets up module 603, sets up MSRP be connected for the MSRP address of the first terminal that gets according to the 3rd acquisition module 602 with first terminal;
Receiver module 604, sets up by the 4th the MSRP that module 603 sets up and connects the MSRP message that comprises instant communication information sending for receiving first terminal, and instant communication information comprises word and/or picture.
Particularly, referring to Fig. 7, the 3rd acquisition module 602, comprising:
The second receiving element 6021, sets up by the 3rd the SIP that module 601 sets up and connects the request of obtaining MSRP address sending, the MSRP address of carrying first terminal in request for receiving first terminal;
Second returns to unit 6022, returns to the response of the MSRP address of carrying the second terminal for the request receiving according to the second receiving element 6021 to first terminal, makes first terminal set up MSRP according to the MSRP address of the second terminal with the second terminal and is connected.
In sum, the terminal of the embodiment of the present invention, is connected by setting up SIP with first terminal, and connects by SIP the MSRP address that obtains first terminal; Setting up MSRP according to the MSRP address of first terminal with first terminal is connected, and receive first terminal by MSRP connect send the MSRP message that comprises instant communication information, a kind of mode of the new transmission instant communication information based on Session Initiation Protocol and MSRP agreement is provided, has expanded the load mode of instant communication information; And because fire compartment wall can be identified the fail safe of Session Initiation Protocol and MSRP agreement, thereby make the process that transmits instant communication information can not suffer the obstruction of fire compartment wall, improved the efficiency that transmits message.
Embodiment five
The present embodiment provides a kind of system that transmits instant communication information, and referring to Fig. 8, this system comprises: transmitting terminal 801 and receiving terminal 802;
The terminal of the transmission instant communication information that wherein, transmitting terminal 801 provides as above-described embodiment three; The terminal of the transmission instant communication information that receiving terminal 802 provides as above-described embodiment four.
The system of the embodiment of the present invention, setting up SIP by transmitting terminal and receiving terminal is connected, and connect and set up MSRP with receiving terminal and be connected by SIP, connect and transmit the MSRP message that comprises instant communication information by MSRP, a kind of mode of the new transmission instant communication information based on Session Initiation Protocol and MSRP agreement is provided, has expanded the load mode of instant communication information; And because fire compartment wall can be identified the fail safe of Session Initiation Protocol and MSRP agreement, thereby make the process that transmits instant communication information can not suffer the obstruction of fire compartment wall, improved the efficiency that transmits message.
It should be noted that: the terminal of the transmission instant communication information that above-described embodiment provides is in the time transmitting instant communication information, only be illustrated with the division of above-mentioned each functional module, in practical application, can above-mentioned functions be distributed and completed by different functional modules as required, the internal structure that is about to the terminal that transmits instant communication information is divided into different functional modules, to complete all or part of function described above.In addition, the terminal of the transmission instant communication information that above-described embodiment provides belongs to same design with the embodiment of the method that transmits instant communication information, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can carry out the hardware that instruction is relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. a method that transmits instant communication information, is characterized in that, described method comprises:
First terminal obtains the instant communication information that comprises word and/or picture;
Set up SIP (Session Initiation Protocol) with the second terminal and be connected, connect the message session delivery protocol MSRP address that obtains described the second terminal by described SIP;
Set up MSRP according to the MSRP address of described the second terminal with described the second terminal and be connected, and set up the MSRP message that comprises described instant communication information, connect described MSRP message is sent to described the second terminal by described MSRP.
2. method according to claim 1, is characterized in that, the described MSRP address that obtains described the second terminal that connects by described SIP, comprising:
Connected to described the second terminal and sent the request of obtaining MSRP address by described SIP, the MSRP address of carrying described first terminal in described request, makes described the second terminal set up MSRP according to the MSRP address of described first terminal with described first terminal and is connected;
Receive the response of the MSRP address of carrying described the second terminal that described the second terminal returns according to described request.
3. method according to claim 1 and 2, is characterized in that, the MSRP message that described establishment comprises described instant communication information, comprising:
If described instant communication information comprises word and picture, the head section using the mark ID of the word comprising in described instant communication information and picture as MSRP message, content type field using the format information of described word as described head section, and subsequent segment using described picture as described MSRP message, obtain the MRSP message that comprises described instant communication information;
Wherein, the format information of described word at least comprises font, size and the color of described word.
4. a terminal that transmits instant communication information, is characterized in that, described terminal comprises:
The first acquisition module, for obtaining the instant communication information that comprises word and/or picture;
First sets up module, is connected for setting up SIP (Session Initiation Protocol) with the second terminal;
The second acquisition module, for connecting by the described first SIP that sets up module foundation the message session delivery protocol MSRP address that obtains described the second terminal;
Second sets up module, sets up MSRP be connected for the MSRP address of described the second terminal of getting according to described the second acquisition module with described the second terminal;
Set up module, for setting up the MSRP message that comprises the instant communication information that described the first acquisition module gets;
Sending module, sends to described the second terminal for connecting by the described second MSRP that sets up module foundation the MSRP message that described establishment module is set up.
5. terminal according to claim 4, is characterized in that, described the second acquisition module, comprising:
The first transmitting element, for connecting to described the second terminal and send the request of obtaining MSRP address by the described first SIP that sets up module foundation, in described request, carry the MSRP address of described first terminal, make described the second terminal set up MSRP according to the MSRP address of described first terminal with described first terminal and be connected;
The first receiving element, for receiving the response of the MSRP address of carrying described the second terminal returned of request that described the second terminal sends according to described the first transmitting element.
6. according to the terminal described in claim 4 or 5, it is characterized in that, described establishment module, if comprise word and picture for described message, the head section using the mark ID of the word comprising in described message and picture as MSRP message, content type field using the format information of described word as described head section, and subsequent segment using described picture as described MSRP message, obtain the MRSP message that comprises described instant communication information;
Wherein, the format information of described word at least comprises font, size and the color of described word.
7. a method that transmits instant communication information, is characterized in that, described method comprises:
The second terminal is set up SIP (Session Initiation Protocol) with first terminal and is connected, and connects by described SIP the message session delivery protocol MSRP address that obtains described first terminal;
Set up MSRP according to the MSRP address of described first terminal with described first terminal and be connected, and receive described first terminal the connects transmission MSRP message that comprises instant communication information by described MSRP, described instant communication information comprises word and/or picture.
8. method according to claim 7, is characterized in that, the described MSRP address that obtains described first terminal that connects by described SIP, comprising:
Receive described first terminal and connect the request of obtaining MSRP address sending, the MSRP address of carrying described first terminal in described request by described SIP;
Return to the response of the MSRP address of carrying described the second terminal according to described request to described first terminal, make described first terminal set up MSRP according to the MSRP address of described the second terminal with described the second terminal and be connected.
9. a terminal that transmits instant communication information, is characterized in that, described terminal comprises:
The 3rd sets up module, is connected for setting up SIP (Session Initiation Protocol) with first terminal;
The 3rd acquisition module, for connecting by the described the 3rd SIP that sets up module foundation the message session delivery protocol MSRP address that obtains described first terminal;
The 4th sets up module, sets up MSRP be connected for the MSRP address of the first terminal that gets according to described the 3rd acquisition module with described first terminal;
Receiver module, connects by the described the 4th MSRP that sets up module foundation the MSRP message that comprises instant communication information sending for receiving described first terminal, and described instant communication information comprises word and/or picture.
10. terminal according to claim 9, is characterized in that, described the 3rd acquisition module, comprising:
The second receiving element, connects the request of obtaining MSRP address sending, the MSRP address of carrying described first terminal in described request for receiving described first terminal by the described the 3rd SIP that sets up module foundation;
Second returns to unit, return to the response of the MSRP address of carrying described the second terminal for the request receiving according to described the second receiving element to described first terminal, make described first terminal set up MSRP according to the MSRP address of described the second terminal with described the second terminal and be connected.
CN201210593076.0A 2012-12-31 2012-12-31 Method and terminal for transmitting instant communication message Pending CN103916305A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210593076.0A CN103916305A (en) 2012-12-31 2012-12-31 Method and terminal for transmitting instant communication message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210593076.0A CN103916305A (en) 2012-12-31 2012-12-31 Method and terminal for transmitting instant communication message

Publications (1)

Publication Number Publication Date
CN103916305A true CN103916305A (en) 2014-07-09

Family

ID=51041721

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210593076.0A Pending CN103916305A (en) 2012-12-31 2012-12-31 Method and terminal for transmitting instant communication message

Country Status (1)

Country Link
CN (1) CN103916305A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101013937A (en) * 2007-02-08 2007-08-08 华为技术有限公司 Method and apparatus for preventing media proxy from hacker attack
CN101035140A (en) * 2007-02-07 2007-09-12 中兴通讯股份有限公司 File transmission system based on the SIP and MSRP and its method
CN101060650A (en) * 2007-05-17 2007-10-24 华为技术有限公司 Message service realizing method and message application server
CN101076151A (en) * 2007-07-09 2007-11-21 中兴通讯股份有限公司 Multi-medium color-image system and method for transmitting multi-medium color image during process of talk
CN101106536A (en) * 2006-07-15 2008-01-16 华为技术有限公司 A method for establishing group session
CN101106750A (en) * 2007-07-27 2008-01-16 华为技术有限公司 A transmission and receiving method and system for electronic business card
CN101232465A (en) * 2007-01-24 2008-07-30 华为技术有限公司 Method for transmitting document in conference system, document transmitting system and conference server
US20100167762A1 (en) * 2008-12-30 2010-07-01 Vinod Pandey IMS and MMS Interworking
CN102664899A (en) * 2012-05-04 2012-09-12 华为技术有限公司 Service processing method, service processing device and service processing system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101106536A (en) * 2006-07-15 2008-01-16 华为技术有限公司 A method for establishing group session
CN101232465A (en) * 2007-01-24 2008-07-30 华为技术有限公司 Method for transmitting document in conference system, document transmitting system and conference server
CN101035140A (en) * 2007-02-07 2007-09-12 中兴通讯股份有限公司 File transmission system based on the SIP and MSRP and its method
CN101013937A (en) * 2007-02-08 2007-08-08 华为技术有限公司 Method and apparatus for preventing media proxy from hacker attack
CN101060650A (en) * 2007-05-17 2007-10-24 华为技术有限公司 Message service realizing method and message application server
CN101076151A (en) * 2007-07-09 2007-11-21 中兴通讯股份有限公司 Multi-medium color-image system and method for transmitting multi-medium color image during process of talk
CN101106750A (en) * 2007-07-27 2008-01-16 华为技术有限公司 A transmission and receiving method and system for electronic business card
US20100167762A1 (en) * 2008-12-30 2010-07-01 Vinod Pandey IMS and MMS Interworking
CN102664899A (en) * 2012-05-04 2012-09-12 华为技术有限公司 Service processing method, service processing device and service processing system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王雅斤: "基于SIP和MSRP的IM系统设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Similar Documents

Publication Publication Date Title
CN109862113A (en) The wireless throwing screen system and its method of wide area network-oriented
CN105472023B (en) A kind of method and device of direct distance input and output
CN102413112A (en) Method, association server and system for realizing association of equipment
CN102843436A (en) Method, equipment, server and system of equipment management
CN102495866A (en) Method and system for synchronously updating shared documents
CN107846466A (en) Mapping method, server, cloud terminal and the system of cloud peripheral equipment of terminal
CN109660639A (en) A kind of data uploading method, equipment, system and medium
CN105207886A (en) Instant messaging (IM) message sending and display methods, IM message sending and display devices, and IM message system
KR102329095B1 (en) Network access method, related devices and systems
CN106557288A (en) A kind of method and device for obtaining print data
CN106549989A (en) A kind of data transmission method and its system, user terminal, application server
CN102858025A (en) Method and device of point-to-point interactive operation
CN104462367A (en) Browser of computing device and thumbnail display method of browser
KR20130065777A (en) Apparatus and method for sharing web contents using inspector script
CN102594886A (en) Method and device for direct communication between browsers, and communication system
CN103716230A (en) Message sending method, device and server
CN103412728A (en) Method and system for device file printing based on local area network
CN103796191A (en) Method, device and terminal for sending data to user terminal
CN103731424B (en) A kind of transmission method of network data, apparatus and system
CN101557354A (en) Method for sending picture by client service personnel on line
CN102857574B (en) Information processing method and apparatus for Internet of Things
CN113014510B (en) Data caching method and device in distributed test of inertial navigation system
CN103916305A (en) Method and terminal for transmitting instant communication message
CN108668048B (en) The processing method and system of image data, storage medium, processor
US9760327B2 (en) Determining rendering systems utilizing printer locations and rendering system attributes

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140709

RJ01 Rejection of invention patent application after publication