CN105634911A - Session establishing method and device - Google Patents

Session establishing method and device Download PDF

Info

Publication number
CN105634911A
CN105634911A CN201410623533.5A CN201410623533A CN105634911A CN 105634911 A CN105634911 A CN 105634911A CN 201410623533 A CN201410623533 A CN 201410623533A CN 105634911 A CN105634911 A CN 105634911A
Authority
CN
China
Prior art keywords
instant communication
sip
request
session
gateway
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
CN201410623533.5A
Other languages
Chinese (zh)
Other versions
CN105634911B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410623533.5A priority Critical patent/CN105634911B/en
Publication of CN105634911A publication Critical patent/CN105634911A/en
Application granted granted Critical
Publication of CN105634911B publication Critical patent/CN105634911B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephonic Communication Services (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention discloses a session establishing method and device belonging to the internet communication field. The method comprises the steps of using a gateway device to receive an instant messaging session request sent by an instant messaging server; using the gateway deice to transform the instant messaging session request into a session initialization protocol (SIP) request signal; using the gateway device to send the SIP request signal to a SIP gateway; using the gateway device to receive a SIP acceptation signal sent by the SIP gateway; and using the gateway device to transform the SIP acceptation signal into the instant messaging acceptation information, and sending the instant messaging acceptation information to the instant messaging server. According to the present invention, the effects that when an opposite-end instant messaging client is not online, the session also can be established with a telephone terminal bound with the opposite-end instant messaging client, the audio and video conversation can be carried out, and the audio and video conversation application scenes are expanded, are realized.

Description

Session establishing method and device
Technical field
The present invention relates to field of Internet communication, particularly to a kind of session establishing method and device.
Background technology
Along with the development of Internet communication technology, people can carry out voice or video calling by instant communication client.
When user uses instant communication client A and instant communication client B to carry out voice or video calling, instant communication client A will send audio frequency and video request to instant communication server, the request of these audio frequency and video carries the identification information of instant communication client A and B, identification information according to instant communication client B is sent to instant communication client B and invites request by instant communication server, when instant communication client B accepts this invitation request, will send to instant communication server and accept request signal, this is accepted request signal and sends to instant communication client A by instant communication server, namely instant communication client A and instant communication client B establishes session link, just can be carried out the transmission of packet by this session link between instant communication client A and instant communication client B, thus the voice realized between two instant communication clients or video calling.
In the process realizing the present invention, inventor have found that prior art at least there is problems in that when instant communication client B is not online, the instant communication client A audio frequency and video sent request will do not received, cause can not setting up between instant communication client session, affect the voice and video telephone between user.
Summary of the invention
In order to solve problem of the prior art, embodiments provide a kind of session establishing method and device. Described technical scheme is as follows:
First aspect according to embodiments of the present invention, it is provided that a kind of session establishing method, for gateway device, described method includes:
Receiving the instant communication session request that instant communication server sends, the mark of active instant communication client and the mark of purpose telephone terminal are carried in the request of described instant communication session;
The request of described instant communication session is converted to SIP (SessionInitiationProtocol, conversation initialized protocol) demand signalling;
Described SIP request signaling being sent to SIP gateway, described SIP gateway is for sending described SIP request signaling to described purpose telephone terminal;
The SIP receiving the transmission of described SIP gateway accepts signaling, and it is described SIP gateway feedback when described purpose telephone terminal receives described SIP request signaling that described SIP accepts signaling;
It is that instant messaging accepts information that described SIP accepts Signalling conversion, described instant messaging is accepted information and is sent to described instant communication server; Described instant communication server is described source instant communication client and described purpose telephone terminal sets up session for accepting information according to described instant messaging.
Second aspect according to embodiments of the present invention, it is provided that a kind of session establishing method, for instant communication server, described method includes:
Sending instant communication session request to gateway device, the mark of active instant communication client and the mark of purpose telephone terminal are carried in the request of described instant communication session; Described gateway device is for, after the request of described instant communication session is converted to SIP request signaling, being sent to described purpose telephone terminal by SIP gateway by described SIP request signaling;
The instant messaging receiving the transmission of described gateway device accepts information, it is that described gateway device is converted to after the SIP receiving the transmission of described SIP gateway accepts signaling that described instant messaging accepts information, and it is that described SIP gateway feeds back to described gateway device when described telephone terminal receives described SIP request signaling that described SIP accepts signaling;
Accept information according to described instant messaging and be described source instant communication client and described purpose telephone terminal sets up session.
The third aspect according to embodiments of the present invention, it is provided that a kind of session establishing method, for gateway device, described method includes:
Receiving the SIP request signaling that SIP gateway sends, described SIP request signaling is that source telephone terminal is initiated;
It is instant communication session request by described SIP request Signalling conversion;
Sending the request of described instant communication session to instant communication server, described instant communication server is for sending voice and video telephone request according to the request of described instant communication session to purpose instant communication client;
The instant messaging receiving the transmission of described instant communication server accepts information, and it is that described purpose instant communication client accepts feedback during the request of described voice and video telephone that described instant messaging accepts information;
The information that accepted by described instant messaging is converted to SIP and accepts signaling, described SIP accepts signaling and is sent to described SIP gateway; Described SIP accepts instruction for informing built vertical session between source telephone terminal and described purpose instant communication client described in described SIP gateway.
Fourth aspect according to embodiments of the present invention, it is provided that a kind of session establishing method, for instant communication server, described method includes:
Receiving the instant communication session request that gateway device sends, the request of described instant communication session carries the mark of source telephone terminal and the mark of purpose telephone terminal; The request of described instant communication session is that the SIP request Signalling conversion that SIP gateway sends is obtained by described gateway device;
The mark of the purpose instant communication client of the identifier lookup binding according to described purpose telephone terminal;
Mark and the mark of described purpose instant communication client according to described source telephone terminal generate voice and video telephone request;
The request of described voice and video telephone is sent to described purpose instant communication client;
The instant messaging receiving described purpose instant communication client feedback accepts information;
Accept information according to described instant messaging and be described source telephone terminal and described purpose instant communication client sets up session.
The 5th aspect according to embodiments of the present invention, it is provided that a kind of session establishment device, for gateway device, described device includes:
First conversation request receiver module, for receiving the instant communication session request that instant communication server sends, the mark of active instant communication client and the mark of purpose telephone terminal are carried in the request of described instant communication session;
Conversation request modular converter, for being converted to SIP request signaling by the request of described instant communication session;
Demand signalling sending module, for described SIP request signaling being sent to SIP gateway, described SIP gateway is for sending described SIP request signaling to described purpose telephone terminal;
Accepting signaling receiver module, the SIP sent for receiving described SIP gateway accepts signaling, and it is described SIP gateway feedback when described purpose telephone terminal receives described SIP request signaling that described SIP accepts signaling;
First accepts information sending module, is that instant messaging accepts information for described SIP is accepted Signalling conversion, described instant messaging is accepted information and is sent to described instant communication server; Described instant communication server is described source instant communication client and described purpose telephone terminal sets up session for accepting information according to described instant messaging.
The 6th aspect according to embodiments of the present invention, it is provided that a kind of session establishment device, for instant communication server, described device includes:
First conversation request sending module, for sending instant communication session request to gateway device, the mark of active instant communication client and the mark of purpose telephone terminal are carried in the request of described instant communication session; Described gateway device is for, after the request of described instant communication session is converted to SIP request signaling, being sent to described purpose telephone terminal by SIP gateway by described SIP request signaling;
First accepts information receiving module, the instant messaging sent for receiving described gateway device accepts information, it is that described gateway device is converted to after the SIP receiving the transmission of described SIP gateway accepts signaling that described instant messaging accepts information, and it is that described SIP gateway feeds back to described gateway device when described telephone terminal receives described SIP request signaling that described SIP accepts signaling;
First session establishment module, is described source instant communication client and described purpose telephone terminal sets up session for accepting information according to described instant messaging.
The 7th aspect according to embodiments of the present invention, it is provided that a kind of session establishment device, for gateway device, described device includes:
Demand signalling receiver module, for receiving the SIP request signaling that SIP gateway sends, described SIP request signaling is that source telephone terminal is initiated;
Demand signalling modular converter, being used for described SIP request Signalling conversion is instant communication session request;
Second conversation request sending module, for sending the request of described instant communication session to instant communication server, described instant communication server is for sending voice and video telephone request according to the request of described instant communication session to purpose instant communication client;
Second accepts information receiving module, and the instant messaging sent for receiving described instant communication server accepts information, and it is that described purpose instant communication client accepts feedback during the request of described voice and video telephone that described instant messaging accepts information;
Accept info conversion module, be converted to SIP accept signaling for described instant messaging being accepted information, described SIP is accepted signaling and is sent to described SIP gateway; Described SIP accepts instruction for informing built vertical session between source telephone terminal and described purpose instant communication client described in described SIP gateway.
Eighth aspect according to embodiments of the present invention, it is provided that a kind of session establishment device, for instant communication server, described device includes:
Second conversation request receiver module, for receiving the instant communication session request that gateway device sends, the request of described instant communication session carries the mark of source telephone terminal and the mark of purpose telephone terminal; The request of described instant communication session is that the SIP request Signalling conversion that SIP gateway sends is obtained by described gateway device;
Second searches module, the mark of the purpose instant communication client for binding according to the identifier lookup of described purpose telephone terminal;
Call request generation module, the mark for the mark according to described source telephone terminal and described purpose instant communication client generates voice and video telephone request;
Call request sending module, for sending the request of described voice and video telephone to described purpose instant communication client;
Second accepts information receiving module, and the instant messaging for receiving described purpose instant communication client feedback accepts information;
Second session establishment module, is described source telephone terminal and described purpose instant communication client sets up session for accepting information according to described instant messaging.
The technical scheme that the embodiment of the present invention provides has the benefit that
The instant communication session request that instant communication server sends is received by gateway device; Instant communication session request is converted to SIP request signaling by gateway device; SIP request signaling is sent to SIP gateway by gateway device, and SIP gateway is for sending SIP request signaling to purpose telephone terminal; Gateway device receives the SIP of SIP gateway transmission and accepts signaling; It is that instant messaging accepts information that SIP is accepted Signalling conversion by gateway device, instant messaging is accepted information and is sent to instant communication server; Solve when opposite end instant communication client is not online, it is impossible to set up session with opposite end instant communication client, the problem affecting voice and video telephone between user; Reach, when opposite end instant communication client is not online, also to set up session with the telephone terminal of opposite end instant communication client bound, and carry out voice and video telephone, expand voice and video telephone and be suitable for the effect of scene.
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme in the embodiment of the present invention, below the accompanying drawing used required during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the environment schematic of a kind of implementation environment involved by session establishing method that each embodiment of the present invention provides;
Fig. 2 is the method flow diagram of the session establishing method that one embodiment of the invention provides;
Fig. 3 is the method flow diagram of the session establishing method that another embodiment of the present invention provides;
Fig. 4 is the method flow diagram of the session establishing method that yet another embodiment of the invention provides;
Fig. 5 is the method flow diagram of the session establishing method that further embodiment of this invention provides;
Fig. 6 is the method flow diagram of the session establishing method that a further embodiment of the present invention provides;
Fig. 7 is the method flow diagram of the session establishing method that a further embodiment of the present invention provides;
Fig. 8 is the block diagram of the session establishment device that one embodiment of the invention provides;
Fig. 9 is the block diagram of the session establishment device that another embodiment of the present invention provides;
Figure 10 is the block diagram of the session establishment device that yet another embodiment of the invention provides;
Figure 11 is the block diagram of the session establishment device that further embodiment of this invention provides;
Figure 12 is the block diagram of the session establishment device that a further embodiment of the present invention provides;
Figure 13 is the block diagram of the session establishment device that a further embodiment of the present invention provides;
Figure 14 is the block diagram of the session establishment device that a further embodiment of the present invention provides;
Figure 15 is the block diagram of the session establishment device that a further embodiment of the present invention provides;
Figure 16 is the structural representation of the instant communication server that one embodiment of the invention provides;
Figure 17 is the structural representation of the gateway device that one embodiment of the invention provides.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Refer to Fig. 1, it illustrates the environment schematic of a kind of implementation environment involved by session establishing method that each embodiment of the present invention provides. This implementation environment includes instant communication client 110, instant communication server 120, gateway device 130, proxy server 140, SIP gateway 150 and telephone terminal 160.
Instant communication client 110 refers to the electronic equipment being provided with instant messaging program, and this electronic equipment can be smart mobile phone, panel computer, pocket computer on knee and desk computer etc.
Instant communication client 110 is connected by wireless network with instant communication server 120.
Instant communication server 120 is for the data envelope that instant communication client 110 sends is dressed up the packet meeting instant messaging agreement, and is IP address and the port of the distribution session number of session each time and proxy server. Instant communication server 120 can be a station server, or the server cluster being made up of some station servers, or a cloud computing service center
Gateway device 130 is for being instant messaging agreement request or the equipment that instant messaging agreement request is converted to SIP signaling by SIP Signalling conversion.
Proxy server 140 is the server for packet carries out protocol conversion, and proxy server 140 can be a station server, or the server cluster being made up of some station servers, or a cloud computing service center.
SIP gateway 150 is for being responsible for the packet between instant communication client 110 and telephone terminal is transmitted, and this SIP gateway can be server of common carrier or virtual operator etc.
Telephone terminal 160 processes for the analog audio-video signal that SIP gateway is sent and plays. Telephone terminal 160 is the electronic equipment with voice and video telephone function, and this electronic equipment can be smart mobile phone and videophone etc.
Refer to Fig. 2, it illustrates the method flow diagram of the session establishing method that one embodiment of the invention provides. The present embodiment is applied to illustrate in the gateway device 130 shown in Fig. 1 with session establishing method. The method includes:
Step 202, receives the instant communication session request that instant communication server sends, and the mark of active instant communication client and the mark of purpose telephone terminal are carried in instant communication session request;
Step 204, is converted to SIP request signaling by instant communication session request;
Step 206, sends SIP request signaling to SIP gateway, and SIP gateway is for sending SIP request signaling to purpose telephone terminal;
Step 208, the SIP receiving the transmission of SIP gateway accepts signaling, and it is SIP gateway feedback when purpose telephone terminal receives SIP request signaling that SIP accepts signaling;
Step 210, it is that instant messaging accepts information that SIP accepts Signalling conversion, instant messaging is accepted information and is sent to instant communication server; Instant communication server is source instant communication client and purpose telephone terminal sets up session for accepting information according to instant messaging.
In sum, the session establishing method that the present embodiment provides receives, by gateway device, the instant communication session request that instant communication server sends; Instant communication session request is converted to SIP request signaling by gateway device; SIP request signaling is sent to SIP gateway by gateway device, and SIP gateway is for sending SIP request signaling to purpose telephone terminal; Gateway device receives the SIP of SIP gateway transmission and accepts signaling; It is that instant messaging accepts information that SIP is accepted Signalling conversion by gateway device, instant messaging is accepted information and is sent to instant communication server; Solve when opposite end instant communication client is not online, it is impossible to set up session with opposite end instant communication client, the problem affecting voice and video telephone between user; Reach, when opposite end instant communication client is not online, also to set up session with the telephone terminal of opposite end instant communication client bound, and carry out voice and video telephone, expand voice and video telephone and be suitable for the effect of scene.
Refer to Fig. 3, it illustrates the method flow diagram of the session establishing method that another embodiment of the present invention provides. The present embodiment is applied to illustrate in the instant communication server 110 shown in Fig. 1 with session establishing method. The method includes:
Step 302, sends instant communication session request to gateway device, and the mark of active instant communication client and the mark of purpose telephone terminal are carried in instant communication session request; This gateway device is for, after instant communication session request is converted to Session initiation protocol SIP demand signalling, being sent to purpose telephone terminal by SIP gateway by SIP request signaling;
Step 304, the instant messaging receiving gateway device transmission accepts information, it is that gateway device is converted to after the SIP receiving the transmission of SIP gateway accepts signaling that instant messaging accepts information, and it is that SIP gateway feeds back to gateway device when telephone terminal receives SIP request signaling that SIP accepts signaling;
Step 306, accepts information according to instant messaging and is source instant communication client and purpose telephone terminal sets up session.
In sum, the session establishing method that the present embodiment provides sends instant communication session request by instant communication server to gateway device; Instant communication server receives the instant messaging of gateway device transmission and accepts information; Instant communication server accepts information according to instant messaging and is source instant communication client and purpose telephone terminal sets up session; Solve when opposite end instant communication client is not online, it is impossible to set up session with opposite end instant communication client, the problem affecting voice and video telephone between user; Reach, when opposite end instant communication client is not online, also to set up session with the telephone terminal of opposite end instant communication client bound, and carry out voice and video telephone, expand voice and video telephone and be suitable for the effect of scene.
Refer to Fig. 4, it illustrates the method flow diagram of the session establishing method that yet another embodiment of the invention provides. The present embodiment is applied to illustrate in the gateway device 130 shown in Fig. 1 with session establishing method. The method includes:
Step 402, receives the SIP request signaling that Session initiation protocol SIP gateway sends, and SIP request signaling is that source telephone terminal is initiated;
Step 404, is instant communication session request by SIP request Signalling conversion;
Step 406, sends instant communication session request to instant communication server, and instant communication server is for sending voice and video telephone request according to instant communication session request to purpose instant communication client;
Step 408, the instant messaging receiving instant communication server transmission accepts information, and it is that purpose instant communication client accepts feedback during voice and video telephone request that instant messaging accepts information;
Step 410, the information that accepted by instant messaging is converted to SIP and accepts signaling, SIP accepts signaling and is sent to SIP gateway; SIP accepts instruction for informing built vertical session between SIP gateway source telephone terminal and purpose instant communication client.
In sum, the session establishing method that the present embodiment provides receives, by gateway device, the SIP request signaling that SIP gateway sends; SIP request Signalling conversion is instant communication session request by gateway device; Instant communication session request is sent to instant communication server by gateway device; Gateway device receives the instant messaging of instant communication server transmission and accepts information; Instant messaging is accepted information and is converted to SIP and accepts signaling by gateway device, SIP accepts signaling and is sent to SIP gateway; Solve when opposite end instant communication client is not online, it is impossible to set up session with opposite end instant communication client, the problem affecting voice and video telephone between user; Reach, when opposite end instant communication client is not online, also to set up session with the telephone terminal of opposite end instant communication client bound, and carry out voice and video telephone, expand voice and video telephone and be suitable for the effect of scene.
Refer to Fig. 5, it illustrates the method flow diagram of the session establishing method that further embodiment of this invention provides. The present embodiment is applied to illustrate in the instant communication server 110 shown in Fig. 1 with session establishing method. The method includes:
Step 502, receives the instant communication session request that gateway device sends, and the request of this instant communication session carries the mark of source telephone terminal and the mark of purpose telephone terminal; Instant communication session request is that the SIP request Signalling conversion that Session initiation protocol SIP gateway sends is obtained by gateway device;
Step 504, the mark according to the purpose instant communication client that the identifier lookup of purpose telephone terminal is bound;
Step 506, generates voice and video telephone request according to the mark of the mark of source telephone terminal and purpose instant communication client;
Step 508, sends voice and video telephone request to purpose instant communication client;
Step 510, the instant messaging receiving purpose instant communication client feedback accepts information;
Step 512, accepts information according to instant messaging and is source telephone terminal and purpose instant communication client sets up session.
In sum, the session establishing method that the present embodiment provides receives, by instant communication server, the instant communication session request that gateway device sends; The mark of the purpose instant communication client that instant communication server is bound according to the identifier lookup of purpose telephone terminal; Instant communication server generates voice and video telephone request according to the mark of source telephone terminal and the mark of purpose instant communication client; Instant communication server sends voice and video telephone request to purpose instant communication client; Instant communication server receives the instant messaging of purpose instant communication client feedback and accepts information; Instant communication server accepts information according to instant messaging and is source telephone terminal and purpose instant communication client sets up session; Solve when opposite end instant communication client is not online, it is impossible to set up session with opposite end instant communication client, the problem affecting voice and video telephone between user; Reach, when opposite end instant communication client is not online, also to set up session with the telephone terminal of opposite end instant communication client bound, and carry out voice and video telephone, expand voice and video telephone and be suitable for the effect of scene.
Refer to Fig. 6, it illustrates the method flow diagram of the session establishing method that a further embodiment of the present invention provides. The present embodiment is applied to illustrate in the implementation environment shown in Fig. 1 with session establishing method. The method includes:
Step 601, instant communication server receives the voice and video telephone request that source instant communication client sends, and the mark of source instant communication client and the mark of purpose instant communication client are carried in the request of this voice and video telephone.
When user's buddy list in instant signal procedure chooses the good friend wanting to carry out voice and video telephone, instant communication client will send voice and video telephone request to instant communication server, the request of this voice and video telephone carries the mark of the instant communication client initiating voice and video telephone, the i.e. mark of source instant communication client, and the mark of called instant communication client, the i.e. mark of purpose instant communication client, this mark can be the account of instant communication client.
Step 602, instant communication server when detecting that purpose instant communication client is online, the mark according to the telephone terminal that the identifier lookup of purpose instant communication client is bound.
Instant communication server is after receiving the voice and video telephone request that source instant communication client sends, extract the mark of the purpose instant communication client carried in the request of this voice and video telephone, whether online according to this label detection purpose instant communication client, when detecting that this purpose instant communication client is not online, inquiring about the mark of the telephone terminal of this purpose instant communication client binding, the mark of this telephone terminal can be telephone number of telephone terminal etc. The present embodiment illustrates with this number being designated this telephone terminal, the present invention is not constituted restriction.
Step 603, instant communication server generates instant communication session request according to the mark of source instant communication client and the mark of purpose telephone terminal.
Instant communication server generates instant communication session request according to the mark of source instant communication client and the mark of purpose telephone terminal, and the request of this instant communication session meets instant messaging agreement.
Step 604, instant communication server sends instant communication session request to gateway device.
Step 605, gateway device receives the instant communication session request that instant communication server sends.
Corresponding, gateway device receives the instant communication session request that instant communication server sends, and carries the mark of active instant communication client and the mark of purpose telephone terminal in the request of this instant messaging.
Step 606, instant communication session request is converted to SIP request signaling by gateway device.
Need to meet Session Initiation Protocol owing to gateway device mails to the request of SIP gateway, so gateway device is after receiving instant communication session request, it is necessary to the request of this instant communication session is converted to the SIP request signaling meeting Session Initiation Protocol. Step 606 can include following sub-step:
One, gateway device obtains the mark of the source instant communication client that instant communication session request is carried and the mark of purpose telephone terminal;
Gateway device, after getting instant communication session request, extracts the mark of the source instant communication client carried in the request of this instant communication session and the mark of purpose telephone terminal.
Two, the mark of the gateway device mark according to source instant communication client and purpose telephone terminal, generates SIP request signaling according to Session Initiation Protocol standard.
The mark of the gateway device mark according to the source instant communication client extracted and purpose telephone terminal, according to Session Initiation Protocol, the request of this instant communication session is packaged, generate the SIP request signaling meeting Session Initiation Protocol, this SIP request signaling is carried the mark of source instant communication client and the mark of purpose telephone terminal.
Step 607, SIP request signaling is sent to SIP gateway by gateway device, and this SIP gateway is for sending SIP request signaling to purpose telephone terminal.
This SIP request signaling is sent to SIP gateway, the SIP gateway mark according to the purpose telephone terminal carried in this SIP request signaling by gateway device, sends this SIP request signaling to corresponding purpose telephone terminal.
It should be noted that, purpose telephone terminal is after receiving this SIP request signaling, SIP gateway will be passed through and send the feedback information and/or ringing information of attempting connecting to gateway device, gateway device, after receiving the feedback information and/or ringing information attempting connecting, namely knows that wait purpose telephone terminal is agreed to set up session.
When purpose telephone terminal agrees to set up session, when namely accepting SIP request signaling, it will send SIP to SIP gateway and accept signaling.
Step 608, SIP gateway sends SIP to gateway device and accepts signaling, and it is SIP gateway feedback when purpose telephone terminal receives SIP request signaling that this SIP accepts signaling.
SIP gateway receive purpose telephone terminal send SIP accept signaling after, to add the IP address of SIP gateway and port information in this SIP request signaling, this SIP gateway is for sending packet as the agency of purpose telephone terminal to proxy server by this IP address and port.
Step 609, gateway device receives the SIP of SIP gateway transmission and accepts signaling.
Corresponding, gateway device receives the SIP of SIP gateway transmission and accepts signaling.
Step 610, it is that instant messaging accepts information that SIP is accepted Signalling conversion by gateway device, instant messaging is accepted information and is sent to instant communication server.
Owing to gateway device needs to meet instant messaging agreement to the information that accepts that instant communication server sends, so gateway device is receiving after SIP accepts signaling, it is that the instant messaging meeting instant messaging agreement accepts information that this SIP accepts Signalling conversion, and the information that accepted by this instant messaging sends to instant communication server. Step 610 can include following sub-step:
One, gateway device extracts IP address and the port of the SIP SIP gateway accepting to carry in signaling;
Gateway device extracts the SIP the obtained IP address of SIP gateway accepting to carry in signaling and port, this IP address and port and sends packet as the agency of purpose telephone terminal to proxy server for SIP gateway.
Two, gateway device is according to the IP address of SIP gateway and port, generates instant messaging according to instant messaging consensus standard and accepts information.
Gateway device is according to the IP address of the SIP gateway extracted and port, according to instant messaging agreement, this SIP is accepted signaling to be packaged, generating the instant messaging meeting instant messaging agreement and accept information, this instant messaging accepts to carry the IP address of SIP gateway and port in information.
Step 611, instant communication server receives the instant messaging of gateway device transmission and accepts information.
Step 612, instant communication server is IP address and the port of instant communication session request distribution session number and proxy server, and session number is for distinguishing different sessions; Proxy server is for sending packet as the agency of source instant communication client to SIP gateway by IP address and port.
Instant communication server, after receiving the instant communication session request that gateway device sends, namely knows that purpose telephone terminal is agreed to carry out voice and video telephone.
Then, instant communication server distributes session number for this voice and video telephone, and this session number is for distinguishing different sessions, and this session number can have instant communication server to generate according to the create-rule pre-set, and synchronization is absent from identical session number.
And instant communication server is also IP address and the port of this voice and video telephone assignment agent server, send packet as the agency of source instant communication client to SIP gateway by this IP address and port for proxy server.
Step 613, instant communication server obtains IP address and the port of the SIP gateway that instant messaging accepts to carry in information.
Instant communication client extracts the IP address of SIP gateway and the port that instant messaging accepts to carry in information, and this SIP gateway is for sending packet as the agency of purpose telephone terminal to proxy server by IP address and port.
Step 614, instant communication server sends session number, the IP address of proxy server and the IP address of port and SIP gateway and port to proxy server, and this proxy server is for setting up the corresponding relation between the IP address of session number and proxy server and IP address and the port of port and SIP gateway.
Instant communication server is by the session number of distribution and the IP address of proxy server and port, and the IP address of the SIP gateway extracted and port, it is sent to proxy server, this proxy server is after receiving the session number of instant communication server transmission, the IP address of proxy server and the IP address of port and SIP gateway and port, to store, and set up the corresponding relation between the IP address of session number and proxy server and IP address and the port of port and SIP gateway, generate list structure session number relation table as shown in Table 1:
Table one
It should be noted that, instant communication server is after sending session number, the IP address of proxy server and the IP address of port and SIP gateway and port to proxy server, instant messaging will be sent to source instant communication client and accept request, for informing that purpose telephone terminal has accepted voice and video telephone request to source instant communication client, it is possible to send packet to purpose telephone terminal.
According to above-mentioned steps 601 to step 614, namely source instant communication client and purpose telephone terminal establish session, and during source, communication customer end can carry out the transmission of relevant audio, video data bag by following step 615 to step 621 to purpose telephone terminal.
Step 615, instant communication server sends the first protocol data bag to proxy server.
After source instant communication client and purpose telephone terminal set up session, instant communication server receives the first protocol data bag that instant communication client sends, and this first protocol data bag meets instant messaging host-host protocol.
Step 616, proxy server receives the first protocol data bag that instant communication server sends.
Step 617, instant communication server sends redundant error correction data bag to proxy server.
Due to packet transmission process in it may happen that lose, affect the quality of voice and video telephone, so instant communication server is according to continuous print n the first protocol data bag, generates corresponding redundant error correction data bag, and this redundant error correction data bag is sent to proxy server. This redundant error correction data bag can be that n continuous print the first protocol data bag carries out XOR generation.
Step 618, proxy server receives the redundant error correction data bag that instant communication server sends.
Corresponding, proxy server, after receiving n the first protocol data bag that instant communication server sends, also will receive corresponding redundant error correction data bag.
Step 619, n continuous print the first protocol data bag is carried out error correction according to redundant error correction data bag by proxy server.
After proxy server receives redundant error correction data bag, according to this redundant error correction data bag, n continuous print the first protocol data bag being carried out error correction, step 619 can include following sub-step:
One, proxy server is according to whether the sequence number detection of the first protocol data bag received there is data-bag lost in transmitting procedure;
Proxy server obtains the serial number in the first protocol data handbag header respectively, whether continuous detects this serial number, when detecting that this serial number is discontinuous, namely knows and there occurs data-bag lost.
If two there occurs data-bag lost in transmitting procedure, proxy server then recovers the first protocol data bag lost according to the first protocol data bag received and redundant error correction data bag.
When detect there occurs data-bag lost time, the first protocol data bag received and this redundant error correction data bag can be carried out XOR by proxy server, recover the first protocol data bag lost.
Such as, proxy server receive serial number respectively 1,2,4 and 5 the first protocol data bag, find after detection to lost the first protocol data bag that serial number is 3, serial number is the redundant error correction data of 6 be according to serial number respectively 1,2,3,4 and 5 first protocol data bag generate, this redundant error correction data bag and the first protocol data bag are done XOR by proxy server, recover the first protocol data bag that serial number is 3.
Step 620, the first protocol data bag is converted to second protocol packet by proxy server, and this second protocol packet is the packet adopting RTP encapsulation.
The packets need sent to SIP gateway due to proxy server meets Real-time Transport Protocol, so proxy server needs the first protocol data bag is converted to the second protocol packet meeting Real-time Transport Protocol, this step can include following sub-step:
One, proxy server obtains the header packet information of the first protocol data bag, and header packet information includes the serial number of the first protocol data bag;
It should be noted that this header packet information is also possible to carry the information such as the priority of the first protocol data bag, loadtype, data packet length and timestamp.
Two, proxy server calculates the serial number of second protocol packet according to the serial number of the first protocol data bag;
The first protocol data bag and the redundant error correction data bag generated according to n continuous first protocol data bag is received due to proxy server, and the serial number of the serial number of this redundant error correction data bag and the first protocol data bag is continuous, so proxy server calculates the serial number of second protocol packet according to the serial number of the first protocol data bag.
Such as, the serial number of one group 5 continuous print the first protocol data bags that proxy server receives respectively 1,2,3,4 and 5, and receive the redundant error correction data bag generated according to 5 continuous print the first protocol data bags, the sequence number of this redundant error correction data bag is 6, and proxy server calculates the serial number respectively 1,2,3,4 and 5 of the second protocol packet obtaining correspondence; When proxy server receives serial number respectively 7,8,9,10 and 11 of another 5 continuous print the first protocol data bags of group, proxy server calculates the serial number of the second protocol packet obtaining correspondence respectively 6,7,8,9 and 10.
Three, the mark of the instant communication client that proxy server carries according to the first protocol data bag generates the Synchronization Source of second protocol packet;
The mark of the source instant communication client that proxy server carries according to the first protocol data bag generates the Synchronization Source of second protocol packet, and this Synchronization Source is for indicating the source of this second protocol packet.
Four, proxy server generates the contribution source mark of second protocol packet according to preset value;
The contribution source of second protocol packet is identified and is set to preset value by proxy server, and this preset value can be 0.
Five, proxy server generates the header packet information of second protocol packet according to the serial number of second protocol packet, Synchronization Source and contribution source mark.
It should be noted that, the header packet information of the second protocol packet generated can also include the fields such as version, filling, extension, synchronisation source quantity, mark, timestamp and loadtype, version can be set to 2 by proxy server, to be filled with is 0, extension is set to 0, synchronisation source quantity is set to 0, it is 0 by traffic sign placement, using the timestamp of the first protocol data bag timestamp as second protocol packet, using the loadtype of the first protocol data bag loadtype as second protocol packet.
Proxy server generates the header packet information of second protocol packet according to above-mentioned information, generates the second protocol packet meeting Real-time Transport Protocol.
Step 621, second protocol packet is sent to SIP gateway by proxy server.
The second protocol packet being converted to is sent to SIP gateway by proxy server, and this step can include following sub-step:
One, proxy server searches the corresponding IP address of SIP gateway and the IP address of port and proxy server and port according to the session number of the first protocol data bag in the session number relation table prestored, and session number relation table includes the IP address of session number and SIP gateway and the corresponding relation of the IP address of port and proxy server and port;
In step 614, proxy server generates session number relation table according to the session number of instant communication server transmission, the IP address of proxy server and the IP address of port and SIP gateway and port, proxy server, according to the session number in the packet header information of the first agreement, searches the corresponding IP address of SIP gateway and the IP address of port and proxy server and port in session number relation table.
Two, proxy server sends second protocol packet according to IP address and the port of SIP gateway to SIP gateway.
Proxy server, according to the IP address of the SIP gateway found and the IP address of port and proxy server and port, by this port of proxy server, sends second protocol packet to the port of corresponding SIP gateway.
Such as, proxy server finds the IP address of proxy server and port respectively IP address A and port 001 according to session number " A0000001 ", the IP address of SIP gateway and port respectively IP address B and port 001, proxy server will be IP address B to IP address by port 001, port numbers be 001 SIP gateway send second protocol packet.
The second protocol packet received is sent to purpose telephone terminal by SIP gateway, thus the voice and video telephone realized between purpose telephone terminal and source instant communication client.
It should be noted that telephone terminal sends the process of packet to instant communication client is referred to step 713 in Fig. 7 to step 718.
The session establishing method that the present embodiment provides receives, by gateway device, the instant communication session request that instant communication server sends; Instant communication session request is converted to SIP request signaling by gateway device; SIP request signaling is sent to SIP gateway by gateway device, and SIP gateway is for sending SIP request signaling to purpose telephone terminal; Gateway device receives the SIP of SIP gateway transmission and accepts signaling; It is that instant messaging accepts information that SIP is accepted Signalling conversion by gateway device, instant messaging is accepted information and is sent to instant communication server; Solve when opposite end instant communication client is not online, it is impossible to set up session with opposite end instant communication client, the problem affecting voice and video telephone between user; Reach, when opposite end instant communication client is not online, also to set up session with the telephone terminal of opposite end instant communication client bound, and carry out voice and video telephone, expand voice and video telephone and be suitable for the effect of scene.
In the present embodiment, step 601, step 602, step 603, step 604, step 611, step 612, step 613 and step 614 can individually be implemented as the session establishing method of instant communication server side; Step 605, step 606, step 607, step 609 and step 610 can individually be implemented as the session establishing method of gateway device side.
In concrete implementation process, it is also possible to being sent voice and video telephone request by telephone terminal to instant communication client, thus setting up session between telephone terminal and instant communication client, an embodiment will be adopted to illustrate below.
Refer to Fig. 7, it illustrates the method flow diagram of the session establishing method that a further embodiment of the present invention provides. The present embodiment is applied to illustrate in the implementation environment shown in Fig. 1 with session establishing method. The method includes:
Step 701, SIP gateway sends SIP request signaling to gateway device.
SIP gateway is after receiving the SIP request signaling that source telephone terminal sends, SIP request signaling is sent to gateway device, this SIP request signaling meets Session Initiation Protocol, and this SIP request signaling carries the mark of the IP address of SIP gateway and port, the mark of source telephone terminal and purpose telephone terminal. SIP gateway is for sending packet as the agency of source telephone terminal to proxy server by this IP address and port.
Step 702, gateway device receives the SIP request signaling that SIP gateway sends, and this SIP request signaling is that source telephone terminal is initiated.
Step 703, SIP request Signalling conversion is instant communication session request by gateway device.
Owing to gateway device needs to meet instant messaging agreement to the request that instant communication server sends, so gateway device needs SIP request Signalling conversion to be the instant messaging agreement meeting instant messaging agreement. This step can include following sub-step:
One, gateway device extracts in SIP request signaling the mark of the IP address of the SIP gateway carried and port, the mark of source telephone terminal and purpose telephone terminal;
Gateway device extracts in SIP request signaling the mark of the IP address of the SIP gateway carried and port, the mark of source telephone terminal and purpose telephone terminal, this IP address and port and sends packet as the agency of source telephone terminal to proxy server for SIP gateway.
Two, the gateway device mark according to the IP address of SIP gateway and port, the mark of source telephone terminal and purpose telephone terminal, generates instant communication session request according to instant messaging consensus standard.
The gateway device mark according to the IP address of the SIP gateway extracted and port, the mark of source telephone terminal and purpose telephone terminal, according to instant messaging agreement, this SIP request signaling is packaged, generate the instant communication session request meeting instant messaging agreement, the request of this instant communication session is carried the mark of the IP address of SIP gateway and port, the mark of source telephone terminal and purpose telephone terminal.
Step 704, instant communication session request is sent to instant communication server by gateway device, and instant communication server is for sending voice and video telephone request according to instant communication session request to purpose instant communication client.
Step 705, instant communication server receives the instant communication session request that gateway device sends.
Step 706, the mark of the purpose instant communication client that instant communication server is bound according to the identifier lookup of purpose telephone terminal.
The instant communication server mark according to this purpose telephone terminal, searches the mark of the purpose instant communication client bound with this mark. The mark of this instant communication client can be the account of instant communication client.
Step 707, instant communication server generates voice and video telephone request according to the mark of source telephone terminal and the mark of purpose instant communication client.
Instant communication server generates voice and video telephone request according to the instant communication session request that gateway device sends, and carries the mark of source telephone terminal, the mark of purpose instant communication client and the IP address of SIP gateway and port in the request of this voice and video telephone.
After instant communication server generates voice and video telephone request, send the request of this voice and video telephone to purpose instant communication client.
Step 708, instant communication server receives the instant messaging of purpose instant communication client feedback and accepts information.
Instant communication client, after accepting the request of this voice and video telephone, sends instant messaging to instant communication server and accepts information, is used for informing that this instant communication server is agreed to carry out voice and video telephone.
Step 709, instant communication server obtains IP address and the port of the SIP gateway carried in instant communication session request.
The IP address and port, this IP address and port that obtain the SIP gateway carried in instant communication session request also are used for sending packet to proxy server by instant communication server
Step 710, instant communication server is IP address and the port of instant communication session request distribution session number and proxy server, and session number is for distinguishing different sessions; Proxy server is for sending packet as the agency of purpose instant communication client to SIP gateway by IP address and port.
Instant communication server receives instant communication client and sends after instant messaging accepts information, will be this instant communication session distribution session number, and this session number is used for distinguishing different sessions; Also by the IP address of assignment agent server and port, proxy server sends packet as the agency of purpose instant communication client to SIP gateway by this IP address and port.
Step 711, instant communication server sends session number, the IP address of proxy server and the IP address of port and SIP gateway and port to proxy server, and proxy server is for setting up the corresponding relation between the IP address of session number and proxy server and IP address and the port of port and SIP gateway.
Instant communication server is by the session number of distribution and the IP address of proxy server and port, and the IP address of the SIP gateway extracted and port, it is sent to proxy server, this proxy server is after receiving the session number of instant communication server transmission, the IP address of proxy server and the IP address of port and SIP gateway and port, store, and set up the corresponding relation between the IP address of session number and proxy server and IP address and the port of port and SIP gateway, generate list structure session number relation table as shown in Table 1.
Step 712, instant communication server sends instant messaging to gateway device and accepts information, instant messaging accepts information and carries IP address and the port of proxy server, and gateway device is converted to after SIP accepts signaling for instant messaging accepts information, is sent to SIP gateway.
Instant communication server also will send instant messaging to gateway device and accept information, be used for informing that source telephone terminal session has built up, it is possible to carry out the transmission of packet.
Gateway device is receiving after this instant messaging accepts information, the information that accepted by this instant messaging is converted to the SIP meeting Session Initiation Protocol and accepts signaling, this SIP receives the IP address and the port that carry proxy server in signaling, and packet can be transmitted by SIP gateway according to this IP address and port.
According to above-mentioned steps 701 to step 712, namely purpose instant communication client and source telephone terminal establish session, and source telephone terminal can pass through following step 713 to step 718 and purpose instant messaging carries out the transmission of packet in client.
Step 713, SIP gateway sends second protocol packet to proxy server.
Source telephone terminal sends analog audio-video signal to SIP gateway, this analog audio-video signal assemble is become to meet the second protocol packet of Real-time Transport Protocol by SIP gateway, and this second protocol packet is sent to proxy server, this second protocol packet carries the IP address of SIP gateway and the IP address of port and proxy server and port.
Step 714, proxy server receives the second protocol packet that SIP gateway sends, and this second protocol packet is to obtain after the analog audio-video signal that telephone terminal is sent by SIP gateway is converted to the packet adopting RTP encapsulation.
Step 715, second protocol packet is converted to the first protocol data bag by proxy server, and the first protocol data bag is the packet adopting instant messaging protocol encapsulation.
Owing to proxy server meets instant messaging host-host protocol to the packets need that instant communication server sends, so proxy server needs second protocol packet is converted to the first protocol data bag meeting instant messaging host-host protocol. This step can include following sub-step:
One, proxy server obtains the header packet information of second protocol packet, and header packet information includes the serial number of second protocol packet;
It should be noted that this header packet information is also possible to the information such as the loadtype and the timestamp that carry second protocol packet.
Two, proxy server calculates the serial number of the first protocol data bag according to the serial number of second protocol packet;
Owing to proxy server needs according to n the redundant error correction data bag that second protocol packet generates continuously, and the serial number of this redundant error correction data bag is continuous with the serial number of second protocol packet, so proxy server calculates the serial number of the first protocol data bag according to the serial number of second protocol packet.
Such as, the serial number of one group 5 the continuous print second protocol packets that server receives respectively 1,2,3,4 and 5, the sequence number of the redundant error correction data bag generated according to 5 continuous print second protocol packets is 6, and server calculates the serial number of the first protocol data bag obtaining correspondence respectively 1,2,3,4 and 5; When server receives serial number respectively 6,7,8,9 and 10 of another 5 continuous print second protocol packets of group, the serial number of the redundant error correction data bag owing to being previously created is 6, so server calculates the serial number respectively 7,8,9,10 and 11 of the first protocol data bag obtaining correspondence, the sequence number of the redundant error correction data bag generated according to 5 continuous print second protocol packets is 12.
Three, the session number of correspondence is searched in the IP address of the SIP gateway that proxy server carries according to second protocol packet and the IP address of port and proxy server and port in the session number relation table prestored, and session number relation table includes the IP address of session number and SIP gateway and the corresponding relation of the IP address of port and proxy server and port;
In step 711, proxy server generates session number relation table according to the session number of instant communication server transmission, the IP address of proxy server and the IP address of port and SIP gateway and port, and the session number of correspondence is searched in the IP address of the SIP gateway that proxy server carries according to second protocol packet and the IP address of port and proxy server and port in session number relation table.
Four, proxy server generates the header packet information of the first protocol data bag according to the serial number of the first protocol data bag and session number.
It should be noted that, the header packet information of the first protocol data bag generated can also include timestamp and loadtype etc., proxy server can using the timestamp of the second protocol packet timestamp as the first protocol data bag, using the loadtype of the second protocol packet loadtype as the first protocol data bag.
Proxy server generates the header packet information of the first protocol data bag according to above-mentioned information, generates the first protocol data bag meeting instant messaging protocol.
Step 716, the first protocol data bag is sent to instant communication client by proxy server by instant communication server, and instant communication client is for carrying out voice and video telephone according to the first protocol data bag and telephone terminal.
First protocol data bag, by the session number in the first protocol data handbag header, is sent to instant communication client by proxy server by instant communication server.
Step 717, proxy server generates redundant error correction data bag, n >=1 according to n continuous print the first protocol data bag.
N continuous print the first protocol data bag of generation can be carried out XOR by proxy server, generate redundant error correction data bag, and this redundant error correction data bag is sent to instant communication server, this instant communication server detects whether to there occurs the loss of packet in transmitting procedure according to this redundant error correction data bag, and recovers the packet lost according to this redundant error correction data bag.
Step 718, proxy server sends redundant error correction data bag to instant communication server.
Corresponding, the redundant error correction data bag of instant communication server Receiving Agent server transmission.
Instant communication server detects in transmitting procedure whether lost data packets according to the first protocol data bag received and redundant error correction data bag, if lost packet, then use the first protocol data bag received and the redundant error correction data bag packet to recovering loss. After error correction, the first protocol data bag after error correction is sent to purpose instant communication client by instant communication server, thus realizing source telephone terminal and the voice and video telephone of purpose instant communication client.
It should be noted that instant communication client sends the process of packet to telephone terminal is referred to step 615 in Fig. 6 to step 621.
In sum, the session establishing method that the present embodiment provides receives, by gateway device, the SIP request signaling that SIP gateway sends; SIP request Signalling conversion is instant communication session request by gateway device; Instant communication session request is sent to instant communication server by gateway device; Gateway device receives the instant messaging of instant communication server transmission and accepts information; Instant messaging is accepted information and is converted to SIP and accepts signaling by gateway device, SIP accepts signaling and is sent to SIP gateway; Solve when opposite end instant communication client is not online, it is impossible to set up session with opposite end instant communication client, the problem affecting voice and video telephone between user; Reach, when opposite end instant communication client is not online, also to set up session with the telephone terminal of opposite end instant communication client bound, and carry out voice and video telephone, expand voice and video telephone and be suitable for the effect of scene.
In the present embodiment, step 702, step 703 and step 704 can individually be implemented as the session establishing method of gateway device side; Step 705, step 706, step 707, step 708, step 709, step 710, step 711 and step 712 can individually be implemented as the session establishing method of instant communication server side.
Following for the device embodiment in the present invention, for the details of description not detailed in device embodiment, it is possible to combine with reference to above-mentioned embodiment of the method one to one.
Refer to Fig. 8, it illustrates the block diagram of the session establishment device that one embodiment of the invention provides. This session establishment device can pass through software, hardware or both be implemented in combination with becoming all or part of gateway device. This session establishment device, including:
First conversation request receiver module 802, for receiving the instant communication session request that instant communication server sends, the mark of active instant communication client and the mark of purpose telephone terminal are carried in the request of described instant communication session;
Conversation request modular converter 804, for being converted to Session initiation protocol SIP demand signalling by the request of described instant communication session;
Demand signalling sending module 806, for described SIP request signaling being sent to SIP gateway, described SIP gateway is for sending described SIP request signaling to described purpose telephone terminal;
Accepting signaling receiver module 808, the SIP sent for receiving described SIP gateway accepts signaling, and it is described SIP gateway feedback when described purpose telephone terminal receives described SIP request signaling that described SIP accepts signaling;
First accepts information sending module 810, is that instant messaging accepts information for described SIP is accepted Signalling conversion, described instant messaging is accepted information and is sent to described instant communication server; Described instant communication server is described source instant communication client and described purpose telephone terminal sets up session for accepting information according to described instant messaging.
In sum, the session establishment device that the present embodiment provides receives, by gateway device, the instant communication session request that instant communication server sends; Instant communication session request is converted to SIP request signaling by gateway device; SIP request signaling is sent to SIP gateway by gateway device, and SIP gateway is for sending SIP request signaling to purpose telephone terminal; Gateway device receives the SIP of SIP gateway transmission and accepts signaling; It is that instant messaging accepts information that SIP is accepted Signalling conversion by gateway device, instant messaging is accepted information and is sent to instant communication server; Solve when opposite end instant communication client is not online, it is impossible to set up session with opposite end instant communication client, the problem affecting voice and video telephone between user; Reach, when opposite end instant communication client is not online, also to set up session with the telephone terminal of opposite end instant communication client bound, and carry out voice and video telephone, expand voice and video telephone and be suitable for the effect of scene.
Refer to Fig. 9, it illustrates the block diagram of the session establishment device that another embodiment of the present invention provides. This session establishment device can pass through software, hardware or both be implemented in combination with becoming all or part of gateway device. This session establishment device, including:
First conversation request receiver module 902, for receiving the instant communication session request that instant communication server sends, the mark of active instant communication client and the mark of purpose telephone terminal are carried in the request of described instant communication session;
Conversation request modular converter 904, for being converted to Session initiation protocol SIP demand signalling by the request of described instant communication session;
Demand signalling sending module 906, for described SIP request signaling being sent to SIP gateway, described SIP gateway is for sending described SIP request signaling to described purpose telephone terminal;
Accepting signaling receiver module 908, the SIP sent for receiving described SIP gateway accepts signaling, and it is described SIP gateway feedback when described purpose telephone terminal receives described SIP request signaling that described SIP accepts signaling;
First accepts information sending module 910, is that instant messaging accepts information for described SIP is accepted Signalling conversion, described instant messaging is accepted information and is sent to described instant communication server; Described instant communication server is described source instant communication client and described purpose telephone terminal sets up session for accepting information according to described instant messaging.
Alternatively, described conversation request modular converter 904, including:
Mark acquiring unit 904A, the mark of mark and described purpose telephone terminal for obtaining the described source instant communication client that described conversation request is carried;
Demand signalling generates unit 904B, for the mark of the mark according to described source instant communication client and described purpose telephone terminal, generates described SIP request signaling according to Session Initiation Protocol standard.
Alternatively, described first accepts information sending module 910, including:
First extraction unit 910A, for extracting IP address and the port of the described SIP described SIP gateway accepting to carry in signaling;
Accept information generating unit 910B, for the IP address according to described SIP gateway and port, generate described instant messaging according to instant messaging consensus standard and accept information.
In sum, the session establishment device that the present embodiment provides receives, by gateway device, the instant communication session request that instant communication server sends; Instant communication session request is converted to SIP request signaling by gateway device; SIP request signaling is sent to SIP gateway by gateway device, and SIP gateway is for sending SIP request signaling to purpose telephone terminal; Gateway device receives the SIP of SIP gateway transmission and accepts signaling; It is that instant messaging accepts information that SIP is accepted Signalling conversion by gateway device, instant messaging is accepted information and is sent to instant communication server; Solve when opposite end instant communication client is not online, it is impossible to set up session with opposite end instant communication client, the problem affecting voice and video telephone between user; Reach, when opposite end instant communication client is not online, also to set up session with the telephone terminal of opposite end instant communication client bound, and carry out voice and video telephone, expand voice and video telephone and be suitable for the effect of scene.
Refer to Figure 10, it illustrates the block diagram of the session establishment device that yet another embodiment of the invention provides. This session establishment device can pass through software, hardware or both be implemented in combination with becoming all or part of instant communication server. This session establishment device, including:
First conversation request sending module 1002, for sending instant communication session request to gateway device, the mark of active instant communication client and the mark of purpose telephone terminal are carried in the request of described instant communication session; Described gateway device is for, after the request of described instant communication session is converted to Session initiation protocol SIP demand signalling, being sent to described purpose telephone terminal by SIP gateway by described SIP request signaling;
First accepts information receiving module 1004, the instant messaging sent for receiving described gateway device accepts information, it is that described gateway device is converted to after the SIP receiving the transmission of described SIP gateway accepts signaling that described instant messaging accepts information, and it is that described SIP gateway feeds back to described gateway device when described telephone terminal receives described SIP request signaling that described SIP accepts signaling;
First session establishment module 1006, is described source instant communication client and described purpose telephone terminal sets up session for accepting information according to described instant messaging.
In sum, the session establishment device that the present embodiment provides sends instant communication session request by instant communication server to gateway device; Instant communication server receives the instant messaging of gateway device transmission and accepts information; Instant communication server accepts information according to instant messaging and is source instant communication client and purpose telephone terminal sets up session; Solve when opposite end instant communication client is not online, it is impossible to set up session with opposite end instant communication client, the problem affecting voice and video telephone between user; Reach, when opposite end instant communication client is not online, also to set up session with the telephone terminal of opposite end instant communication client bound, and carry out voice and video telephone, expand voice and video telephone and be suitable for the effect of scene.
Refer to Figure 11, it illustrates the block diagram of the session establishment device that further embodiment of this invention provides. This session establishment device can pass through software, hardware or both be implemented in combination with becoming all or part of instant communication server. This session establishment device, including:
First conversation request sending module 1102, for sending instant communication session request to gateway device, the mark of active instant communication client and the mark of purpose telephone terminal are carried in the request of described instant communication session; Described gateway device is for, after the request of described instant communication session is converted to Session initiation protocol SIP demand signalling, being sent to described purpose telephone terminal by SIP gateway by described SIP request signaling;
First accepts information receiving module 1104, the instant messaging sent for receiving described gateway device accepts information, it is that described gateway device is converted to after the SIP receiving the transmission of described SIP gateway accepts signaling that described instant messaging accepts information, and it is that described SIP gateway feeds back to described gateway device when described telephone terminal receives described SIP request signaling that described SIP accepts signaling;
First session establishment module 1106, is described source instant communication client and described purpose telephone terminal sets up session for accepting information according to described instant messaging.
Alternatively, described device, also include:
Call request receiver module 1107, for receiving the voice and video telephone request that source instant communication client sends, the mark of described source instant communication client and the mark of purpose instant communication client are carried in the request of described voice and video telephone;
First searches module 1108, is used for when detecting that described purpose instant communication client is online, the mark according to the telephone terminal that the identifier lookup of described purpose instant communication client is bound;
Conversation request generation module 1109, the mark for the mark according to described source instant communication client and described purpose telephone terminal generates the request of described instant communication session.
Alternatively, described device, also include:
First distribution module 1110, for distributing IP address and the port of session number and proxy server for the request of described instant communication session, described session number is for distinguishing different sessions; Described proxy server is for sending packet as the agency of described source instant communication client to described SIP gateway by described IP address and port.
Alternatively, described first session establishment module 1106, including:
First acquiring unit 1106A, for obtaining IP address and the port of the described SIP gateway that described instant messaging accepts to carry in information, described SIP gateway is for sending packet as the agency of described telephone terminal to described proxy server by described IP address and port;
First transmitting element 1106B, for sending described session number, the IP address of described proxy server and the IP address of port and described SIP gateway and port to described proxy server, described proxy server is for setting up the corresponding relation between the IP address of described session number and described proxy server and IP address and the port of port and described SIP gateway.
In sum, the session establishment device that the present embodiment provides sends instant communication session request by instant communication server to gateway device; Instant communication server receives the instant messaging of gateway device transmission and accepts information; Instant communication server accepts information according to instant messaging and is source instant communication client and purpose telephone terminal sets up session; Solve when opposite end instant communication client is not online, it is impossible to set up session with opposite end instant communication client, the problem affecting voice and video telephone between user; Reach, when opposite end instant communication client is not online, also to set up session with the telephone terminal of opposite end instant communication client bound, and carry out voice and video telephone, expand voice and video telephone and be suitable for the effect of scene.
Refer to Figure 12, it illustrates the block diagram of the session establishment device that a further embodiment of the present invention provides. This session establishment device can pass through software, hardware or both be implemented in combination with becoming all or part of gateway device. This session establishment device, including:
Demand signalling receiver module 1202, for receiving the SIP request signaling that Session initiation protocol SIP gateway sends, described SIP request signaling is that source telephone terminal is initiated;
Demand signalling modular converter 1204, being used for described SIP request Signalling conversion is instant communication session request;
Second conversation request sending module 1206, for sending the request of described instant communication session to instant communication server, described instant communication server is for sending voice and video telephone request according to the request of described instant communication session to purpose instant communication client;
Second accepts information receiving module 1208, and the instant messaging sent for receiving described instant communication server accepts information, and it is that described purpose instant communication client accepts feedback during the request of described voice and video telephone that described instant messaging accepts information;
Accept info conversion module 1210, be converted to SIP accept signaling for described instant messaging being accepted information, described SIP is accepted signaling and is sent to described SIP gateway; Described SIP accepts instruction for informing built vertical session between source telephone terminal and described purpose instant communication client described in described SIP gateway.
In sum, the session establishment device that the present embodiment provides receives, by gateway device, the SIP request signaling that SIP gateway sends; SIP request Signalling conversion is instant communication session request by gateway device; Instant communication session request is sent to instant communication server by gateway device; Gateway device receives the instant messaging of instant communication server transmission and accepts information; Instant messaging is accepted information and is converted to SIP and accepts signaling by gateway device, SIP accepts signaling and is sent to SIP gateway; Solve when opposite end instant communication client is not online, it is impossible to set up session with opposite end instant communication client, the problem affecting voice and video telephone between user; Reach, when opposite end instant communication client is not online, also to set up session with the telephone terminal of opposite end instant communication client bound, and carry out voice and video telephone, expand voice and video telephone and be suitable for the effect of scene.
Refer to Figure 13, it illustrates the block diagram of the session establishment device that a further embodiment of the present invention provides. This session establishment device can pass through software, hardware or both be implemented in combination with becoming all or part of gateway device. This session establishment device, including:
Demand signalling receiver module 1302, for receiving the SIP request signaling that Session initiation protocol SIP gateway sends, described SIP request signaling is that source telephone terminal is initiated;
Demand signalling modular converter 1304, being used for described SIP request Signalling conversion is instant communication session request;
Second conversation request sending module 1306, for sending the request of described instant communication session to instant communication server, described instant communication server is for sending voice and video telephone request according to the request of described instant communication session to purpose instant communication client;
Second accepts information receiving module 1308, and the instant messaging sent for receiving described instant communication server accepts information, and it is that described purpose instant communication client accepts feedback during the request of described voice and video telephone that described instant messaging accepts information;
Accept info conversion module 1310, be converted to SIP accept signaling for described instant messaging being accepted information, described SIP is accepted signaling and is sent to described SIP gateway; Described SIP accepts instruction for informing built vertical session between source telephone terminal and described purpose instant communication client described in described SIP gateway.
Alternatively, described demand signalling modular converter 1304, including:
Second extraction unit 1304A, for extracting the mark of the IP address of the described SIP gateway carried in described SIP request signaling and port, the mark of source telephone terminal and purpose telephone terminal;
Conversation request generates unit 1304B, for the mark according to the IP address of described SIP gateway and port, the mark of source telephone terminal and purpose telephone terminal, generates the request of described instant communication session according to instant messaging consensus standard.
In sum, the session establishment device that the present embodiment provides receives, by gateway device, the SIP request signaling that SIP gateway sends; SIP request Signalling conversion is instant communication session request by gateway device; Instant communication session request is sent to instant communication server by gateway device; Gateway device receives the instant messaging of instant communication server transmission and accepts information; Instant messaging is accepted information and is converted to SIP and accepts signaling by gateway device, SIP accepts signaling and is sent to SIP gateway; Solve when opposite end instant communication client is not online, it is impossible to set up session with opposite end instant communication client, the problem affecting voice and video telephone between user; Reach, when opposite end instant communication client is not online, also to set up session with the telephone terminal of opposite end instant communication client bound, and carry out voice and video telephone, expand voice and video telephone and be suitable for the effect of scene.
Refer to Figure 14, it illustrates the block diagram of the session establishment device that a further embodiment of the present invention provides. This session establishment device can pass through software, hardware or both be implemented in combination with becoming all or part of instant communication server. This session establishment device, including:
Second conversation request receiver module 1402, for receiving the instant communication session request that gateway device sends, the request of described instant communication session carries the mark of source telephone terminal and the mark of purpose telephone terminal; The request of described instant communication session is that the SIP request Signalling conversion that Session initiation protocol SIP gateway sends is obtained by described gateway device;
Second searches module 1404, the mark of the purpose instant communication client for binding according to the identifier lookup of described purpose telephone terminal;
Call request generation module 1406, the mark for the mark according to described source telephone terminal and described purpose instant communication client generates voice and video telephone request;
Call request sending module 1408, for sending the request of described voice and video telephone to described purpose instant communication client;
Second accepts information receiving module 1410, and the instant messaging for receiving described purpose instant communication client feedback accepts information;
Second session establishment module 1412, is described source telephone terminal and described purpose instant communication client sets up session for accepting information according to described instant messaging.
In sum, the session establishment device that the present embodiment provides receives, by instant communication server, the instant communication session request that gateway device sends; The mark of the purpose instant communication client that instant communication server is bound according to the identifier lookup of purpose telephone terminal; Instant communication server generates voice and video telephone request according to the mark of source telephone terminal and the mark of purpose instant communication client; Instant communication server sends voice and video telephone request to purpose instant communication client; Instant communication server receives the instant messaging of purpose instant communication client feedback and accepts information; Instant communication server accepts information according to instant messaging and is source telephone terminal and purpose instant communication client sets up session; Solve when opposite end instant communication client is not online, it is impossible to set up session with opposite end instant communication client, the problem affecting voice and video telephone between user; Reach, when opposite end instant communication client is not online, also to set up session with the telephone terminal of opposite end instant communication client bound, and carry out voice and video telephone, expand voice and video telephone and be suitable for the effect of scene.
Refer to Figure 15, it illustrates the block diagram of the session establishment device that a further embodiment of the present invention provides. This session establishment device can pass through software, hardware or both be implemented in combination with becoming all or part of instant communication server. This session establishment device, including:
Second conversation request receiver module 1502, for receiving the instant communication session request that gateway device sends, the request of described instant communication session carries the mark of source telephone terminal and the mark of purpose telephone terminal; The request of described instant communication session is that the SIP request Signalling conversion that Session initiation protocol SIP gateway sends is obtained by described gateway device;
Second searches module 1504, the mark of the purpose instant communication client for binding according to the identifier lookup of described purpose telephone terminal;
Call request generation module 1506, the mark for the mark according to described source telephone terminal and described purpose instant communication client generates voice and video telephone request;
Call request sending module 1508, for sending the request of described voice and video telephone to described purpose instant communication client;
Second accepts information receiving module 1510, and the instant messaging for receiving described purpose instant communication client feedback accepts information;
Second session establishment module 1512, is described source telephone terminal and described purpose instant communication client sets up session for accepting information according to described instant messaging.
Alternatively, described second session establishment module 1512, including:
Second acquisition unit 1512A, for obtaining the IP address of described SIP gateway and port carried in the request of described instant communication session, described SIP gateway is for sending packet as the agency of described source telephone terminal to proxy server by described IP address and port;
Second allocation units 1512B, for distributing IP address and the port of session number and described proxy server for the request of described instant communication session, described session number is for distinguishing different sessions; Described proxy server is for sending packet as the agency of described purpose instant communication client to described SIP gateway by described IP address and port;
Second transmitting element 1512C, for sending described session number, the IP address of described proxy server and the IP address of port and described SIP gateway and port to described proxy server, described proxy server is for setting up the corresponding relation between the IP address of described session number and described proxy server and IP address and the port of port and described SIP gateway.
Alternatively, described device, also include:
Second accepts information sending module 1513, information is accepted for sending described instant messaging to described gateway device, described instant messaging accepts information and carries IP address and the port of described proxy server, described gateway device is converted to after SIP accepts signaling for described instant messaging accepts information, is sent to described SIP gateway.
In sum, the session establishment device that the present embodiment provides receives, by instant communication server, the instant communication session request that gateway device sends; The mark of the purpose instant communication client that instant communication server is bound according to the identifier lookup of purpose telephone terminal; Instant communication server generates voice and video telephone request according to the mark of source telephone terminal and the mark of purpose instant communication client; Instant communication server sends voice and video telephone request to purpose instant communication client; Instant communication server receives the instant messaging of purpose instant communication client feedback and accepts information; Instant communication server accepts information according to instant messaging and is source telephone terminal and purpose instant communication client sets up session; Solve when opposite end instant communication client is not online, it is impossible to set up session with opposite end instant communication client, the problem affecting voice and video telephone between user; Reach, when opposite end instant communication client is not online, also to set up session with the telephone terminal of opposite end instant communication client bound, and carry out voice and video telephone, expand voice and video telephone and be suitable for the effect of scene.
It should be noted that, above-described embodiment provide session establishment device conversate set up time, only it is illustrated with the division of above-mentioned each functional module, in practical application, as desired above-mentioned functions distribution can be completed by different functional modules, it is divided into different functional modules, to complete all or part of function described above by the internal structure of instant communication server and/or gateway device. It addition, the session establishing method that above-described embodiment provides belongs to same design with session establishment device embodiment, it implements process and refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can be completed by hardware, can also be completed by the hardware that program carrys out instruction relevant, described program can be stored in a kind of computer-readable recording medium, storage medium mentioned above can be read only memory, disk or CD etc.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all within the spirit and principles in the present invention, any amendment of making, equivalent replacement, improvement etc., should be included within protection scope of the present invention.
Refer to Figure 16, it illustrates the structural representation of the instant communication server that one embodiment of the invention provides. Described instant communication server 1600 includes CPU (CPU) 1601, includes random access memory (RAM) 1602 and the system storage 1604 of read only memory (ROM) 1603, and the system bus 1605 of connection system memorizer 1604 and CPU 1601. Described server or terminal 1600 also include the basic input/output (I/O system) 1606 helping to transmit information between each device in computer, and for storing the mass-memory unit 1607 of operating system 1613, application program 1614 and other program modules 1615.
Described basic input/output 1606 includes the display 1608 for showing information and the input equipment 1609 of such as mouse, keyboard etc for user's input information. Wherein said display 1608 and input equipment 1609 all pass through to be connected to the IOC 1610 of system bus 1605 and are connected to CPU 1601. Described basic input/output 1606 can also include IOC 1610 for receiving and processing the input from other equipment multiple such as keyboard, mouse or electronic touch pens. Similarly, IOC 1610 also provides output to display screen, printer or other kinds of outut device.
Described mass-memory unit 1607 is connected to CPU 1601 by being connected to the bulk memory controller (not shown) of system bus 1605. Described mass-memory unit 1607 and the computer-readable medium being associated thereof provide non-volatile memories for server 1600. It is to say, described mass-memory unit 1607 can include the computer-readable medium (not shown) of such as hard disk or CD-ROM drive etc.
Without loss of generality, described computer-readable medium can include computer-readable storage medium and communication media. Computer-readable storage medium includes the volatibility of any method or technology realization for storing the information such as such as computer-readable instruction, data structure, program module or other data and medium non-volatile, removable and irremovable. Computer-readable storage medium includes RAM, ROM, EPROM, EEPROM, flash memory or its technology of other solid-state storage, CD-ROM, DVD or other optical storage, cartridge, tape, disk storage or other magnetic storage apparatus. Certainly, skilled person will appreciate that described computer-readable storage medium is not limited to above-mentioned several. Above-mentioned system storage 1604 and mass-memory unit 1607 may be collectively referred to as memorizer.
According to various embodiments of the present invention, described server 1600 can also be connected to the remote computer operation on network by networks such as such as the Internets. Namely the NIU 1611 that server 1600 can pass through to be connected on described system bus 1605 is connected to network 1612, in other words, it is possible to use NIU 1611 is connected to other kinds of network or remote computer system (not shown).
Described memorizer also includes one or more than one program, one or more than one program are stored in memorizer, and one or more than one program package are containing being used for carrying out the instruction of the instant communication server side session establishing method of embodiment of the present invention offer.
Refer to Figure 17, it illustrates the structural representation of the gateway device that one embodiment of the invention provides. Gateway device 1700 includes memorizer 1720, communication bus 1730, processor 1740, emitter 1750 and receptor 1760 etc. Wherein, memorizer 1720, processor 1740, emitter 1750 and receptor 1760 are linked together by communication bus 1730.
Memorizer 1720 also includes one or more than one program, this or more than one program are stored in memorizer, and this or more than one program package are containing being used for carrying out the instruction of the session establishing method of the gateway device side of embodiment of the present invention offer. Processor 1740 is for performing one or more than one program of memorizer 1720 storage.
Emitter 1750 is used for sending SIP request signaling to SIP gateway, sends instant messaging reception information to instant communication server, asks to instant communication server transmission instant communication session and send SIP to SIP gateway to accept signaling.
SIP request signaling and the instant messaging of reception instant communication server transmission that the instant communication session that receptor 1760 sends for receiving instant communication server is asked, the SIP of reception SIP gateway transmission accepts signaling, receive SIP gateway sends accept information.
It should be appreciated that it is used in the present context, unless exceptional case clearly supported in context, singulative " " (" a ", " an ", " the ") is intended to also include plural form. It is to be further understood that "and/or" used herein refer to one or the more than one project listed explicitly arbitrarily and likely combine.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can be completed by hardware, can also be completed by the hardware that program carrys out instruction relevant, described program can be stored in a kind of computer-readable recording medium, storage medium mentioned above can be read only memory, disk or CD etc.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all within the spirit and principles in the present invention, any amendment of making, equivalent replacement, improvement etc., should be included within protection scope of the present invention.

Claims (16)

1. a session establishing method, it is characterised in that for gateway device, described method includes:
Receiving the instant communication session request that instant communication server sends, the mark of active instant communication client and the mark of purpose telephone terminal are carried in the request of described instant communication session;
The request of described instant communication session is converted to Session initiation protocol SIP demand signalling;
Described SIP request signaling being sent to SIP gateway, described SIP gateway is for sending described SIP request signaling to described purpose telephone terminal;
The SIP receiving the transmission of described SIP gateway accepts signaling, and it is described SIP gateway feedback when described purpose telephone terminal receives described SIP request signaling that described SIP accepts signaling;
It is that instant messaging accepts information that described SIP accepts Signalling conversion, described instant messaging is accepted information and is sent to described instant communication server; Described instant communication server is described source instant communication client and described purpose telephone terminal sets up session for accepting information according to described instant messaging.
2. method according to claim 1, it is characterised in that described by described instant communication session request be converted to Session initiation protocol SIP demand signalling, including:
Obtain the mark of the described source instant communication client that described conversation request is carried and the mark of described purpose telephone terminal;
Mark according to described source instant communication client and the mark of described purpose telephone terminal, generate described SIP request signaling according to Session Initiation Protocol standard.
3. method according to claim 1 and 2, it is characterised in that the described Signalling conversion that accepted by described SIP is that instant messaging accepts information, including:
Extract IP address and the port of the described SIP described SIP gateway accepting to carry in signaling;
IP address according to described SIP gateway and port, generate described instant messaging according to instant messaging consensus standard and accept information.
4. a session establishing method, it is characterised in that for instant communication server, described method includes:
Sending instant communication session request to gateway device, the mark of active instant communication client and the mark of purpose telephone terminal are carried in the request of described instant communication session; Described gateway device is for, after the request of described instant communication session is converted to Session initiation protocol SIP demand signalling, being sent to described purpose telephone terminal by SIP gateway by described SIP request signaling;
The instant messaging receiving the transmission of described gateway device accepts information, it is that described gateway device is converted to after the SIP receiving the transmission of described SIP gateway accepts signaling that described instant messaging accepts information, and it is that described SIP gateway feeds back to described gateway device when described telephone terminal receives described SIP request signaling that described SIP accepts signaling;
Accept information according to described instant messaging and be described source instant communication client and described purpose telephone terminal sets up session.
5. method according to claim 4, it is characterised in that described before gateway device transmission instant communication session request, also includes:
The voice and video telephone request that reception source instant communication client sends, the mark of described source instant communication client and the mark of purpose instant communication client are carried in the request of described voice and video telephone;
When detecting that described purpose instant communication client is not online, the mark according to the telephone terminal that the identifier lookup of described purpose instant communication client is bound;
Mark and the mark of described purpose telephone terminal according to described source instant communication client generate the request of described instant communication session.
6. the method according to claim 4 or 5, it is characterised in that described accept information according to described instant messaging and be described source instant communication client and before described purpose telephone terminal sets up session, also includes:
For IP address and the port of described instant communication session request distribution session number and proxy server, described session number is for distinguishing different sessions; Described proxy server is for sending packet as the agency of described source instant communication client to described SIP gateway by described IP address and port.
7. method according to claim 6, it is characterised in that described accept information according to described instant messaging and be described source instant communication client and described purpose telephone terminal sets up session, including:
Obtaining IP address and the port of the described SIP gateway that described instant messaging accepts to carry in information, described SIP gateway is for sending packet as the agency of described telephone terminal to described proxy server by described IP address and port;
Send described session number, the IP address of described proxy server and the IP address of port and described SIP gateway and port to described proxy server, described proxy server is for setting up the corresponding relation between the IP address of described session number and described proxy server and IP address and the port of port and described SIP gateway.
8. a session establishing method, it is characterised in that for gateway device, described method includes:
Receiving the SIP request signaling that Session initiation protocol SIP gateway sends, described SIP request signaling is that source telephone terminal is initiated;
It is instant communication session request by described SIP request Signalling conversion;
Sending the request of described instant communication session to instant communication server, described instant communication server is for sending voice and video telephone request according to the request of described instant communication session to purpose instant communication client;
The instant messaging receiving the transmission of described instant communication server accepts information, and it is that described purpose instant communication client accepts feedback during the request of described voice and video telephone that described instant messaging accepts information;
The information that accepted by described instant messaging is converted to SIP and accepts signaling, described SIP accepts signaling and is sent to described SIP gateway; Described SIP accepts instruction for informing built vertical session between source telephone terminal and described purpose instant communication client described in described SIP gateway.
9. method according to claim 8, it is characterised in that described is instant communication session request by described SIP request Signalling conversion, including:
Extract the mark of the IP address of the described SIP gateway carried in described SIP request signaling and port, the mark of source telephone terminal and purpose telephone terminal;
The mark of IP address according to described SIP gateway and port, the mark of source telephone terminal and purpose telephone terminal, generates the request of described instant communication session according to instant messaging consensus standard.
10. a session establishing method, it is characterised in that for instant communication server, described method includes:
Receiving the instant communication session request that gateway device sends, the request of described instant communication session carries the mark of source telephone terminal and the mark of purpose telephone terminal; The request of described instant communication session is that the SIP request Signalling conversion that Session initiation protocol SIP gateway sends is obtained by described gateway device;
The mark of the purpose instant communication client of the identifier lookup binding according to described purpose telephone terminal;
Mark and the mark of described purpose instant communication client according to described source telephone terminal generate voice and video telephone request;
The request of described voice and video telephone is sent to described purpose instant communication client;
The instant messaging receiving described purpose instant communication client feedback accepts information;
Accept information according to described instant messaging and be described source telephone terminal and described purpose instant communication client sets up session.
11. method according to claim 10, it is characterised in that described accept information according to described instant messaging and be described source telephone terminal and described purpose instant communication client sets up session, including:
Obtaining the IP address of described SIP gateway and port carried in the request of described instant communication session, described SIP gateway is for sending packet as the agency of described source telephone terminal to proxy server by described IP address and port;
For IP address and the port of described instant communication session request distribution session number and described proxy server, described session number is for distinguishing different sessions; Described proxy server is for sending packet as the agency of described purpose instant communication client to described SIP gateway by described IP address and port;
Send described session number, the IP address of described proxy server and the IP address of port and described SIP gateway and port to described proxy server, described proxy server is for setting up the corresponding relation between the IP address of described session number and described proxy server and IP address and the port of port and described SIP gateway.
12. method according to claim 11, it is characterised in that after the described IP address for described instant communication session request distribution session number and described proxy server and port, also include:
Send described instant messaging to described gateway device and accept information, described instant messaging accepts information and carries IP address and the port of described proxy server, described gateway device is converted to after SIP accepts signaling for described instant messaging accepts information, is sent to described SIP gateway.
13. a session establishment device, it is characterised in that for gateway device, described device includes:
First conversation request receiver module, for receiving the instant communication session request that instant communication server sends, the mark of active instant communication client and the mark of purpose telephone terminal are carried in the request of described instant communication session;
Conversation request modular converter, for being converted to Session initiation protocol SIP demand signalling by the request of described instant communication session;
Demand signalling sending module, for described SIP request signaling being sent to SIP gateway, described SIP gateway is for sending described SIP request signaling to described purpose telephone terminal;
Accepting signaling receiver module, the SIP sent for receiving described SIP gateway accepts signaling, and it is described SIP gateway feedback when described purpose telephone terminal receives described SIP request signaling that described SIP accepts signaling;
First accepts information sending module, is that instant messaging accepts information for described SIP is accepted Signalling conversion, described instant messaging is accepted information and is sent to described instant communication server; Described instant communication server is described source instant communication client and described purpose telephone terminal sets up session for accepting information according to described instant messaging.
14. a session establishment device, it is characterised in that for instant communication server, described device includes:
First conversation request sending module, for sending instant communication session request to gateway device, the mark of active instant communication client and the mark of purpose telephone terminal are carried in the request of described instant communication session; Described gateway device is for, after the request of described instant communication session is converted to Session initiation protocol SIP demand signalling, being sent to described purpose telephone terminal by SIP gateway by described SIP request signaling;
First accepts information receiving module, the instant messaging sent for receiving described gateway device accepts information, it is that described gateway device is converted to after the SIP receiving the transmission of described SIP gateway accepts signaling that described instant messaging accepts information, and it is that described SIP gateway feeds back to described gateway device when described telephone terminal receives described SIP request signaling that described SIP accepts signaling;
First session establishment module, is described source instant communication client and described purpose telephone terminal sets up session for accepting information according to described instant messaging.
15. a session establishment device, it is characterised in that for gateway device, described device, including:
Demand signalling receiver module, for receiving the SIP request signaling that Session initiation protocol SIP gateway sends, described SIP request signaling is that source telephone terminal is initiated;
Demand signalling modular converter, being used for described SIP request Signalling conversion is instant communication session request;
Second conversation request sending module, for sending the request of described instant communication session to instant communication server, described instant communication server is for sending voice and video telephone request according to the request of described instant communication session to purpose instant communication client;
Second accepts information receiving module, and the instant messaging sent for receiving described instant communication server accepts information, and it is that described purpose instant communication client accepts feedback during the request of described voice and video telephone that described instant messaging accepts information;
Accept info conversion module, be converted to SIP accept signaling for described instant messaging being accepted information, described SIP is accepted signaling and is sent to described SIP gateway; Described SIP accepts instruction for informing built vertical session between source telephone terminal and described purpose instant communication client described in described SIP gateway.
16. a session establishment device, it is characterised in that for instant communication server, described device includes:
Second conversation request receiver module, for receiving the instant communication session request that gateway device sends, the request of described instant communication session carries the mark of source telephone terminal and the mark of purpose telephone terminal; The request of described instant communication session is that the SIP request Signalling conversion that Session initiation protocol SIP gateway sends is obtained by described gateway device;
Second searches module, the mark of the purpose instant communication client for binding according to the identifier lookup of described purpose telephone terminal;
Call request generation module, the mark for the mark according to described source telephone terminal and described purpose instant communication client generates voice and video telephone request;
Call request sending module, for sending the request of described voice and video telephone to described purpose instant communication client;
Second accepts information receiving module, and the instant messaging for receiving described purpose instant communication client feedback accepts information;
Second session establishment module, is described source telephone terminal and described purpose instant communication client sets up session for accepting information according to described instant messaging.
CN201410623533.5A 2014-11-07 2014-11-07 Session establishing method and device Active CN105634911B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410623533.5A CN105634911B (en) 2014-11-07 2014-11-07 Session establishing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410623533.5A CN105634911B (en) 2014-11-07 2014-11-07 Session establishing method and device

Publications (2)

Publication Number Publication Date
CN105634911A true CN105634911A (en) 2016-06-01
CN105634911B CN105634911B (en) 2019-11-15

Family

ID=56049440

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410623533.5A Active CN105634911B (en) 2014-11-07 2014-11-07 Session establishing method and device

Country Status (1)

Country Link
CN (1) CN105634911B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109831377A (en) * 2019-03-26 2019-05-31 安康鸿天科技股份有限公司 It is a kind of difference instant communication protocol and Session Initiation Protocol between intercommunication technology
CN109995734A (en) * 2017-12-30 2019-07-09 中国科学院沈阳计算技术研究所有限公司 A kind of communication means of the WebRTC based on Session Initiation Protocol
CN117294746A (en) * 2023-09-07 2023-12-26 视昀科技(深圳)有限公司 Converged communication method, device, terminal equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212661A (en) * 2006-12-30 2008-07-02 上海贝尔阿尔卡特股份有限公司 Method for controlling media stream transmission between customer premise equipment and video sever
US20100215036A1 (en) * 2009-02-20 2010-08-26 Samsung Electronics Electronics Co., Ltd. Method for transferring session in converged internet protocol messaging system
CN102790710A (en) * 2011-05-16 2012-11-21 北京新媒传信科技有限公司 Method and device for audio and video communication between PC (personal computer) terminal and cell phone
CN103297445A (en) * 2012-02-22 2013-09-11 ***通信集团公司 Web terminal communication method and system based on IP multimedia network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212661A (en) * 2006-12-30 2008-07-02 上海贝尔阿尔卡特股份有限公司 Method for controlling media stream transmission between customer premise equipment and video sever
US20100215036A1 (en) * 2009-02-20 2010-08-26 Samsung Electronics Electronics Co., Ltd. Method for transferring session in converged internet protocol messaging system
CN102790710A (en) * 2011-05-16 2012-11-21 北京新媒传信科技有限公司 Method and device for audio and video communication between PC (personal computer) terminal and cell phone
CN103297445A (en) * 2012-02-22 2013-09-11 ***通信集团公司 Web terminal communication method and system based on IP multimedia network

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109995734A (en) * 2017-12-30 2019-07-09 中国科学院沈阳计算技术研究所有限公司 A kind of communication means of the WebRTC based on Session Initiation Protocol
CN109831377A (en) * 2019-03-26 2019-05-31 安康鸿天科技股份有限公司 It is a kind of difference instant communication protocol and Session Initiation Protocol between intercommunication technology
CN117294746A (en) * 2023-09-07 2023-12-26 视昀科技(深圳)有限公司 Converged communication method, device, terminal equipment and storage medium

Also Published As

Publication number Publication date
CN105634911B (en) 2019-11-15

Similar Documents

Publication Publication Date Title
CN110661801B (en) Data transmission method, device and computer storage medium
JP4673369B2 (en) Method and apparatus for providing correlation means in a hybrid communication network
WO2016204468A1 (en) Method and apparatus for multipath media delivery
CN104125200B (en) Multi-screen interaction method, equipment and system
CN101218777A (en) Method and system for multicasting data in a communication network
WO2012079321A1 (en) Method, system and apparatus for providing stream media service
CN104243281B (en) Voice communication method based on mobile internet
CN110022456A (en) The method and apparatus for inviting terminals joining the conference
CN108965371A (en) A kind of control method and device of camera
CN102790710A (en) Method and device for audio and video communication between PC (personal computer) terminal and cell phone
CN110062191A (en) A kind of multi-party group meeting method and server based on view networking
CN109743522B (en) Communication method and device based on video networking
CN109495594A (en) A kind of data transmission method, PNF SDN controller, VNF SDN controller and system
CN103414868A (en) Video conference terminal single conference terminal quantity expansion method based on H323 protocol
CN105591879B (en) Data transmission method and device
CN101986696A (en) Information transfer equipment and video conference system
CN105634911A (en) Session establishing method and device
CN111314647A (en) Electronic whiteboard control method, mobile terminal and electronic whiteboard system
CN101547191B (en) Method and device for controlling media content syndication
CN110099025B (en) Call method and device based on video networking
CN102263808B (en) Session control service method, device and system
CN1610349B (en) Real-time information transmitting method
CN101400022B (en) Method, apparatus and system for identifying service type and establishing service according to identification
CN106789558A (en) Instant communicating method, client and application server based on RCS
WO2010075688A1 (en) Method, apparatus and system for creating and joining ip multimedia subsystem (ims) group conference

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant