CN104168176A - Instant messenger method, client, server and instant messenger system - Google Patents

Instant messenger method, client, server and instant messenger system Download PDF

Info

Publication number
CN104168176A
CN104168176A CN201310182818.5A CN201310182818A CN104168176A CN 104168176 A CN104168176 A CN 104168176A CN 201310182818 A CN201310182818 A CN 201310182818A CN 104168176 A CN104168176 A CN 104168176A
Authority
CN
China
Prior art keywords
client
server
sip
voip service
sip account
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.)
Granted
Application number
CN201310182818.5A
Other languages
Chinese (zh)
Other versions
CN104168176B (en
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.)
ZTE ICT Technologies Co Ltd
Original Assignee
ZTE ICT Technologies 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 ZTE ICT Technologies Co Ltd filed Critical ZTE ICT Technologies Co Ltd
Priority to CN201310182818.5A priority Critical patent/CN104168176B/en
Publication of CN104168176A publication Critical patent/CN104168176A/en
Application granted granted Critical
Publication of CN104168176B publication Critical patent/CN104168176B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The invention discloses an instant messenger method. When an instant messenger (IM) client in an IM state determines to initiate a voice over internet protocol (VoIP) service, temporary session initiation protocol (SIP) account resources are obtained from a server; and an SIP server is logged in based on the temporary SIP account resources and the VoIP service is initiated. In addition, the invention also discloses an instant messenger client, a server and an instant messenger system. According to the technical scheme, the load of the SIP server in the instant messenger system with combination of extensible messaging and pressure protocol (XMPP) and the SIP as well as the client load can be reduced; the effective usage rate of the SIP server can be improved; and the system resource wasting can be avoided.

Description

