CN105634911B - Session establishing method and device - Google Patents

Session establishing method and device Download PDF

Info

Publication number
CN105634911B
CN105634911B CN201410623533.5A CN201410623533A CN105634911B CN 105634911 B CN105634911 B CN 105634911B CN 201410623533 A CN201410623533 A CN 201410623533A CN 105634911 B CN105634911 B CN 105634911B
Authority
CN
China
Prior art keywords
instant communication
sip
session
gateway
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410623533.5A
Other languages
Chinese (zh)
Other versions
CN105634911A (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 invention discloses a kind of session establishing method and devices, belong to field of Internet communication.The described method includes: gateway receives the instant communication session request that instant communication server is sent;Instant communication session request is converted to Session initiation protocol SIP demand signalling by gateway;SIP request signaling is sent to SIP gateway by gateway;Gateway receives the SIP that SIP gateway is sent and receives signaling;It is that instant messaging receives information that SIP is received Signalling conversion by gateway, and instant messaging is received information and is sent to instant communication server.Invention achieves when opposite end instant communication client is not online, session can be also established with telephone terminal bound in the instant communication client of opposite end, and carry out voice and video telephone, expand the effect that voice and video telephone is applicable in scene.

Description

Session establishing method and device
Technical field
The present invention relates to field of Internet communication, in particular to a kind of session establishing method and device.
Background technique
With the development of Internet communication technology, people voice can be carried out by instant communication client or video is logical Words.
When user carries out voice or video calling using instant communication client A and instant communication client B, Instant Messenger Believe that customer end A will send audio-video request to instant communication server, audio-video request carries instant communication client A With the identification information of B, instant communication server by according to the identification information of instant communication client B to instant communication client B It sends and invites request, when instant communication client B receives invitation request, it will sent to instant communication server and receive to ask Seek signal, this is received request signal and is sent to instant communication client A by instant communication server, instant communication client A with Instant communication client B establishes session link, can lead between instant communication client A and instant communication client B The transmission that the session link carries out data packet is crossed, to realize the voice or video calling between two instant communication clients.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems: as instant messaging visitor When family end B is not online, will not receive instant communication client A transmission audio-video request, cause instant communication client it Between cannot establish session, influence the voice and video telephone between user.
Summary of the invention
In order to solve problems in the prior art, the embodiment of the invention provides a kind of session establishing method and devices.It is described Technical solution is as follows:
According to a first aspect of the embodiments of the present invention, a kind of session establishing method is provided, gateway, the method are used for Include:
The instant communication session request that instant communication server is sent is received, the instant communication session request carries active The mark of instant communication client and the mark of purpose telephone terminal;
Instant communication session request is converted into SIP (Session Initiation Protocol, conversation initial Change agreement) demand signalling;
The SIP request signaling is sent to SIP gateway, the SIP gateway is for the SIP request signaling to be sent to The purpose telephone terminal;
It receives the SIP that the SIP gateway is sent and receives signaling, it is the SIP gateway in the mesh that the SIP, which receives signaling, Telephone terminal receive and feed back when the SIP request signaling;
It is that instant messaging receives information that the SIP, which is received Signalling conversion, and the instant messaging is received information and is sent to The instant communication server;It is that the source is instant that the instant communication server, which is used to receive according to the instant messaging information, Communication customer end and the purpose telephone terminal establish session.
According to a second aspect of the embodiments of the present invention, a kind of session establishing method is provided, instant communication server, institute are used for The method of stating includes:
Instant communication session request is sent to gateway, the instant communication session request carries active instant messaging visitor The mark at family end and the mark of purpose telephone terminal;The gateway is used to be converted to instant communication session request After SIP request signaling, the SIP request signaling is sent to by the purpose telephone terminal by SIP gateway;
It receives the instant messaging that the gateway is sent and receives information, it is the gateway that the instant messaging, which receives information, What equipment was converted to after receiving the SIP that the SIP gateway is sent and receiving signaling, it is described that the SIP, which receives signaling, SIP gateway feeds back to the gateway when the telephone terminal receives the SIP request signaling;
Receiving information according to the instant messaging is that the source instant communication client and the purpose telephone terminal are established Session.
According to a third aspect of the embodiments of the present invention, a kind of session establishing method is provided, gateway, the method are used for Include:
The SIP request signaling that SIP gateway is sent is received, the SIP request signaling is that source telephone terminal is initiated;
It is instant communication session request by the SIP request Signalling conversion;
Instant communication session request is sent to instant communication server, the instant communication server is used for basis The instant communication session requests to send voice and video telephone request to purpose instant communication client;
It receives the instant messaging that the instant communication server is sent and receives information, it is institute that the instant messaging, which receives information, Purpose instant communication client is stated to receive to feed back when voice and video telephone request;
The instant messaging received information be converted to SIP to receive signaling, by the SIP receive signaling be sent to it is described SIP gateway;The SIP receives instruction for informing source telephone terminal described in the SIP gateway and purpose instant messaging visitor Session has been established between end in family.
According to a fourth aspect of the embodiments of the present invention, a kind of session establishing method is provided, instant communication server, institute are used for The method of stating includes:
The instant communication session request that gateway is sent is received, the instant communication session request carries source telephone end The mark at end and the mark of purpose telephone terminal;The instant communication session request is that the gateway sends SIP gateway SIP request Signalling conversion obtain;
According to the mark of the purpose instant communication client of the identifier lookup of purpose telephone terminal binding;
Voice and video telephone is generated according to the mark of the mark of the source telephone terminal and the purpose instant communication client Request;
The voice and video telephone request is sent to the purpose instant communication client;
The instant messaging for receiving the purpose instant communication client feedback receives information;
Receiving information according to the instant messaging is that the source telephone terminal and the purpose instant communication client are established Session.
According to a fifth aspect of the embodiments of the present invention, a kind of session establishment device is provided, gateway, described device are used for Include:
First session request receiving module, for receiving the instant communication session request of instant communication server transmission, institute It states instant communication session request and carries the mark of active instant communication client and the mark of purpose telephone terminal;
Session request conversion module, for instant communication session request to be converted to SIP request signaling;
Demand signalling sending module, for the SIP request signaling to be sent to SIP gateway, the SIP gateway is used for The SIP request signaling is sent to the purpose telephone terminal;
Receive signaling receiving module, receives signaling for receiving the SIP that the SIP gateway is sent, the SIP receives letter Order is that the SIP gateway is fed back when the purpose telephone terminal receives the SIP request signaling;
First receives information sending module, is that instant messaging receives information for the SIP to be received Signalling conversion, by institute It states instant messaging and receives information and be sent to the instant communication server;The instant communication server is used for according to described instant It is that the source instant communication client and the purpose telephone terminal establish session that communication, which receives information,.
According to a sixth aspect of the embodiments of the present invention, a kind of session establishment device is provided, instant communication server, institute are used for Stating device includes:
First session request sending module, for sending instant communication session request, the instant messaging to gateway Session request carries the mark of active instant communication client and the mark of purpose telephone terminal;The gateway is used for institute It states after instant communication session request is converted to SIP request signaling, is sent to the SIP request signaling by SIP gateway described Purpose telephone terminal;
First receives information receiving module, receives information for receiving the instant messaging that the gateway is sent, described It is that the gateway is converted to after receiving the SIP that the SIP gateway is sent and receiving signaling that instant messaging, which receives information, , it is described in the SIP gateway is fed back to when the telephone terminal receives the SIP request signaling that the SIP, which receives signaling, Gateway;
First session establishment module, for according to the instant messaging receive information be the source instant communication client and The purpose telephone terminal establishes session.
According to a seventh aspect of the embodiments of the present invention, a kind of session establishment device is provided, gateway, described device are used for Include:
Demand signalling receiving module, for receiving the SIP request signaling of SIP gateway transmission, the SIP request signaling is source What telephone terminal was initiated;
Demand signalling conversion module, for being instant communication session request by the SIP request Signalling conversion;
Second session request sending module, for instant communication session request to be sent to instant communication server, The instant communication server is used to be requested to send audio-video to purpose instant communication client according to the instant communication session Call request;
Second receives information receiving module, receives letter for receiving the instant messaging that the instant communication server is sent Breath, it is that the purpose instant communication client receives feedback when voice and video telephone request that the instant messaging, which receives information, 's;
Receive info conversion module, being converted to SIP for the instant messaging to be received information receives signaling, will be described SIP receives signaling and is sent to the SIP gateway;The SIP receives instruction for informing the end of source telephone described in the SIP gateway Session has been established between end and the purpose instant communication client.
According to a eighth aspect of the embodiments of the present invention, a kind of session establishment device is provided, instant communication server, institute are used for Stating device includes:
Second session request receiving module, it is described instant for receiving the instant communication session request of gateway transmission Communication session request carries the mark of source telephone terminal and the mark of purpose telephone terminal;The instant communication session is requested The gateway obtains the SIP request Signalling conversion that SIP gateway is sent;
Second searching module, the purpose instant messaging client for being bound according to the identifier lookup of the purpose telephone terminal The mark at end;
Call request generation module, for according to the source telephone terminal mark and the purpose instant communication client Mark generate voice and video telephone request;
Call request sending module, for sending the voice and video telephone request to the purpose instant communication client;
Second receives information receiving module, and the instant messaging for receiving the purpose instant communication client feedback receives Information;
Second session establishment module is the source telephone terminal and the mesh for receiving information according to the instant messaging Instant communication client establish session.
Technical solution provided in an embodiment of the present invention has the benefit that
The instant communication session request that instant communication server is sent is received by gateway;Gateway is by Instant Messenger Letter session request is converted to SIP request signaling;SIP request signaling is sent to SIP gateway by gateway, and SIP gateway is used for will SIP request signaling is sent to purpose telephone terminal;Gateway receives the SIP that SIP gateway is sent and receives signaling;Gateway will It is that instant messaging receives information that SIP, which receives Signalling conversion, and instant messaging is received information and is sent to instant communication server;It solves When opposite end instant communication client is not online, it is impossible to opposite end instant communication client establish session, influence user it Between voice and video telephone the problem of;Reach when opposite end instant communication client is not online, it also can be with opposite end instant messaging visitor Telephone terminal bound in the end of family establishes session, and carries out voice and video telephone, expands the effect that voice and video telephone is applicable in scene.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is a kind of environment signal of implementation environment involved in the session establishing method of each embodiment offer of the present invention Figure;
Fig. 2 is the method flow diagram of session establishing method provided by one embodiment of the present invention;
Fig. 3 be another embodiment of the present invention provides session establishing method method flow diagram;
Fig. 4 is the method flow diagram for the session establishing method that yet another embodiment of the invention provides;
Fig. 5 is the method flow diagram for the session establishing method that further embodiment of this invention provides;
Fig. 6 is the method flow diagram for the session establishing method that a further embodiment of the present invention provides;
Fig. 7 is the method flow diagram for the session establishing method that a further embodiment of the present invention provides;
Fig. 8 is the structural block diagram of session establishment device provided by one embodiment of the present invention;
Fig. 9 be another embodiment of the present invention provides session establishment device structural block diagram;
Figure 10 is the structural block diagram for the session establishment device that yet another embodiment of the invention provides;
Figure 11 is the structural block diagram for the session establishment device that further embodiment of this invention provides;
Figure 12 is the structural block diagram for the session establishment device that a further embodiment of the present invention provides;
Figure 13 is the structural block diagram for the session establishment device that a further embodiment of the present invention provides;
Figure 14 is the structural block diagram for the session establishment device that a further embodiment of the present invention provides;
Figure 15 is the structural block diagram for the session establishment device that a further embodiment of the present invention provides;
Figure 16 is the structural schematic diagram of instant communication server provided by one embodiment of the present invention;
Figure 17 is the structural schematic diagram of gateway provided by one embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
Referring to FIG. 1, a kind of implementation involved in the session establishing method provided it illustrates each embodiment of the present invention The environment schematic of environment.The implementation environment includes instant communication client 110, instant communication server 120, gateway 130, proxy server 140, SIP gateway 150 and telephone terminal 160.
Instant communication client 110 refers to the electronic equipment for being equipped with instant messaging program, which can be intelligence Energy mobile phone, tablet computer, pocket computer on knee and desktop computer etc..
Instant communication client 110 is connected with instant communication server 120 by wireless network.
Instant communication server 120 be the data envelope for sending instant communication client 110 dress up meet immediately The data packet of communication protocol, and be the distribution session number of session each time and IP address and the port of proxy server.Instant Messenger Telecommunications services device 120 can be a server, or the server cluster consisted of several servers or a cloud meter Calculate service centre.
Gateway 130 is for being instant messaging agreement request or by instant messaging agreement request by SIP Signalling conversion The equipment for being converted to SIP signaling.
Proxy server 140 is the server for carrying out protocol conversion to data packet, and proxy server 140 can be One server, or the server cluster consisted of several servers or a cloud computing service center.
SIP gateway 150 transmits the data packet between instant communication client 110 and telephone terminal for being responsible for, The SIP gateway can be the server etc. of common carrier or virtual operator.
Telephone terminal 160 is for being handled and being played to the analog audio-video signal that SIP gateway is sent.Telephone terminal 160 be the electronic equipment with voice and video telephone function, which can be smart phone and videophone etc..
Referring to FIG. 2, it illustrates the method flow diagrams of session establishing method provided by one embodiment of the present invention.This reality It applies example and is applied to illustrate in gateway 130 shown in FIG. 1 with session establishing method.This method comprises:
Step 202, the instant communication session request that instant communication server is sent is received, instant communication session request carries The mark of active instant communication client and the mark of purpose telephone terminal;
Step 204, instant communication session request is converted into SIP request signaling;
Step 206, SIP request signaling is sent to SIP gateway, SIP gateway is used to SIP request signaling being sent to purpose Telephone terminal;
Step 208, it receives the SIP that SIP gateway is sent and receives signaling, it is that SIP gateway is whole in purpose phone that SIP, which receives signaling, It is fed back when the reception SIP request signaling of end;
Step 210, SIP is received Signalling conversion is that instant messaging receives information, and instant messaging is received information and is sent to Instant communication server;It is source instant communication client and purpose that instant communication server, which is used to receive according to instant messaging information, Telephone terminal establishes session.
It is sent in conclusion session establishing method provided in this embodiment receives instant communication server by gateway Instant communication session request;Instant communication session request is converted to SIP request signaling by gateway;Gateway is by SIP Demand signalling is sent to SIP gateway, and SIP gateway is used to SIP request signaling being sent to purpose telephone terminal;Gateway receives The SIP that SIP gateway is sent receives signaling;It is that instant messaging receives information that SIP is received Signalling conversion by gateway, will be instant Communication receives information and is sent to instant communication server;It solves when opposite end instant communication client is not online, it is impossible to The problem of opposite end instant communication client establishes session, influences the voice and video telephone between user;Reach when opposite end Instant Messenger When believing that client is not online, session can be also established with telephone terminal bound in the instant communication client of opposite end, and carry out sound view Frequency is conversed, and the effect that voice and video telephone is applicable in scene is expanded.
Referring to FIG. 3, it illustrates another embodiment of the present invention provides session establishing method method flow diagram.This reality It applies example and is applied to illustrate in instant communication server 110 shown in FIG. 1 with session establishing method.This method comprises:
Step 302, instant communication session request is sent to gateway, instant communication session request carries active Instant Messenger Believe the mark of client and the mark of purpose telephone terminal;The gateway is used to instant communication session request being converted to session After initializtion protocol SIP request signaling, SIP request signaling is sent to by purpose telephone terminal by SIP gateway;
Step 304, it receives the instant messaging that gateway is sent and receives information, it is gateway that instant messaging, which receives information, It is converted to after the SIP for receiving the transmission of SIP gateway receives signaling, it is SIP gateway in telephone terminal that SIP, which receives signaling, Gateway is fed back to when receiving SIP request signaling;
Step 306, receiving information according to instant messaging is that source instant communication client and purpose telephone terminal establish session.
In conclusion session establishing method provided in this embodiment is to gateway transmission by instant communication server When communication session request;Instant communication server receives the instant messaging that gateway is sent and receives information;Instant messaging service It is that source instant communication client and purpose telephone terminal establish session that device, which receives information according to instant messaging,;Solve when opposite end i.e. When communication customer end it is not online when, it is impossible to establish session with opposite end instant communication client, influence the audio-video between user The problem of call;Reached when opposite end instant communication client is not online, also can with bound in the instant communication client of opposite end Telephone terminal establish session, and carry out voice and video telephone, expand the effect that voice and video telephone is applicable in scene.
Referring to FIG. 4, the method flow diagram of the session establishing method provided it illustrates yet another embodiment of the invention.This reality It applies example and is applied to illustrate in gateway 130 shown in FIG. 1 with session establishing method.This method comprises:
Step 402, the SIP request signaling that Session initiation protocol SIP gateway is sent is received, SIP request signaling is source electricity What telephone terminal was initiated;
It step 404, is instant communication session request by SIP request Signalling conversion;
Step 406, instant communication session request is sent to instant communication server, instant communication server is used for basis Instant communication session requests to send voice and video telephone request to purpose instant communication client;
Step 408, it receives the instant messaging that instant communication server is sent and receives information, it is mesh that instant messaging, which receives information, Instant communication client receive to feed back when voice and video telephone request;
Step 410, it instant messaging is received information is converted to SIP to receive signaling, SIP is received into signaling and is sent to SIP net It closes;SIP receives instruction and session has been established between SIP gateway source telephone terminal and purpose instant communication client for informing.
It is asked in conclusion session establishing method provided in this embodiment receives the SIP that SIP gateway is sent by gateway Seek signaling;SIP request Signalling conversion is instant communication session request by gateway;Gateway requests instant communication session It is sent to instant communication server;Gateway receives the instant messaging that instant communication server is sent and receives information;Gateway is set It is standby instant messaging received information to be converted to SIP to receive signaling, SIP is received into signaling and is sent to SIP gateway;It solves and works as opposite end When instant communication client is not online, it is impossible to establish session with opposite end instant communication client, influence the sound view between user The problem of frequency is conversed;Reach when opposite end instant communication client is not online, can also have been tied up with opposite end instant communication client Fixed telephone terminal establishes session, and carries out voice and video telephone, expands the effect that voice and video telephone is applicable in scene.
Referring to FIG. 5, the method flow diagram of the session establishing method provided it illustrates further embodiment of this invention.This reality It applies example and is applied to illustrate in instant communication server 110 shown in FIG. 1 with session establishing method.This method comprises:
Step 502, the instant communication session request that gateway is sent is received, instant communication session request carries active The mark of telephone terminal and the mark of purpose telephone terminal;Instant communication session request is gateway by session initiation protocol What the SIP request Signalling conversion that SIP gateway is sent obtained;
Step 504, according to the mark of the purpose instant communication client of the identifier lookup of purpose telephone terminal binding;
Step 506, voice and video telephone is generated according to the mark of source telephone terminal and the mark of purpose instant communication client Request;
Step 508, voice and video telephone request is sent to purpose instant communication client;
Step 510, the instant messaging for receiving purpose instant communication client feedback receives information;
Step 512, receiving information according to instant messaging is that source telephone terminal and purpose instant communication client establish session.
It is sent in conclusion session establishing method provided in this embodiment receives gateway by instant communication server Instant communication session request;The purpose instant messaging that instant communication server is bound according to the identifier lookup of purpose telephone terminal The mark of client;Instant communication server is generated according to the mark of source telephone terminal and the mark of purpose instant communication client Voice and video telephone request;Instant communication server sends voice and video telephone request to purpose instant communication client;Instant messaging The instant messaging that server receives purpose instant communication client feedback receives information;Instant communication server is according to instant messaging Receiving information is that source telephone terminal and purpose instant communication client establish session;It solves and works as opposite end instant communication client not When online, it is impossible to the problem of establishing session with opposite end instant communication client, influence the voice and video telephone between user;Reach When opposite end instant communication client is not online, also meeting can be established with telephone terminal bound in the instant communication client of opposite end Words, and voice and video telephone is carried out, expand the effect that voice and video telephone is applicable in scene.
Referring to FIG. 6, the method flow diagram of the session establishing method provided it illustrates a further embodiment of the present invention.This reality It applies example and is applied to illustrate in implementation environment shown in FIG. 1 with session establishing method.This method comprises:
Step 601, instant communication server receives the voice and video telephone request that source instant communication client is sent, sound view Frequency call request carries the mark of source instant communication client and the mark of purpose instant communication client.
When user chooses the good friend for wanting to carry out voice and video telephone in the buddy list in instant signal procedure, immediately Communication customer end will send voice and video telephone request to instant communication server, carry initiation in voice and video telephone request The mark of the instant communication client of voice and video telephone, the i.e. mark of source instant communication client and called Instant Messenger Believe that the mark of client, the i.e. mark of purpose instant communication client, mark can be the account of instant communication client.
Step 602, instant communication server is instant according to purpose when detecting that purpose instant communication client is not online The mark of the telephone terminal of the identifier lookup binding of communication customer end.
Instant communication server extracts the sound after receiving the voice and video telephone request of source instant communication client transmission The mark of the purpose instant communication client carried in video calling request, according to the label detection purpose instant communication client It is whether online, when detecting that the purpose instant communication client is not online, inquire purpose instant communication client binding The mark of the mark of telephone terminal, the telephone terminal can be telephone number of telephone terminal etc..The present embodiment is with the mark It is illustrated for the number of the telephone terminal, limiting the invention.
Step 603, instant communication server is according to the mark of source instant communication client and the mark of purpose telephone terminal Generate instant communication session request.
Instant communication server generates instant according to the mark of source instant communication client and the mark of purpose telephone terminal Communication session request, instant communication session request meet instant messaging agreement.
Step 604, instant communication server sends instant communication session request to gateway.
Step 605, gateway receives the instant communication session request that instant communication server is sent.
Corresponding, gateway receives the instant communication session request that instant communication server is sent, which asks Seek the mark of the middle mark for carrying active instant communication client and purpose telephone terminal.
Step 606, instant communication session request is converted to SIP request signaling by gateway.
Since the request that gateway is sent to SIP gateway needs to meet Session Initiation Protocol, so gateway is receiving immediately After communication session request, need to request the instant communication session to be converted to the SIP demand signalling for meeting Session Initiation Protocol.Step 606 may include following sub-step:
One, gateway obtains the mark and purpose phone for the source instant communication client that instant communication session request carries The mark of terminal;
Gateway extracts the source carried in instant communication session request i.e. after getting instant communication session request When the mark of the communication customer end and mark of purpose telephone terminal.
Two, gateway is assisted according to the mark of source instant communication client and the mark of purpose telephone terminal according to SIP Standard of assessing a bid for tender generates SIP request signaling.
Gateway according to the mark of the source instant communication client extracted and the mark of purpose telephone terminal, according to Session Initiation Protocol is packaged instant communication session request, generates the SIP request signaling for meeting Session Initiation Protocol, SIP request letter The mark of source instant communication client and the mark of purpose telephone terminal are carried in order.
Step 607, SIP request signaling is sent to SIP gateway by gateway, which is used to request to believe by SIP Order is sent to purpose telephone terminal.
The SIP request signaling is sent to SIP gateway by gateway, and SIP gateway in the SIP request signaling according to carrying The mark of purpose telephone terminal sends the SIP request signaling to corresponding purpose telephone terminal.
It should be noted that purpose telephone terminal is after receiving the SIP request signaling, it will by SIP gateway to net It closes equipment and sends the feedback information and/or ringing information for attempting connection, gateway attempts the feedback information of connection receiving And/or after ringing information, that is, knows and the agreement of purpose telephone terminal is waited to establish session.
When session is established in the agreement of purpose telephone terminal, that is, when receiving SIP request signaling, it will send SIP to SIP gateway Receive signaling.
Step 608, SIP gateway receives signaling to gateway transmission SIP, and it is SIP gateway in mesh which, which receives signaling, Telephone terminal feed back when receiving SIP request signaling.
After the SIP that SIP gateway receives the transmission of purpose telephone terminal receives signaling, it will be added in the SIP request signaling The IP address and port information of SIP gateway, the SIP gateway are used for the generation by the IP address and port telephone terminal as a purpose It manages to proxy server and sends data packet.
Step 609, the SIP that gateway receives that SIP gateway is sent receives signaling.
Corresponding, gateway receives the SIP that SIP gateway is sent and receives signaling.
Step 610, it is that instant messaging receives information that SIP is received Signalling conversion by gateway, and instant messaging is received letter Breath is sent to instant communication server.
Since the information that receives that gateway is sent to instant communication server needs to meet instant messaging agreement, so net Equipment is closed after receiving SIP and receiving signaling, it is to meet the instant messaging of instant messaging agreement to connect which, which is received Signalling conversion, By information, and the instant messaging is received into information and is sent to instant communication server.Step 610 may include following sub-step:
One, gateway extracts IP address and the port that SIP receives the SIP gateway carried in signaling;
Gateway extracts IP address and the port that the SIP obtained receives the SIP gateway carried in signaling, the IP address And port for SIP gateway as a purpose telephone terminal agency to proxy server send data packet.
Two, IP address and port of the gateway according to SIP gateway generates instant messaging according to instant messaging consensus standard Receive information.
IP address and port of the gateway according to the SIP gateway extracted, meet the SIP according to instant messaging agreement It is packaged by signaling, the instant messaging that generation meets instant messaging agreement receives information, which receives to take in information IP address and port with SIP gateway.
Step 611, the instant messaging that instant communication server receives that gateway is sent receives information.
Step 612, instant communication server is that instant communication session is requested with distributing the IP of session number and proxy server Location and port, session number is for distinguishing different sessions;Proxy server is used for through IP address and port as source Instant Messenger Believe that the agency of client sends data packet to SIP gateway.
Instant communication server knows purpose phone after receiving the instant communication session request of gateway transmission Terminal is agreed to carry out voice and video telephone.
Then, instant communication server is that this voice and video telephone distributes session number, and the session number is different for distinguishing Session, which can have instant communication server to be generated according to pre-set create-rule, and synchronization is not present Identical session number.
And instant communication server is also IP address and the port of this voice and video telephone assignment agent server, is used for Proxy server sends data packet to SIP gateway as the agency of source instant communication client by the IP address and port.
Step 613, instant communication server obtain instant messaging receive the SIP gateway carried in information the address IP and Port.
Instant communication client extracts IP address and the port that instant messaging receives the SIP gateway carried in information, the SIP Gateway is used to send data packet to proxy server by the agency of IP address and port telephone terminal as a purpose.
Step 614, instant communication server sends session number, the IP address of proxy server and port to proxy server IP address and port with SIP gateway, the proxy server are used to establish IP address and the port of session number and proxy server Corresponding relationship between the IP address and port of SIP gateway.
Instant communication server is by the IP address and port of the session number of distribution and proxy server, and extracts The IP address of SIP gateway and port, are sent to proxy server, which is receiving instant communication server transmission Session number, after the IP address and port of the IP address of proxy server and port and SIP gateway, will store, and establish Corresponding relationship between the IP address and port of session number and proxy server and the IP address and port of SIP gateway generates table Structure session number relation table as shown in Table 1:
Table one
It should be noted that instant communication server is in the IP to proxy server transmission session number, proxy server After the IP address and port of location and port and SIP gateway, instant messaging will be sent to source instant communication client and receive request, used Yu Xiangyuan instant communication client informs that purpose telephone terminal has received voice and video telephone request, can be to purpose telephone terminal Send data packet.
According to above-mentioned steps 601 to step 614, source instant communication client and purpose telephone terminal establish session, Communication customer end can pass through following step 615 to step 621 audio, video data packet related to the progress of purpose telephone terminal when source Transmission.
Step 615, instant communication server sends the first protocol data packet to proxy server.
After source instant communication client and purpose telephone terminal establish session, instant communication server receives instant messaging visitor The first protocol data packet that family end is sent, the first protocol data packet meet instant messaging transport protocol.
Step 616, proxy server receives the first protocol data packet that instant communication server is sent.
Step 617, instant communication server sends redundant error correction data packet to proxy server.
Since data packet may lose during transmission, the quality of voice and video telephone is influenced, so immediately The communication server generates corresponding redundant error correction data packet according to continuous n the first protocol data packets, and by the redundant correcting Data packet is sent to proxy server.The redundant error correction data packet can be n continuous first protocol data packets and carry out exclusive or It generates.
Step 618, proxy server receives the redundant error correction data packet that instant communication server is sent.
Corresponding, proxy server will also after receiving n the first protocol data packets of instant communication server transmission Receive corresponding redundant error correction data packet.
Step 619, proxy server entangles n continuous first protocol data packets according to redundant error correction data packet It is wrong.
After proxy server receives redundant error correction data packet, according to the redundant error correction data packet to n continuous first Protocol data packet carries out error correction, and step 619 may include following sub-step:
One, whether proxy server is sent out in transmission process according to the sequence number detection of the first protocol data packet received Raw data-bag lost;
Proxy server obtains the sequence number in the first protocol data packet header packet information respectively, detects whether the sequence number connects It is continuous, when detecting that the sequence number is discontinuous, that is, knows and data-bag lost has occurred.
If data-bag lost two, has occurred in transmission process, proxy server is according to the first agreement number received Restore the first protocol data packet lost according to packet and redundant error correction data packet.
When detect data-bag lost has occurred when, proxy server can by the first protocol data packet received and should Redundant error correction data packet carries out XOR operation, restores the first protocol data packet lost.
For example, proxy server receives the first protocol data packet that sequence number is respectively 1,2,4 and 5, found after detection Be lost the first protocol data packet of Serial No. 3, the redundant error correction data of Serial No. 6 be respectively 1 according to sequence number, 2, 3,4 and 5 the first protocol data packet generates, and proxy server does the redundant error correction data packet with the first protocol data packet different Or operation, restore the first protocol data packet of Serial No. 3.
Step 620, the first protocol data packet is converted to second protocol data packet by proxy server, the second protocol data Packet is the data packet using RTP encapsulation.
Since proxy server needs to meet Real-time Transport Protocol to the data packet that SIP gateway is sent, so proxy server needs First protocol data packet is converted to the second protocol data packet for meeting Real-time Transport Protocol, this step may include following sub-step:
One, proxy server obtains the header packet information of the first protocol data packet, and header packet information includes the first protocol data packet Sequence number;
It should be noted that be also possible to carry in the header packet information priority of the first protocol data packet, loadtype, The information such as data packet length and timestamp.
Two, proxy server calculates the sequence number of second protocol data packet according to the sequence number of the first protocol data packet;
First protocol data packet is received due to proxy server and is generated according to n continuous first protocol data packets superfluous Remaining corrected data packets, and the sequence number of the redundant error correction data packet and the sequence number of the first protocol data packet are continuous, so agency Server calculates the sequence number of second protocol data packet according to the sequence number of the first protocol data packet.
For example, the sequence number for the one group 5 continuous first protocol data packets that proxy server receives is respectively 1,2, 3,4 and 5, and receive the redundant error correction data packet generated according to 5 continuous first protocol data packets, the redundant error correction data The serial number 6 of packet, the sequence number that corresponding second protocol data packet is calculated in proxy server is respectively 1,2,3,4 and 5;When The sequence number that proxy server receives another group 5 continuous first protocol data packets is respectively 7,8,9,10 and 11, agency The sequence number that corresponding second protocol data packet is calculated in server is respectively 6,7,8,9 and 10.
Three, the mark for the instant communication client that proxy server is carried according to the first protocol data packet generates second protocol The Synchronization Source of data packet;
The mark for the source instant communication client that proxy server is carried according to the first protocol data packet generates second protocol The Synchronization Source of data packet, the Synchronization Source are used to indicate the source of the second protocol data packet.
Four, proxy server is identified according to the contribution source that preset value generates second protocol data packet;
The contribution source mark of second protocol data packet is set as preset value by proxy server, which can be 0.
Five, proxy server generates the according to the sequence number of second protocol data packet, Synchronization Source and contribution source mark The header packet information of two protocol data packets.
It should be noted that generate second protocol data packet header packet information can also include version, filling, extension, The fields such as synchronisation source quantity, mark, timestamp and loadtype, proxy server can set 2 for version, will be filled with It is 0, sets 0 for extension, set 0 for synchronisation source quantity, is 0 by traffic sign placement, by the timestamp of the first protocol data packet As the timestamp of second protocol data packet, using the loadtype of the first protocol data packet as the load of second protocol data packet Type.
Proxy server generates the header packet information of second protocol data packet according to above- mentioned information, and generation meets RTP agreement Second protocol data packet.
Step 621, second protocol data packet is sent to SIP gateway by proxy server.
The second protocol data packet being converted to is sent to SIP gateway by proxy server, this step may include as follows Sub-step:
One, proxy server searches correspondence according to the session number of the first protocol data packet in the session number relation table prestored SIP gateway IP address and port and proxy server IP address and port, session number relation table includes session number and SIP The corresponding relationship of the IP address and port of the IP address of gateway and port and proxy server;
In step 614, session number that proxy server is sent according to instant communication server, proxy server The IP address and port of IP address and port and SIP gateway generate session number relation table, and proxy server is according to the first agreement Packet header information in session number, searched in session number relation table corresponding SIP gateway IP address and port and The IP address of proxy server and port.
Two, proxy server sends second protocol data packet to SIP gateway according to the IP address and port of SIP gateway.
Proxy server is according to the IP address of the SIP gateway found and the IP address and end of port and proxy server Mouthful, by the port of proxy server, second protocol data packet is sent to the port of corresponding SIP gateway.
For example, proxy server finds the IP address of proxy server according to session number " A0000001 " and port is distinguished For IP address A and port 001, the IP address of SIP gateway and port are respectively IP address B and port 001, and proxy server will lead to It is IP address B that port 001, which is crossed, to IP address, and the SIP gateway that port numbers are 001 sends second protocol data packet.
The second protocol data packet received is sent to purpose telephone terminal by SIP gateway, to realize that purpose phone is whole Voice and video telephone between end and source instant communication client.
It should be noted that telephone terminal can be with reference in Fig. 7 to the process that instant communication client sends data packet Step 713 is to step 718.
Session establishing method provided in this embodiment receives the Instant Messenger that instant communication server is sent by gateway Believe session request;Instant communication session request is converted to SIP request signaling by gateway;Gateway is by SIP request signaling It is sent to SIP gateway, SIP gateway is used to SIP request signaling being sent to purpose telephone terminal;Gateway receives SIP gateway The SIP of transmission receives signaling;It is that instant messaging receives information that SIP is received Signalling conversion by gateway, and instant messaging is received Information is sent to instant communication server;It solves when opposite end instant communication client is not online, it is impossible to instant with opposite end The problem of communication customer end establishes session, influences the voice and video telephone between user;Reach when opposite end instant communication client When not online, session can be also established with telephone terminal bound in the instant communication client of opposite end, and carry out voice and video telephone, expand Big voice and video telephone is applicable in the effect of scene.
In the present embodiment, step 601, step 602, step 603, step 604, step 611, step 612, step 613 and The session establishing method as instant communication server side can be implemented separately in step 614;Step 605, step 606, step 607, the session establishing method as gateway side can be implemented separately in step 609 and step 610.
In the specific implementation process, voice and video telephone can also be sent to instant communication client from telephone terminal to ask It asks, to establish session between telephone terminal and instant communication client, will be illustrated below using one embodiment.
Referring to FIG. 7, the method flow diagram of the session establishing method provided it illustrates a further embodiment of the present invention.This reality It applies example and is applied to illustrate in implementation environment shown in FIG. 1 with session establishing method.This method comprises:
Step 701, SIP gateway sends SIP request signaling to gateway.
SIP gateway sends SIP request letter after the SIP request signaling for receiving the transmission of source telephone terminal, to gateway It enables, which meets Session Initiation Protocol, which carries the address IP and port, source telephone of SIP gateway The mark of terminal and the mark of purpose telephone terminal.SIP gateway is used for through the address IP and port as source telephone terminal It acts on behalf of to proxy server and sends data packet.
Step 702, gateway receives the SIP request signaling that SIP gateway is sent, which is source telephone end What end was initiated.
Step 703, SIP request Signalling conversion is instant communication session request by gateway.
Since gateway needs to meet instant messaging agreement to the request that instant communication server is sent, so gateway is set It is standby to need to be the instant messaging agreement for meeting instant messaging agreement by SIP request Signalling conversion.This step may include following son Step:
One, gateway extracts the IP address of SIP gateway carried in SIP request signaling and port, source telephone terminal The mark of mark and purpose telephone terminal;
Gateway extracts the IP address of the SIP gateway carried in SIP request signaling and the mark of port, source telephone terminal With the mark of purpose telephone terminal, the IP address and port for SIP gateway as source telephone terminal agency to agency service Device sends data packet.
Two, gateway is according to the IP address of SIP gateway and port, the mark of source telephone terminal and purpose telephone terminal Mark generates instant communication session request according to instant messaging consensus standard.
Gateway is according to IP address and port, the mark of source telephone terminal and purpose phone of the SIP gateway extracted The mark of terminal is packaged the SIP request signaling according to instant messaging agreement, and generation meets the instant of instant messaging agreement Communication session request, the instant communication session request in carry SIP gateway the address IP and port, source telephone terminal mark With the mark of purpose telephone terminal.
Step 704, instant communication session request is sent to instant communication server, instant communication server by gateway For being requested to send voice and video telephone request to purpose instant communication client according to instant communication session.
Step 705, instant communication server receives the instant communication session request that gateway is sent.
Step 706, the purpose instant messaging visitor that instant communication server is bound according to the identifier lookup of purpose telephone terminal The mark at family end.
Instant communication server searches the purpose instant messaging with mark binding according to the mark of the purpose telephone terminal The mark of client.The mark of the instant communication client can be the account of instant communication client.
Step 707, instant communication server is according to the mark of source telephone terminal and the mark of purpose instant communication client Generate voice and video telephone request.
The instant communication session request that instant communication server is sent according to gateway generates voice and video telephone request, should The IP of the mark of source telephone terminal, the mark of purpose instant communication client and SIP gateway is carried in voice and video telephone request Address and port.
After instant communication server generates voice and video telephone request, it is logical that the audio-video is sent to purpose instant communication client Words request.
Step 708, the instant messaging that instant communication server receives purpose instant communication client feedback receives information.
Instant communication client sends instant messaging to instant communication server and connects after receiving voice and video telephone request By information, for informing that the instant communication server is agreed to carry out voice and video telephone.
Step 709, instant communication server obtain the address IP of SIP gateway carried in instant communication session request and Port.
Instant communication server also will acquire IP address and the port of the SIP gateway carried in instant communication session request, The IP address and port are used to send data packet to proxy server.
Step 710, instant communication server is that instant communication session is requested with distributing the IP of session number and proxy server Location and port, session number is for distinguishing different sessions;Proxy server is used for instant as a purpose by IP address and port The agency of communication customer end sends data packet to SIP gateway.
Instant communication server receives instant communication client and sends after instant messaging receives information, will be for this immediately Communication session distributes session number, and the session number is for distinguishing different sessions;Also by the IP address of assignment agent server and end Mouthful, proxy server sends data to SIP gateway by the agency of the IP address and port instant communication client as a purpose Packet.
Step 711, instant communication server sends session number, the IP address of proxy server and port to proxy server IP address and port with SIP gateway, proxy server be used for establish session number and proxy server IP address and port and Corresponding relationship between the IP address and port of SIP gateway.
Instant communication server is by the IP address and port of the session number of distribution and proxy server, and extracts The IP address of SIP gateway and port, are sent to proxy server, which is receiving instant communication server transmission Session number, after the IP address and port of the IP address of proxy server and port and SIP gateway, stored, and establish meeting Corresponding relationship of the words number between the IP address and port and the IP address and port of SIP gateway of proxy server, generates table knot Structure session number relation table as shown in Table 1.
Step 712, instant communication server receives information to gateway transmission instant messaging, and instant messaging receives information IP address and the port of proxy server are carried, gateway, which is used to instant messaging receiving information to be converted to SIP, receives letter After order, it is sent to SIP gateway.
Instant communication server will also send instant messaging to gateway and receive information, for informing source telephone terminal meeting Words are it has been established that the transmission of data packet can be carried out.
Gateway receives information after receiving the instant messaging and receiving information, by the instant messaging and is converted to meet The SIP of Session Initiation Protocol receives signaling, which receives IP address and the port that proxy server is carried in signaling, SIP gateway root Data packet can be sent according to the IP address and port.
According to above-mentioned steps 701 to step 712, purpose instant communication client and source telephone terminal establish session, Source telephone terminal can carry out the transmission of data packet by following steps 713 to step 718 and purpose instant messaging in client.
Step 713, SIP gateway sends second protocol data packet to proxy server.
Source telephone terminal sends analog audio-video signal to SIP gateway, SIP gateway by the analog audio-video signal assemble at Meet the second protocol data packet of Real-time Transport Protocol, and the second protocol data packet is sent to proxy server, the second protocol number The IP address of SIP gateway and the IP address and port of port and proxy server are carried according to packet.
Step 714, proxy server receives the second protocol data packet that SIP gateway is sent, which is SIP gateway, which is converted to the analog audio-video signal that telephone terminal is sent, to be obtained after the data packet using RTP encapsulation.
Step 715, second protocol data packet is converted to the first protocol data packet, the first protocol data packet by proxy server It is the data packet using instant messaging protocol encapsulation.
Since proxy server needs to meet instant messaging transport protocol, institute to the data packet that instant communication server is sent It needs to be converted to second protocol data packet into the first protocol data packet for meeting instant messaging transport protocol with proxy server.This Step may include following sub-step:
One, proxy server obtains the header packet information of second protocol data packet, and header packet information includes second protocol data packet Sequence number;
It should be noted that being also possible to carry the loadtype and timestamp of second protocol data packet in the header packet information Etc. information.
Two, proxy server calculates the sequence number of the first protocol data packet according to the sequence number of second protocol data packet;
Due to the redundant error correction data packet that proxy server needs to be generated according to n continuous second protocol data packets, and should The sequence number of redundant error correction data packet and the sequence number of second protocol data packet are continuous, so proxy server is according to second protocol The sequence number of data packet calculates the sequence number of the first protocol data packet.
For example, the sequence number for the one group 5 continuous second protocol data packets that server receives is respectively 1,2,3,4 With 5, according to the serial number 6 for the redundant error correction data packet that 5 continuous second protocol data packets generate, server is calculated The sequence number of corresponding first protocol data packet is respectively 1,2,3,4 and 5;When server receives another group 5 continuous The sequence number of two protocol data packets is respectively 6,7,8,9 and 10, due to the Serial No. of the redundant error correction data packet generated before 6, so the sequence number that corresponding first protocol data packet is calculated in server is respectively 7,8,9,10 and 11, according to 5 companies The serial number 12 for the redundant error correction data packet that continuous second protocol data packet generates.
Three, the IP address for the SIP gateway that proxy server is carried according to second protocol data packet and port and agency service Corresponding session number is searched in the IP address of device and port in the session number relation table prestored, and session number relation table includes session number With the corresponding relationship of the IP address and port of the IP address of SIP gateway and port and proxy server;
In step 711, proxy server is sent according to instant communication server session number, proxy server The IP address and port of IP address and port and SIP gateway generate session number relation table, and proxy server is according to second protocol The IP address for the SIP gateway that data packet carries and the address IP and port of port and proxy server are in session number relation table Search corresponding session number.
Four, proxy server generates the packet of the first protocol data packet according to the sequence number and session number of the first protocol data packet Head information.
It should be noted that the header packet information of the first protocol data packet generated can also include timestamp and loadtype It can be using the timestamp of second protocol data packet as the timestamp of the first protocol data packet, by the second association Deng, proxy server Discuss loadtype of the loadtype of data packet as the first protocol data packet.
Proxy server generates the header packet information of the first protocol data packet according to above- mentioned information, and generation meets instant messaging association Discuss the first protocol data packet of agreement.
Step 716, the first protocol data packet is sent to instant messaging visitor by instant communication server by proxy server Family end, instant communication client are used to carry out voice and video telephone according to the first protocol data packet and telephone terminal.
Proxy server is by the session number in the first protocol data packet header packet information, by instant communication server by the One protocol data packet is sent to instant communication client.
Step 717, proxy server generates redundant error correction data packets according to the continuous first protocol data packets of n, and n >= 1。
The n of generation continuous first protocol data packets can be carried out XOR operation by proxy server, are generated redundancy and are entangled Wrong data packet, and the redundant error correction data packet is sent to instant communication server, the instant communication server is according to the redundancy Corrected data packets detect whether the loss that data packet has occurred in transmission process, and are lost according to redundant error correction data packet recovery The data packet of mistake.
Step 718, proxy server sends redundant error correction data packet to instant communication server.
Redundant error correction data packet corresponding, that instant communication server Receiving Agent server is sent.
Instant communication server detects transmission process according to the first protocol data packet and redundant error correction data packet received In whether lost data packets if being lost data packet use the first protocol data packet and redundant error correction data packet received To the data packet for restoring to lose.After error correction, the first protocol data packet after error correction is sent to by instant communication server Purpose instant communication client, to realize the voice and video telephone of source telephone terminal and purpose instant communication client.
It should be noted that instant communication client can be with reference in Fig. 6 to the process that telephone terminal sends data packet Step 615 is to step 621.
It is asked in conclusion session establishing method provided in this embodiment receives the SIP that SIP gateway is sent by gateway Seek signaling;SIP request Signalling conversion is instant communication session request by gateway;Gateway requests instant communication session It is sent to instant communication server;Gateway receives the instant messaging that instant communication server is sent and receives information;Gateway is set It is standby instant messaging received information to be converted to SIP to receive signaling, SIP is received into signaling and is sent to SIP gateway;It solves and works as opposite end When instant communication client is not online, it is impossible to establish session with opposite end instant communication client, influence the sound view between user The problem of frequency is conversed;Reach when opposite end instant communication client is not online, can also have been tied up with opposite end instant communication client Fixed telephone terminal establishes session, and carries out voice and video telephone, expands the effect that voice and video telephone is applicable in scene.
In the present embodiment, step 702, step 703 and step 704 can be implemented separately builds as the session of gateway side Cube method;Step 705, step 706, step 707, step 708, step 709, step 710, step 711 and step 712 can be single Solely it is implemented as the session establishing method of instant communication server side.
Following Installation practices in the present invention can combine the details of description not detailed in Installation practice With reference to above-mentioned one-to-one embodiment of the method.
Referring to FIG. 8, it illustrates the structural block diagrams of session establishment device provided by one embodiment of the present invention.The meeting Words establish device can be by all or part of software, hardware or both being implemented in combination with as gateway.It should Session establishment device, comprising:
First session request receiving module 802, for receiving the instant communication session request of instant communication server transmission, The instant communication session request carries the mark of active instant communication client and the mark of purpose telephone terminal;
Session request conversion module 804, for instant communication session request to be converted to Session initiation protocol SIP Demand signalling;
Demand signalling sending module 806, for the SIP request signaling to be sent to SIP gateway, the SIP gateway is used In the SIP request signaling is sent to the purpose telephone terminal;
Receive signaling receiving module 808, receives signaling for receiving the SIP that the SIP gateway is sent, the SIP receives Signaling is that the SIP gateway is fed back when the purpose telephone terminal receives the SIP request signaling;
First receives information sending module 810, is that instant messaging receives information for the SIP to be received Signalling conversion, The instant messaging is received into information and is sent to the instant communication server;The instant communication server is used for according to It is that the source instant communication client and the purpose telephone terminal establish session that instant messaging, which receives information,.
It is sent in conclusion session establishment device provided in this embodiment receives instant communication server by gateway Instant communication session request;Instant communication session request is converted to SIP request signaling by gateway;Gateway is by SIP Demand signalling is sent to SIP gateway, and SIP gateway is used to SIP request signaling being sent to purpose telephone terminal;Gateway receives The SIP that SIP gateway is sent receives signaling;It is that instant messaging receives information that SIP is received Signalling conversion by gateway, will be instant Communication receives information and is sent to instant communication server;It solves when opposite end instant communication client is not online, it is impossible to The problem of opposite end instant communication client establishes session, influences the voice and video telephone between user;Reach when opposite end Instant Messenger When believing that client is not online, session can be also established with telephone terminal bound in the instant communication client of opposite end, and carry out sound view Frequency is conversed, and the effect that voice and video telephone is applicable in scene is expanded.
Referring to FIG. 9, it illustrates another embodiment of the present invention provides session establishment device structural block diagram.The meeting Words establish device can be by all or part of software, hardware or both being implemented in combination with as gateway.It should Session establishment device, comprising:
First session request receiving module 902, for receiving the instant communication session request of instant communication server transmission, The instant communication session request carries the mark of active instant communication client and the mark of purpose telephone terminal;
Session request conversion module 904, for instant communication session request to be converted to Session initiation protocol SIP Demand signalling;
Demand signalling sending module 906, for the SIP request signaling to be sent to SIP gateway, the SIP gateway is used In the SIP request signaling is sent to the purpose telephone terminal;
Receive signaling receiving module 908, receives signaling for receiving the SIP that the SIP gateway is sent, the SIP receives Signaling is that the SIP gateway is fed back when the purpose telephone terminal receives the SIP request signaling;
First receives information sending module 910, is that instant messaging receives information for the SIP to be received Signalling conversion, The instant messaging is received into information and is sent to the instant communication server;The instant communication server is used for according to It is that the source instant communication client and the purpose telephone terminal establish session that instant messaging, which receives information,.
Optionally, the session request conversion module 904, comprising:
Mark acquiring unit 904A, for obtaining the mark for the source instant communication client that the session request carries With the mark of the purpose telephone terminal;
Demand signalling generation unit 904B, for according to the source instant communication client mark and the purpose phone The mark of terminal generates the SIP request signaling according to Session Initiation Protocol standard.
Optionally, described first receives information sending module 910, comprising:
First extraction unit 910A receives the IP address of the SIP gateway carried in signaling for extracting the SIP And port;
Receive information generating unit 910B, for according to the SIP gateway IP address and port, assisted according to instant messaging The quasi- generation instant messaging of assessing a bid for tender receives information.
It is sent in conclusion session establishment device provided in this embodiment receives instant communication server by gateway Instant communication session request;Instant communication session request is converted to SIP request signaling by gateway;Gateway is by SIP Demand signalling is sent to SIP gateway, and SIP gateway is used to SIP request signaling being sent to purpose telephone terminal;Gateway receives The SIP that SIP gateway is sent receives signaling;It is that instant messaging receives information that SIP is received Signalling conversion by gateway, will be instant Communication receives information and is sent to instant communication server;It solves when opposite end instant communication client is not online, it is impossible to The problem of opposite end instant communication client establishes session, influences the voice and video telephone between user;Reach when opposite end Instant Messenger When believing that client is not online, session can be also established with telephone terminal bound in the instant communication client of opposite end, and carry out sound view Frequency is conversed, and the effect that voice and video telephone is applicable in scene is expanded.
Referring to FIG. 10, the structural block diagram of the session establishment device provided it illustrates yet another embodiment of the invention.It should Session establishment device can pass through the whole or one of software, hardware or both being implemented in combination with as instant communication server Part.The session establishment device, comprising:
First session request sending module 1002, it is described instant for sending instant communication session request to gateway Communication session request carries the mark of active instant communication client and the mark of purpose telephone terminal;The gateway is used for After instant communication session request is converted to Session initiation protocol SIP demand signalling, by SIP gateway by the SIP Demand signalling is sent to the purpose telephone terminal;
First receives information receiving module 1004, receives information for receiving the instant messaging that the gateway is sent, It is that the gateway is converted after receiving the SIP that the SIP gateway is sent and receiving signaling that the instant messaging, which receives information, It obtains, it is that the SIP gateway is fed back to when the telephone terminal receives the SIP request signaling that the SIP, which receives signaling, The gateway;
First session establishment module 1006 is the source instant messaging client for receiving information according to the instant messaging End and the purpose telephone terminal establish session.
In conclusion session establishment device provided in this embodiment is to gateway transmission by instant communication server When communication session request;Instant communication server receives the instant messaging that gateway is sent and receives information;Instant messaging service It is that source instant communication client and purpose telephone terminal establish session that device, which receives information according to instant messaging,;Solve when opposite end i.e. When communication customer end it is not online when, it is impossible to establish session with opposite end instant communication client, influence the audio-video between user The problem of call;Reached when opposite end instant communication client is not online, also can with bound in the instant communication client of opposite end Telephone terminal establish session, and carry out voice and video telephone, expand the effect that voice and video telephone is applicable in scene.
Figure 11 is please referred to, it illustrates the structural block diagrams for the session establishment device that further embodiment of this invention provides.It should Session establishment device can pass through the whole or one of software, hardware or both being implemented in combination with as instant communication server Part.The session establishment device, comprising:
First session request sending module 1102, it is described instant for sending instant communication session request to gateway Communication session request carries the mark of active instant communication client and the mark of purpose telephone terminal;The gateway is used for After instant communication session request is converted to Session initiation protocol SIP demand signalling, by SIP gateway by the SIP Demand signalling is sent to the purpose telephone terminal;
First receives information receiving module 1104, receives information for receiving the instant messaging that the gateway is sent, It is that the gateway is converted after receiving the SIP that the SIP gateway is sent and receiving signaling that the instant messaging, which receives information, It obtains, it is that the SIP gateway is fed back to when the telephone terminal receives the SIP request signaling that the SIP, which receives signaling, The gateway;
First session establishment module 1106 is the source instant messaging client for receiving information according to the instant messaging End and the purpose telephone terminal establish session.
Optionally, described device, further includes:
Call request receiving module 1107, for receiving the voice and video telephone request of source instant communication client transmission, institute It states voice and video telephone request and carries the mark of the source instant communication client and the mark of purpose instant communication client;
First searching module 1108, for when detecting that the purpose instant communication client is not online, according to described The mark of the telephone terminal of the identifier lookup binding of purpose instant communication client;
Session request generation module 1109, for according to the source instant communication client mark and the purpose phone The mark of terminal generates the instant communication session request.
Optionally, described device, further includes:
First distribution module 1110, for requesting the IP of distribution session number and proxy server for the instant communication session Address and port, the session number is for distinguishing different sessions;The proxy server is for passing through the IP address and end Mouth sends data packet to the SIP gateway as the agency of the source instant communication client.
Optionally, the first session establishment module 1106, comprising:
First acquisition unit 1106A receives the SIP gateway carried in information for obtaining the instant messaging IP address and port, the SIP gateway be used for by the IP address and port as the telephone terminal agency to described Proxy server sends data packet;
The first transmission unit 1106B, for sending the session number, the proxy server to the proxy server The IP address and port of IP address and port and the SIP gateway, the proxy server is for establishing the session number and institute State the corresponding relationship between the IP address and port and the IP address and port of the SIP gateway of proxy server.
In conclusion session establishment device provided in this embodiment is to gateway transmission by instant communication server When communication session request;Instant communication server receives the instant messaging that gateway is sent and receives information;Instant messaging service It is that source instant communication client and purpose telephone terminal establish session that device, which receives information according to instant messaging,;Solve when opposite end i.e. When communication customer end it is not online when, it is impossible to establish session with opposite end instant communication client, influence the audio-video between user The problem of call;Reached when opposite end instant communication client is not online, also can with bound in the instant communication client of opposite end Telephone terminal establish session, and carry out voice and video telephone, expand the effect that voice and video telephone is applicable in scene.
Figure 12 is please referred to, it illustrates the structural block diagrams for the session establishment device that a further embodiment of the present invention provides.It should Session establishment device can pass through all or part of software, hardware or both being implemented in combination with as gateway. The session establishment device, comprising:
Demand signalling receiving module 1202, for receiving the SIP request signaling of Session initiation protocol SIP gateway transmission, The SIP request signaling is that source telephone terminal is initiated;
Demand signalling conversion module 1204, for being instant communication session request by the SIP request Signalling conversion;
Second session request sending module 1206, for instant communication session request to be sent to instant messaging service Device, the instant communication server are used to be requested to send sound view to purpose instant communication client according to the instant communication session Frequency call request;
Second receives information receiving module 1208, receives for receiving the instant messaging that the instant communication server is sent Information, it is that the purpose instant communication client receives feedback when voice and video telephone request that the instant messaging, which receives information, 's;
Receive info conversion module 1210, being converted to SIP for the instant messaging to be received information receives signaling, by institute It states SIP and receives signaling and be sent to the SIP gateway;The SIP receives instruction for informing source telephone described in the SIP gateway Session has been established between terminal and the purpose instant communication client.
It is asked in conclusion session establishment device provided in this embodiment receives the SIP that SIP gateway is sent by gateway Seek signaling;SIP request Signalling conversion is instant communication session request by gateway;Gateway requests instant communication session It is sent to instant communication server;Gateway receives the instant messaging that instant communication server is sent and receives information;Gateway is set It is standby instant messaging received information to be converted to SIP to receive signaling, SIP is received into signaling and is sent to SIP gateway;It solves and works as opposite end When instant communication client is not online, it is impossible to establish session with opposite end instant communication client, influence the sound view between user The problem of frequency is conversed;Reach when opposite end instant communication client is not online, can also have been tied up with opposite end instant communication client Fixed telephone terminal establishes session, and carries out voice and video telephone, expands the effect that voice and video telephone is applicable in scene.
Figure 13 is please referred to, it illustrates the structural block diagrams for the session establishment device that a further embodiment of the present invention provides.It should Session establishment device can pass through all or part of software, hardware or both being implemented in combination with as gateway. The session establishment device, comprising:
Demand signalling receiving module 1302, for receiving the SIP request signaling of Session initiation protocol SIP gateway transmission, The SIP request signaling is that source telephone terminal is initiated;
Demand signalling conversion module 1304, for being instant communication session request by the SIP request Signalling conversion;
Second session request sending module 1306, for instant communication session request to be sent to instant messaging service Device, the instant communication server are used to be requested to send sound view to purpose instant communication client according to the instant communication session Frequency call request;
Second receives information receiving module 1308, receives for receiving the instant messaging that the instant communication server is sent Information, it is that the purpose instant communication client receives feedback when voice and video telephone request that the instant messaging, which receives information, 's;
Receive info conversion module 1310, being converted to SIP for the instant messaging to be received information receives signaling, by institute It states SIP and receives signaling and be sent to the SIP gateway;The SIP receives instruction for informing source telephone described in the SIP gateway Session has been established between terminal and the purpose instant communication client.
Optionally, the demand signalling conversion module 1304, comprising:
Second extraction unit 1304A, for extracting the IP address of the SIP gateway carried in the SIP request signaling And the mark of port, the mark of source telephone terminal and purpose telephone terminal;
Session request generation unit 1304B, for according to the IP address of the SIP gateway and port, source telephone terminal The mark of mark and purpose telephone terminal generates the instant communication session according to instant messaging consensus standard and requests.
It is asked in conclusion session establishment device provided in this embodiment receives the SIP that SIP gateway is sent by gateway Seek signaling;SIP request Signalling conversion is instant communication session request by gateway;Gateway requests instant communication session It is sent to instant communication server;Gateway receives the instant messaging that instant communication server is sent and receives information;Gateway is set It is standby instant messaging received information to be converted to SIP to receive signaling, SIP is received into signaling and is sent to SIP gateway;It solves and works as opposite end When instant communication client is not online, it is impossible to establish session with opposite end instant communication client, influence the sound view between user The problem of frequency is conversed;Reach when opposite end instant communication client is not online, can also have been tied up with opposite end instant communication client Fixed telephone terminal establishes session, and carries out voice and video telephone, expands the effect that voice and video telephone is applicable in scene.
Figure 14 is please referred to, it illustrates the structural block diagrams for the session establishment device that a further embodiment of the present invention provides.It should Session establishment device can pass through the whole or one of software, hardware or both being implemented in combination with as instant communication server Part.The session establishment device, comprising:
Second session request receiving module 1402, it is described for receiving the instant communication session request of gateway transmission Instant communication session request carries the mark of source telephone terminal and the mark of purpose telephone terminal;The instant communication session is asked Gateway described in Seeking Truth obtains the SIP request Signalling conversion that Session initiation protocol SIP gateway is sent;
Second searching module 1404, the purpose instant messaging for being bound according to the identifier lookup of the purpose telephone terminal The mark of client;
Call request generation module 1406, for according to the mark of the source telephone terminal and purpose instant messaging visitor The mark at family end generates voice and video telephone request;
Call request sending module 1408 is asked for sending the voice and video telephone to the purpose instant communication client It asks;
Second receives information receiving module 1410, for receiving the instant messaging of the purpose instant communication client feedback Receive information;
Second session establishment module 1412, for receiving information according to the instant messaging as the source telephone terminal and institute It states purpose instant communication client and establishes session.
It is sent in conclusion session establishment device provided in this embodiment receives gateway by instant communication server Instant communication session request;The purpose instant messaging that instant communication server is bound according to the identifier lookup of purpose telephone terminal The mark of client;Instant communication server is generated according to the mark of source telephone terminal and the mark of purpose instant communication client Voice and video telephone request;Instant communication server sends voice and video telephone request to purpose instant communication client;Instant messaging The instant messaging that server receives purpose instant communication client feedback receives information;Instant communication server is according to instant messaging Receiving information is that source telephone terminal and purpose instant communication client establish session;It solves and works as opposite end instant communication client not When online, it is impossible to the problem of establishing session with opposite end instant communication client, influence the voice and video telephone between user;Reach When opposite end instant communication client is not online, also meeting can be established with telephone terminal bound in the instant communication client of opposite end Words, and voice and video telephone is carried out, expand the effect that voice and video telephone is applicable in scene.
Figure 15 is please referred to, it illustrates the structural block diagrams for the session establishment device that a further embodiment of the present invention provides.It should Session establishment device can pass through the whole or one of software, hardware or both being implemented in combination with as instant communication server Part.The session establishment device, comprising:
Second session request receiving module 1502, it is described for receiving the instant communication session request of gateway transmission Instant communication session request carries the mark of source telephone terminal and the mark of purpose telephone terminal;The instant communication session is asked Gateway described in Seeking Truth obtains the SIP request Signalling conversion that Session initiation protocol SIP gateway is sent;
Second searching module 1504, the purpose instant messaging for being bound according to the identifier lookup of the purpose telephone terminal The mark of client;
Call request generation module 1506, for according to the mark of the source telephone terminal and purpose instant messaging visitor The mark at family end generates voice and video telephone request;
Call request sending module 1508 is asked for sending the voice and video telephone to the purpose instant communication client It asks;
Second receives information receiving module 1510, for receiving the instant messaging of the purpose instant communication client feedback Receive information;
Second session establishment module 1512, for receiving information according to the instant messaging as the source telephone terminal and institute It states purpose instant communication client and establishes session.
Optionally, the second session establishment module 1512, comprising:
Second acquisition unit 1512A, for obtaining the SIP gateway carried in the instant communication session request IP address and port, the SIP gateway be used for by the IP address and port as the source telephone terminal agency to generation It manages server and sends data packet;
Second allocation unit 1512B, for distributing session number and the agency service for instant communication session request The IP address of device and port, the session number is for distinguishing different sessions;The proxy server is for by the IP Location and port send data packet to the SIP gateway as the agency of the purpose instant communication client;
The second transmission unit 1512C, for sending the session number, the proxy server to the proxy server The IP address and port of IP address and port and the SIP gateway, the proxy server is for establishing the session number and institute State the corresponding relationship between the IP address and port and the IP address and port of the SIP gateway of proxy server.
Optionally, described device, further includes:
Second receives information sending module 1513, receives information for sending the instant messaging to the gateway, The instant messaging receives IP address and the port that information carries the proxy server, and the gateway is used for will be described Instant messaging receives information and is converted to after SIP receives signaling, is sent to the SIP gateway.
It is sent in conclusion session establishment device provided in this embodiment receives gateway by instant communication server Instant communication session request;The purpose instant messaging that instant communication server is bound according to the identifier lookup of purpose telephone terminal The mark of client;Instant communication server is generated according to the mark of source telephone terminal and the mark of purpose instant communication client Voice and video telephone request;Instant communication server sends voice and video telephone request to purpose instant communication client;Instant messaging The instant messaging that server receives purpose instant communication client feedback receives information;Instant communication server is according to instant messaging Receiving information is that source telephone terminal and purpose instant communication client establish session;It solves and works as opposite end instant communication client not When online, it is impossible to the problem of establishing session with opposite end instant communication client, influence the voice and video telephone between user;Reach When opposite end instant communication client is not online, also meeting can be established with telephone terminal bound in the instant communication client of opposite end Words, and voice and video telephone is carried out, expand the effect that voice and video telephone is applicable in scene.
It should be noted that session establishment device provided by the above embodiment conversate establish when, only with above-mentioned each The division progress of functional module can according to need and for example, in practical application by above-mentioned function distribution by different function Energy module is completed, i.e., the internal structure of instant communication server and/or gateway is divided into different functional modules, with complete At all or part of function described above.In addition, session establishing method provided by the above embodiment and session establishment device Embodiment belongs to same design, and specific implementation process is detailed in embodiment of the method, and which is not described herein again.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Figure 16 is please referred to, it illustrates the structural schematic diagrams of instant communication server provided by one embodiment of the present invention. The instant communication server 1600 includes 1602 He of central processing unit (CPU) 1601 including random access memory (RAM) The system storage 1604 of read-only memory (ROM) 1603, and connection system storage 1604 and central processing unit 1601 System bus 1605.The server or terminal 1600 further include that information is transmitted between each device helped in computer Basic input/output (I/O system) 1606, and it is used for storage program area 1613, application program 1614 and other programs The mass-memory unit 1607 of module 1615.
The basic input/output 1606 includes display 1608 for showing information and inputs for user The input equipment 1609 of such as mouse, keyboard etc of information.Wherein the display 1608 and input equipment 1609 all pass through The input and output controller 1610 for being connected to system bus 1605 is connected to central processing unit 1601.The basic input/defeated System 1606 can also include input and output controller 1610 to touch for receiving and handling from keyboard, mouse or electronics out Control the input of multiple other equipment such as pen.Similarly, input and output controller 1610 also provide output to display screen, printer or Other kinds of output equipment.
The mass-memory unit 1607 (is not shown by being connected to the bulk memory controller of system bus 1605 It is connected to central processing unit 1601 out).The mass-memory unit 1607 and its associated computer-readable medium are Server 1600 provides non-volatile memories.That is, the mass-memory unit 1607 may include such as hard disk or The computer-readable medium (not shown) of person's CD-ROM drive etc.
Without loss of generality, the computer-readable medium may include computer storage media and communication media.Computer Storage medium includes information such as computer readable instructions, data structure, program module or other data for storage The volatile and non-volatile of any method or technique realization, removable and irremovable medium.Computer storage medium includes RAM, ROM, EPROM, EEPROM, flash memory or other solid-state storages its technologies, CD-ROM, DVD or other optical storages, tape Box, tape, disk storage or other magnetic storage devices.Certainly, skilled person will appreciate that the computer storage medium It is not limited to above-mentioned several.Above-mentioned system storage 1604 and mass-memory unit 1607 may be collectively referred to as memory.
According to various embodiments of the present invention, the server 1600 can also be arrived by network connections such as internets Remote computer operation on network.Namely server 1600 can be connect by the network being connected on the system bus 1605 Mouth unit 1611 is connected to network 1612, in other words, it is other kinds of to be connected to that Network Interface Unit 1611 also can be used Network or remote computer system (not shown).
The memory further includes that one or more than one program, the one or more programs are stored in In memory, the one or more programs include for carrying out instant communication server provided in an embodiment of the present invention The instruction of side session establishing method.
Figure 17 is please referred to, it illustrates the structural schematic diagrams of gateway provided by one embodiment of the present invention.Gateway is set Standby 1700 include memory 1720, communication bus 1730, processor 1740, transmitter 1750 and receiver 1760 etc..Wherein, it deposits Reservoir 1720, processor 1740, transmitter 1750 and receiver 1760 are linked together by communication bus 1730.
Memory 1720 further includes one, and perhaps more than one program this or more than one program are stored in In reservoir, this or more than one program include to build for carrying out the session of gateway side provided in an embodiment of the present invention The instruction of cube method.Processor 1740 is used to execute one or more than one program of the storage of memory 1720.
Transmitter 1750 is used to send SIP request signaling to SIP gateway, connects to instant communication server transmission instant messaging It collects mail and ceases, instant communication session request is sent to instant communication server and receives signaling to SIP gateway transmission SIP.
Receiver 1760 is used to receive the instant communication session request of instant communication server transmission, receives SIP gateway hair The SIP sent receives signaling, receives SIP request signaling and receive the instant of instant communication server transmission that SIP gateway is sent Communication receives information.
It should be understood that it is used in the present context, unless the context clearly supports exceptions, singular " one It is a " (" a ", " an ", " the ") be intended to also include plural form.It is to be further understood that "and/or" used herein is Refer to any and all possible combinations including one or more than one project listed in association.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (16)

1. a kind of session establishing method, which is characterized in that be used for gateway, which comprises
The instant communication session request that instant communication server is sent is received, the instant communication session request carrying is active immediately The mark of communication customer end and the mark of purpose telephone terminal, the mark of the purpose telephone terminal are the instant messaging services Device is arrived when detecting that purpose instant communication client is not online according to the identifier lookup of the purpose instant communication client With the mark of the telephone terminal of purpose instant communication client binding;
Instant communication session request is converted into Session initiation protocol SIP demand signalling;
The SIP request signaling is sent to SIP gateway, the SIP gateway is used to for the SIP request signaling being sent to described Purpose telephone terminal;
It receives the SIP that the SIP gateway is sent and receives signaling, it is the SIP gateway in the purpose electricity that the SIP, which receives signaling, Telephone terminal, which receives, to be fed back when the SIP request signaling;
It is that instant messaging receives information that the SIP, which is received Signalling conversion, by the instant messaging receive information be sent to it is described Instant communication server;It is the source instant messaging that the instant communication server, which is used to receive according to the instant messaging information, Client and the purpose telephone terminal establish session.
2. the method according to claim 1, wherein described be converted to session for instant communication session request Initializtion protocol SIP request signaling, comprising:
Obtain the mark for the source instant communication client that the session request carries and the mark of the purpose telephone terminal;
It is raw according to Session Initiation Protocol standard according to the mark of the source instant communication client and the mark of the purpose telephone terminal At the SIP request signaling.
3. method according to claim 1 or 2, which is characterized in that described that the SIP is received Signalling conversion as Instant Messenger Letter receives information, comprising:
Extract IP address and port that the SIP receives the SIP gateway carried in signaling;
According to the IP address of the SIP gateway and port, the instant messaging is generated according to instant messaging consensus standard and receives letter Breath.
4. a kind of session establishing method, which is characterized in that be used for instant communication server, which comprises
Instant communication session request is sent to gateway, the instant communication session request carries active instant communication client Mark and purpose telephone terminal mark, the mark of the purpose telephone terminal is to detect purpose instant communication client When not online, that is arrived according to the identifier lookup of the purpose instant communication client binds with the purpose instant communication client Telephone terminal mark;The gateway is used to instant communication session request being converted to session initiation protocol After SIP request signaling, the SIP request signaling is sent to by the purpose telephone terminal by SIP gateway;
It receives the instant messaging that the gateway is sent and receives information, it is the gateway that the instant messaging, which receives information, It is converted to after receiving the SIP that the SIP gateway is sent and receiving signaling, it is the SIP gateway that the SIP, which receives signaling, The gateway is fed back to when the telephone terminal receives the SIP request signaling;
Receiving information according to the instant messaging is that the source instant communication client and the purpose telephone terminal establish session.
5. according to the method described in claim 4, it is characterized in that, described request it to gateway transmission instant communication session Before, further includes:
The voice and video telephone request that reception source instant communication client is sent, it is instant that the voice and video telephone request carries the source The mark of communication customer end and the mark of purpose instant communication client;
When detecting that the purpose instant communication client is not online, looked into according to the mark of the purpose instant communication client Look for the mark of the telephone terminal of binding;
The instant messaging meeting is generated according to the mark of the mark of the source instant communication client and the purpose telephone terminal Words request.
6. method according to claim 4 or 5, which is characterized in that described to receive information according to the instant messaging as institute It states source instant communication client and the purpose telephone terminal is established before session, further includes:
IP address and the port of distribution session number and proxy server are requested for the instant communication session, the session number is used for Distinguish different sessions;The proxy server is used for through the IP address and port as the source instant communication client Agency to the SIP gateway send data packet.
7. according to the method described in claim 6, it is characterized in that, described receive information according to the instant messaging as the source Instant communication client and the purpose telephone terminal establish session, comprising:
IP address and port that the instant messaging receives the SIP gateway carried in information are obtained, the SIP gateway is used for Data packet is sent to the proxy server as the agency of the telephone terminal by the IP address and port;
The session number, the IP address of the proxy server and port and the SIP gateway are sent to the proxy server IP address and port, the proxy server be used to establish IP address and the port of the session number and the proxy server Corresponding relationship between the IP address and port of the SIP gateway.
8. a kind of session establishing method, which is characterized in that be used for gateway, which comprises
The SIP request signaling that Session initiation protocol SIP gateway is sent is received, the SIP request signaling is source telephone terminal hair It rises, the source telephone terminal is the terminal bound with source instant communication client, is carried in the SIP request signaling described The mark of source telephone terminal and the mark of purpose telephone terminal;
It is instant communication session request by the SIP request Signalling conversion;
Instant communication session request is sent to instant communication server, the instant communication server is used for according to The mark of purpose telephone terminal searches the mark with the purpose instant communication client of the mark binding of the purpose telephone terminal Know, voice and video telephone request generated according to the mark of the mark of the source telephone terminal and the purpose instant communication client, And the voice and video telephone request is sent to the purpose instant communication client;
It receives the instant messaging that the instant communication server is sent and receives information, it is the mesh that the instant messaging, which receives information, Instant communication client receive to feed back when voice and video telephone request, the instant communication server is also used to according to institute Stating instant messaging to receive information is that the source telephone terminal and the purpose instant communication client establish session;
It the instant messaging is received information is converted to SIP to receive signaling, the SIP is received into signaling and is sent to the SIP net It closes;The SIP receive instruction for inform source telephone terminal described in the SIP gateway and the purpose instant communication client it Between session has been established.
9. according to the method described in claim 8, it is characterized in that, it is described by the SIP request Signalling conversion be instant messaging Session request, comprising:
Extract the IP address of the SIP gateway carried in the SIP request signaling and the mark of port, the source telephone terminal With the mark of the purpose telephone terminal;
According to the IP address of the SIP gateway and the mark of port, the mark of the source telephone terminal and the purpose telephone terminal Know, generates the instant communication session according to instant messaging consensus standard and request.
10. a kind of session establishing method, which is characterized in that be used for instant communication server, which comprises
The instant communication session request that gateway is sent is received, the instant communication session request carries source telephone terminal The mark of mark and purpose telephone terminal, the source telephone terminal is the terminal bound with source instant communication client;It is described to be When communication session request be that the gateway obtains the SIP request Signalling conversion that Session initiation protocol SIP gateway is sent , the mark of the source telephone terminal and the mark of the purpose telephone terminal are carried in the SIP request signaling;
According to the mark of the purpose instant communication client of the identifier lookup of purpose telephone terminal binding;
Voice and video telephone request is generated according to the mark of the mark of the source telephone terminal and the purpose instant communication client;
The voice and video telephone request is sent to the purpose instant communication client;
The instant messaging for receiving the purpose instant communication client feedback receives information;
Receiving information according to the instant messaging is that the source telephone terminal and the purpose instant communication client establish session.
11. according to the method described in claim 10, it is characterized in that, described to receive information according to the instant messaging be described Source telephone terminal and the purpose instant communication client establish session, comprising:
The IP address and port, the SIP gateway for obtaining the SIP gateway carried in the instant communication session request are used for Data packet is sent to proxy server as the agency of the source telephone terminal by the IP address and port;
IP address and the port of distribution session number and the proxy server, the session number are requested for the instant communication session For distinguishing different sessions;The proxy server is used for through the IP address and port as the purpose instant messaging The agency of client sends data packet to the SIP gateway;
The session number, the IP address of the proxy server and port and the SIP gateway are sent to the proxy server IP address and port, the proxy server be used to establish IP address and the port of the session number and the proxy server Corresponding relationship between the IP address and port of the SIP gateway.
12. according to the method for claim 11, which is characterized in that described for instant communication session request distribution session Number and the proxy server IP address and port after, further includes:
The instant messaging is sent to the gateway and receives information, and the instant messaging receives information and carries the agency The IP address of server and port, the gateway, which is used to the instant messaging receiving information to be converted to SIP, receives signaling Afterwards, it is sent to the SIP gateway.
13. a kind of session establishment device, which is characterized in that be used for gateway, described device includes:
First session request receiving module, it is described to be for receiving the instant communication session request of instant communication server transmission When communication session request carry the mark of active instant communication client and the mark of purpose telephone terminal, the purpose phone is whole The mark at end is the instant communication server when detecting that purpose instant communication client is not online, is according to the purpose When communication customer end identifier lookup arrive with the purpose instant communication client binding telephone terminal mark;
Session request conversion module, for instant communication session request to be converted to Session initiation protocol SIP request letter It enables;
Demand signalling sending module, for the SIP request signaling to be sent to SIP gateway, the SIP gateway is used for will be described SIP request signaling is sent to the purpose telephone terminal;
Receive signaling receiving module, receives signaling for receiving the SIP that the SIP gateway is sent, it is institute that the SIP, which receives signaling, State what SIP gateway was fed back when the purpose telephone terminal receives the SIP request signaling;
First receives information sending module, is that instant messaging receives information for the SIP to be received Signalling conversion, will described be Shi Tongxin receives information and is sent to the instant communication server;The instant communication server is used for according to the instant messaging Receiving information is that the source instant communication client and the purpose telephone terminal establish session.
14. a kind of session establishment device, which is characterized in that be used for instant communication server, described device includes:
First session request sending module, for sending instant communication session request, the instant communication session to gateway Request carries the mark of active instant communication client and the mark of purpose telephone terminal, and the mark of the purpose telephone terminal is When detecting that purpose instant communication client is not online, arrived according to the identifier lookup of the purpose instant communication client with The mark of the telephone terminal of the purpose instant communication client binding;The gateway is used for the instant communication session After request is converted to Session initiation protocol SIP demand signalling, the SIP request signaling is sent to by SIP gateway described Purpose telephone terminal;
First receives information receiving module, receives information for receiving the instant messaging that the gateway is sent, described instant It is that the gateway is converted to after receiving the SIP that the SIP gateway is sent and receiving signaling that communication, which receives information, institute SIP is stated to receive signaling to be the SIP gateway feed back to the gateway when the telephone terminal receives the SIP request signaling to set It is standby;
First session establishment module is the source instant communication client and described for receiving information according to the instant messaging Purpose telephone terminal establishes session.
15. a kind of session establishment device, which is characterized in that be used for gateway, described device, comprising:
Demand signalling receiving module, for receiving the SIP request signaling of Session initiation protocol SIP gateway transmission, the SIP is asked Seeking signaling is that source telephone terminal is initiated, and the source telephone terminal is the terminal bound with source instant communication client, the SIP The mark of the source telephone terminal and the mark of purpose telephone terminal are carried in demand signalling;
Demand signalling conversion module, for being instant communication session request, the instant messaging by the SIP request Signalling conversion Session request carries the mark of the source telephone terminal;
Second session request sending module, it is described for instant communication session request to be sent to instant communication server Instant communication server is used for the mark according to the purpose telephone terminal, searches and binds with the mark of the purpose telephone terminal Purpose instant communication client mark, according to the mark of the source telephone terminal and the purpose instant communication client Mark generates voice and video telephone request, and sends the voice and video telephone request to the purpose instant communication client;
Second receives information receiving module, receives information for receiving the instant messaging that the instant communication server is sent, institute Stating instant messaging to receive information is that the purpose instant communication client receives to feed back when voice and video telephone request, described It is the source telephone terminal and the purpose Instant Messenger that instant communication server, which is also used to receive according to the instant messaging information, Letter client establishes session;
Receive info conversion module, being converted to SIP for the instant messaging to be received information receives signaling, and the SIP is connect The SIP gateway is sent to by signaling;The SIP receives instruction for informing source telephone terminal described in the SIP gateway and institute It states and session has been established between purpose instant communication client.
16. a kind of session establishment device, which is characterized in that be used for instant communication server, described device includes:
Second session request receiving module, for receiving the instant communication session request of gateway transmission, the instant messaging Session request carries the mark of source telephone terminal and the mark of purpose telephone terminal, and the source telephone terminal is and source Instant Messenger Believe the terminal of client binding;Instant communication session request is the gateway by Session initiation protocol SIP gateway What the SIP request Signalling conversion of transmission obtained, the mark of the source telephone terminal and described is carried in the SIP request signaling The mark of purpose telephone terminal;
Second searching module, purpose instant communication client for being bound according to the identifier lookup of the purpose telephone terminal Mark;
Call request generation module, for according to the mark of the source telephone terminal and the mark of the purpose instant communication client Know and generates voice and video telephone request;
Call request sending module, for sending the voice and video telephone request to the purpose instant communication client;
Second receives information receiving module, and the instant messaging for receiving the purpose instant communication client feedback receives letter Breath;
Second session establishment module, for according to the instant messaging receive information be the source telephone terminal and the purpose i.e. When communication customer end establish session.
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 CN105634911A (en) 2016-06-01
CN105634911B true 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)

Families Citing this family (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
CN117294746B (en) * 2023-09-07 2024-06-25 视昀科技(深圳)有限公司 Converged communication method, device, terminal equipment and storage medium

Citations (3)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101596955B1 (en) * 2009-02-20 2016-02-23 삼성전자주식회사 Method for session transfer in a converged ip messaging system

Patent Citations (3)

* 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
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

Also Published As

Publication number Publication date
CN105634911A (en) 2016-06-01

Similar Documents

Publication Publication Date Title
US10637970B2 (en) Packet processing method and apparatus
CN104243281B (en) Voice communication method based on mobile internet
CN109120946B (en) Method and device for watching live broadcast
CN110087102B (en) State query method, device and storage medium
US10027496B2 (en) Method for distributing identifiers of multicast sources
CN109068186B (en) Method and device for processing packet loss rate
CN109040658B (en) Conference control method and device
CN105847108B (en) Communication means and device between container
KR101468315B1 (en) Failover system and method for high availability session reconstruction
CN103548315B (en) Method and apparatus for high performance low latency real time notification delivery
CN104320490B (en) A kind of reliable data transmission method and system of the breakpoint transmission based on SIP
CN110011935A (en) Data flow processing method and relevant device
CN112995234B (en) Media transmission link management method and device
CN110022456A (en) The method and apparatus for inviting terminals joining the conference
US20240022619A1 (en) Augmented reality communication method, apparatus, and system
US20170019437A1 (en) Conference reconstruction in sip networks
CN105591879B (en) Data transmission method and device
CN106612196B (en) Obtain the method and device of resource
US20170126751A1 (en) Method for establishing a communication connection which is suitable for transmitting media streams between a first rtc client and a second rtc client
CN105634911B (en) Session establishing method and device
CN104869106A (en) Sound recording method, voice switching equipment, sound recording server and sound recording system
CN104994067B (en) SIP network accesses the system and method for RTSP monitoring networks
CN105939404B (en) The acquisition methods and device of NAT resource
CN102177764A (en) Methods, systems, and computer readable media for session initiation protocol (SIP) dialog identification
CN111093047A (en) Video call connection establishing method and device, electronic equipment and storage medium

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