Patent ID: 7904521

Claim:
A method for transferring messages by establishing a chat room data transfer channel, applicable to an instant message (IM) chat room system based on Session Initiated Protocol (SIP)/Instant Message and Presence Leveraging Extensions (SIMPLE) that comprises an IM server associated with a client and a chat room server, the method comprising: sending, by the IM server, a first request message to the chat room server, wherein the first request message comprises: an IP address, a port number and a supported media transfer type of the IM server; receiving, by the IM server, a first response message from the chat room server, wherein the first response message comprises: an IP address, a port number and a supported media transfer type of the chat room server, after the chat room server receives the first request message and authenticates the client successfully; establishing, by the IM server, a first Message Session Relay Protocol (MSRP) data transfer channel between the chat room server and the IM server based on information of the first request message and the first response message; receiving, by the IM server, a second request message initiated by the client for joining the chat room, wherein the second request message comprises: an IP address, a port number and a supported media transfer type of the client; sending, by the IM server, a second response message to the client, wherein the second response message comprises: an IP address, a port number and a supported media transfer type of the IM server available to the client; establishing a second MSRP data transfer channel between the IM server and the client based on information of the second request message and the second response message, the first MRSP data transfer channel independent of the second MSRP data transfer channel; and transmitting the messages from the client to the chat room server through the first MSRP data transfer channel between the chat room server and the IM server and the second MSRP data transfer channel between the IM server and the client; and wherein messages between the client and the IM server are transferred by a core network associated with the client; and if a core network associated with the IM server and that associated with the chat room server are different, messages from the IM server to the chat room server are transferred by the core network associated with the client and the core network associated with the chat room server; messages returned from the chat room server to the IM server are transferred by the core network associated with the chat room server and the core network associated with the client; or if the IM server and the chat room server belong to a same core network, messages between the IM server and the chat room server are transferred by the same core network.