Instant messaging method, client, server and system
Technical Field
The present invention relates to communication technologies, and in particular, to an instant messaging method, a client, a server, and a system.
Background
Instant Messaging (IM) is an internet-based service for Instant messaging, such as: baidu Hi, MSN, QQ, Aaoao, etc. Session Initiation Protocol (SIP), and Extensible Messaging and presence Protocol (XMPP) all belong to protocols of an application layer, and are mainly used for sending voice, video and instant Messaging over The internet. Although an instant messaging system supporting voice and video can be implemented using either one of SIP and XMPP alone, SIP and XMPP are also emphasized. XMPP is an open Extensible Markup Language (XML) protocol, and is mainly used to implement real-time messaging, presentation, and request/response services. Voice over internet protocol (VoIP) is a technology that is mainly based on IP telephony and provides a corresponding value-added service. SIP is a signaling protocol known as VoIP that handles the establishment of VoIP service calls, control of calls, and termination of calls, and can generate Call Detail Records (CDRs) for charging.
Currently, an instant messaging system supporting audio and video calls has a system combining XMPP and SIP, and the instant messaging system of the type uses XMPP to realize an IM function and supports the acquisition of friend states through XMPP; and the SIP is used for realizing audio and video calls and conferences. The instant communication system makes full use of respective advantages of XMPP and SIP, and can realize IM and audio and video telephone and conference intercommunicated with Public Switched Telephone Network (PSTN). However, the frequency of audio-video telephone and conference based on SIP is not as high as that of IM, and the client always keeps heartbeat and refresh states with the SIP server, which causes unnecessary waste of resources occupied by the server and the client to a certain extent.
Disclosure of Invention
In view of the above, the main objective of the present invention is to provide an instant messaging method, a client, a server and a system, which can reduce the load of an SIP server and the load of the client in an instant messaging system combining XMPP and SIP, and improve the effective utilization rate of the SIP server.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the invention provides an instant messaging method, which comprises the following steps:
when the IM client in the IM state determines to initiate VoIP service, temporary SIP account resources are obtained from the server, and the SIP server is logged in according to the temporary SIP account resources to initiate VoIP service.
In the above scheme, the method further comprises:
and when the server determines that the IM client exits the VoIP service, the server releases the temporary SIP account resources distributed for the IM client.
In the above scheme, the determining, by the server, that the IM client exits the VoIP service includes:
and when the server receives a request for releasing SIP account resources sent by the IM client, determining that the IM client exits from the VoIP service.
In the above scheme, the determining, by the server, that the IM client exits the VoIP service includes:
the server receives the state information of the VoIP service sent by the SIP server at regular time, determines that the IM client end finishes the VoIP service according to the state information of the VoIP service, and determines that the IM client end quits the VoIP service when not receiving the request for releasing the SIP account resource sent by the IM client end in a set time period.
In the above scheme, the method further comprises:
and the IM client initiates instant messaging service through the XMPP server and keeps the connection with the XMPP server when in the IM state.
In the above solution, when the IM client in the IM state determines to initiate a VoIP service, acquiring a temporary SIP account resource from a server, and logging in the SIP server according to the temporary SIP account resource, including:
the method comprises the steps that when an IM client in an IM state determines to initiate VoIP service, a request for applying for SIP account resources is sent to a server, the SIP server is logged in according to temporary SIP account resources acquired from the server, an opposite-end IM client is informed to log in the SIP server through XMPP messages carrying VoIP service requests, the opposite-end IM client sends the request for applying for the SIP account resources to the server, and after the SIP server is successfully logged in according to the temporary SIP account resources acquired from the server, XMPP messages carrying the success of logging in the SIP server by the opposite-end IM client are sent to the IM client in the IM state.
In the above scheme, the server is an XMPP server or a specially-configured server for managing SIP account resources.
The invention also provides an instant messaging client, which comprises a sending unit, a receiving unit and a login unit, wherein:
a sending unit, configured to send a request for applying for a session initiation protocol SIP account resource to a server when the IM client needs to initiate a VoIP service in an IM state;
a receiving unit, configured to receive a temporary SIP account resource allocated by an SIP server to the IM client;
and the login unit is used for logging in the SIP server according to the temporary SIP account resources and initiating VoIP service.
In the above scheme, the sending unit is further configured to send a request for releasing SIP account resources to the server when the IM client exits the VoIP service.
The invention also provides a server, which comprises a receiving unit, a distributing unit and a sending unit; wherein,
the receiving unit is used for receiving an SIP account resource application request sent by the IM client;
the distribution unit is used for distributing temporary SIP account resources to the IM client according to the SIP account resource request;
and the sending unit is used for sending the temporary SIP account resources to the IM client.
In the above scheme, the server further includes a determining unit and a releasing unit, wherein:
the determining unit is used for triggering the releasing unit when determining that the IM client exits the VoIP service;
and the release unit is used for releasing the temporary SIP account resources distributed to the IM client.
In the above solution, the receiving unit is further configured to receive a request for releasing SIP account resources sent by the IM client; the determining unit is further configured to determine that the IM client quits the VoIP service when the receiving unit receives the request for releasing the SIP account resource sent by the IM client.
In the above solution, the receiving unit is further configured to receive state information of the VoIP service periodically sent by the SIP server; the determining unit is further configured to determine that the IM client ends the VoIP service according to the status information of the VoIP service received by the receiving unit, and determine that the IM client exits the VoIP service when a request for releasing SIP account resources, sent by the IM client, is not received within a set time period.
The invention also provides an instant messaging system, which comprises an XMPP server, an SIP server and an IM client; wherein,
the XMPP server is used for providing instant messaging service for the IM client; distributing temporary SIP account resources for the IM client; when the IM client is determined to exit the VoIP service, releasing temporary SIP account resources distributed to the IM client;
the SIP server is used for providing VoIP service for the IM client and sending the state information of the VoIP service of the IM client to the XMPP server;
the IM client is used for sending a request for applying SIP account resources to the XMPP server and sending a request for releasing the SIP account resources to the XMPP server.
The invention also provides an instant messaging system, which comprises an XMPP server, an SIP server, an application server and an IM client; wherein,
the XMPP server is used for providing instant messaging service for the IM client;
the SIP server is used for providing VoIP service for the IM client and sending the state information of the VoIP service of the IM client to the application server;
the application server is used for allocating temporary SIP account resources to the IM client; when the IM client is determined to exit the VoIP service, releasing temporary SIP account resources distributed to the IM client;
and the IM client is used for sending a request for applying SIP account resources to the application server and sending a request for releasing the SIP account resources to the application server.
According to the instant messaging method, the client, the server and the system, when the IM client in the instant messaging IM state determines to initiate VoIP service, the IM client acquires the temporary SIP account resource from the server, logs in the SIP server according to the temporary SIP account resource, and initiates the VoIP service. Therefore, the invention reduces the loads of CPU, memory, network and the like of the SIP server in the instant communication system combining XMPP and SIP, thereby improving the effective utilization rate of the SIP server and avoiding the waste of system resources caused by the overlong invalid occupation time of signaling resources. In addition, the invention also reduces the loads of CPU, memory, network and the like of the client in the instant messaging system combining XMPP and SIP, thereby prolonging the standby time of the terminal equipment of the client and reducing the network flow consumption of the client.
In addition, in the instant messaging system, the SIP is used as a supplement of XMPP, and only when a VoIP service needs to be established, the IM client applies for using a temporary SIP account resource to the server; after the VoIP service is finished, the server timely releases SIP account resources, and the minimum use of related resources of an SIP server in a system combining XMPP and SIP can be realized; only when the VoIP service needs to be established, the IM client logs in the SIP server, and the connection with the XMPP server is maintained at other time, so that the load of the SIP server and the IM client is reduced, and the load minimization of the SIP server and the IM client in the system combining the XMPP and the SIP is realized.
Because the frequency of the VoIP service of the user is much lower than that of the IM service of the user, the SIP server needs to support the user access quantity which is equal to that of the XMPP server by adopting the traditional mode; by adopting the technical scheme of the invention, only the user access quantity of the level of the concurrent VoIP service request quantity is required to be supported. Such as: a certain system has ten thousand IM users, but the concurrency of VoIP service is known to be not more than 10% of the amount of the IM users according to historical experience data, so that the SIP server can meet the requirement only by supporting one thousand user access amounts. Therefore, the invention greatly avoids the waste of system resources.
Drawings
FIG. 1 is a schematic diagram of an implementation process of the instant messaging method of the present invention;
fig. 2 is a schematic flow chart of an instant messaging client a calling an instant messaging client B in a VoIP manner according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of the instant messaging client according to the present invention;
FIG. 4 is a schematic diagram of a server according to the present invention;
FIG. 5 is a schematic diagram of the instant messaging system of the present invention;
fig. 6 is a schematic structural diagram of another instant messaging system according to the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a schematic flow chart of an implementation of the instant messaging method of the present invention, as shown in fig. 1, the method includes the following steps:
step 101: when an IM client in an IM state determines to initiate VoIP service, temporary SIP account resources are obtained from a server;
step 102: and logging in the SIP server according to the temporary SIP account resources to initiate VoIP service.
Further, the method further comprises:
and when the server determines that the IM client exits the VoIP service, the server releases the temporary SIP account resources distributed for the IM client.
Specifically, the determining, by the server, that the IM client exits the VoIP service includes:
and when the server receives a request for releasing SIP account resources sent by the IM client, determining that the IM client exits from the VoIP service.
Specifically, the determining, by the server, that the IM client exits the VoIP service includes:
the server receives the state information of the VoIP service sent by the SIP server at regular time, determines that the IM client end finishes the VoIP service according to the state information of the VoIP service, and determines that the IM client end quits the VoIP service when not receiving the request for releasing the SIP account resource sent by the IM client end in a set time period.
Further, the method further comprises:
and the IM client initiates instant messaging service through the XMPP server and keeps the connection with the XMPP server when in the IM state.
Specifically, when the IM client in the IM state determines to initiate a VoIP service, the method obtains a temporary SIP account resource from a server, and logs in the SIP server according to the temporary SIP account resource, including:
the method comprises the steps that when an IM client in an IM state determines to initiate VoIP service, a request for applying for SIP account resources is sent to a server, the SIP server is logged in according to temporary SIP account resources acquired from the server, an opposite-end IM client is informed to log in the SIP server through XMPP messages carrying VoIP service requests, the opposite-end IM client sends the request for applying for the SIP account resources to the server, and after the SIP server is successfully logged in according to the temporary SIP account resources acquired from the server, XMPP messages carrying the success of logging in the SIP server by the opposite-end IM client are sent to the IM client in the IM state.
Here, after both the IM client in the IM state and the opposite-end IM client log in the SIP server, a process of performing the VoIP service by the IM client in the IM state and the opposite-end IM client is consistent with a process of performing the SIP VoIP service in the prior art, and details are not repeated here.
Here, the server is an XMPP server or a server specially configured to manage SIP account resources.
Here, when logging in to the SIP server, the IM client automatically logs in to the SIP server according to the temporary SIP account resource allocated to the IM client by the server without manually inputting the account and the password of the temporary SIP account resource allocated to the client by the server.
Fig. 2 is a schematic flow chart of an IM client user a calling an IM client user B in a VoIP manner according to an embodiment of the present invention, where the flow chart includes the following steps:
step 201: the IM client user A finds that the IM client user B is in an online state, and initiates a VoIP voice call request with the user B in advance.
Here, the online status of the user B is supported by the XMPP server, and a specific implementation method thereof is the same as that in the prior art, and is not described herein again.
Step 202: an IM client of a user A sends an XMPP message carrying an application SIP account resource to a server; and simultaneously sending the XMPP message carrying the VoIP voice call request to the IM client of the user B.
Here, the server is an XMPP server or a server specially configured to manage SIP account resources.
Step 203: and after the IM client of the user A acquires the temporary SIP account resources from the server, logging in the SIP server according to the SIP account resources.
Step 204: after receiving the XMPP message carrying the VoIP voice call request sent by the IM client of the user A, the IM client of the user B obtains temporary SIP account resources from the server and logs in the SIP server, similar to the operation of the IM client of the user A.
Here, the SIP account resource specifically includes an account and a password; the IM client of the user A acquires a temporary SIP account and a password from the server, and the IM client of the user B acquires the temporary SIP account and the password from the server.
Step 205: and after the IM client of the user B successfully logs in the SIP server, the IM client of the user B sends an XMPP message carrying the success of logging in the SIP server by the IM client of the user B to the IM client of the user A.
Here, after step 205 is completed, the acquisition and login of the SIP account resource of the IM client of user a and the acquisition and login of the SIP account resource of the IM client of user B are completed.
Step 206: the IM client of user a may establish a VoIP voice call service with user B using the SIP VoIP voice call flow of the prior art.
Here, after the IM client of the user a and the IM client of the user B both log in to the SIP server, a process of the IM client of the user a and the IM client of the user B performing the VoIP voice call service is consistent with a process of performing the SIP VoIP voice call service in the prior art, and is not described herein again.
Step 207: after the VoIP voice call service is finished, the IM client of the user A and the IM client of the user B both send XMPP messages carrying the SIP account resource releasing requests to the server, so that the server releases the temporary SIP account resources distributed to the user A and the user B.
Here, if the user B is a general Public Switched Telephone Network (PSTN) telephone user and does not install an IM client, then, if the user a has a call with the user B in advance, the IM client of the user a operates more easily, and only needs to apply for an SIP account resource from the server, and log in the SIP server according to the SIP account resource allocated to the user a by the server; after the conversation between the user A and the user B is finished, the IM client of the user A sends an XMPP message carrying the request for releasing the SIP account resources to the server, so that the server releases the temporary SIP account resources distributed to the IM client of the user A.
Here, if the user a performs the VoIP conference service with the user B in advance, the IM client of the user a needs to send the conference invitation information to the IM client of the user B using the same kind of IM client through the XMPP server, both the IM client of the user a and the IM client of the user B need to send an application SIP account resource to the server, and log in the SIP server according to the SIP account resource allocated by the server, and for other participants, a conventional procedure is adopted.
Regarding the XMPP message format in the interaction process, each system can be defined by self, and the requirement can be met only by unifying the format of the transmitting party and the receiving party. For example, a VoIP conference invite message may be in a text format beginning with "VoIP://".
Fig. 3 is a schematic view of a composition structure of an instant messaging client according to the present invention, as shown in fig. 3, the instant messaging IM client includes a sending unit 31, a receiving unit 32, and a login unit 33, wherein:
a sending unit 31, configured to send a request for applying for a session initiation protocol SIP account resource to a server when the IM client needs to initiate a VoIP service in an IM state;
a receiving unit 32, configured to receive a temporary SIP account resource allocated by the SIP server for the IM client;
a login unit 33, configured to log in the SIP server according to the temporary SIP account resource, and initiate a VoIP service.
Further, the sending unit 32 is further configured to send a request for releasing SIP account resources to the server when the IM client exits the VoIP service.
Those skilled in the art will appreciate that the functions implemented by the processing units in the instant messaging client shown in fig. 3 can be understood by referring to the related description of the instant messaging method and the embodiments thereof. Those skilled in the art will appreciate that the functions of each processing unit in the instant messaging client shown in fig. 3 can be implemented by a program running on a processor, and can also be implemented by specific logic circuits.
Fig. 4 is a schematic diagram of a composition structure of the server of the present invention, and as shown in fig. 4, the server includes a receiving unit 41, a distributing unit 42, and a sending unit 43; wherein,
the receiving unit 41 is configured to receive an SIP account resource application request sent by an IM client;
the allocating unit 42 is configured to allocate a temporary SIP account resource to the IM client according to the SIP account resource request;
the sending unit 43 is configured to send the temporary SIP account resource to the IM client.
Further, the server further comprises a determining unit 44 and a releasing unit 45, wherein:
the determining unit 44 is configured to determine whether the IM client exits from the VoIP service, and if so, trigger the releasing unit;
the releasing unit 45 is configured to release the temporary SIP account resource allocated to the IM client.
Further, the receiving unit 41 is further configured to receive a request for releasing a SIP account resource, which is sent by the IM client;
correspondingly, the determining unit 42 is further configured to determine that the IM client exits from the VoIP service when the receiving unit 41 receives the request for releasing the SIP account resource sent by the IM client.
Further, the receiving unit 41 is further configured to receive state information of the VoIP service periodically sent by the SIP server;
correspondingly, the determining unit 42 is further configured to determine that the IM client ends the VoIP service according to the status information of the VoIP service received by the receiving unit, and determine that the IM client exits the VoIP service when the request for releasing the SIP account resource sent by the IM client is not received within a set time period.
Here, the server may be an XMPP server or a specially configured server for managing SIP account resources, for example, the specially configured server for managing SIP account resources may be an application server.
Those skilled in the art will appreciate that the functions implemented by the processing units in the server shown in fig. 4 can be understood by referring to the above description of the instant messaging method and the embodiments thereof. Those skilled in the art will appreciate that the functions of the processing units in the server shown in fig. 4 may be implemented by a program running on a processor, or may be implemented by specific logic circuits.
Fig. 5 is a schematic diagram of the composition structure of the instant messaging system of the present invention, and as shown in fig. 5, the system includes an extensible messaging and presence protocol XMPP server 51, a session initiation protocol SIP server 52, and an IM client 53; wherein,
the XMPP server 51 is configured to provide an instant messaging service for the IM client 53; and, allocate temporary SIP account resources to the IM client 53; when the IM client 53 is determined to quit the VoIP service, releasing the temporary SIP account resources allocated to the IM client 53;
the SIP server 52 is configured to provide a VoIP service for the IM client 53, and send status information of the VoIP service of the IM client 53 to the XMPP server 51;
the IM client 53 is configured to send a request for applying an SIP account resource to the XMPP server 51, and send a request for releasing the SIP account resource to the XMPP server 51.
In particular, the XMPP server 51 is further configured to,
when receiving a request for releasing SIP account resources sent by the IM client 53, determining that the IM client 53 exits from the VoIP service, and releasing temporary SIP account resources allocated to the IM client 53;
or, receiving the state information of the VoIP service periodically sent by the SIP server 52, determining that the IM client 53 ends the VoIP service according to the state information of the VoIP service, and determining that the IM client 53 exits the VoIP service and releases the temporary SIP account resource allocated to the IM client 53 when the request for releasing the SIP account resource sent by the IM client 53 is not received within a set time period.
Here, the SIP server 52 is further configured to provide the IM client 53 with the establishment, control and termination of VoIP service calls, and generate call detail records for charging.
Here, the IM client 53 initiates an instant messaging service through the XMPP server 51, and maintains a connection with the XMPP server 51 while in the IM state, and the XMPP server 51 is further configured to support an online state of a user of the IM client 53.
For example, when a user of the IM client 53 in the IM state finds that a buddy is online and initiates a VoIP service to the buddy in advance, the IM client 53 in the IM state sends a request for requesting SIP account resources to the XMPP server 51, logs in the SIP server 52 according to the temporary SIP account resources acquired from the XMPP server 51, and notifies an opposite-end IM client to log in the SIP server 52 through an XMPP message carrying the VoIP service request, the opposite-end IM client sends a request for requesting SIP account resources to the XMPP server 51, and sends an XMPP message carrying a success of logging in the SIP server 52 to the IM client 53 in the IM state after logging in the SIP server 52 according to the temporary SIP account resources acquired from the XMPP server 51 is successful. After the IM client 53 in the IM state and the opposite IM client both log in the SIP server 52, the process of performing the VoIP service by the IM client 53 in the IM state and the opposite IM client is the same as the process of performing the SIP VoIP service in the prior art, and details are not repeated here. .
Fig. 6 is a schematic diagram of the composition structure of the instant messaging system of the present invention, as shown in fig. 6, the system includes an XMPP server 61, an SIP server 62, an application server 63, and an IM client 64; wherein,
the XMPP server 61 is configured to provide an instant messaging service for the IM client 64;
the SIP server 62 is configured to provide VoIP service for the IM client 64, and send status information of VoIP service of the IM client 64 to the application server 63;
the application server 63 is configured to allocate a temporary SIP account resource to the IM client 64; when the IM client 64 is determined to exit the VoIP service, releasing the temporary SIP account resources allocated to the IM client 64;
the IM client 64 is configured to send a request for requesting SIP account resources to the application server 63, and send a request for releasing SIP account resources to the application server 63.
Here, the SIP server 62 is configured to provide the IM client 64 with the establishment, control, and termination of VoIP service calls, and generate call detail records for billing purposes.
Here, the constituent structure of the application server 63 is the same as that of the application server in fig. 4; the IM client 64 has the same structure as that of the IM client in fig. 3.
Here, the application server 63 can be understood as a logical concept, which is mainly used for managing SIP account resources, and can share the same physical server with the XMPP server 61.
Here, the server 63 is, in particular for,
when receiving a request for releasing the SIP account resources sent by the IM client 64, determining that the IM client 64 exits the VoIP service, and releasing the temporary SIP account resources allocated to the IM client 64;
receiving the status information of the VoIP service periodically sent by the SIP server 62, determining that the IM client 64 ends the VoIP service according to the status information of the VoIP service, and determining that the IM client 64 exits the VoIP service when not receiving the request for releasing the SIP account resource sent by the IM client 64 within a set time period, and releasing the temporary SIP account resource allocated to the IM client 64.
Here, after the VoIP service is finished, the application server 63 can timely release the SIP account resource that the IM client 64 does not actively request to release, so as to prevent the termination of the VoIP call and the VoIP conference caused by the crash of the client application of the general user or a network problem, but the SIP account resource is not released.
It will be apparent to those skilled in the art that the processing units or steps of the present invention described above may be implemented by a general-purpose server, centralized on a single server or distributed over a network formed by a plurality of servers, or alternatively implemented by program code executable by the servers, so that they may be respectively fabricated as integrated circuit modules, or multiple units or steps of them may be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (15)

