CN106411836B - Call connection method and client - Google Patents
Call connection method and client Download PDFInfo
- Publication number
- CN106411836B CN106411836B CN201610373444.9A CN201610373444A CN106411836B CN 106411836 B CN106411836 B CN 106411836B CN 201610373444 A CN201610373444 A CN 201610373444A CN 106411836 B CN106411836 B CN 106411836B
- Authority
- CN
- China
- Prior art keywords
- address
- talk
- client
- information
- weighted value
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/40—Network security protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/10—Architectures or entities
- H04L65/1016—IP multimedia subsystem [IMS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
Abstract
The invention discloses a kind of call connection method and client, this method includes:When answering client and receiving the call information of calls customer end transmission, parsing call information is to obtain the corresponding first talk address information in calls customer end;Answer the weighted value that client determines each talk address in the first talk address information based on the first talk address information;Answer client and continuity testing is carried out based on the maximum talk address of weighted value, and send the weighted value of each talk address in the first talk address information to calls customer end, so that calls customer end group carries out continuity testing in the maximum talk address of weighted value;When continuity testing is successfully tested, client is answered based on weighted value maximum talk address foundation and the communication connection at calls customer end.Present invention optimizes detection of connectivity program, the continuity testing time is reduced.
Description
Technical field
The present invention relates to communication technical field, more particularly to a kind of call connection method and client.
Background technology
With continuing to develop for the communication technology, voice and video telephone is carried out by terminal device and also become more and more popular, in terminal
Equipment is during voice and video telephone is carried out, and the network environment between terminal device is different, in order that obtaining voice and video telephone
During media data from a terminal device be sent to another terminal device and come, it is necessary to affix one's name to a server in the middle part of outer net
Forwarding media data, carry out media data forwarding, hence in so that service because all terminal devices all rely on the server
The pressure that device is born is very big, easily works as machine;In order to solve the above-mentioned technical problem, (Internet Communication are introduced
Engine, ICE) distributed forwarding communication mechanism so that media data is direct from a terminal device during voice and video telephone
Another terminal device is sent to, when media data can not be transferred directly to another terminal device from a terminal device,
Again by the server disposed in outer net come forwarding media data, so that the voice and video telephone between realizing terminal device, but by
Network environment between terminal device is different, therefore the media data between terminal device is either directly transmitted or passed through
Transfer server is sent, it is necessary to detect that internal address between terminal device is connective, outer net address is connective and transfer
Station address is connective, finally selects connective best address in three addresses to carry out call connection, therefore expend substantial amounts of
The voice and video telephone Connection Time, so as to reduce voice and video telephone joint efficiency.
The content of the invention
It is a primary object of the present invention to provide a kind of call connection method and client, it is intended to solve current in call company
When connecing, it is necessary to detect that internal address between terminal device is connective, outer net address is connective and transfer station address is connective,
And the problem of cause voice and video telephone joint efficiency.
To achieve the above object, a kind of call connection method that the present invention is provided, including:
When answering client and receiving the call information of calls customer end transmission, the call information is parsed to obtain
State the corresponding first talk address information in calls customer end, and the first transfer station address into the first talk address information
Corresponding terminal obtains the corresponding second talk address information of local terminal;
It is described answer client and be based on the first talk address information and second address information determine described the
Talk address in the weighted value of each talk address in one address information, the first talk address information includes the first outer net
Address, the first internal address and the first transfer station address;
The client of answering carries out continuity testing based on the maximum talk address of weighted value, and by described first
The weighted value of each talk address is sent to the calls customer end in talk address information, for the calls customer end group in
The maximum talk address of weighted value carries out continuity testing;
When continuity testing is successfully tested, the client of answering is set up based on the maximum talk address of weighted value
With the communication connection at the calls customer end.
Preferably, the client of answering is based on the first talk address information and second address information determination
Include in first address information the step of weighted value of each talk address:
Judge in the described first outer net address and the second talk address information in the first talk address information
The second outer net address it is whether identical;
When the described first outer net address is identical with the described second outer net address, by the first talk address information
The weighted value of first internal address is set to the first preset value, by the described first outer net address and the first transfer station address
Weighted value is set to the second preset value, wherein, first preset value is more than second preset value.
Preferably, the described first outer net address judged in the first talk address information and the described second call
After the whether identical step of the second outer net address in address information, the call connection method also includes:
When the described first outer net address and the described second outer net address are differed, obtain main described in the call information
Cry whether the first network address conversion type of client and the second network address conversion type of local terminal are preset kind;
, will when the first network address conversion type and second network address conversion type are preset kind
The weighted value of the first transfer station address is set to the 3rd preset value, and by the described first outer net address and the first internal address
Weighted value be set to the 4th preset value, wherein, the 3rd preset value be more than the 4th preset value.
, will when the first network address conversion type and second network address conversion type are not preset kinds
The weighted value of the first outer net address is set to the 5th preset value, and it is pre- that the weighted value of the first transfer station address is set into the 6th
If value, and is set to the 7th preset value by the weighted value of the described first outer net address, wherein, the 6th preset value is more than described the
Seven preset values, and less than the 5th preset value.
To achieve the above object, the present invention provides a kind of call connection method again, including:
After entering voice and video telephone pattern at calls customer end, call information is sent to client is answered;
The first talk address letter that client is sent based on the call information is answered described in receiving in the calls customer end
The weighted value of the talk address of each in breath, wherein, the client of answering parses the call information to obtain the caller visitor
The corresponding first talk address information in family end, and during the first transfer station address into the first talk address information is corresponding
Turn station and obtain the corresponding second talk address information of local terminal, it is described answer client be based on the first talk address information and
Second address information determines the weighted value of each talk address in first address information, and converses ground by described first
The weighted value of each talk address is sent to the calls customer end in the information of location, the call in the first talk address information
Address includes the first outer net address, the first internal address and the first transfer station address;
The calls customer end group carries out continuity testing in the maximum talk address of weighted value;
In continuity testing success, the calls customer end is according to the maximum talk address of the weighted value and institute
State and answer client progress call connection.
Preferably, the terminal includes the client that network address conversion type is default translation type.
In addition, to achieve the above object, the present invention also provides a kind of client, including:Answer client and caller visitor
Family end;Wherein, the client of answering includes:
Parsing module, for answer client receive calls customer end transmission call information when, parsing described in exhale
Information is to obtain the corresponding first talk address information in the calls customer end, and into the first talk address information
The corresponding terminal of first transfer station address obtains the corresponding second talk address information of local terminal;
Determining module, for determining described first based on the first talk address information and second address information
Talk address in the weighted value of the talk address of each in address information, the first talk address information includes the first outer entoilage
Location, the first internal address and the first transfer station address;
First test module, for carrying out continuity testing based on the maximum talk address of weighted value, and will be described
The weighted value of each talk address is sent to the calls customer end in first talk address information, for the calls customer end
Continuity testing is carried out based on the maximum talk address of weighted value;
Creation module, for when continuity testing is successfully tested, being set up based on the maximum talk address of weighted value
With the communication connection at the calls customer end.
Preferably, the determining module includes:
Judging unit, for judging that the described first outer net address in the first talk address information leads to described second
Whether the second outer net address talked about in address information is identical;
Setting unit, for when the described first outer net address is identical with the described second outer net address, described first to be led to
The weighted value of first internal address in words address information is set to the first preset value, by the described first outer net address and the
The weighted value of one transfer station address is set to the second preset value, wherein, first preset value is more than second preset value.
Preferably, the client of answering includes:
Acquisition module, for when the described first outer net address and the described second outer net address are differed, being exhaled described in acquisition
Cry calls customer end described in information first network address conversion type and local terminal the second network address conversion type whether
It is preset kind;
First setup module, in the first network address conversion type and second network address conversion type
When being preset kind, the weighted value of the first transfer station address is set to the 3rd preset value, and by the described first outer entoilage
The weighted value of location and the first internal address is set to the 4th preset value, wherein, the 3rd preset value, which is more than the described 4th, to be preset
Value.
Second setup module, in the first network address conversion type and second network address conversion type
When being not preset kind, the weighted value of the described first outer net address is set to the 5th preset value, by the first transfer station address
Weighted value be set to the 6th preset value, and the weighted value of the described first outer net address is set to the 7th preset value, wherein, described
Six preset values are more than the 7th preset value, and less than the 5th preset value.
To achieve the above object, the present invention also provides a kind of client, including:Answer client and calls customer end;
Wherein, the calls customer end includes:
Sending module, for after calls customer end enters voice and video telephone pattern, calling letter to be sent to client is answered
Breath;
Receiving module, described the first talk address information that client is sent based on the call information is answered for receiving
In each talk address weighted value, wherein, the client of answering parses the call information to obtain the calls customer
Hold corresponding first talk address information, and the corresponding transfer of the first transfer station address into the first talk address information
Stand and obtain the corresponding second talk address information of local terminal, the client of answering is based on the first talk address information and institute
State the weighted value that the second address information determines each talk address in first address information, and by first talk address
The weighted value of the talk address of each in information is sent to the calls customer end, the call in the first talk address information
Location includes the first outer net address, the first internal address and the first transfer station address;
Second test module, for carrying out continuity testing based on the maximum talk address of weighted value;
Link block, in continuity testing success, according to the maximum talk address of the weighted value and institute
State and answer client progress call connection.
Preferably, the terminal includes the client that network address conversion type is default translation type.
The present invention by answer client receive calls customer end send call information when, parsing call information with
Obtain the corresponding first talk address information in calls customer end, and the first transfer station address pair into the first talk address information
The terminal answered obtains the corresponding second talk address information of local terminal, answers client and is based on the first talk address information and the
Two call address informations are determined in the weighted value of each talk address in the first talk address information, the first talk address information
Talk address includes the first outer net address, the first internal address and the first transfer station address, answers client and is based on weighted value
Maximum talk address carries out continuity testing, and by the weighted value of each talk address in the first talk address information send to
Calls customer end, so that calls customer end group carries out continuity testing in the maximum talk address of weighted value, in continuity testing
When being successfully tested, client is answered based on weighted value maximum talk address foundation and the communication connection at calls customer end.Due to
Determined answering client in the corresponding first talk address information in the calls customer end after the weighted value of each talk address, should
Answer client and continuity testing is carried out based on the maximum talk address of weighted value, therefore optimize detection of connectivity program, drop
The low continuity testing time, so as to reduce the voice and video telephone Connection Time, and then improve voice and video telephone joint efficiency.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of the first embodiment of call connection method of the present invention;
The schematic flow sheet for the refinement step that Fig. 2 is step S120 in first embodiment shown in Fig. 1 of the present invention;
Fig. 3 is the schematic flow sheet of the second embodiment of call connection method of the present invention;
Fig. 4 is the schematic flow sheet of the 3rd embodiment of call connection method of the present invention;
Fig. 5 be client of the present invention in answer client first embodiment high-level schematic functional block diagram;
The refinement functional module signal of determining module in second embodiments of the Fig. 6 to answer client in client of the present invention
Figure;
Fig. 7 be client of the present invention in answer client 3rd embodiment high-level schematic functional block diagram;
Fig. 8 is the high-level schematic functional block diagram of the fourth embodiment at calls customer end in client of the present invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Based on above mentioned problem, the present invention provides a kind of call connection method.
Reference picture 1, Fig. 1 is the schematic flow sheet of the first embodiment of call connection method of the present invention.
In the present embodiment, the call connection method includes:
Step S110, answer client receive calls customer end transmission call information when, parsing call information with
Obtain the corresponding first talk address information in calls customer end, and the first transfer station address pair into the first talk address information
The terminal answered obtains the corresponding second talk address information of local terminal;
In the present embodiment, this answers client and calls customer end to support the ICE clients of RFC5766 agreements,
This is answered client and calls customer end and communicated by RFC5766 agreements with TURN Server terminals, and the TURN
Server terminals include supporting the TURN Server clients of RFC5766 agreements, for the role of ICE transfer servers
TURN transfers service is provided for ICE clients.After voice and video telephone pattern is opened at calls customer end, SIP session setups are used
Agreement, INVITE call informations are sent to client is answered, and the INVITE call informations are by SDP protocol constructions, SDP associations
View is while the INVITE call informations are built, also by corresponding first internal address in the calls customer end, the first outer entoilage
Location, two group of first transfer address and first network address conversion NAT types are built at this by increasing the form of attribute item
In INVITE call informations, thus the calls customer end to this answer client send INVITE call informations while,
Can be by corresponding first internal address of local terminal, the first outer net address, two group of first transfer address and first network address conversion
NAT types are sent to this and answer client.The INVITE callings that client receives calls customer end transmission are answered at this
After information, parse the INVITE call informations and obtain the corresponding first talk address information in the calls customer end, wherein, this first
Talk address information is with including corresponding first internal address in the calls customer end, the first outer net address and two group of first transfer
Location.When this answers two group of first transfer address that client receives calls customer end transmission, judge that local terminal is currently stored
Whether two group of first transfer address of the second transfer address and this identical, if so, then obtain stored based on second transfer
The second outer net address, the second internal address and the second network conversion NAT types for the local terminal that the corresponding terminal in location is obtained, if
It is no, then the second call-information of local terminal, second call-information are obtained based on the corresponding terminal of two group of first transfer address
Corresponding second internal address of client, the second outer net address, two group of second transfer station address and the second net are answered including this
Network changes NAT types.Wherein, two group of first transfer address is different, and in two group of first transfer address and this two group second
Turn address consistent.
It should be noted that the calls customer end and this answer client include can carry out the terminal of voice and video telephone.
Step S120, answers client and determines that first leads to based on the first talk address information and the second talk address information
The talk address talked about in the weighted value of each talk address in address information, the first talk address information includes the first outer entoilage
Location, the first internal address and the first transfer station address;
The second talk address information of local terminal and the first call ground at the calls customer end are got when answering client
Behind location, determine that each in the first talk address information is conversed according to the second talk address information and first talk address
The weighted value of address.Wherein, each talk address in the first talk address information includes the first outer net address, the first Intranet
Address and two group of first transfer station address.
Step S130, answers client and carries out continuity testing based on the maximum talk address of weighted value, and first is led to
The weighted value of each talk address is sent to calls customer end in words address information, so that calls customer end group is maximum in weighted value
Talk address carry out continuity testing;
Answer client at this and determine in the first talk address information that after the weighted value of each talk address, first to be led to
The weighted value of each talk address is arranged according to order from big to small in words address information, and this answers client root first
Connective survey is carried out according to the maximum talk address of weighted value in the first talk address information and the calls customer end to test, if should
The maximum talk address connection failure of weighted value, then select the corresponding talk address of weighted value of arrangement second to carry out connective survey
Examination, if after all failing according to the talk address progress continuity testing corresponding to order from big to small according to weighted value, should
Answer client and terminal is jumped to according to two group of first transfer station address, set up and the calls customer end based on the terminal
Communication connection.
Step S140, when continuity testing is successfully tested, is answered client and is built based on the maximum talk address of weighted value
The vertical communication connection with calls customer end.
After the client talk address progress continuity testing success maximum based on weighted value is answered, this answers client
The communication connection with the calls customer end is set up based on the maximum talk address of the weighted value.
It is understood that when this answers the weight that client determines some talk address in the first talk address information
When being worth for minimum value such as 0, and when the weighted value of some talk address is minimum value such as 0 in the second talk address information, it is not required to
Carry out continuity testing.
The present embodiment by answer client receive calls customer end send call information when, parse call information
To obtain the corresponding first talk address information in calls customer end, and the first transfer station address into the first talk address information
Corresponding terminal obtains the corresponding second talk address information of local terminal, answer client be based on the first talk address information and
Second talk address information is determined in the weighted value of each talk address in the first talk address information, the first talk address information
Talk address include the first outer net address, the first internal address and the first transfer station address, answer client based on weight
The maximum talk address of value carries out continuity testing, and the weighted value of each talk address in the first talk address information is sent
To calls customer end, so that calls customer end group carries out continuity testing in the maximum talk address of weighted value, in connectedness survey
When examination is successfully tested, client is answered based on weighted value maximum talk address foundation and the communication connection at calls customer end.By
In determining in the corresponding first talk address information in the calls customer end after the weighted value of each talk address answering client,
This is answered client and carries out continuity testing based on the maximum talk address of weighted value, therefore optimizes detection of connectivity program,
The continuity testing time is reduced, so as to reduce the voice and video telephone Connection Time, and then voice and video telephone connection effect is improved
Rate.
Further, Fig. 2 is refer to, the flow signal for the refinement step for being step S120 in first embodiment of the invention
Figure, answers client and is based on the first talk address information and the second talk address information described in step S120
Determine that each logical refinement step includes in the first talk address information:
Step S121, judges in the first outer net address and the second talk address information in the first talk address information
Whether two outer net address are identical;
In the present embodiment, when this answers the second talk address information and the calls customer that client gets local terminal
After first talk address at end, judge in the first outer net address and the second talk address information in the first talk address information
Whether the second outer net address is identical.
Step S122, when the first outer net address is identical with the second outer net address, by the first talk address information
The weighted value of one internal address is set to the first preset value, and the weighted value of the first outer net address and the first transfer station address is set to
Second preset value, wherein, the first preset value is more than the second preset value.
When it is determined that the first outer net address is identical with the second outer net address, by first in the first talk address information
The weighted value of net address is set to the first preset value such as 1, by the weight of the first outer net address and two group of first transfer station address
Value is set to the second preset value such as 0, and first preset value is more than the second preset value.Wherein, the Intranet is alternatively referred to as LAN.
It should be noted that when it is determined that the first outer net address is identical with the second outer net address, this is answered client and is based on
First internal address carries out continuity testing with the calls customer end, due to by the first outer net address and two group first
The weighted value for turning station address is set to 0, then this answer client will not be to the first outer net address and two group of first terminal
Location carries out continuity testing, if but this answers client based on first internal address and calls customer end progress connectedness
During test crash, this is answered client and is based on two group of first transfer address and the progress continuity testing of calls customer end, is surveying
After trying successfully, this is answered client and connected based on the call that the corresponding terminal of first transfer address is set up with the calls customer end
Connect.
The present embodiment is by judging in the first outer net address and the second talk address information in the first talk address information
The second outer net address it is whether identical, when the first outer net address is identical with the second outer net address, by the first talk address information
In the weighted value of the first internal address be set to the first preset value, by the weight of the first outer net address and the first transfer station address
Value is set to the second preset value, wherein, the first preset value is more than the second preset value.Due to determining to answer the of client by comparing
When the first outer net address at two outer net address and calls customer end is identical, it is determined that this answer client with the calls customer end
In in same LAN, so that it is determined that the weighted value of first internal address is maximum, therefore reduces this to answer client true
The program of the weighted value of each fixed talk address, fixes time really so as to reduce weighted value, improves voice and video telephone connection
Efficiency.
Further, Fig. 3 is refer to, the schematic flow sheet of the second embodiment of call connection method of the present invention is proposed,
In the second embodiment, before S121, the call connection method includes:
Step S150, when the first outer net address and the second outer net address are differed, calls customer in detection of call information
Whether the first network address conversion type at end and the second network address conversion type of local terminal are preset kind;
In the present embodiment, when it is determined that the first outer net address and the second outer net address are differed, the calls customer is obtained
Hold the first network address conversion NAT types at the calls customer end included in the INVITE call informations sent, and by this
The second network address translation NAT types that one network address translation NAT types have been stored with local terminal, judge the first network address
NAT types are changed with the second network address translation NAT types whether into preset kind.Wherein, the preset kind is
Symmetric and Symmetric, Symmetric and Port Restricted, Port Restricted and Port
Restricted and obstructed.
Step S160, when first network address conversion type and the second network address conversion type are preset kind,
The weighted value of first transfer station address is set to the 3rd preset value, and by the weight of the first outer net address and the first internal address
Value is set to the 4th preset value, wherein, the 3rd preset value is more than the 4th preset value.
When first network address conversion NAT types and the second network address translation NAT types are preset kind, by two
The weighted value of the first transfer station address of group is set to the 3rd preset value such as 1, and by the first outer net address and the first internal address
Weighted value be set to the 4th preset value such as 0.
It should be noted that it is determined that two group of first transfer station address weighted value be maximum after, this answers client
Continuity testing is carried out based on two group of first transfer station address and the calls customer end, the connection of any group the first transfer station address
Property test first succeed, this is answered client and is based on the continuity testing first successful first transfer station address is set up and caller visitor
The call connection at family end, can be based on the company as backup using successful another group of the first transfer station address after continuity testing
When the speech quality of the general character test first call connection that successful first transfer station address is set up is poor, enables the backup address and enter
Row call connection, to ensure speech quality.
Step S170, when first network address conversion type and the second network address conversion type are not preset kinds,
The weighted value of first outer net address is set to the 5th preset value, the weighted value of the first transfer station address is set to the 6th preset value,
And the weighted value of the first internal address is set to the 7th preset value, wherein, the 6th preset value is more than the 7th preset value, and less than the
Five preset values.
When first network address conversion NAT types and the second network address translation NAT types are not the preset kind,
This is answered client and the weighted value of the first outer net address is set into the 5th preset value such as 2, by two group of first transfer address
Weighted value is set to the 6th preset value such as 1, and the weighted value of the first internal address is set into the 7th preset value such as 0.
It is understood that it is determined that the first outer net address weighted value be maximum after, this is answered client and is based on
The first outer net address carries out continuity testing with the calls customer end, and when continuity testing success, this answers client's end group
Set up and be connected with the call at the calls customer end in the first outer net address, when the continuity testing fails, this answers client
End group carries out continuity testing in two group of first transfer address and the calls customer end, and when continuity testing success, this connects
Client is listened to connect based on the call that one group of first transfer address in two group of first transfer address is set up with the calls customer end
Connect, when continuity testing fails, set up and be connected with calls customer end progress call based on the terminal disposed in outer net, or
Person should answer client interruption and was connected with calls customer end call.
It should be noted that either conversed by outer net address, internal address call either transfer station address is conversed,
In communication process, still there is one group of transfer address effectively, and as backup address, the conduct can be enabled when speech quality is poor
The transfer address of backup address, to ensure speech quality.
The present embodiment is by judging in the first outer net address and the second talk address information in the first talk address information
The second outer net address it is whether identical, it is main in detection of call information when the first outer net address and the second outer net address are differed
Cry whether the first network address conversion type of client and the second network address conversion type of local terminal are preset kind,
When first network address conversion type and the second network address conversion type are preset kind, by the power of the first transfer station address
Weight values are set to the 3rd preset value, and the weighted value of the first outer net address and the first internal address is set into the 4th preset value, its
In, the 3rd preset value is more than the 4th preset value, is not with the second network address conversion type in first network address conversion type
During preset kind, the weighted value of the first outer net address is set to the 5th preset value, the weighted value of the first transfer station address is set to
6th preset value, and the weighted value of the first internal address is set to the 7th preset value, wherein, the 6th preset value, which is more than the 7th, to be preset
Value, and less than the 5th preset value.Due to when the first outer net address and the second outer net address are differed, showing that this answers client
In different from the network environment at the calls customer end, by the first network address conversion type and sheet that judge the calls customer end
Second network address conversion type at end is each in the corresponding first talk address information in the calls customer end to further determine that
The weighted value of individual talk address, hence in so that the determination of the weighted value of each talk address in the first talk address information is more
Accurately, so that this is answered, client is set up based on the maximum talk address of weighted value and the call at the calls customer end connects
Connect and more stablize.
Based on above mentioned problem, the present invention provides a kind of call connection method.
Reference picture 4, Fig. 4 is the schematic flow sheet of the 3rd embodiment of call connection method of the present invention.
In the present embodiment, the call connection method includes:
Step S210, after entering voice and video telephone pattern at calls customer end, is exhaled to client transmission is answered
It is information;
Answer in the first talk address information that client is sent based on call information at step S220, calls customer end
The weighted value of each talk address, wherein, answer client parsing call information and led to obtaining calls customer end corresponding first
Talk about address information, and the corresponding terminal of the first transfer station address into the first talk address information obtains local terminal corresponding the
Two call address informations, answer client and determine the first address information based on the first talk address information and the second address information
In each talk address weighted value, and by the weighted value of each talk address in the first talk address information send to caller visitor
Talk address in family end, the first talk address information includes the first outer net address, the first internal address and the first terminal
Address;
In the present embodiment, the calls customer end periodically sends terminal to TURN Server terminal managements server
Request instruction is obtained, is obtained so that the TURN Server terminal managements server is based on the terminal in request instruction access
Turn station list, sending terminal acquisition request instruction based on the calls customer end obtains the corresponding position letter in the calls customer end
Breath, and distribute two TURN closed on the calls customer end position according to the corresponding positional information in the calls customer end
Server terminals, and the corresponding address of two TURN Server transfers is sent to the calls customer end, as caller visitor
Family termination is received behind the corresponding address of two TURN Server terminals, based on two TURN Server terminals correspondences
Address send ICE requests to two TURN Server terminals, to obtain the corresponding first call ground in the calls customer end
Location information, and the first talk address information progress is stored in the calls customer end.Sound is opened when the calls customer end to regard
After frequency call mode, using SIP Session initiation Protocols, INVITE call informations are sent to client is answered, and the INVITE is exhaled
Cry information by SDP protocol constructions, the SDP agreements are while the INVITE call informations are built, also by the calls customer end
Corresponding first internal address, the first outer net address, two group of first transfer address and first network address conversion NAT types are logical
The form for crossing increase attribute item is built in the INVITE call informations, thus client hair is being answered in the calls customer end to this
, also can be by corresponding first internal address of local terminal, the first outer net address, two group of first transfer while sending INVITE call informations
Address and first network address conversion NAT types are sent to this and answer client.Answer client at this and receive the caller
After the INVITE call informations that client is sent, parse the INVITE call informations and obtain the calls customer end corresponding first
Talk address information, wherein, the first talk address information includes corresponding first internal address in the calls customer end, outside first
Net address and two group of first transfer address.When this answers the INVITE calling letters that client receives calls customer end transmission
After breath, the weighted value of each talk address in the first talk address information sent based on call information.
Step S230, calls customer end group carries out continuity testing in the maximum talk address of weighted value;
Terminated in calls customer and receive each talk address in the first talk address information that this answers client transmission
During weighted value, local terminal weight value list is updated, connective survey is carried out with answering client according to the maximum talk address of weighted value
Examination.
Step S240, in continuity testing success, calls customer end is according to the maximum talk address of weighted value with answering
Client carries out call connection.
In continuity testing success, calls customer end is according to the maximum talk address of weighted value and answers client progress
Call connection;When continuity testing fails, calls customer end is according to the corresponding terminal of the first transfer station address and answers visitor
Family end carries out call connection.
It should be noted that STUN servers are used for the network address conversion type for obtaining client, when the net of client
When network address conversion type is preset kind, it is terminal to determine client, and the information of client is sent into terminal pipe
Server is managed, for the information of terminal management server record client.The first step:Detect whether client has the ability to carry out
UDP communicates and whether client is located at after NAT, and client sets up UDP socket and then with this socket to server
(IP-1, Port-1) sends packet and requires that (IP-1, the Port-1) address of server is responded to request, returns to client
IP and Port.The response of server can not be received, then is judged to network B locking.It is outer net to compare return IP and Port
IP, and during with local IP and Port consistent, then network is Public, otherwise goes successively to next step.Second step:Detect client
Whether NAT is Full Cone NAT, and (IP-1, the Port-1) of user end to server sends packet and require server with separately
The request at a pair of (IP-2, Port-2) customer in response ends is returned, it is impossible to is received the response of server, is then illustrated client
NAT is not a Full Cone NAT, and particular type needs next step detection (continuation).If can receive server from
The response UDP bags that (IP-2, Port-2) is returned, then it is a Full Cone NAT to illustrate client.3rd step:Detect client
Hold whether NAT is Symmetric NAT, packet requirement is sent to (IP-2, the Port-2) of server with same socket
Server returns to the IP and Port of client with (IP-2, Port-2) address.Compare returned in the first step client (IP,
Port), if (IP, Port) identical next step that goes successively to that two processes are returned is detected, otherwise it is judged to Symmetric
NAT.4th step:Detect whether client NAT is Restricted Cone NAT or Port Restricted Cone
NAT, (IP-1, the Port-1) of user end to server sends packet and requires server (IP-1, Port-2) customer in response
The request at end is returned, if receiving response, it is a Restricted Cone NAT to illustrate client, is otherwise judged to Port
Restricted Cone NAT.It is Full Cone NAT or Public by detection NAT types according to NAT types and IP agreement
Client, start TURN SERVER service, its local 3478 port is reflected hide into it is consistent with outer net port, so that other are objective
Family end is directly attached access with ICE RFC5766 agreements.During client is carried out to TURN SERVER management servers simultaneously
Turn station role's registration.
The present embodiment is answered client by calls customer end and believed based on the first talk address that call information is sent
The weighted value of the talk address of each in breath, wherein, client parsing call information is answered to obtain calls customer end corresponding the
One talk address information, and the corresponding terminal acquisition local terminal correspondence of the first transfer station address into the first talk address information
The second talk address information, answer client and be based on the first talk address information and the second address information and determine the first address
The weighted value of the talk address of each in information, and the weighted value of each talk address in the first talk address information is sent to master
The talk address in client, the first talk address information is made to include in the first outer net address, the first internal address and first
Turn station address, calls customer end group carries out continuity testing in the maximum talk address of weighted value, in continuity testing success,
Calls customer end is connected according to the maximum talk address of weighted value with answering client progress call.Because calls customer end is connecing
When receiving the weighted value of each talk address in the first talk address information for answering client transmission, maximum based on weighted value
Talk address carries out continuity testing, therefore optimizes detection of connectivity program, the continuity testing time is reduced, so as to reduce
The voice and video telephone Connection Time, and then improve voice and video telephone joint efficiency.
The present invention further provides a kind of client.
Reference picture 5, Fig. 5 be client of the present invention in answer client first embodiment high-level schematic functional block diagram.
In the present embodiment, answering client includes:Parsing module 110, determining module 120, the first test module 130 and
Creation module 140.
The parsing module 110, for answer client receive calls customer end transmission call information when, parsing
Call information to obtain the corresponding first talk address information in calls customer end, and into the first talk address information first in
Turn the corresponding terminal of station address and obtain the corresponding second talk address information of local terminal;
In the present embodiment, this answers client and calls customer end to support the ICE clients of RFC5766 agreements,
This is answered client and calls customer end and communicated by RFC5766 agreements with TURN Server terminals, and the TURN
Server terminals include supporting the TURN Server clients of RFC5766 agreements, for the role of ICE transfer servers
TURN transfers service is provided for ICE clients.After voice and video telephone pattern is opened at calls customer end, SIP session setups are used
Agreement, INVITE call informations are sent to client is answered, and the INVITE call informations are by SDP protocol constructions, SDP associations
View is while the INVITE call informations are built, also by corresponding first internal address in the calls customer end, the first outer entoilage
Location, two group of first transfer address and first network address conversion NAT types are built at this by increasing the form of attribute item
In INVITE call informations, thus the calls customer end to this answer client send INVITE call informations while,
Can be by corresponding first internal address of local terminal, the first outer net address, two group of first transfer address and first network address conversion
NAT types are sent to this and answer client.The INVITE callings that client receives calls customer end transmission are answered at this
After information, parse the INVITE call informations and obtain the corresponding first talk address information in the calls customer end, wherein, this first
Talk address information is with including corresponding first internal address in the calls customer end, the first outer net address and two group of first transfer
Location.When this answers two group of first transfer address that client receives calls customer end transmission, judge that local terminal is currently stored
Whether two group of first transfer address of the second transfer address and this identical, if so, then obtain stored based on second transfer
The second outer net address, the second internal address and the second network conversion NAT types for the local terminal that the corresponding terminal in location is obtained, if
It is no, then the second call-information of local terminal, second call-information are obtained based on the corresponding terminal of two group of first transfer address
Corresponding second internal address of client, the second outer net address, two group of second transfer station address and the second net are answered including this
Network changes NAT types.Wherein, two group of first transfer address is different, and in two group of first transfer address and this two group second
Turn address consistent.
It should be noted that the calls customer end and this answer client include can carry out the terminal of voice and video telephone.
The determining module 120, for determining first based on the first talk address information and the second talk address information
Talk address in the weighted value of each talk address in talk address information, the first talk address information includes the first outer entoilage
Location, the first internal address and the first transfer station address;
The second talk address information of local terminal and the first call ground at the calls customer end are got when answering client
Behind location, determine that each in the first talk address information is conversed according to the second talk address information and first talk address
The weighted value of address.Wherein, each talk address in the first talk address information includes the first outer net address, the first Intranet
Address and two group of first transfer station address.
First test module 130, for carrying out continuity testing based on the maximum talk address of weighted value, and by the
The weighted value of each talk address is sent to calls customer end in one talk address information, so that calls customer end group is in weighted value
Maximum talk address carries out continuity testing;
Answer client at this and determine in the first talk address information that after the weighted value of each talk address, first to be led to
The weighted value of each talk address is arranged according to order from big to small in words address information, and this answers client root first
Connective survey is carried out according to the maximum talk address of weighted value in the first talk address information and the calls customer end to test, if should
The maximum talk address connection failure of weighted value, then select the corresponding talk address of weighted value of arrangement second to carry out connective survey
Examination, if after all failing according to the talk address progress continuity testing corresponding to order from big to small according to weighted value, should
Answer client and terminal is jumped to according to two group of first transfer station address, set up and the calls customer end based on the terminal
Communication connection.
The creation module 140, for when continuity testing is successfully tested, being built based on the maximum talk address of weighted value
The vertical communication connection with calls customer end.
After the client talk address progress continuity testing success maximum based on weighted value is answered, this answers client
The communication connection with the calls customer end is set up based on the maximum talk address of the weighted value.
It is understood that when this answers the weight that client determines some talk address in the first talk address information
When being worth for minimum value such as 0, and when the weighted value of some talk address is minimum value such as 0 in the second talk address information, it is not required to
Carry out continuity testing.
The present embodiment by answer client receive calls customer end send call information when, parse call information
To obtain the corresponding first talk address information in calls customer end, and the first transfer station address into the first talk address information
Corresponding terminal obtains the corresponding second talk address information of local terminal, answer client be based on the first talk address information and
Second talk address information is determined in the weighted value of each talk address in the first talk address information, the first talk address information
Talk address include the first outer net address, the first internal address and the first transfer station address, answer client based on weight
The maximum talk address of value carries out continuity testing, and the weighted value of each talk address in the first talk address information is sent
To calls customer end, so that calls customer end group carries out continuity testing in the maximum talk address of weighted value, in connectedness survey
When examination is successfully tested, client is answered based on weighted value maximum talk address foundation and the communication connection at calls customer end.By
In determining in the corresponding first talk address information in the calls customer end after the weighted value of each talk address answering client,
This is answered client and carries out continuity testing based on the maximum talk address of weighted value, therefore optimizes detection of connectivity program,
The continuity testing time is reduced, so as to reduce the voice and video telephone Connection Time, and then voice and video telephone connection effect is improved
Rate.
Further, based on first embodiment, the second embodiment of client of the present invention is proposed, in the present embodiment, ginseng
According to Fig. 6, determining module 120 includes judging unit 121, setting unit 122.
The judging unit 121, for judging the first outer net address and the second call ground in the first talk address information
Whether the second outer net address in the information of location is identical;
In the present embodiment, when this answers the second talk address information and the calls customer that client gets local terminal
After first talk address at end, judge in the first outer net address and the second talk address information in the first talk address information
Whether the second outer net address is identical.
The setting unit 122, for when the first outer net address is identical with the second outer net address, by the first talk address
The weighted value of the first internal address in information is set to the first preset value, by the first outer net address and the first transfer station address
Weighted value is set to the second preset value, wherein, the first preset value is more than the second preset value.
When it is determined that the first outer net address is identical with the second outer net address, by first in the first talk address information
The weighted value of net address is set to the first preset value such as 1, by the weight of the first outer net address and two group of first transfer station address
Value is set to the second preset value such as 0, and first preset value is more than the second preset value.Wherein, the Intranet is alternatively referred to as LAN.
It should be noted that when it is determined that the first outer net address is identical with the second outer net address, this is answered client and is based on
First internal address carries out continuity testing with the calls customer end, due to by the first outer net address and two group first
The weighted value for turning station address is set to 0, then this answer client will not be to the first outer net address and two group of first terminal
Location carries out continuity testing, if but this answers client based on first internal address and calls customer end progress connectedness
During test crash, this is answered client and is based on two group of first transfer address and the progress continuity testing of calls customer end, is surveying
After trying successfully, this is answered client and connected based on the call that the corresponding terminal of first transfer address is set up with the calls customer end
Connect.
The present embodiment is by judging in the first outer net address and the second talk address information in the first talk address information
The second outer net address it is whether identical, when the first outer net address is identical with the second outer net address, by the first talk address information
In the weighted value of the first internal address be set to the first preset value, by the weight of the first outer net address and the first transfer station address
Value is set to the second preset value, wherein, the first preset value is more than the second preset value.Due to determining to answer the of client by comparing
When the first outer net address at two outer net address and calls customer end is identical, it is determined that this answer client with the calls customer end
In in same LAN, so that it is determined that the weighted value of first internal address is maximum, therefore reduces this to answer client true
The program of the weighted value of each fixed talk address, fixes time really so as to reduce weighted value, improves voice and video telephone connection
Efficiency.
Further, based on first embodiment, the second embodiment of client of the present invention is proposed, in the present embodiment, ginseng
According to Fig. 7, answering client also includes:Detection module 150, the first setup module 160 and the second setup module 170.
The detection module 150, for when the first outer net address and the second outer net address are differed, detection of call information
Whether the first network address conversion type at middle calls customer end and the second network address conversion type of local terminal are default class
Type;
In the present embodiment, when it is determined that the first outer net address and the second outer net address are differed, the calls customer is obtained
Hold the first network address conversion NAT types at the calls customer end included in the INVITE call informations sent, and by this
The second network address translation NAT types that one network address translation NAT types have been stored with local terminal, judge the first network address
NAT types are changed with the second network address translation NAT types whether into preset kind.Wherein, the preset kind is
Symmetric and Symmetric, Symmetric and Port Restricted, Port Restricted and Port
Restricted and obstructed.
First setup module 160, in first network address conversion type and the second network address conversion type
When being preset kind, the weighted value of the first transfer station address is set to the 3rd preset value, and by the first outer net address and
The weighted value of one internal address is set to the 4th preset value, wherein, the 3rd preset value is more than the 4th preset value.
When first network address conversion NAT types and the second network address translation NAT types are preset kind, by two
The weighted value of the first transfer station address of group is set to the 3rd preset value such as 1, and by the first outer net address and the first internal address
Weighted value be set to the 4th preset value such as 0.
It should be noted that it is determined that two group of first transfer station address weighted value be maximum after, this answers client
Continuity testing is carried out based on two group of first transfer station address and the calls customer end, the connection of any group the first transfer station address
Property test first succeed, this is answered client and is based on the continuity testing first successful first transfer station address is set up and caller visitor
The call connection at family end, can be based on the company as backup using successful another group of the first transfer station address after continuity testing
When the speech quality of the general character test first call connection that successful first transfer station address is set up is poor, enables the backup address and enter
Row call connection, to ensure speech quality.
Second setup module 170, in first network address conversion type and the second network address conversion type
When being not preset kind, the weighted value of the first outer net address is set to the 5th preset value, by the weighted value of the first transfer station address
The 6th preset value is set to, and the weighted value of the first internal address is set to the 7th preset value, wherein, the 6th preset value is more than the 7th
Preset value, and less than the 5th preset value.
When first network address conversion NAT types and the second network address translation NAT types are not the preset kind,
This is answered client and the weighted value of the first outer net address is set into the 5th preset value such as 2, by two group of first transfer address
Weighted value is set to the 6th preset value such as 1, and the weighted value of the first internal address is set into the 7th preset value such as 0.
It is understood that it is determined that the first outer net address weighted value be maximum after, this is answered client and is based on
The first outer net address carries out continuity testing with the calls customer end, and when continuity testing success, this answers client's end group
Set up and be connected with the call at the calls customer end in the first outer net address, when the continuity testing fails, this answers client
End group carries out continuity testing in two group of first transfer address and the calls customer end, and when continuity testing success, this connects
Client is listened to connect based on the call that one group of first transfer address in two group of first transfer address is set up with the calls customer end
Connect, when continuity testing fails, set up and be connected with calls customer end progress call based on the terminal disposed in outer net, or
Person should answer client interruption and was connected with calls customer end call.
It should be noted that either conversed by outer net address, internal address call either transfer station address is conversed,
In communication process, still there is one group of transfer address effectively, and as backup address, the conduct can be enabled when speech quality is poor
The transfer address of backup address, to ensure speech quality.
The present embodiment is by judging in the first outer net address and the second talk address information in the first talk address information
The second outer net address it is whether identical, it is main in detection of call information when the first outer net address and the second outer net address are differed
Cry whether the first network address conversion type of client and the second network address conversion type of local terminal are preset kind,
When first network address conversion type and the second network address conversion type are preset kind, by the power of the first transfer station address
Weight values are set to the 3rd preset value, and the weighted value of the first outer net address and the first internal address is set into the 4th preset value, its
In, the 3rd preset value is more than the 4th preset value, is not with the second network address conversion type in first network address conversion type
During preset kind, the weighted value of the first outer net address is set to the 5th preset value, the weighted value of the first transfer station address is set to
6th preset value, and the weighted value of the first internal address is set to the 7th preset value, wherein, the 6th preset value, which is more than the 7th, to be preset
Value, and less than the 5th preset value.Due to when the first outer net address and the second outer net address are differed, showing that this answers client
In different from the network environment at the calls customer end, by the first network address conversion type and sheet that judge the calls customer end
Second network address conversion type at end is each in the corresponding first talk address information in the calls customer end to further determine that
The weighted value of individual talk address, hence in so that the determination of the weighted value of each talk address in the first talk address information is more
Accurately, so that this is answered, client is set up based on the maximum talk address of weighted value and the call at the calls customer end connects
Connect and more stablize.
It is of the invention further to provide a kind of client again.
Reference picture 8, Fig. 8 is the high-level schematic functional block diagram of the 5th embodiment at calls customer end in client of the present invention.
In the present embodiment, calls customer end includes:Sending module 210, receiving module 220, the second test module 230 with
And link block 240.
The sending module 210, for after calls customer end enters voice and video telephone pattern, being sent to client is answered
Call information;
The receiving module 220, for answering the first talk address information that client is sent based on call information
In each talk address weighted value, wherein, answer client parsing call information to obtain calls customer end corresponding first
Talk address information, and the corresponding terminal acquisition local terminal of the first transfer station address into the first talk address information is corresponding
Second talk address information, answers client and determines that the first address is believed based on the first talk address information and the second address information
The weighted value of the talk address of each in breath, and the weighted value of each talk address in the first talk address information is sent to caller
Talk address in client, the first talk address information includes the first outer net address, the first internal address and the first transfer
Station address;
In the present embodiment, the calls customer end periodically sends terminal to TURN Server terminal managements server
Request instruction is obtained, is obtained so that the TURN Server terminal managements server is based on the terminal in request instruction access
Turn station list, sending terminal acquisition request instruction based on the calls customer end obtains the corresponding position letter in the calls customer end
Breath, and distribute two TURN closed on the calls customer end position according to the corresponding positional information in the calls customer end
Server terminals, and the corresponding address of two TURN Server transfers is sent to the calls customer end, as caller visitor
Family termination is received behind the corresponding address of two TURN Server terminals, based on two TURN Server terminals correspondences
Address send ICE requests to two TURN Server terminals, to obtain the corresponding first call ground in the calls customer end
Location information, and the first talk address information progress is stored in the calls customer end.Sound is opened when the calls customer end to regard
After frequency call mode, using SIP Session initiation Protocols, INVITE call informations are sent to client is answered, and the INVITE is exhaled
Cry information by SDP protocol constructions, the SDP agreements are while the INVITE call informations are built, also by the calls customer end
Corresponding first internal address, the first outer net address, two group of first transfer address and first network address conversion NAT types are logical
The form for crossing increase attribute item is built in the INVITE call informations, thus client hair is being answered in the calls customer end to this
, also can be by corresponding first internal address of local terminal, the first outer net address, two group of first transfer while sending INVITE call informations
Address and first network address conversion NAT types are sent to this and answer client.Answer client at this and receive the caller
After the INVITE call informations that client is sent, parse the INVITE call informations and obtain the calls customer end corresponding first
Talk address information, wherein, the first talk address information includes corresponding first internal address in the calls customer end, outside first
Net address and two group of first transfer address.When this answers the INVITE calling letters that client receives calls customer end transmission
After breath, the weighted value of each talk address in the first talk address information sent based on call information.
Second test module 230, for carrying out continuity testing based on the maximum talk address of weighted value;
Terminated in calls customer and receive each talk address in the first talk address information that this answers client transmission
During weighted value, local terminal weight value list is updated, connective survey is carried out with answering client according to the maximum talk address of weighted value
Examination.
The link block 240, in continuity testing success, according to the maximum talk address of weighted value with answering
Client carries out call connection.
In continuity testing success, calls customer end is according to the maximum talk address of weighted value and answers client progress
Call connection;When continuity testing fails, calls customer end is according to the corresponding terminal of the first transfer station address and answers visitor
Family end carries out call connection.
It should be noted that STUN servers are used for the network address conversion type for obtaining client, when the net of client
When network address conversion type is preset kind, it is terminal to determine client, and the information of client is sent into terminal pipe
Server is managed, for the information of terminal management server record client.The first step:Detect whether client has the ability to carry out
UDP communicates and whether client is located at after NAT, and client sets up UDP socket and then with this socket to server
(IP-1, Port-1) sends packet and requires that (IP-1, the Port-1) address of server is responded to request, returns to client
IP and Port.The response of server can not be received, then is judged to network B locking.It is outer net to compare return IP and Port
IP, and during with local IP and Port consistent, then network is Public, otherwise goes successively to next step.Second step:Detect client
Whether NAT is Full Cone NAT, and (IP-1, the Port-1) of user end to server sends packet and require server with separately
The request at a pair of (IP-2, Port-2) customer in response ends is returned, it is impossible to is received the response of server, is then illustrated client
NAT is not a Full Cone NAT, and particular type needs next step detection (continuation).If can receive server from
The response UDP bags that (IP-2, Port-2) is returned, then it is a Full Cone NAT to illustrate client.3rd step:Detect client
Hold whether NAT is Symmetric NAT, packet requirement is sent to (IP-2, the Port-2) of server with same socket
Server returns to the IP and Port of client with (IP-2, Port-2) address.Compare returned in the first step client (IP,
Port), if (IP, Port) identical next step that goes successively to that two processes are returned is detected, otherwise it is judged to Symmetric
NAT.4th step:Detect whether client NAT is Restricted Cone NAT or Port Restricted Cone
NAT, (IP-1, the Port-1) of user end to server sends packet and requires server (IP-1, Port-2) customer in response
The request at end is returned, if receiving response, it is a Restricted Cone NAT to illustrate client, is otherwise judged to Port
Restricted Cone NAT.It is Full Cone NAT or Public by detection NAT types according to NAT types and IP agreement
Client, start TURN SERVER service, its local 3478 port is reflected hide into it is consistent with outer net port, so that other are objective
Family end is directly attached access with ICE RFC5766 agreements.During client is carried out to TURN SERVER management servers simultaneously
Turn station role's registration.
The present embodiment is answered client by calls customer end and believed based on the first talk address that call information is sent
The weighted value of the talk address of each in breath, wherein, client parsing call information is answered to obtain calls customer end corresponding the
One talk address information, and the corresponding terminal acquisition local terminal correspondence of the first transfer station address into the first talk address information
The second talk address information, answer client and be based on the first talk address information and the second address information and determine the first address
The weighted value of the talk address of each in information, and the weighted value of each talk address in the first talk address information is sent to master
The talk address in client, the first talk address information is made to include in the first outer net address, the first internal address and first
Turn station address, calls customer end group carries out continuity testing in the maximum talk address of weighted value, in continuity testing success,
Calls customer end is connected according to the maximum talk address of weighted value with answering client progress call.Because calls customer end is connecing
When receiving the weighted value of each talk address in the first talk address information for answering client transmission, maximum based on weighted value
Talk address carries out continuity testing, therefore optimizes detection of connectivity program, the continuity testing time is reduced, so as to reduce
The voice and video telephone Connection Time, and then improve voice and video telephone joint efficiency.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair
Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of call connection method, it is characterised in that the call connection method comprises the following steps:
When answering client and receiving the call information of calls customer end transmission, parse the call information to obtain the master
Cry client corresponding first talk address information, and the first transfer station address correspondence into the first talk address information
Terminal obtain the corresponding second talk address information of local terminal;
It is described answer client and be based on the first talk address information and the second talk address information determine described the
Talk address in the weighted value of each talk address in one talk address information, the first talk address information includes first
Outer net address, the first internal address and the first transfer station address;
The client of answering carries out continuity testing based on the maximum talk address of weighted value, and described first is conversed
The weighted value of the talk address of each in address information is sent to the calls customer end, so that the calls customer end group is in weight
The maximum talk address of value carries out continuity testing;
When continuity testing is successfully tested, the client of answering is set up and institute based on the maximum talk address of weighted value
State the communication connection at calls customer end.
2. call connection method as claimed in claim 1, it is characterised in that the client of answering is based on the described first call
Address information and the second talk address information determine the weight of each talk address in the first talk address information
The step of value, includes:
Judge the described first outer net address in the first talk address information and the in the second talk address information
Whether two outer net address are identical;
When the described first outer net address is identical with the described second outer net address, described in the first talk address information
The weighted value of first internal address is set to the first preset value, by the weight of the described first outer net address and the first transfer station address
Value is set to the second preset value, wherein, first preset value is more than second preset value.
3. call connection method as claimed in claim 2, it is characterised in that in judgement the first talk address information
The described first outer net address and the second talk address information in the whether identical step of the second outer net address after, institute
Stating call connection method also includes:
When the described first outer net address and the described second outer net address are differed, caller visitor described in the call information is detected
Whether the first network address conversion type at family end and the second network address conversion type of local terminal are preset kind;
, will be described when the first network address conversion type and second network address conversion type are preset kind
The weighted value of first transfer station address is set to the 3rd preset value, and by the power of the described first outer net address and the first internal address
Weight values are set to the 4th preset value, wherein, the 3rd preset value is more than the 4th preset value;
, will be described when the first network address conversion type and second network address conversion type are not preset kinds
The weighted value of first outer net address is set to the 5th preset value, and the weighted value of the first transfer station address is set into the 6th presets
Value, and the weighted value of first internal address is set to the 7th preset value, wherein, the 6th preset value is more than the described 7th
Preset value, and less than the 5th preset value.
4. a kind of call connection method, it is characterised in that the call connection method comprises the following steps:Enter at calls customer end
Enter after voice and video telephone pattern, call information is sent to client is answered;
Answered described in receiving in the first talk address information that client is sent based on the call information at the calls customer end
The weighted value of each talk address, wherein, the client of answering parses the call information to obtain the calls customer end
Corresponding first talk address information, and the corresponding terminal of the first transfer station address into the first talk address information
The corresponding second talk address information of local terminal is obtained, the client of answering is based on the first talk address information and described
Second talk address information determines the weighted value of each talk address in the first talk address information, and described first is led to
The weighted value of each talk address is sent to the calls customer end in words address information, in the first talk address information
Talk address includes the first outer net address, the first internal address and the first transfer station address;
The calls customer end group carries out continuity testing in the maximum talk address of weighted value;
In continuity testing success, the calls customer end connects according to the maximum talk address of the weighted value with described
Client is listened to carry out call connection.
5. call connection method as claimed in claim 4, it is characterised in that the terminal includes network address conversion type
To preset the client of translation type.
6. a kind of client, it is characterised in that including:Answer client and calls customer end;Wherein, it is described to answer client
Including:
Parsing module, for answer client receive calls customer end transmission call information when, parse it is described calling letter
Cease to obtain the corresponding first talk address information in the calls customer end, and first into the first talk address information
The corresponding terminal of transfer station address obtains the corresponding second talk address information of local terminal;
Determining module, for determining described first based on the first talk address information and the second talk address information
Talk address in the weighted value of each talk address in talk address information, the first talk address information is included outside first
Net address, the first internal address and the first transfer station address;
First test module, for carrying out continuity testing based on the maximum talk address of weighted value, and by described first
The weighted value of each talk address is sent to the calls customer end in talk address information, for the calls customer end group in
The maximum talk address of weighted value carries out continuity testing;
Creation module, for when continuity testing is successfully tested, being set up and institute based on the maximum talk address of weighted value
State the communication connection at calls customer end.
7. client as claimed in claim 6, it is characterised in that the determining module includes:
Judging unit, for judging the described first outer net address in the first talk address information and the described second call ground
Whether the second outer net address in the information of location is identical;
Setting unit, for when the described first outer net address is identical with the described second outer net address, by the described first call ground
The weighted value of first internal address in the information of location is set to the first preset value, by the described first outer net address and first
The weighted value for turning station address is set to the second preset value, wherein, first preset value is more than second preset value.
8. client as claimed in claim 7, it is characterised in that the client of answering includes:
Detection module, for when the described first outer net address and the described second outer net address are differed, obtaining the calling letter
The first network address conversion type of calls customer end described in breath and the second network address conversion type of local terminal whether be
Preset kind;
First setup module, for being with second network address conversion type in the first network address conversion type
During preset kind, the weighted value of the first transfer station address is set to the 3rd preset value, and by the described first outer net address with
And first the weighted value of internal address be set to the 4th preset value, wherein, the 3rd preset value is more than the 4th preset value;
Second setup module, for not being with second network address conversion type in the first network address conversion type
During preset kind, the weighted value of the described first outer net address is set to the 5th preset value, by the power of the first transfer station address
Weight values are set to the 6th preset value, and the weighted value of first internal address is set into the 7th preset value, wherein, the described 6th is pre-
If value is more than the 7th preset value, and less than the 5th preset value.
9. a kind of client, it is characterised in that including:Answer client and calls customer end;Wherein, the calls customer end
Including:
Sending module, for after calls customer end enters voice and video telephone pattern, call information to be sent to client is answered;
Receiving module, for receiving described answer in the first talk address information that client is sent based on the call information respectively
The weighted value of individual talk address, wherein, the client of answering parses the call information to obtain the calls customer end pair
The the first talk address information answered, and the corresponding terminal of the first transfer station address into the first talk address information obtains
Take the corresponding second talk address information of local terminal, the client of answering is based on the first talk address information and described the
Two call address informations determine the weighted value of each talk address in the first talk address information, and described first is conversed
The weighted value of the talk address of each in address information is sent to the calls customer end, logical in the first talk address information
Talking about address includes the first outer net address, the first internal address and the first transfer station address;
Second test module, for carrying out continuity testing based on the maximum talk address of weighted value;
Link block, in continuity testing success, being connect according to the talk address that the weighted value is maximum with described
Client is listened to carry out call connection.
10. client as claimed in claim 9, it is characterised in that the terminal is pre- including network address conversion type
If the client of translation type.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610373444.9A CN106411836B (en) | 2016-05-30 | 2016-05-30 | Call connection method and client |
PCT/CN2017/080836 WO2017206600A1 (en) | 2016-05-30 | 2017-04-18 | Call connection method and client |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610373444.9A CN106411836B (en) | 2016-05-30 | 2016-05-30 | Call connection method and client |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106411836A CN106411836A (en) | 2017-02-15 |
CN106411836B true CN106411836B (en) | 2017-09-19 |
Family
ID=58006388
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610373444.9A Active CN106411836B (en) | 2016-05-30 | 2016-05-30 | Call connection method and client |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106411836B (en) |
WO (1) | WO2017206600A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106411836B (en) * | 2016-05-30 | 2017-09-19 | 深圳市鼎盛智能科技有限公司 | Call connection method and client |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102685141A (en) * | 2012-05-22 | 2012-09-19 | 北京邮电大学 | Fusion traversing method based on voice accessibility in VoIP (Voice over Internet Protocol) |
CN102685268A (en) * | 2012-05-22 | 2012-09-19 | 北京邮电大学 | Fast private network traversal method based on ICE (Information and Content Exchange) protocol in VoIP (Voice over Internet Protocol) |
CN102739815A (en) * | 2011-06-03 | 2012-10-17 | 北京天地互连信息技术有限公司 | Method for reducing system time delaying of network address translation of video conference system |
CN105187567A (en) * | 2015-06-24 | 2015-12-23 | 东莞市南星电子有限公司 | Audio-video communication method based on SIP and ICE |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102664901A (en) * | 2012-05-15 | 2012-09-12 | 苏州工业园区云视信息技术有限公司 | Method for adaptive traversal through network address translator (NAT) in session initiation protocol (SIP) call |
US10244003B2 (en) * | 2014-09-25 | 2019-03-26 | Microsoft Technology Licensing, Llc | Media session between network endpoints |
US9596272B2 (en) * | 2014-09-25 | 2017-03-14 | Microsoft Technology Licensing, Llc | Media session between network endpoints |
CN106411836B (en) * | 2016-05-30 | 2017-09-19 | 深圳市鼎盛智能科技有限公司 | Call connection method and client |
-
2016
- 2016-05-30 CN CN201610373444.9A patent/CN106411836B/en active Active
-
2017
- 2017-04-18 WO PCT/CN2017/080836 patent/WO2017206600A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102739815A (en) * | 2011-06-03 | 2012-10-17 | 北京天地互连信息技术有限公司 | Method for reducing system time delaying of network address translation of video conference system |
CN102685141A (en) * | 2012-05-22 | 2012-09-19 | 北京邮电大学 | Fusion traversing method based on voice accessibility in VoIP (Voice over Internet Protocol) |
CN102685268A (en) * | 2012-05-22 | 2012-09-19 | 北京邮电大学 | Fast private network traversal method based on ICE (Information and Content Exchange) protocol in VoIP (Voice over Internet Protocol) |
CN105187567A (en) * | 2015-06-24 | 2015-12-23 | 东莞市南星电子有限公司 | Audio-video communication method based on SIP and ICE |
Also Published As
Publication number | Publication date |
---|---|
WO2017206600A1 (en) | 2017-12-07 |
CN106411836A (en) | 2017-02-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11095664B2 (en) | Detection of spoofed call information | |
US9203652B2 (en) | Systems, methods, devices and arrangements for cost-effective routing | |
US6831675B2 (en) | System and method for videoconference initiation | |
CN1735093B (en) | Communication device and its control method | |
US20100235516A1 (en) | Communication system and server | |
CN110383935A (en) | By the call setting timer of different agreement triggering and termination | |
US20140016487A1 (en) | Test system to estimate the uplink or downlink quality of multiple user devices using a mean opinion score (mos) | |
US7738636B1 (en) | Message-indication testing | |
CN103718532A (en) | Data transmission method, apparatus and terminal device | |
US20070087769A1 (en) | Group call server, group call system, terminal, and group call control method | |
CN105471680A (en) | Network voice communication testing system and method | |
CN106453799B (en) | Manipulative communications deception recognition methods and system | |
US20070171816A1 (en) | Method and apparatus for call reroute based upon QoS | |
CN106411836B (en) | Call connection method and client | |
CN103905380B (en) | Service call method, device and system | |
EP1821458A1 (en) | A method, system and access control function for testing the emergent service | |
EP3782358A1 (en) | Technique for acquiring and correlating session-related information from an internet protocol multimedia subsystem | |
JP2008541597A (en) | Terminal, emergency center, network, network element, system and method for establishing an emergency session using terminal identity | |
CN103517287B (en) | Method of testing, system and the tone testing server of end-to-end double-directional speech quality | |
CN102547604B (en) | Implementation method, system and device for video phone service | |
US8873405B2 (en) | Automated session initiation protocol (SIP) device | |
CN101141519A (en) | Method and device to determine calling audio playback | |
CN107968731B (en) | The aobvious number method for detecting abnormality of one kind and server | |
CN108616507A (en) | A kind of voice gateway system and its processing method to access terminal | |
US10880343B2 (en) | Conferencing system exploiting terminal diversity |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CB03 | Change of inventor or designer information |
Inventor after: Sheng Ge Inventor after: Sheng Zhangmei Inventor before: Xu Yongchang Inventor before: Sheng Ge |
|
PP01 | Preservation of patent right | ||
PP01 | Preservation of patent right |
Effective date of registration: 20210316 Granted publication date: 20170919 |