CN104168176B - A kind of instant communication method, client, server and system - Google Patents

A kind of instant communication method, client, server and system Download PDF

Info

Publication number
CN104168176B
CN104168176B CN201310182818.5A CN201310182818A CN104168176B CN 104168176 B CN104168176 B CN 104168176B CN 201310182818 A CN201310182818 A CN 201310182818A CN 104168176 B CN104168176 B CN 104168176B
Authority
CN
China
Prior art keywords
clients
server
sip
account number
xmpp
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.)
Active
Application number
CN201310182818.5A
Other languages
Chinese (zh)
Other versions
CN104168176A (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
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of methods of instant messaging, when IM clients in instant messaging (IM) state determine the networking telephone (VoIP) business of initiation, interim Session initiation Protocol (SIP) account number resource is obtained from server, and sip server is logged according to the interim SIP account number resources, initiate VoIP business.The present invention further simultaneously discloses a kind of instant communication client, server and system.Technical solution using the present invention, the load of sip server in the instant communicating system that scalable message processing Presence Protocol (XMPP) and SIP are combined, the load of client can be reduced, the availability for improving sip server avoids the waste of system resource.

Description

A kind of instant communication method, client, server and system
Technical field
The present invention relates to mechanics of communication more particularly to a kind of instant communication method, client, server and systems.
Background technology
Instant messaging (IM, Instant Messenger) is a kind of business of instant exchange message Internet-based, Such as:Baidu Hi, MSN, QQ, ant are proud etc..Session initiation Protocol (SIP, The Session Initiation Protocol), can Extension Message Processing Presence Protocol (XMPP, The Extensible Messaging and Presence Protocol) all belongs to In the agreement of application layer, it is mainly used to send voice, video and instant messaging on the internet.Although be used alone SIP and In XMPP any type agreement can realize support voice and video instant communicating system, but SIP and XMPP both Agreement still emphasizes particularly on different fields.XMPP is that open extensible markup language (XML, Extensible Markup Language) is assisted View is mainly used to realize real-time Message Passing, presentation and request/response traffic.The networking telephone (VoIP, Voice over Internet Protocol) it is one kind based on IP phone, and release the technology of corresponding value-added service.SIP is referred to as The signaling protocol of VoIP can handle the termination of the control and calling of foundation, the calling of VoIP service calls, and can generate Call detail record (CDR, Call Detail Record) is used for charging.
Currently, the instant communicating system of voice and video telephone is supported to have the system that XMPP and SIP are combined, it is such to be When communication system, using XMPP realize IM functions, and pass through XMPP support friend state acquisition;Audio and video are realized using SIP Call, meeting.The instant communicating system takes full advantage of the respective advantages of XMPP and SIP, and IM may be implemented and exchanged with public The audio and video phone of telephone network (PSTN, Public Switched Telephone Network) telephone intercommunication, meeting.But Be, the frequency that audio and video phone based on SIP, meeting occur unlike IM is so high, client but will always with sip server Heartbeat, Flushing status are kept, this causes the unnecessary waste of resource shared by server end and client to a certain extent.
Invention content
In view of this, the main purpose of the present invention is to provide a kind of instant communication method, client, server and being System, can reduce the load of sip server and the load of client in the instant communicating system that XMPP and SIP are combined, and improve The availability of sip server.
In order to achieve the above objectives, the technical proposal of the invention is realized in this way:
The present invention provides a kind of instant communication method, the method includes:
When IM clients in IM states determine initiation VoIP business, interim SIP account number resources are obtained from server, And sip server is logged according to the interim SIP account number resources, initiate VoIP business.
In said program, the method further includes:
When the server determines that the IM clients exit VoIP business, it is released to the interim of the IM clients distribution SIP account number resources.
In said program, the server determines that the IM clients exit VoIP business, including:
When the server receives the request for the release SIP account number resources that the IM clients are sent, the IM is determined Client exits VoIP business.
In said program, the server determines that the IM clients exit VoIP business, including:
The server receives the status information for the VoIP business that sip server timing is sent, according to the VoIP industry The status information of business determines that the IM clients terminate VoIP business, and does not receive the IM clients within the period of setting When the request of the release SIP account number resources of transmission, determine that the IM clients exit VoIP business.
In said program, the method further includes:
The IM clients by XMPP server initiate instant messaging business, and when in IM states keep with it is described The connection of XMPP server.
In said program, when the IM clients in IM states determine initiation VoIP business, face from server acquisition When SIP account number resources, and sip server is logged according to the interim SIP account number resources, including:
When the IM clients in IM states determine initiation VoIP business, application SIP accounts are sent to the server The request of number resource logs in sip server according to the interim SIP account number resources obtained from the server, and passes through carrying There are the XMPP message notice opposite end IM clients of VoIP service requests to log in sip server, the opposite end IM clients are to described Server sends the request of application SIP account number resources, and institute is logged according to the interim SIP account number resources obtained from the server After stating sip server success, carries the opposite end IM clients to the IM clients transmission in IM states and log in SIP The successful XMPP message of server.
In said program, the server is XMPP server or the clothes for managing SIP account number resources being specially arranged Business device.
The present invention also provides a kind of instant communication client, the instant messaging IM clients include transmission unit, connect It receives unit and logs in unit, wherein:
Transmission unit, when for needing to initiate networking telephone VoIP business under being in IM states in the IM clients, to clothes The request for device transmission application Session initiation Protocol SIP account number resources of being engaged in;
Receiving unit, for receiving the interim SIP account number resources that sip server is IM clients distribution;
Unit is logged in, for logging in the sip server according to the interim SIP account number resources, and initiates VoIP industry Business.
In said program, the transmission unit is additionally operable to when the IM clients exit VoIP business, to the service Device sends the request of release SIP account number resources.
The present invention also provides a kind of server, the server includes receiving unit, allocation unit and transmission unit;Its In,
The receiving unit, the application SIP account number resource requests for receiving the transmission of IM clients;
The allocation unit, for being that the IM clients distribute interim SIP accounts according to the SIP account numbers resource request Number resource;
The transmission unit, for sending the interim SIP account number resources to the IM clients.
In said program, the server further includes determination unit and releasing unit, wherein:
The determination unit triggers the releasing unit when for determining that the IM clients exit VoIP business;
The releasing unit, the interim SIP account number resources for being released to the IM clients distribution.
In said program, the receiving unit is additionally operable to receive the release SIP account number resource requests that IM clients are sent; The determination unit is additionally operable to receive asking for the release SIP account number resources that the IM clients are sent in the receiving unit When asking, determine that the IM clients exit VoIP business.
In said program, the receiving unit is additionally operable to receive the shape for the VoIP business that the sip server timing is sent State information;The determination unit, the status information for being additionally operable to the VoIP business received according to the receiving unit determine The IM clients terminate VoIP business, and do not receive the release SIP accounts of the IM clients transmission within the period of setting When the request of number resource, determine that the IM clients exit VoIP business.
The present invention also provides a kind of instant communicating systems, and the system comprises XMPP server, sip server and IM visitors Family end;Wherein,
The XMPP server, for providing instant messaging business for the IM clients;And it is the IM clients Distribute interim SIP account resources;When determining that the IM clients exit VoIP business, it is released to the IM clients distribution Interim SIP account number resources;
The sip server, for providing VoIP business for the IM clients, described in XMPP server transmission The status information of the VoIP business of IM clients;
The IM clients, for sending application SIP account number resource requests to the XMPP server, and, to described XMPP server sends release SIP account number resource requests.
The present invention also provides a kind of instant communicating systems, and the system comprises XMPP server, sip server, applications Server and IM clients;Wherein,
The XMPP server, for providing instant messaging business for the IM clients;
The sip server, for providing VoIP business for the IM clients, described in application server transmission The status information of the VoIP business of IM clients;
The application server, for distributing interim SIP account resources for the IM clients;Determining the IM visitors When VoIP business is exited at family end, it is released to the interim SIP account number resources of the IM clients distribution;
The IM clients, for sending application SIP account number resource requests to the application server, and, to described Application server sends release SIP account number resource requests.
Instant communication method, client, server and system provided by the present invention are in the IM of instant messaging IM states When client determines initiation networking telephone VoIP business, interim Session initiation Protocol SIP account number resources are obtained from server, and Sip server is logged according to the interim SIP account number resources, initiates VoIP business.In this way, present invention reduces XMPP and The loads such as the CPU of sip server, memory and network in the instant communicating system that SIP is combined, to improve SIP service The availability of device avoids the waste of system resource caused by signal resource ineffective occupation overlong time.Also, this hair It is bright to also reduce the loads such as client CPU, memory and network, Jin Eryan in the instant communicating system that XMPP and SIP are combined The stand-by time for having grown the terminal device of client also reduces the network flow consumption of client.
In addition, in instant communicating system of the present invention, supplements of the SIP as XMPP is only in need when establishing VoIP business, IM clients just use interim SIP account resources to server application;After VoIP service endings, server discharges SIP in time Account resource can realize that the minimum of the related resource of sip server in the system that XMPP and SIP are combined uses;Only exist When needing to establish VoIP business, IM clients just log in sip server, and other times are the company maintained with XMPP server It connects, to reduce the load at sip server end and IM clients, and then realizes SIP in the system that XMPP and SIP are combined The load of server and IM clients minimizes.
Since the frequency that user carries out VoIP business is more much lower than the frequency of user's progress IM business, using traditional side Formula, sip server need to support user's access amount with XMPP server equivalent amount;And technical solution using the present invention, Only need user's access amount of support while concurrent VoIP service request number of levelss.Such as:Certain system has 10,000 IM to use Family still learns that the concurrency of VoIP business does not exceed the 10% of IM user volumes according to historical empirical data, then, SIP clothes Business device only needs user's access amount of support 1,000 can meet demand.Therefore, the present invention largely avoided system resource Waste.
Description of the drawings
Fig. 1 is the implementation process schematic diagram of instant communication method of the present invention;
Fig. 2 is the flow that instant communication client of embodiment of the present invention A calls instant communication client B by VoIP modes Schematic diagram;
Fig. 3 is the composed structure schematic diagram of instant communication client of the present invention;
Fig. 4 is the composed structure schematic diagram of server of the present invention;
Fig. 5 is the composed structure schematic diagram of instant communicating system of the present invention;
Fig. 6 is the composed structure schematic diagram of another instant communicating system of the present invention.
Specific implementation mode
Below in conjunction with the accompanying drawings and specific embodiment the present invention is further described in more detail.
Fig. 1 is the implementation process schematic diagram of instant communication method of the present invention, as shown in Figure 1, this approach includes the following steps:
Step 101:When IM clients in IM states determine initiation VoIP business, interim SIP is obtained from server Account number resource;
Step 102:Sip server is logged according to the interim SIP account number resources, initiates VoIP business.
Further, the method further includes:
When the server determines that the IM clients exit VoIP business, it is released to the interim of the IM clients distribution SIP account number resources.
Specifically, the server determines that the IM clients exit VoIP business, including:
When the server receives the request for the release SIP account number resources that the IM clients are sent, the IM is determined Client exits VoIP business.
Specifically, the server determines that the IM clients exit VoIP business, including:
The server receives the status information for the VoIP business that sip server timing is sent, according to the VoIP industry The status information of business determines that the IM clients terminate VoIP business, and does not receive the IM clients within the period of setting When the request of the release SIP account number resources of transmission, determine that the IM clients exit VoIP business.
Further, the method further includes:
The IM clients by XMPP server initiate instant messaging business, and when in IM states keep with it is described The connection of XMPP server.
Specifically, the IM clients in IM states determine when initiating VoIP business, obtained temporarily from server SIP account number resources, and sip server is logged according to the interim SIP account number resources, including:
When the IM clients in IM states determine initiation VoIP business, application SIP accounts are sent to the server The request of number resource logs in sip server according to the interim SIP account number resources obtained from the server, and passes through carrying There are the XMPP message notice opposite end IM clients of VoIP service requests to log in sip server, the opposite end IM clients are to described Server sends the request of application SIP account number resources, and institute is logged according to the interim SIP account number resources obtained from the server After stating sip server success, carries the opposite end IM clients to the IM clients transmission in IM states and log in SIP The successful XMPP message of server.
Here, after the IM clients in IM states log on to sip server with opposite end IM clients, IM states are in IM clients carry out the process of VoIP business and the mistake in the prior art for carrying out SIP VoIP business with opposite end IM clients Journey is consistent, and details are not described herein.
Here, the server is XMPP server or the server for managing SIP account number resources being specially arranged.
Here, IM clients are facing for client distribution without being manually entered server when logging in sip server When SIP account resources account number and password, by IM clients according to server be the IM clients distribution interim SIP accounts Number resource automatically logs into sip server.
Fig. 2 is the flow signal that IM client users A of the embodiment of the present invention calls IM client users B by VoIP modes Figure, the flow include the following steps:
Step 201:IM client users A has found that IM client users B is online, and initiates VoIP with user B in advance Voice call request.
Here, the presence of the user B is supported by XMPP server, concrete methods of realizing and prior art phase Together, details are not described herein.
Step 202:The IM user end to server of user A sends the XMPP message for carrying application SIP account number resources;Simultaneously The XMPP message for carrying VoIP voice call requests is sent to the IM clients of user B.
Here, the server is XMPP server or the server for managing SIP account number resources being specially arranged.
Step 203:After the IM clients of user A obtain interim SIP account number resources from server, according to the SIP accounts Number resource logs in sip server.
Step 204:The VoIP audio calls that carry that the IM clients of user B receive the IM clients transmission of user A are asked It is similar with the operation of IM clients of user A after the XMPP message asked, it obtains interim SIP account numbers resource from server and steps on Record sip server.
Here, the SIP account numbers resource specifically includes account and password;The IM clients of the user A are obtained from server Interim SIP accounts, password is taken from the IM clients of the user B to obtain interim SIP account numbers, password from server different.
Step 205:After the IM clients of user B log in sip server success, the IM of the IM clients of user B to user A Client sends the IM clients login successful XMPP message of sip server for carrying user B.
Here, it after the completion of step 205, that is, completes the acquisition of the SIP account number resources of the IM clients of user A, log in, with And acquisition, the login of the SIP account number resources of the IM clients of user B.
Step 206:SIP VoIP audio calls flow in the prior art and user B can be used in the IM clients of user A Establish VoIP voice call services.
Here, after the IM clients of user A log on to sip server with the IM clients of user B, the IM visitors of user A The IM clients of family end and user B carry out the process of VoIP voice call services and progress SIP VoIP voices in the prior art The process of call business is consistent, and details are not described herein.
Step 207:After VoIP voice call services, the IM clients of user A and the IM clients of user B to Server sends the XMPP message for carrying release SIP account number resource requests, so that server is released to user A, user's B distribution Interim SIP account number resources.
Here, if user B is common Public Switched Telephone Network (PSTN, Public Switched Telephone Network) telephone subscriber, there is no installation IM clients, then, if user A converses with user B in advance, the IM visitors of user A Family end operates more simple, it is only necessary to server application SIP account number resources, and according to the SIP account numbers that server is its distribution Resource logs in sip server;After user A and user's B end of conversations, the IM user end to server transmission of user A, which carries, to be released The XMPP message of SIP account number resource requests is put, so that server is released to the interim of the IM clients distribution of the user A SIP account number resources.
Here, if user A carries out VoIP convention businesses with user B in advance, the IM clients of user A need to take by XMPP Device transmission invitation information be engaged in extremely using the IM clients of the user B of IM clients of the same race, the IM clients of user A and user The IM clients of B are both needed to send application SIP account number resources to server, and are respectively the SIP account numbers of its distribution according to server Resource logs in sip server, for other participants, using traditional flow.
About the XMPP message format in above-mentioned interactive process, each system can be with self-defining, it is only necessary to receiving-transmitting sides Uniform format can be met the requirements.For example, VoIP invitation message can be used with " voip:// " beginning text formatting.
Fig. 3 is the composed structure schematic diagram of instant communication client of the present invention, as shown in figure 3, the instant messaging IM is objective Family end includes transmission unit 31, receiving unit 32 and logs in unit 33, wherein:
Transmission unit 31, when for needing to initiate networking telephone VoIP business under being in IM states in the IM clients, to Server sends the request of application Session initiation Protocol SIP account number resources;
Receiving unit 32, for receiving the interim SIP account number resources that sip server is IM clients distribution;
Unit 33 is logged in, for logging in the sip server according to the interim SIP account number resources, and initiates VoIP Business.
Further, the transmission unit 31 is additionally operable to when the IM clients exit VoIP business, to the service Device sends the request of release SIP account number resources.
It will be appreciated by those skilled in the art that managing the realization work(of unit everywhere in instant communication client shown in Fig. 3 The associated description of instant communication method above and embodiment can be can refer to and understood.It will be appreciated by those skilled in the art that Fig. 3 Shown in the function of each processing unit can be realized by running on the program on processor in instant communication client, can also lead to It crosses specific logic circuit and realizes.
Fig. 4 be server of the present invention composed structure schematic diagram, as shown in figure 4, the server include receiving unit 41, Allocation unit 42 and transmission unit 43;Wherein,
The receiving unit 41, the application SIP account number resource requests for receiving the transmission of IM clients;
The allocation unit 42, for being that the IM clients distribute interim SIP according to the SIP account numbers resource request Account number resource;
The transmission unit 43, for sending the interim SIP account number resources to the IM clients.
Further, the server further includes determination unit 44 and releasing unit 45, wherein:
The determination unit 44 triggers the release for determining whether the IM clients exit VoIP business when being Unit;
The releasing unit 45, the interim SIP account number resources for being released to the IM clients distribution.
Further, the receiving unit 41 is additionally operable to receive the release SIP account number resource requests that IM clients are sent;
Correspondingly, the determination unit 44, is additionally operable to receive what the IM clients were sent in the receiving unit 41 When discharging SIP account number resource requests, determine that the IM clients exit VoIP business.
Further, the receiving unit 41 is additionally operable to receive the shape for the VoIP business that the sip server timing is sent State information;
Correspondingly, the determination unit 44, is additionally operable to the shape of the VoIP business received according to the receiving unit State information determines that the IM clients terminate VoIP business, and does not receive what the IM clients were sent within the period of setting When discharging the request of SIP account number resources, determine that the IM clients exit VoIP business.
Here, the server can be XMPP server or the service for managing SIP account number resources being specially arranged Device, for example, it is described be specially arranged for manage the server of SIP account number resources can be application server.
It will be appreciated by those skilled in the art that the realization function of managing unit everywhere in server shown in Fig. 4 can refer to Above the associated description of instant communication method and embodiment and understand.It will be appreciated by those skilled in the art that clothes shown in Fig. 4 The function of each processing unit can be realized by running on the program on processor in business device, can also pass through specific logic circuit And it realizes.
Fig. 5 is the composed structure schematic diagram of instant communicating system of the present invention, as shown in figure 5, the system comprises expansible Message Processing Presence Protocol XMPP server 51, Session initiation Protocol sip server 52 and IM clients 53;Wherein,
The XMPP server 51, for providing instant messaging business for the IM clients 53;And it is IM visitors Interim SIP account resources are distributed at family end 53;When determining that the IM clients 53 exit VoIP business, it is released to the IM visitors The interim SIP account number resources that family end 53 is distributed;
The sip server 52 is sent out for providing VoIP business for the IM clients 53 to the XMPP server 51 Send the status information of the VoIP business of the IM clients 53;
The IM clients 53 apply for SIP account number resource requests for being sent to the XMPP server 51, and, to The XMPP server 51 sends release SIP account number resource requests.
Specifically, the XMPP server 51 is additionally operable to,
When receiving the request for the release SIP account number resources that the IM clients 53 are sent, the IM clients 53 are determined VoIP business is exited, the interim SIP account number resources that the IM clients 53 are distributed are released to;
Alternatively, the status information for the VoIP business that sip server 52 is periodically sent is received, according to the VoIP business Status information determines that the IM clients 53 terminate VoIP business, and does not receive the IM clients 53 within the period of setting When the request of the release SIP account number resources of transmission, determines that the IM clients 53 exit VoIP business, be released to the IM client The interim SIP account number resources of 53 distribution of end.
Here, the sip server 52 is additionally operable to provide foundation, the control of VoIP service calls for the IM clients 53 System and termination, and generate call detail record and be used for charging.
Here, the IM clients 53 initiate instant messaging business by XMPP server 51, and when in IM states The connection with the XMPP server 51, the XMPP server 51 is kept to be additionally operable to support that 53 user's of IM clients is online State.
For example, it when the user of the IM clients 53 in IM states has found that good friend is online, is initiated in advance to good friend When VoIP business, the IM clients 53 in IM states send application SIP account number resources to the XMPP server 51 Request logs in sip server 52 according to the interim SIP account number resources obtained from the XMPP server 51, and passes through carrying There are the XMPP message notice opposite end IM clients of VoIP service requests to log in sip server 52, the opposite end IM clients are to institute The request that XMPP server 51 sends application SIP account number resources is stated, according to the interim SIP obtained from the XMPP server 51 After account number resource logs in the success of sip server 52, carried to the transmission of IM clients 53 in IM states described Opposite end IM clients log in 52 successful XMPP message of sip server.The IM clients 53 in IM states and opposite end IM After client logs on to sip server 52, the IM clients 53 in IM states carry out VoIP business with opposite end IM clients Process it is consistent with the progress process of SIP VoIP business in the prior art, details are not described herein..
Fig. 6 is the composed structure schematic diagram of instant communicating system of the present invention, as shown in fig. 6, the system comprises XMPP clothes Business device 61, sip server 62, application server 63 and IM clients 64;Wherein,
The XMPP server 61, for providing instant messaging business for the IM clients 64;
The sip server 62 is sent out for providing VoIP business for the IM clients 64 to the application server 63 Send the status information of the VoIP business of the IM clients 64;
The application server 63, for distributing interim SIP account resources for the IM clients 64;Described in determination When IM clients 64 exit VoIP business, it is released to the interim SIP account number resources that the IM clients 64 are distributed;
The IM clients 64 apply for SIP account number resource requests for being sent to the application server 63, and, to The application server 63 sends release SIP account number resource requests.
Here, the sip server 62, foundation, control for providing VoIP service calls for the IM clients 64 And termination, and generate call detail record and be used for charging.
Here, the composed structure of the application server 63 is identical as the composed structure of the application server in Fig. 4;It is described The composed structure of IM clients 64 is identical as the composed structure of IM clients in Fig. 3.
Here, the application server 63 can be regarded as concept in logic, be mainly used for the management of SIP account number resources, Same physical server can be enjoyed with XMPP server 61 together.
Here, the server 63, is specifically used for,
When receiving the request for the release SIP account number resources that the IM clients 64 are sent, the IM clients 64 are determined VoIP business is exited, the interim SIP account number resources that the IM clients 64 are distributed are released to;
The status information for receiving the VoIP business that sip server 62 is periodically sent, according to the state of the VoIP business Information determines that the IM clients 64 terminate VoIP business, and does not receive the IM clients 64 within the period of setting and send Release SIP account number resources request when, determine that the IM clients 64 exit VoIP business, be released to the IM clients 64 The interim SIP account number resources of distribution.
Here, after VoIP service endings, application server 63 can discharge IM clients 64 in time does not ask actively The SIP account number resources for asking release, with prevent the client application of ordinary user collapse or network problem caused by VoIP exhale The case where crying, VoIP meetings termination, but not discharging SIP account number resources.
Obviously, those skilled in the art should be understood that unit or each step are managed everywhere in the above-mentioned present invention to be used General server is realized, can be concentrated on single server, or be distributed in the net that multiple servers are formed On network, optionally, it can be realized with the program code that server can perform, it is thus possible to which they are fabricated to each A integrated circuit modules, or by them multiple units or step be fabricated to single integrated circuit module and realize.In this way, The present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.

Claims (15)

1. a kind of instant communication method, which is characterized in that the method includes:
When IM clients in instant messaging IM states determine initiation networking telephone VoIP business, protected from the IM clients The scalable message processing Presence Protocol XMPP server for holding connection obtains interim Session initiation Protocol SIP account number resources, and Sip server is logged according to the interim SIP account number resources, initiates VoIP business.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
When the XMPP server determines that the IM clients exit VoIP business, it is released to the interim of the IM clients distribution SIP account number resources.
3. according to the method described in claim 2, it is characterized in that, the XMPP server determines that the IM clients exit VoIP business, including:
When the XMPP server receives the request for the release SIP account number resources that the IM clients are sent, the IM is determined Client exits VoIP business.
4. according to the method described in claim 2, it is characterized in that, the XMPP server determines that the IM clients exit VoIP business, including:
The XMPP server receives the status information for the VoIP business that sip server timing is sent, according to the VoIP industry The status information of business determines that the IM clients terminate VoIP business, and does not receive the IM clients within the period of setting When the request of the release SIP account number resources of transmission, determine that the IM clients exit VoIP business.
5. according to the method described in claim 1, it is characterized in that, the method further includes:
The IM clients by scalable message handle Presence Protocol XMPP server initiate instant messaging business, and in The connection with the XMPP server is kept when IM states.
6. according to the method described in claim 1, it is characterized in that, the IM clients in IM states determine and initiate VoIP When business, the XMPP server of connection is kept to obtain interim SIP account number resources from the IM clients, and faced according to described When SIP account number resources log in sip server, including:
When the IM clients in IM states determine initiation VoIP business, application SIP accounts are sent to the XMPP server The request of number resource logs in sip server according to the interim SIP account number resources obtained from the XMPP server, and passes through Carry VoIP service requests XMPP message notice opposite end IM clients log in sip server, the opposite end IM clients to The XMPP server sends the request of application SIP account number resources, according to the interim SIP accounts obtained from the XMPP server After number resource logs in the sip server success, is sent to the IM clients in IM states and carry the opposite end IM Client logs in the successful XMPP message of sip server.
7. method according to any one of claims 1 to 6, which is characterized in that the XMPP server is for managing SIP The server of account number resource.
8. a kind of instant communication client, which is characterized in that the instant messaging IM clients include transmission unit, receiving unit With log in unit, wherein:
Transmission unit, for needed under being in IM states in the IM clients initiate the networking telephone VoIP business when, to it is described IM clients keep the XMPP server of connection to send the request for applying for Session initiation Protocol SIP account number resources;
Receiving unit, for receiving the interim SIP account number resources that XMPP server is IM clients distribution;
Unit is logged in, for logging in sip server according to the interim SIP account number resources, and initiates VoIP business.
9. instant communication client according to claim 8, which is characterized in that the transmission unit is additionally operable to described When IM clients exit VoIP business, the request of release SIP account number resources is sent to the XMPP server.
10. a kind of scalable message handles Presence Protocol XMPP server, which is characterized in that the IM visitors with instant messaging IM states Family end keeps connection, and the server includes receiving unit, allocation unit and transmission unit;Wherein,
The receiving unit, for when the IM clients determine initiation networking telephone VoIP business, receiving the IM client Hold the application SIP account number resource requests sent;
The allocation unit, for being that the IM clients distribute interim SIP account numbers money according to the SIP account numbers resource request Source;
The transmission unit, for sending the interim SIP account number resources to the IM clients, wherein described interim SIP account resources log in sip server for the IM clients.
11. XMPP server according to claim 10, which is characterized in that the server further includes determination unit and releases Unit is put, wherein:
The determination unit triggers the releasing unit when for determining that the IM clients exit VoIP business;
The releasing unit, the interim SIP account number resources for being released to the IM clients distribution.
12. XMPP server according to claim 11, which is characterized in that
The receiving unit is additionally operable to receive the release SIP account number resource requests that IM clients are sent;
The determination unit is additionally operable to receive the release SIP account number resources that the IM clients are sent in the receiving unit Request when, determine that the IM clients exit VoIP business.
13. XMPP server according to claim 11, which is characterized in that
The receiving unit is additionally operable to receive the status information for the VoIP business that the sip server timing is sent;
The determination unit is additionally operable to described in the status information determination of the VoIP business received according to the receiving unit IM clients terminate VoIP business, and do not receive the release SIP account numbers that the IM clients are sent within the period of setting and provide When the request in source, determine that the IM clients exit VoIP business.
14. a kind of instant communicating system, which is characterized in that the system comprises scalable message processing Presence Protocol XMPP services Device, Session initiation Protocol sip server and IM clients;Wherein,
The XMPP server keeps connecting, for providing instant messaging business for the IM clients with the IM clients; And distribute interim SIP account resources for the IM clients;When determining that the IM clients exit VoIP business, release Put the interim SIP account number resources distributed for the IM clients;
The sip server sends the IM visitors for providing VoIP business for the IM clients to the XMPP server The status information of the VoIP business at family end;
The IM clients, the XMPP server for when determining initiation networking telephone VoIP business, being connected to holding Application SIP account number resource requests are sent, and are logged according to the interim SIP account number resources of XMPP server distribution Sip server;And when VoIP business is exited in determination, release SIP account number resource requests are sent to the XMPP server.
15. a kind of instant communicating system, which is characterized in that the system comprises scalable message processing Presence Protocol XMPP services Device, Session initiation Protocol sip server, application server and IM clients;Wherein,
The XMPP server, for providing instant messaging business for the IM clients;
The sip server sends the IM visitors for providing VoIP business for the IM clients to the application server The status information of the VoIP business at family end;
The application server keeps connecting, for distributing interim SIP accounts for the IM clients with the IM clients Resource;When determining that the IM clients exit VoIP business, it is released to the interim SIP account numbers money of the IM clients distribution Source;
The IM clients, the application server for when determining initiation networking telephone VoIP business, being connected to holding Application SIP account number resource requests are sent, and are logged according to the interim SIP account number resources of application server distribution Sip server;And when VoIP business is exited in determination, release SIP account number resource requests are sent to the application server.
CN201310182818.5A 2013-05-16 2013-05-16 A kind of instant communication method, client, server and system Active 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 CN104168176A (en) 2014-11-26
CN104168176B true CN104168176B (en) 2018-08-24

Family

ID=51911819

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310182818.5A Active 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108718325B (en) * 2018-07-20 2020-10-30 携程旅游信息技术(上海)有限公司 Telephone calling-out method, system, equipment and storage medium based on dynamic registration
CN110505355B (en) * 2019-08-26 2021-03-19 中国联合网络通信集团有限公司 Method and system for establishing three-party call
CN110505356B (en) * 2019-08-26 2021-04-02 中国联合网络通信集团有限公司 Call establishment method and call establishment system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101167328A (en) * 2005-04-22 2008-04-23 汤姆森特许公司 Safety anonymous WLAN access mechanism

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7631039B2 (en) * 2000-12-01 2009-12-08 Radvision Ltd. Initiation and support of video conferencing using instant messaging
US7526563B2 (en) * 2004-02-27 2009-04-28 Nokia Corporation Interworking gateway and method
CN100452777C (en) * 2004-12-06 2009-01-14 北京掌迅互动信息技术有限公司 Mobile instant communication method and connecting mode of server and client terminal thereof
CN101131403B (en) * 2006-08-23 2011-06-08 王悦 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
KR20100042256A (en) * 2007-07-27 2010-04-23 소니 주식회사 Temporary connection number management system, terminal, temporary connection number management method, and temporary connection number management program
US8844011B2 (en) * 2010-02-12 2014-09-23 Telefonaktiebolaget L M Ericsson (Publ) IP multimedia subsystem user identity handling method and apparatus
CN102340456B (en) * 2010-07-20 2015-07-22 中兴通讯股份有限公司 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
CN102420819B (en) * 2011-11-28 2014-11-05 华为技术有限公司 User registering method, interaction method and associated device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101167328A (en) * 2005-04-22 2008-04-23 汤姆森特许公司 Safety anonymous WLAN access mechanism

Also Published As

Publication number Publication date
CN104168176A (en) 2014-11-26

Similar Documents

Publication Publication Date Title
CN106060107B (en) A kind of method and system that service request by all kinds of means is uniformly accessed into
CN102388631B (en) For setting up the system and method for session when meeting specified conditions
CN1633652B (en) Videoconference system playback controlling system, server and display method
US20180181921A1 (en) Context aware interaction
CN104125540B (en) Multi-party call terminal and the method that one-to-one call is converted to from multi-party call
CN107707868A (en) Video conference Adding Way, multiple access Conference server and video conferencing system
CN101257395A (en) System and method for supporting multimedia conference booking
CN102958107B (en) A kind of method of capability query, communication terminal and application server
CN104363407B (en) A kind of video conferencing system means of communication and related device
CN101345845A (en) Method for implementing video conference service in IMS surroundings
CN110740161B (en) System and method for adapting converged communication
WO2013143310A1 (en) Call processing method, call control device, automatic call distribution device and agent terminal
WO2019128647A1 (en) Message transmission method and device, storage medium and electronic device
CN104168176B (en) A kind of instant communication method, client, server and system
KR100614884B1 (en) Portable telephone number based Mobile Instant Messaging Servicing Method
CN104348700B (en) Method and system for issuing microblog
CN108965265A (en) A kind of chat method and system based on MQTT agreement
CN103973721B (en) Multimedia conferencing mothed of participating, control method, transmission method, apparatus and system
CN101047691B (en) Method for integral controlling subscribe
CN101321158A (en) Method, system and apparatus for limiting business resource subscription
CN109462705A (en) A kind of audio communication method and device based on channel
WO2012000222A1 (en) Method for p2p-based remote video education implemented on webpage
CN101026814A (en) Session establishment floor assignment method and system
US8949445B2 (en) Optimizing electronic communication channels
CN105516123B (en) The method and landing telephone service server of the networking telephone and telephone network telephone communication

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