1. An instant messaging method, the method comprising:
when the IM client in the instant messaging IM state determines to initiate VoIP service, temporary SIP account resources are obtained from the server, and the SIP server is logged in according to the temporary SIP account resources to initiate VoIP service.
2. The method of claim 1, further comprising:
and when the server determines that the IM client exits the VoIP service, the server releases the temporary SIP account resources distributed for the IM client.
3. The method of claim 2, wherein the server determining that the IM client is out of VoIP service comprises:
and when the server receives a request for releasing SIP account resources sent by the IM client, determining that the IM client exits from the VoIP service.
4. The method of claim 2, wherein the server determining that the IM client is out of VoIP service comprises:
the server receives the state information of the VoIP service sent by the SIP server at regular time, determines that the IM client end finishes the VoIP service according to the state information of the VoIP service, and determines that the IM client end quits the VoIP service when not receiving the request for releasing the SIP account resource sent by the IM client end in a set time period.
5. The method of claim 1, further comprising:
the IM client initiates instant communication service through an extensible message processing field protocol XMPP server and keeps the connection with the XMPP server when in an IM state.
6. The method as claimed in claim 1, wherein when the IM client in the IM state determines to initiate the VoIP service, the method obtains a temporary SIP account resource from the server, and logs in the SIP server according to the temporary SIP account resource, including:
the method comprises the steps that when an IM client in an IM state determines to initiate VoIP service, a request for applying for SIP account resources is sent to a server, the SIP server is logged in according to temporary SIP account resources acquired from the server, an opposite-end IM client is informed to log in the SIP server through XMPP messages carrying VoIP service requests, the opposite-end IM client sends the request for applying for the SIP account resources to the server, and after the SIP server is successfully logged in according to the temporary SIP account resources acquired from the server, XMPP messages carrying the success of logging in the SIP server by the opposite-end IM client are sent to the IM client in the IM state.
7. The method according to any of claims 1 to 6, wherein the server is an XMPP server or a specially configured server for managing SIP account resources.
8. An Instant Messaging (IM) client, comprising a sending unit, a receiving unit and a login unit, wherein:
a sending unit, configured to send a request for applying for a session initiation protocol SIP account resource to a server when the IM client needs to initiate a VoIP service in an IM state;
a receiving unit, configured to receive a temporary SIP account resource allocated by an SIP server to the IM client;
and the login unit is used for logging in the SIP server according to the temporary SIP account resources and initiating VoIP service.
9. The instant messaging client of claim 8, wherein the sending unit is further configured to send a request for releasing SIP account resources to the server when the IM client exits VoIP service.
10. A server, characterized in that the server comprises a receiving unit, a distributing unit and a sending unit; wherein,
the receiving unit is used for receiving an SIP account resource application request sent by the IM client;
the distribution unit is used for distributing temporary SIP account resources to the IM client according to the SIP account resource request;
and the sending unit is used for sending the temporary SIP account resources to the IM client.
11. The server according to claim 10, wherein the server further comprises a determining unit and a releasing unit, wherein:
the determining unit is used for triggering the releasing unit when determining that the IM client exits the VoIP service;
and the release unit is used for releasing the temporary SIP account resources distributed to the IM client.
12. The server according to claim 11,
the receiving unit is also used for receiving a request for releasing SIP account resources sent by the IM client;
the determining unit is further configured to determine that the IM client quits the VoIP service when the receiving unit receives the request for releasing the SIP account resource sent by the IM client.
13. The server according to claim 11,
the receiving unit is further configured to receive state information of the VoIP service periodically sent by the SIP server;
the determining unit is further configured to determine that the IM client ends the VoIP service according to the status information of the VoIP service received by the receiving unit, and determine that the IM client exits the VoIP service when a request for releasing SIP account resources, sent by the IM client, is not received within a set time period.
14. An instant messaging system is characterized in that the system comprises an extensible message processing field protocol XMPP server, a session initiation protocol SIP server and an IM client; wherein,
the XMPP server is used for providing instant messaging service for the IM client; distributing temporary SIP account resources for the IM client; when the IM client is determined to exit the VoIP service, releasing temporary SIP account resources distributed to the IM client;
the SIP server is used for providing VoIP service for the IM client and sending the state information of the VoIP service of the IM client to the XMPP server;
the IM client is used for sending a request for applying SIP account resources to the XMPP server and sending a request for releasing the SIP account resources to the XMPP server.
15. An instant messaging system is characterized in that the system comprises an extensible message processing field protocol XMPP server, a session initiation protocol SIP server, an application server and an IM client; wherein,
the XMPP server is used for providing instant messaging service for the IM client;
the SIP server is used for providing VoIP service for the IM client and sending the state information of the VoIP service of the IM client to the application server;
the application server is used for allocating temporary SIP account resources to the IM client; when the IM client is determined to exit the VoIP service, releasing temporary SIP account resources distributed to the IM client;
and the IM client is used for sending a request for applying SIP account resources to the application server and sending a request for releasing the SIP account resources to the application server.
CN201310182818.5A 2013-05-16 2013-05-16 A kind of instant communication method, client, server and system Expired - Fee Related CN104168176B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310182818.5A CN104168176B (en) 2013-05-16 2013-05-16 A kind of instant communication method, client, server and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310182818.5A CN104168176B (en) 2013-05-16 2013-05-16 A kind of instant communication method, client, server and system

Publications (2)

Publication Number Publication Date
CN104168176A true CN104168176A (en) 2014-11-26
CN104168176B CN104168176B (en) 2018-08-24

Family

ID=51911819

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310182818.5A Expired - Fee Related CN104168176B (en) 2013-05-16 2013-05-16 A kind of instant communication method, client, server and system

Country Status (1)

Country Link
CN (1) CN104168176B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108718325A (en) * 2018-07-20 2018-10-30 携程旅游信息技术(上海)有限公司 Telephone outbound call method, system, equipment and storage medium based on dynamic registration
CN110505356A (en) * 2019-08-26 2019-11-26 中国联合网络通信集团有限公司 System is established in call method for building up and call
CN110505355A (en) * 2019-08-26 2019-11-26 中国联合网络通信集团有限公司 A kind of method and system for establishing Three-Way Calling

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020118809A1 (en) * 2000-12-01 2002-08-29 Alfred Eisenberg Initiation and support of video conferencing using instant messaging
CN1787492A (en) * 2004-12-06 2006-06-14 北京掌迅互动信息技术有限公司 Mobile instant communication method and connecting mode of server and client terminal thereof
CN1976434A (en) * 2006-12-01 2007-06-06 王先来 Method and system for realizing on-line video-frequency conference
CN101131403A (en) * 2006-08-23 2008-02-27 王悦 Digital oscillograph and its waveshape displaying method
CN101167328A (en) * 2005-04-22 2008-04-23 汤姆森特许公司 Safety anonymous WLAN access mechanism
US7526563B2 (en) * 2004-02-27 2009-04-28 Nokia Corporation Interworking gateway and method
CN101755440A (en) * 2007-07-27 2010-06-23 索尼公司 Temporary connection number management system, terminal, temporary connection number management method, and temporary connection number management program
WO2011098138A1 (en) * 2010-02-12 2011-08-18 Telefonaktiebolaget Lm Ericsson (Publ) Ip multimedia subsystem user identity handling method and apparatus
CN102340456A (en) * 2010-07-20 2012-02-01 中兴通讯股份有限公司 Communication method of intercommunication gateway system and intercommunication gateway system
CN102420819A (en) * 2011-11-28 2012-04-18 华为技术有限公司 User registering method, interaction method and associated device
CN102891831A (en) * 2011-07-20 2013-01-23 中兴通讯股份有限公司 Implement method of multimedia conferencing service and related equipment

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020118809A1 (en) * 2000-12-01 2002-08-29 Alfred Eisenberg Initiation and support of video conferencing using instant messaging
US7526563B2 (en) * 2004-02-27 2009-04-28 Nokia Corporation Interworking gateway and method
CN1787492A (en) * 2004-12-06 2006-06-14 北京掌迅互动信息技术有限公司 Mobile instant communication method and connecting mode of server and client terminal thereof
CN101167328A (en) * 2005-04-22 2008-04-23 汤姆森特许公司 Safety anonymous WLAN access mechanism
CN101131403A (en) * 2006-08-23 2008-02-27 王悦 Digital oscillograph and its waveshape displaying method
CN1976434A (en) * 2006-12-01 2007-06-06 王先来 Method and system for realizing on-line video-frequency conference
CN101755440A (en) * 2007-07-27 2010-06-23 索尼公司 Temporary connection number management system, terminal, temporary connection number management method, and temporary connection number management program
WO2011098138A1 (en) * 2010-02-12 2011-08-18 Telefonaktiebolaget Lm Ericsson (Publ) Ip multimedia subsystem user identity handling method and apparatus
CN102340456A (en) * 2010-07-20 2012-02-01 中兴通讯股份有限公司 Communication method of intercommunication gateway system and intercommunication gateway system
CN102891831A (en) * 2011-07-20 2013-01-23 中兴通讯股份有限公司 Implement method of multimedia conferencing service and related equipment
CN102420819A (en) * 2011-11-28 2012-04-18 华为技术有限公司 User registering method, interaction method and associated device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李冰: "《基于SIP与XMPP的统一通信客户端平台的设计与实现》", 《中国知网》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108718325A (en) * 2018-07-20 2018-10-30 携程旅游信息技术(上海)有限公司 Telephone outbound call method, system, equipment and storage medium based on dynamic registration
CN108718325B (en) * 2018-07-20 2020-10-30 携程旅游信息技术(上海)有限公司 Telephone calling-out method, system, equipment and storage medium based on dynamic registration
CN110505356A (en) * 2019-08-26 2019-11-26 中国联合网络通信集团有限公司 System is established in call method for building up and call
CN110505355A (en) * 2019-08-26 2019-11-26 中国联合网络通信集团有限公司 A kind of method and system for establishing Three-Way Calling
CN110505356B (en) * 2019-08-26 2021-04-02 中国联合网络通信集团有限公司 Call establishment method and call establishment system

Also Published As

Publication number Publication date
CN104168176B (en) 2018-08-24

Similar Documents

Publication Publication Date Title
CN108881783B (en) Method and device for realizing multi-person conversation, computer equipment and storage medium
EP2452487B1 (en) Controlling multi-party communications
CN102257791B (en) Efficient and on demand convergence of audio and non-audio portions of a communication session for phones
US9351308B2 (en) Multi-modal communication priority over wireless networks
CN102281364B (en) Call center system and method for accessing call center system
US10764430B2 (en) Calling an unready terminal
CN104125540B (en) Multi-party call terminal and the method that one-to-one call is converted to from multi-party call
CN102958107B (en) A kind of method of capability query, communication terminal and application server
JP2008104173A (en) Centralized controller for distributed processing of telecommunication feature
GB0506285D0 (en) Telecommunications system and method
WO2013143310A1 (en) Call processing method, call control device, automatic call distribution device and agent terminal
WO2018006678A1 (en) Voice call method and apparatus
CN105577605A (en) Method and server for adopting two-way REST based on WebSocket protocol in web real-time communication
CN111314647A (en) Electronic whiteboard control method, mobile terminal and electronic whiteboard system
CN104168176B (en) A kind of instant communication method, client, server and system
US9473316B2 (en) Resource consumption reduction via meeting affinity
US7643473B2 (en) Instant messaging with audio connection formation
CN101217599B (en) A logging on method from attendant console user end to server
US9003047B2 (en) Optimizing electronic communication channels
CN105516123A (en) Method for communication between VOIP (Voice over Internet Protocol) and telephone network telephone and PCLS
CN115037725B (en) Account distribution method and device, storage medium and electronic equipment
CN115865870A (en) Audio and video intercommunication method and device, electronic equipment and storage medium
CN115277569A (en) Multimedia communication method, system, related equipment and storage medium
TW201436597A (en) Multi-modal communication priority over wireless networks

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180824

CF01 Termination of patent right due to non-payment of annual fee