WO2017206600A1 - 通话连接方法及客户端 - Google Patents

通话连接方法及客户端 Download PDF

Info

Publication number
WO2017206600A1
WO2017206600A1 PCT/CN2017/080836 CN2017080836W WO2017206600A1 WO 2017206600 A1 WO2017206600 A1 WO 2017206600A1 CN 2017080836 W CN2017080836 W CN 2017080836W WO 2017206600 A1 WO2017206600 A1 WO 2017206600A1
Authority
WO
WIPO (PCT)
Prior art keywords
call
address
client
weight value
information
Prior art date
Application number
PCT/CN2017/080836
Other languages
English (en)
French (fr)
Inventor
许永昌
盛阁
Original Assignee
深圳市鼎盛智能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市鼎盛智能科技有限公司 filed Critical 深圳市鼎盛智能科技有限公司
Publication of WO2017206600A1 publication Critical patent/WO2017206600A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/10Architectures or entities
    • H04L65/1016IP multimedia subsystem [IMS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a call connection method and a client.
  • the server deployed in the network forwards the media data to implement audio and video calls between the terminal devices.
  • the media data between the terminal devices is sent directly or through the transit server. All must detect the intranet address connectivity, the external network address connectivity, and the transit station address connectivity between the terminal devices, and finally select the most connectivity of the three addresses for the call connection, thus consuming a large number of audio and video calls. Connection time, which reduces the efficiency of audio and video call connections.
  • the main purpose of the present invention is to provide a call connection method and a client, which are designed to solve the problem that the current network address connectivity, the external network address connectivity, and the transit station address connectivity between the terminal devices must be detected when the call is connected.
  • the present invention provides a call connection method, including:
  • the receiving client When the receiving client receives the call information sent by the calling client, parsing the call information to obtain the first call address information corresponding to the calling client, and the first one of the first call address information
  • the transit station corresponding to the address of the transfer station obtains the second call address information corresponding to the local end;
  • the receiving client determines a weight value of each call address in the first address information based on the first call address information and the second address information, where the call address in the first call address information includes the first outer address a network address, a first intranet address, and the first transit station address;
  • the receiving client performs a connectivity test based on the call address with the largest weight value, and sends a weight value of each call address in the first call address information to the calling client for the calling party.
  • the client performs a connectivity test based on the call address with the largest weight value;
  • the receiving client When the connectivity test is successful, the receiving client establishes a communication connection with the calling client based on the call address with the largest weight value.
  • the receiving client performs a connectivity test based on the call address with the largest weight value, and sends a weight value of each call address in the first call address information to the calling client to provide
  • the method further includes:
  • the receiving client jumps to the relay station according to the first relay station address, and establishes a communication connection with the calling client based on the relay station.
  • the step of determining, by the receiving client, the weight value of each call address in the first address information based on the first call address information and the second address information includes:
  • the weight value of the first internal network address in the first call address information is set to a first preset value
  • the The weight value of the first external network address and the first relay station address is set to a second preset value, wherein the first preset value is greater than the second preset value
  • the step of the connectivity test performed by the receiving client based on the call address with the highest weight value includes:
  • the receiving client performs a connectivity test with the calling client based on the first intranet address
  • the answering client further includes:
  • the receiving client jumps to the relay station according to the first relay station address, and establishes a communication connection with the calling client based on the relay station.
  • the call connection method further includes :
  • the first network address translation type of the calling client and the second network address translation type of the local end in the call information are obtained.
  • Preset type
  • the weight value of the first relay station address is set to a third preset value
  • the first The weight value of the external network address and the first internal network address is set to a fourth preset value, wherein the third preset value is greater than the fourth preset value.
  • the first network address translation type and the second network address translation type are not preset types, setting a weight value of the first external network address to a fifth preset value, and using the first transit station
  • the weight value of the address is set to a sixth preset value, and the weight value of the first external network address is set to a seventh preset value, wherein the sixth preset value is greater than the seventh preset value. And less than the fifth preset value.
  • the present invention further provides a call connection method, including:
  • the call information is sent to the receiving client;
  • the answering client parses the call information to obtain the calling party
  • the first call address information corresponding to the client, and the second call address information corresponding to the local end is obtained from the transfer station corresponding to the first transfer station address in the first call address information, and the answering client is based on the a call address information and the second address information determine a weight value of each call address in the first address information, and send a weight value of each call address in the first call address information to the calling client
  • the call address in the first call address information includes a first external network address, a first internal network address, and the first transfer station address;
  • the calling client performs a connectivity test based on the call address with the largest weight value
  • the calling client When the connectivity test is successful, the calling client performs a call connection with the answering client according to the call address with the highest weight value.
  • the method further includes:
  • the calling client When the connectivity test fails, the calling client performs a call connection with the receiving client according to the relay station corresponding to the first relay station address.
  • the relay station includes a client whose network address translation type is a preset conversion type.
  • the present invention further provides a client, including: an answering client and a calling client; wherein the answering client includes:
  • the parsing module is configured to: when the receiving client receives the call information sent by the calling client, parse the call information to obtain the first call address information corresponding to the calling client, and send the first call address information to the first call address
  • the relay station corresponding to the address of the first transfer station in the information obtains the second call address information corresponding to the local end;
  • a determining module configured to determine, according to the first call address information and the second address information, a weight value of each call address in the first address information, where the call address in the first call address information includes a first outer address a network address, a first intranet address, and the first transit station address;
  • a first test module configured to perform a connectivity test based on the call address with the largest weight value, and send a weight value of each call address in the first call address information to the calling client, where The calling client performs a connectivity test based on the call address with the largest weight value;
  • a creating module configured to establish a communication connection with the calling client based on the call address with the largest weight value when the connectivity test is successful.
  • the creating module is further configured to:
  • the connectivity test fails, the first relay station address is jumped to the relay station, and a communication connection with the calling client is established based on the relay station.
  • the determining module comprises:
  • a determining unit configured to determine whether the first external network address in the first call address information is the same as the second external network address in the second call address information
  • a setting unit configured to set a weight value of the first intranet address in the first call address information as a first preset when the first external network address is the same as the second external network address And a value of the weight of the first external network address and the first relay station address is set to a second preset value, wherein the first preset value is greater than the second preset value.
  • the first test module is configured to perform a connectivity test with the calling client based on the first intranet address
  • the creating module is further configured to: when the connectivity test fails, jump to the intermediate station according to the first relay station address, and establish a communication connection with the calling client based on the relay station.
  • the answering client comprises:
  • An acquiring module configured to acquire, when the first external network address and the second external network address are different, a first network address translation type of the calling client and a second network address of the local end in the call information Whether the conversion type is a preset type;
  • a first setting module configured to set a weight value of the first relay station address to a third preset value when both the first network address translation type and the second network address translation type are preset types And setting a weight value of the first external network address and the first internal network address to a fourth preset value, wherein the third preset value is greater than the fourth preset value.
  • a second setting module configured to set a weight value of the first external network address to a fifth preset value when the first network address translation type and the second network address translation type are not preset types, Setting a weight value of the first relay station address to a sixth preset value, and setting a weight value of the first external network address to a seventh preset value, where the sixth preset value is greater than The seventh preset value is smaller than the fifth preset value.
  • the present invention further provides a client, including: a receiving client and a calling client; wherein the calling client includes:
  • a sending module configured to send the call information to the receiving client after the calling client enters the audio and video calling mode
  • a receiving module configured to receive a weight value of each call address in the first call address information sent by the answering client based on the call information, where the answering client parses the call information to obtain the calling client
  • the first call address information corresponding to the end, and the second call address information corresponding to the local end is obtained from the transfer station corresponding to the first transfer station address in the first call address information, and the answering client is based on the first
  • the call address information and the second address information determine a weight value of each call address in the first address information, and send a weight value of each call address in the first call address information to the calling client.
  • the call address in the first call address information includes a first external network address, a first internal network address, and the first transfer station address;
  • a second test module configured to perform a connectivity test based on the call address with the largest weight value
  • the connection module is configured to perform a call connection with the answering client according to the call address with the highest weight value when the connectivity test is successful.
  • connection module is further configured to:
  • the relay station corresponding to the address of the first transfer station performs a call connection with the answering client.
  • the relay station includes a client whose network address translation type is a preset conversion type.
  • the present invention parses the call information to obtain the first call address information corresponding to the calling client, and sends the first relay address to the first call address information.
  • the corresponding transfer station obtains the second call address information corresponding to the local end, and the receiving client determines the weight value of each call address in the first call address information based on the first call address information and the second call address information, where the first call address information is in the first call address information.
  • the call address includes a first external network address, a first internal network address, and a first transit station address, and the receiving client performs a connectivity test based on the call address with the largest weight value, and weights each call address in the first call address information.
  • the value is sent to the calling client, so that the calling client performs the connectivity test based on the call address with the largest weight value.
  • the receiving client establishes the call address based on the call address with the largest weight value. Communication connection.
  • the receiving client determines the weight value of each call address in the first call address information corresponding to the calling client, the receiving client performs the connectivity test based on the call address with the largest weight value, thereby optimizing the connectivity detecting procedure. , reducing the connectivity test time, thereby reducing the audio and video call connection time, thereby improving the efficiency of the audio and video call connection.
  • FIG. 1 is a schematic flow chart of a first embodiment of a call connection method according to the present invention
  • FIG. 2 is a schematic flowchart of a refinement step of step S120 in the first embodiment shown in FIG. 1 according to the present invention
  • FIG. 3 is a schematic flowchart of a second embodiment of a call connection method according to the present invention.
  • FIG. 4 is a schematic flowchart diagram of a third embodiment of a call connection method according to the present invention.
  • FIG. 5 is a schematic diagram of functional modules of a first embodiment of a client receiving a client according to the present invention
  • FIG. 6 is a schematic diagram of a refinement function module of a determining module in a second embodiment of the client in the client according to the present invention.
  • the present invention provides a call connection method.
  • FIG. 1 is a schematic flowchart diagram of a first embodiment of a call connection method according to the present invention.
  • the call connection method includes:
  • step S110 when the receiving client receives the call information sent by the calling client, the call information is parsed to obtain the first call address information corresponding to the calling client, and the first transit address in the first call address information is obtained.
  • the corresponding transfer station obtains the second call address information corresponding to the local end;
  • the receiving client and the calling client are ICE clients supporting the RFC5766 protocol, and the receiving client and the calling client pass the RFC5766 protocol and the TURN.
  • the server transfer station communicates, and the TURN Server transfer station includes the TURN supporting the RFC5766 protocol.
  • Server client used to provide TURN relay service for ICE client in the role of ICE relay server.
  • the SIP session initiation protocol is used to send the INVITE call information to the receiving client, and the INVITE call information is constructed by the SDP protocol, and the SDP protocol constructs the INVITE call information.
  • the first intranet address, the first external network address, the two sets of first transit addresses, and the first network address translation NAT type corresponding to the calling client are also constructed in the INVITE call information by adding an attribute item, and thus
  • the calling client sends the INVITE call information to the receiving client, and also converts the first internal network address, the first external network address, the two sets of first transit addresses, and the first network address corresponding to the local end to NAT.
  • the type is sent to the answering client.
  • the INVITE call information is parsed to obtain the first call address information corresponding to the calling client, where the first call address information includes the main The first intranet address corresponding to the client, the first external network address, and the two sets of first transit addresses are called.
  • the receiving client When the receiving client receives the two sets of first forwarding addresses sent by the calling client, it is determined whether the second transit address currently stored by the local end is the same as the two first forwarding addresses of the two groups, and if so, the stored based The second external network address, the second internal network address, and the second network translation NAT type of the local end obtained by the relay station corresponding to the second transit address, and if not, the intermediate station corresponding to the two sets of first transit addresses obtains the local
  • the second call information of the terminal includes the second internal network address corresponding to the receiving client, the second external network address, the two sets of second relay station addresses, and the second network switching NAT type.
  • the first forwarding addresses of the two groups are different, and the first forwarding addresses of the two groups are consistent with the second forwarding addresses of the two groups.
  • Step S120 The receiving client determines the weight value of each call address in the first call address information based on the first call address information and the second call address information, where the call address in the first call address information includes the first external network address, and the first Intranet address and first transfer station address;
  • Each of the first call address information includes a first external network address, a first internal network address, and two sets of first transfer station addresses.
  • Step S130 The client receives the connectivity test based on the call address with the largest weight value, and sends the weight value of each call address in the first call address information to the calling client, so that the calling client is based on the maximum weight value.
  • the call address is tested for connectivity;
  • the weight values of the call addresses in the first call address information are arranged in descending order, and the answering client firstly The call address with the highest weight value in the first call address information is tested for connectivity test with the calling client. If the call address with the largest weight value fails to communicate, the call address corresponding to the second weight value is selected to be connected. For the sex test, if the connectivity test fails according to the call address corresponding to the weight value in the order of the largest to the smallest, the answering client jumps to the transfer station according to the two sets of the first transfer station address, based on the transfer station. Establish a communication connection with the calling client.
  • Step S140 when the connectivity test is successful, the receiving client establishes a communication connection with the calling client based on the call address with the largest weight value.
  • the receiving client After receiving the connectivity test based on the call address with the largest weight value, the receiving client establishes a communication connection with the calling client based on the call address with the largest weight value.
  • the answering client determines that the weight value of a certain call address in the first call address information is a minimum value such as 0, and the weight value of a call address in the second call address information is a minimum value, such as At 0, no connectivity test is required.
  • the receiving client when the receiving client receives the call information sent by the calling client, the call information is parsed to obtain the first call address information corresponding to the calling client, and the first transfer station in the first call address information is obtained.
  • the relay station corresponding to the address obtains the second call address information corresponding to the local end, and the receiving client determines the weight value of each call address in the first call address information based on the first call address information and the second call address information, and the first call address information
  • the call address in the call includes the first external network address, the first internal network address, and the first transfer station address, and the receiving client performs the connectivity test based on the call address with the largest weight value, and the call address of the first call address information is The weight value is sent to the calling client, so that the calling client performs the connectivity test based on the call address with the largest weight value.
  • the receiving client When the connectivity test is successful, the receiving client establishes the calling client with the call address with the largest weight value. The communication connection of the end. After the receiving client determines the weight value of each call address in the first call address information corresponding to the calling client, the receiving client performs the connectivity test based on the call address with the largest weight value, thereby optimizing the connectivity detecting procedure. , reducing the connectivity test time, thereby reducing the audio and video call connection time, thereby improving the efficiency of the audio and video call connection.
  • step S120 is a schematic flowchart of the refinement step of step S120 in the first embodiment of the present invention.
  • the answering client is based on the first call address information and the second call address.
  • the step of determining the refinement of each pass in the first call address information includes:
  • Step S121 determining whether the first external network address in the first call address information is the same as the second external network address in the second call address information
  • Step S122 when the first external network address is the same as the second external network address, the weight value of the first internal network address in the first call address information is set to a first preset value, and the first external network address and the first The weight value of the address of a relay station is set to a second preset value, wherein the first preset value is greater than the second preset value.
  • the weight value of the first intranet address in the call address information is set to a first preset value
  • the weight value of the first external network address and the first relay station address is set to a second preset value, where the first pre- Set the value to be greater than the second preset value.
  • determining, by the comparison, that the second external network address of the receiving client is the same as the first external network address of the calling client determining that the receiving client is in the same local area network as the calling client, thereby determining the first internal network.
  • the weight value of the address is the largest, so the procedure for determining the weight value of each call address by the receiving client is reduced, thereby reducing the determination time of the weight value and improving the efficiency of the audio and video call connection.
  • the call connection method includes:
  • Step S150 When the first external network address is different from the second external network address, detecting whether the first network address translation type of the calling client and the second network address translation type of the local end in the call information are both preset types;
  • Step S160 when the first network address translation type and the second network address translation type are preset types, the weight value of the first relay station address is set to a third preset value, and the first external network address and the first The weight value of an intranet address is set to a fourth preset value, wherein the third preset value is greater than the fourth preset value.
  • Step S170 When the first network address translation type and the second network address translation type are not preset types, the weight value of the first external network address is set to a fifth preset value, and the weight value of the first transit station address is set. It is a sixth preset value, and the weight value of the first intranet address is set to a seventh preset value, wherein the sixth preset value is greater than the seventh preset value and is less than the fifth preset value.
  • the detection is performed. Whether the first network address translation type of the calling client and the second network address translation type of the local end are both preset types in the call information, and when the first network address translation type and the second network address translation type are preset types, Setting a weight value of the first relay station address to a third preset value, and setting a weight value of the first external network address and the first internal network address to a fourth preset value, wherein the third preset value is greater than the third preset value
  • the preset value is: when the first network address translation type and the second network address translation type are not preset types, the weight value of the first external network address is set to a fifth preset value, and the weight of the first transit station address is used.
  • the value is set to a sixth preset value
  • the weight value of the first intranet address is set to a seventh preset value, wherein the sixth preset value is greater than the seventh preset value and is less than the fifth preset value.
  • the present invention provides a call connection method.
  • FIG. 4 is a schematic flowchart diagram of a third embodiment of a call connection method according to the present invention.
  • the call connection method includes:
  • Step S210 After the calling client enters the audio and video call mode, the call information is sent to the receiving client.
  • Step S220 the calling client receives the weight value of each call address in the first call address information sent by the client based on the call information, wherein the answering client parses the call information to obtain the first call address information corresponding to the calling client. And obtaining, by the relay station corresponding to the first transfer station address in the first call address information, the second call address information corresponding to the local end, and the receiving client determines the first address information based on the first call address information and the second address information. a weight value of each call address, and sending a weight value of each call address in the first call address information to the calling client, where the call address in the first call address information includes a first external network address, a first internal network address, and First transfer station address;
  • Step S230 the calling client performs a connectivity test based on the call address with the largest weight value
  • Step S240 When the connectivity test is successful, the calling client connects to the receiving client according to the call address with the largest weight value.
  • the calling client receives the weight value of each call address in the first call address information sent by the client based on the call information, wherein the receiving client parses the call information to obtain the first call address corresponding to the calling client. And obtaining, by the relay station corresponding to the first transfer station address in the first call address information, the second call address information corresponding to the local end, and the receiving client determines the first address information based on the first call address information and the second address information.
  • the weight value of each call address is sent, and the weight value of each call address in the first call address information is sent to the calling client.
  • the call address in the first call address information includes the first external network address and the first internal network address.
  • the calling client performs the connectivity test based on the call address with the largest weight value.
  • the connectivity test is successful, the calling client connects to the receiving client according to the call address with the largest weight value. Since the calling client receives the weight value of each call address in the first call address information sent by the client, the connectivity test is performed based on the call address with the largest weight value, thereby optimizing the connectivity detection procedure and reducing connectivity. Sex test time, which reduces the audio and video call connection time, thereby improving the efficiency of audio and video call connection.
  • the invention further provides a client.
  • FIG. 5 is a schematic diagram of functional modules of a first embodiment of a client in the client according to the present invention.
  • the answering client includes: a parsing module 110, a determining module 120, a first testing module 130, and a creating module 140.
  • the parsing module 110 is configured to parse the call information to obtain the first call address information corresponding to the calling client when the receiving client receives the call information sent by the calling client, and the information is sent to the first call address information.
  • the relay station corresponding to the address of the first transfer station obtains the second call address information corresponding to the local end;
  • the determining module 120 is configured to determine, according to the first call address information and the second call address information, a weight value of each call address in the first call address information, where the call address in the first call address information includes a first external network address, The first intranet address and the first transit station address;
  • the first test module 130 is configured to perform a connectivity test based on the call address with the largest weight value, and send the weight value of each call address in the first call address information to the calling client, so that the calling client is based on The call address with the highest weight value is tested for connectivity;
  • the creating module 140 is configured to establish a communication connection with the calling client based on the call address with the largest weight value when the connectivity test is successful.
  • the receiving client when the receiving client receives the call information sent by the calling client, the call information is parsed to obtain the first call address information corresponding to the calling client, and the first transfer station in the first call address information is obtained.
  • the relay station corresponding to the address obtains the second call address information corresponding to the local end, and the receiving client determines the weight value of each call address in the first call address information based on the first call address information and the second call address information, and the first call address information
  • the call address in the call includes the first external network address, the first internal network address, and the first transfer station address, and the receiving client performs the connectivity test based on the call address with the largest weight value, and the call address of the first call address information is The weight value is sent to the calling client, so that the calling client performs the connectivity test based on the call address with the largest weight value.
  • the receiving client When the connectivity test is successful, the receiving client establishes the calling client with the call address with the largest weight value. The communication connection of the end. After the receiving client determines the weight value of each call address in the first call address information corresponding to the calling client, the receiving client performs the connectivity test based on the call address with the largest weight value, thereby optimizing the connectivity detecting procedure. , reducing the connectivity test time, thereby reducing the audio and video call connection time, thereby improving the efficiency of the audio and video call connection.
  • the determining module 120 includes a determining unit 121 and a setting unit 122.
  • the determining unit 121 is configured to determine whether the first external network address in the first call address information is the same as the second external network address in the second call address information;
  • the setting unit 122 is configured to: when the first external network address and the second external network address are the same, set the weight value of the first internal network address in the first call address information to a first preset value, and the first The weight value of the external network address and the first relay station address is set to a second preset value, wherein the first preset value is greater than the second preset value.
  • the weight value of the first intranet address in the call address information is set to a first preset value
  • the weight value of the first external network address and the first relay station address is set to a second preset value, where the first pre- Set the value to be greater than the second preset value.
  • determining, by the comparison, that the second external network address of the receiving client is the same as the first external network address of the calling client determining that the receiving client is in the same local area network as the calling client, thereby determining the first internal network.
  • the weight value of the address is the largest, so the procedure for determining the weight value of each call address by the receiving client is reduced, thereby reducing the determination time of the weight value and improving the efficiency of the audio and video call connection.
  • the answering client further includes: a detecting module 150, a first setting module 160, and a second setting module 170.
  • the detecting module 150 is configured to detect, when the first external network address and the second external network address are different, whether the first network address translation type of the calling client and the second network address translation type of the local end in the call information are both Preset type;
  • the first setting module 160 is configured to set a weight value of the first relay station address to a third preset value when the first network address translation type and the second network address translation type are both preset types, and The weight value of the first external network address and the first internal network address is set to a fourth preset value, wherein the third preset value is greater than the fourth preset value.
  • the second setting module 170 is configured to set the weight value of the first external network address to a fifth preset value when the first network address translation type and the second network address translation type are not preset types, and the first The weight value of the relay station address is set to a sixth preset value, and the weight value of the first intranet address is set to a seventh preset value, wherein the sixth preset value is greater than the seventh preset value, and is less than the fifth value. default value.
  • the detection is performed. Whether the first network address translation type of the calling client and the second network address translation type of the local end are both preset types in the call information, and when the first network address translation type and the second network address translation type are preset types, Setting a weight value of the first relay station address to a third preset value, and setting a weight value of the first external network address and the first internal network address to a fourth preset value, wherein the third preset value is greater than the third preset value
  • the preset value is: when the first network address translation type and the second network address translation type are not preset types, the weight value of the first external network address is set to a fifth preset value, and the weight of the first transit station address is used.
  • the value is set to a sixth preset value
  • the weight value of the first intranet address is set to a seventh preset value, wherein the sixth preset value is greater than the seventh preset value and is less than the fifth preset value.
  • the invention further provides a client.
  • the calling client includes: a sending module 210, a receiving module 220, a second testing module 230, and a connecting module 240.
  • the sending module 210 is configured to send call information to the receiving client after the calling client enters the audio and video calling mode;
  • the receiving module 220 is configured to receive a weight value of each call address in the first call address information sent by the client based on the call information, where the receiving client parses the call information to obtain the first call address corresponding to the calling client. And obtaining, by the relay station corresponding to the first transfer station address in the first call address information, the second call address information corresponding to the local end, and the receiving client determines the first address information based on the first call address information and the second address information.
  • the weight value of each call address is sent, and the weight value of each call address in the first call address information is sent to the calling client.
  • the call address in the first call address information includes the first external network address and the first internal network address. And the address of the first transfer station;
  • the second testing module 230 is configured to perform a connectivity test based on a call address with a maximum weight value
  • the connection module 240 is configured to perform a call connection with the answering client according to the call address with the largest weight value when the connectivity test is successful.
  • the calling client receives the weight value of each call address in the first call address information sent by the client based on the call information, wherein the receiving client parses the call information to obtain the first call address corresponding to the calling client. And obtaining, by the relay station corresponding to the first transfer station address in the first call address information, the second call address information corresponding to the local end, and the receiving client determines the first address information based on the first call address information and the second address information.
  • the weight value of each call address is sent, and the weight value of each call address in the first call address information is sent to the calling client.
  • the call address in the first call address information includes the first external network address and the first internal network address.
  • the calling client performs the connectivity test based on the call address with the largest weight value.
  • the connectivity test is successful, the calling client connects to the receiving client according to the call address with the largest weight value. Since the calling client receives the weight value of each call address in the first call address information sent by the client, the connectivity test is performed based on the call address with the largest weight value, thereby optimizing the connectivity detection procedure and reducing connectivity. Sex test time, which reduces the audio and video call connection time, thereby improving the efficiency of audio and video call connection.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本发明公开了一种通话连接方法以及客户端,该方法包括:在接听客户端接收到主叫客户端发送的呼叫信息时,解析呼叫信息以获取主叫客户端对应的第一通话地址信息;接听客户端基于第一通话地址信息确定第一通话地址信息中各个通话地址的权重值;接听客户端基于权重值最大的通话地址进行连通性测试,并将第一通话地址信息中各个通话地址的权重值发送至主叫客户端,以供主叫客户端基于权重值最大的通话地址进行连通性测试;在连通性测试测试成功时,接听客户端基于权重值最大的通话地址建立与主叫客户端的通信连接。本发明优化了连通性检测程序,降低了连通性测试时间。

Description

通话连接方法及客户端
技术领域
本发明涉及通信技术领域,尤其涉及一种通话连接方法及客户端。
背景技术
随着通信技术的不断发展,通过终端设备进行音视频通话也越来越流行,在终端设备在进行音视频通话过程中,终端设备之间的网络环境是不同的,为了使得音视频通话过程中媒体数据从一个终端设备传送到另一个终端设备,需要在外网中部署一台服务器来转发媒体数据,由于所有的终端设备都依赖于该服务器进行媒体数据转发,因此使得服务器承受的压力非常大,容易当机;为了解决上述技术问题,引入(Internet Communication Engine,ICE)分布式转发通信机制,使得音视频通话过程中媒体数据从一个终端设备直接传送到另一个终端设备,当媒体数据无法从一个终端设备直接传送到另一个终端设备时,再通过外网中部署的服务器来转发媒体数据,从而实现终端设备之间的音视频通话,但由于终端设备之间的网络环境不同,因此终端设备之间的媒体数据无论是直接发送还是通过中转服务器发送,都必须检测终端设备之间的内网地址连通性、外网地址连通性以及中转站地址连通性,最后选择该三个地址中连通性最好的地址进行通话连接,因此耗费大量的音视频通话连接时间,从而降低了音视频通话连接效率。
发明内容
本发明的主要目的在于提供一种通话连接方法及客户端,旨在解决当前在通话连接时,必须检测终端设备之间的内网地址连通性、外网地址连通性以及中转站地址连通性,而导致音视频通话连接效率的问题。
为实现上述目的,本发明提供的一种通话连接方法,包括:
在接听客户端接收到主叫客户端发送的呼叫信息时,解析所述呼叫信息以获取所述主叫客户端对应的第一通话地址信息,并向所述第一通话地址信息中的第一中转站地址对应的中转站获取本端对应的第二通话地址信息;
所述接听客户端基于所述第一通话地址信息以及所述第二地址信息确定所述第一地址信息中各个通话地址的权重值,所述第一通话地址信息中的通话地址包括第一外网地址、第一内网地址以及所述第一中转站地址;
所述接听客户端基于权重值最大的所述通话地址进行连通性测试,并将所述第一通话地址信息中各个通话地址的权重值发送至所述主叫客户端,以供所述主叫客户端基于权重值最大的所述通话地址进行连通性测试;
在连通性测试测试成功时,所述接听客户端基于权重值最大的所述通话地址建立与所述主叫客户端的通信连接。
优选地,所述接听客户端基于权重值最大的所述通话地址进行连通性测试,并将所述第一通话地址信息中各个通话地址的权重值发送至所述主叫客户端,以供所述主叫客户端基于权重值最大的所述通话地址进行连通性测试的步骤之后,还包括:
在连通性测试失败时,所述接听客户端根据所述第一中转站地址跳转至中转站,基于所述中转站建立与所述主叫客户端的通信连接。
优选地,所述接听客户端基于所述第一通话地址信息以及所述第二地址信息确定所述第一地址信息中各个通话地址的权重值的步骤包括:
判断所述第一通话地址信息中的所述第一外网地址与所述第二通话地址信息中的第二外网地址是否相同;
在所述第一外网地址与所述第二外网地址相同时,将所述第一通话地址信息中的所述第一内网地址的权重值设为第一预设值,将所述第一外网地址以及第一中转站地址的权重值设为第二预设值,其中,所述第一预设值大于所述第二预设值。
优选地,所述接听客户端基于权重值最大的所述通话地址进行连通性测试的步骤包括:
所述接听客户端基于所述第一内网地址与所述主叫客户端进行连通性测试;
所述接听客户端基于所述第一内网地址与所述主叫客户端进行连通性测试的步骤之后,还包括:
在连通性测试失败时,所述接听客户端根据所述第一中转站地址跳转至中转站,基于所述中转站建立与所述主叫客户端的通信连接。
优选地,所述判断所述第一通话地址信息中的所述第一外网地址与所述第二通话地址信息中的第二外网地址是否相同的步骤之后,所述通话连接方法还包括:
在所述第一外网地址与所述第二外网地址不相同时,获取所述呼叫信息中所述主叫客户端的第一网络地址转换类型与本端的第二网络地址转换类型是否均为预设类型;
在所述第一网络地址转换类型与所述第二网络地址转换类型均为预设类型时,将所述第一中转站地址的权重值设为第三预设值,并将所述第一外网地址以及第一内网地址的权重值设为第四预设值,其中,所述第三预设值大于所述第四预设值。
在所述第一网络地址转换类型与所述第二网络地址转换类型不是预设类型时,将所述第一外网地址的权重值设为第五预设值,将所述第一中转站地址的权重值设为第六预设值,并将所述第一外网地址的权重值设为第七预设值,其中,所述第六预设值大于所述第七预设值,且小于所述第五预设值。
为实现上述目的,本发明又提供一种通话连接方法,包括:
在主叫客户端进入音视频通话模式后,向接听客户端发送呼叫信息;
所述主叫客户端接收所述接听客户端基于所述呼叫信息发送的第一通话地址信息中各个通话地址的权重值,其中,所述接听客户端解析所述呼叫信息以获取所述主叫客户端对应的第一通话地址信息,并向所述第一通话地址信息中的第一中转站地址对应的中转站获取本端对应的第二通话地址信息,所述接听客户端基于所述第一通话地址信息以及所述第二地址信息确定所述第一地址信息中各个通话地址的权重值,并将所述第一通话地址信息中各个通话地址的权重值发送至所述主叫客户端,所述第一通话地址信息中的通话地址包括第一外网地址、第一内网地址以及所述第一中转站地址;
所述主叫客户端基于权重值最大的所述通话地址进行连通性测试;
在连通性测试成功时,所述主叫客户端根据所述权重值最大的所述通话地址与所述接听客户端进行通话连接。
优选地,所述主叫客户端基于权重值最大的所述通话地址进行连通性测试的步骤之后,还包括:
在连通性测试失败时,所述主叫客户端根据所述第一中转站地址对应的中转站与所述接听客户端进行通话连接。
优选地,所述中转站包括网络地址转换类型为预设转换类型的客户端。
此外,为实现上述目的,本发明还提供一种客户端,包括:接听客户端以及主叫客户端;其中,所述接听客户端包括:
解析模块,用于在接听客户端接收到主叫客户端发送的呼叫信息时,解析所述呼叫信息以获取所述主叫客户端对应的第一通话地址信息,并向所述第一通话地址信息中的第一中转站地址对应的中转站获取本端对应的第二通话地址信息;
确定模块,用于基于所述第一通话地址信息以及所述第二地址信息确定所述第一地址信息中各个通话地址的权重值,所述第一通话地址信息中的通话地址包括第一外网地址、第一内网地址以及所述第一中转站地址;
第一测试模块,用于基于权重值最大的所述通话地址进行连通性测试,并将所述第一通话地址信息中各个通话地址的权重值发送至所述主叫客户端,以供所述主叫客户端基于权重值最大的所述通话地址进行连通性测试;
创建模块,用于在连通性测试测试成功时,基于权重值最大的所述通话地址建立与所述主叫客户端的通信连接。
优选地,所述创建模块还用于:
在连通性测试失败时,根据所述第一中转站地址跳转至中转站,基于所述中转站建立与所述主叫客户端的通信连接。
优选地,所述确定模块包括:
判断单元,用于判断所述第一通话地址信息中的所述第一外网地址与所述第二通话地址信息中的第二外网地址是否相同;
设置单元,用于在所述第一外网地址与所述第二外网地址相同时,将所述第一通话地址信息中的所述第一内网地址的权重值设为第一预设值,将所述第一外网地址以及第一中转站地址的权重值设为第二预设值,其中,所述第一预设值大于所述第二预设值。
优选地,所述第一测试模块,用于基于所述第一内网地址与所述主叫客户端进行连通性测试;
所述创建模块,还用于在连通性测试失败时,根据所述第一中转站地址跳转至中转站,基于所述中转站建立与所述主叫客户端的通信连接。
优选地,所述接听客户端包括:
获取模块,用于在所述第一外网地址与所述第二外网地址不相同时,获取所述呼叫信息中所述主叫客户端的第一网络地址转换类型与本端的第二网络地址转换类型是否均为预设类型;
第一设置模块,用于在所述第一网络地址转换类型与所述第二网络地址转换类型均为预设类型时,将所述第一中转站地址的权重值设为第三预设值,并将所述第一外网地址以及第一内网地址的权重值设为第四预设值,其中,所述第三预设值大于所述第四预设值。
第二设置模块,用于在所述第一网络地址转换类型与所述第二网络地址转换类型不是预设类型时,将所述第一外网地址的权重值设为第五预设值,将所述第一中转站地址的权重值设为第六预设值,并将所述第一外网地址的权重值设为第七预设值,其中,所述第六预设值大于所述第七预设值,且小于所述第五预设值。
为实现上述目的,本发明还提供一种客户端,包括:接听客户端以及主叫客户端;其中,所述主叫客户端包括:
发送模块,用于在主叫客户端进入音视频通话模式后,向接听客户端发送呼叫信息;
接收模块,用于接收所述接听客户端基于所述呼叫信息发送的第一通话地址信息中各个通话地址的权重值,其中,所述接听客户端解析所述呼叫信息以获取所述主叫客户端对应的第一通话地址信息,并向所述第一通话地址信息中的第一中转站地址对应的中转站获取本端对应的第二通话地址信息,所述接听客户端基于所述第一通话地址信息以及所述第二地址信息确定所述第一地址信息中各个通话地址的权重值,并将所述第一通话地址信息中各个通话地址的权重值发送至所述主叫客户端,所述第一通话地址信息中的通话地址包括第一外网地址、第一内网地址以及所述第一中转站地址;
第二测试模块,用于基于权重值最大的所述通话地址进行连通性测试;
连接模块,用于在连通性测试成功时,根据所述权重值最大的所述通话地址与所述接听客户端进行通话连接。
优选地,所述连接模块还用于:
在连通性测试失败时,根据所述第一中转站地址对应的中转站与所述接听客户端进行通话连接。
优选地,所述中转站包括网络地址转换类型为预设转换类型的客户端。
本发明通过在接听客户端接收到主叫客户端发送的呼叫信息时,解析呼叫信息以获取主叫客户端对应的第一通话地址信息,并向第一通话地址信息中的第一中转站地址对应的中转站获取本端对应的第二通话地址信息,接听客户端基于第一通话地址信息以及第二通话地址信息确定第一通话地址信息中各个通话地址的权重值,第一通话地址信息中的通话地址包括第一外网地址、第一内网地址以及第一中转站地址,接听客户端基于权重值最大的通话地址进行连通性测试,并将第一通话地址信息中各个通话地址的权重值发送至主叫客户端,以供主叫客户端基于权重值最大的通话地址进行连通性测试,在连通性测试测试成功时,接听客户端基于权重值最大的通话地址建立与主叫客户端的通信连接。由于在接听客户端确定该主叫客户端对应的第一通话地址信息中各个通话地址的权重值后,该接听客户端基于权重值最大的通话地址进行连通性测试,因此优化了连通性检测程序,降低了连通性测试时间,从而降低了音视频通话连接时间,进而提高了音视频通话连接效率。
附图说明
图1为本发明通话连接方法的第一实施例的流程示意图;
图2为本发明图1所示第一实施例中步骤S120的细化步骤的流程示意图;
图3为本发明通话连接方法的第二实施例的流程示意图;
图4为本发明通话连接方法的第三实施例的流程示意图;
图5为本发明客户端中接听客户端的第一实施例的功能模块示意图;
图6为本发明客户端中接听客户端的第二实施例中确定模块的细化功能模块示意图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
基于上述问题,本发明提供一种通话连接方法。
参照图1,图1为本发明通话连接方法的第一实施例的流程示意图。
在本实施例中,所述通话连接方法包括:
步骤S110,在接听客户端接收到主叫客户端发送的呼叫信息时,解析呼叫信息以获取主叫客户端对应的第一通话地址信息,并向第一通话地址信息中的第一中转站地址对应的中转站获取本端对应的第二通话地址信息;
在本实施例中,该接听客户端以及主叫客户端为支持RFC5766协议的ICE客户端,该接听客户端以及主叫客户端通过RFC5766协议与TURN Server中转站进行通讯,而该TURN Server中转站包括支持RFC5766协议的TURN Server客户端,用于以ICE中转服务器的角色为ICE客户端提供TURN中转服务。当主叫客户端开启音视频通话模式后,使用SIP会话发起协议,向接听客户端发送INVITE呼叫信息,而该INVITE呼叫信息由SDP协议构建的,该SDP协议在构建该INVITE呼叫信息的同时,也将该主叫客户端对应的第一内网地址、第一外网地址、两组第一中转地址以及第一网络地址转换NAT类型通过增加属性项的形式构建在该INVITE呼叫信息中,因而该主叫客户端在向该接听客户端发送INVITE呼叫信息的同时,也会将本端对应的第一内网地址、第一外网地址、两组第一中转地址以及第一网络地址转换NAT类型发送给该接听客户端。在该接听客户端接收到该主叫客户端发送的该INVITE呼叫信息后,解析该INVITE呼叫信息获取该主叫客户端对应的第一通话地址信息,其中,该第一通话地址信息包括该主叫客户端对应的第一内网地址、第一外网地址以及两组第一中转地址。当该接听客户端接收到该主叫客户端发送的两组第一中转地址,判断本端当前存储的第二中转地址与该两组第一中转地址是否相同,若是,则获取已存储的基于该第二中转地址对应的中转站获取的本端的第二外网地址、第二内网地址以及第二网络转换NAT类型,若否,则基于该两组第一中转地址对应的中转站获取本端的第二通话信息,该第二通话信息包括该接听客户端对应的第二内网地址、第二外网地址、两组第二中转站地址以及第二网络转换NAT类型。其中,该两组第一中转地址不同,且该两组第一中转地址与该两组第二中转地址一致。
步骤S120,接听客户端基于第一通话地址信息以及第二通话地址信息确定第一通话地址信息中各个通话地址的权重值,第一通话地址信息中的通话地址包括第一外网地址、第一内网地址以及第一中转站地址;
当接听客户端获取到本端的第二通话地址信息以及该主叫客户端的第一通话地址后,根据该第二通话地址信息以及该第一通话地址确定该第一通话地址信息中各个通话地址的权重值。其中,该第一通话地址信息中的各个通话地址包括第一外网地址、第一内网地址以及两组第一中转站地址。
步骤S130,接听客户端基于权重值最大的通话地址进行连通性测试,并将第一通话地址信息中各个通话地址的权重值发送至主叫客户端,以供主叫客户端基于权重值最大的通话地址进行连通性测试;
在该接听客户端确定该第一通话地址信息中各个通话地址的权重值后,将第一通话地址信息中各个通话地址的权重值按照从大到小的顺序进行排列,该接听客户端首先根据该第一通话地址信息中权重值最大的通话地址与该主叫客户端进行连通性测测试,若该权重值最大的通话地址连通失败,则选择排列第二的权重值对应的通话地址进行连通性测试,若按照权重值按照从大到小的顺序所对应的通话地址进行连通性测试都失败后,则该接听客户端根据两组第一中转站地址跳转至中转站,基于该中转站建立与该主叫客户端的通信连接。
步骤S140,在连通性测试测试成功时,接听客户端基于权重值最大的通话地址建立与主叫客户端的通信连接。
在接听客户端基于权重值最大的通话地址进行连通性测试成功后,该接听客户端基于该权重值最大的通话地址建立与该主叫客户端的通信连接。
可以理解的是,当该接听客户端确定该第一通话地址信息中某个通话地址的权重值为最小值如0时,以及第二通话地址信息中某个通话地址的权重值为最小值如0时,不需要进行连通性测试。
本实施例通过在接听客户端接收到主叫客户端发送的呼叫信息时,解析呼叫信息以获取主叫客户端对应的第一通话地址信息,并向第一通话地址信息中的第一中转站地址对应的中转站获取本端对应的第二通话地址信息,接听客户端基于第一通话地址信息以及第二通话地址信息确定第一通话地址信息中各个通话地址的权重值,第一通话地址信息中的通话地址包括第一外网地址、第一内网地址以及第一中转站地址,接听客户端基于权重值最大的通话地址进行连通性测试,并将第一通话地址信息中各个通话地址的权重值发送至主叫客户端,以供主叫客户端基于权重值最大的通话地址进行连通性测试,在连通性测试测试成功时,接听客户端基于权重值最大的通话地址建立与主叫客户端的通信连接。由于在接听客户端确定该主叫客户端对应的第一通话地址信息中各个通话地址的权重值后,该接听客户端基于权重值最大的通话地址进行连通性测试,因此优化了连通性检测程序,降低了连通性测试时间,从而降低了音视频通话连接时间,进而提高了音视频通话连接效率。
进一步的,请参照图2,为本发明第一实施例中步骤S120的细化步骤的流程示意图,该步骤S120中所述接听客户端基于所述第一通话地址信息以及所述第二通话地址信息确定所述第一通话地址信息中各个通的细化步骤包括:
步骤S121,判断第一通话地址信息中的第一外网地址与第二通话地址信息中的第二外网地址是否相同;
步骤S122,在第一外网地址与第二外网地址相同时,将第一通话地址信息中的第一内网地址的权重值设为第一预设值,将第一外网地址以及第一中转站地址的权重值设为第二预设值,其中,第一预设值大于第二预设值。
本实施例通过判断第一通话地址信息中的第一外网地址与第二通话地址信息中的第二外网地址是否相同,在第一外网地址与第二外网地址相同时,将第一通话地址信息中的第一内网地址的权重值设为第一预设值,将第一外网地址以及第一中转站地址的权重值设为第二预设值,其中,第一预设值大于第二预设值。由于通过比对确定接听客户端的第二外网地址与主叫客户端的第一外网地址相同时,则确定该接听客户端与该主叫客户端处于同一局域网内,从而确定该第一内网地址的权重值为最大,因此减少了该接听客户端确定各个通话地址的权重值的程序,从而降低了权重值的确定时间,提高了音视频通话连接效率。
进一步的,请参照图3,提出本发明通话连接方法的第二实施例的流程示意图,在该第二实施例中, S121之前,该通话连接方法包括:
步骤S150,在第一外网地址与第二外网地址不相同时,检测呼叫信息中主叫客户端的第一网络地址转换类型与本端的第二网络地址转换类型是否均为预设类型;
步骤S160,在第一网络地址转换类型与第二网络地址转换类型均为预设类型时,将第一中转站地址的权重值设为第三预设值,并将第一外网地址以及第一内网地址的权重值设为第四预设值,其中,第三预设值大于第四预设值。
步骤S170,在第一网络地址转换类型与第二网络地址转换类型不是预设类型时,将第一外网地址的权重值设为第五预设值,将第一中转站地址的权重值设为第六预设值,并将第一内网地址的权重值设为第七预设值,其中,第六预设值大于第七预设值,且小于第五预设值。
本实施例通过判断第一通话地址信息中的第一外网地址与第二通话地址信息中的第二外网地址是否相同,在第一外网地址与第二外网地址不相同时,检测呼叫信息中主叫客户端的第一网络地址转换类型与本端的第二网络地址转换类型是否均为预设类型,在第一网络地址转换类型与第二网络地址转换类型均为预设类型时,将第一中转站地址的权重值设为第三预设值,并将第一外网地址以及第一内网地址的权重值设为第四预设值,其中,第三预设值大于第四预设值,在第一网络地址转换类型与第二网络地址转换类型不是预设类型时,将第一外网地址的权重值设为第五预设值,将第一中转站地址的权重值设为第六预设值,并将第一内网地址的权重值设为第七预设值,其中,第六预设值大于第七预设值,且小于第五预设值。由于在第一外网地址与第二外网地址不相同时,表明该接听客户端与该主叫客户端的网络环境不同中,通过判断该主叫客户端的第一网络地址转换类型与本端的第二网络地址转换类型来进一步确定该主叫客户端对应的第一通话地址信息中的各个通话地址的权重值,因此使得第一通话地址信息中的各个通话地址的权重值的确定更加精确,从而使得该接听客户端基于权重值最大的该通话地址建立与该主叫客户端的通话连接更加稳定。
基于上述问题,本发明提供一种通话连接方法。
参照图4,图4为本发明通话连接方法的第三实施例的流程示意图。
在本实施例中,所述通话连接方法包括:
步骤S210,在主叫客户端进入音视频通话模式后,向接听客户端发送呼叫信息;
步骤S220,主叫客户端接收接听客户端基于呼叫信息发送的第一通话地址信息中各个通话地址的权重值,其中,接听客户端解析呼叫信息以获取主叫客户端对应的第一通话地址信息,并向第一通话地址信息中的第一中转站地址对应的中转站获取本端对应的第二通话地址信息,接听客户端基于第一通话地址信息以及第二地址信息确定第一地址信息中各个通话地址的权重值,并将第一通话地址信息中各个通话地址的权重值发送至主叫客户端,第一通话地址信息中的通话地址包括第一外网地址、第一内网地址以及第一中转站地址;
步骤S230,主叫客户端基于权重值最大的通话地址进行连通性测试;
步骤S240,在连通性测试成功时,主叫客户端根据权重值最大的通话地址与接听客户端进行通话连接。
本实施例通过主叫客户端接收接听客户端基于呼叫信息发送的第一通话地址信息中各个通话地址的权重值,其中,接听客户端解析呼叫信息以获取主叫客户端对应的第一通话地址信息,并向第一通话地址信息中的第一中转站地址对应的中转站获取本端对应的第二通话地址信息,接听客户端基于第一通话地址信息以及第二地址信息确定第一地址信息中各个通话地址的权重值,并将第一通话地址信息中各个通话地址的权重值发送至主叫客户端,第一通话地址信息中的通话地址包括第一外网地址、第一内网地址以及第一中转站地址,主叫客户端基于权重值最大的通话地址进行连通性测试,在连通性测试成功时,主叫客户端根据权重值最大的通话地址与接听客户端进行通话连接。由于主叫客户端在接收到接听客户端发送的第一通话地址信息中各个通话地址的权重值时,基于权重值最大的通话地址进行连通性测试,因此优化了连通性检测程序,降低了连通性测试时间,从而降低了音视频通话连接时间,进而提高了音视频通话连接效率。
本发明进一步提供一种客户端。
参照图5,图5为本发明客户端中接听客户端的第一实施例的功能模块示意图。
在本实施例中,接听客户端包括:解析模块110、确定模块120、第一测试模块130及创建模块140。
所述解析模块110,用于在接听客户端接收到主叫客户端发送的呼叫信息时,解析呼叫信息以获取主叫客户端对应的第一通话地址信息,并向第一通话地址信息中的第一中转站地址对应的中转站获取本端对应的第二通话地址信息;
所述确定模块120,用于基于第一通话地址信息以及第二通话地址信息确定第一通话地址信息中各个通话地址的权重值,第一通话地址信息中的通话地址包括第一外网地址、第一内网地址以及第一中转站地址;
所述第一测试模块130,用于基于权重值最大的通话地址进行连通性测试,并将第一通话地址信息中各个通话地址的权重值发送至主叫客户端,以供主叫客户端基于权重值最大的通话地址进行连通性测试;
所述创建模块140,用于在连通性测试测试成功时,基于权重值最大的通话地址建立与主叫客户端的通信连接。
本实施例通过在接听客户端接收到主叫客户端发送的呼叫信息时,解析呼叫信息以获取主叫客户端对应的第一通话地址信息,并向第一通话地址信息中的第一中转站地址对应的中转站获取本端对应的第二通话地址信息,接听客户端基于第一通话地址信息以及第二通话地址信息确定第一通话地址信息中各个通话地址的权重值,第一通话地址信息中的通话地址包括第一外网地址、第一内网地址以及第一中转站地址,接听客户端基于权重值最大的通话地址进行连通性测试,并将第一通话地址信息中各个通话地址的权重值发送至主叫客户端,以供主叫客户端基于权重值最大的通话地址进行连通性测试,在连通性测试测试成功时,接听客户端基于权重值最大的通话地址建立与主叫客户端的通信连接。由于在接听客户端确定该主叫客户端对应的第一通话地址信息中各个通话地址的权重值后,该接听客户端基于权重值最大的通话地址进行连通性测试,因此优化了连通性检测程序,降低了连通性测试时间,从而降低了音视频通话连接时间,进而提高了音视频通话连接效率。
进一步的,基于第一实施例,提出本发明客户端的第二实施例,在本实施例中,参照图6,确定模块120包括判断单元121、设置单元122。
所述判断单元121,用于判断第一通话地址信息中的第一外网地址与第二通话地址信息中的第二外网地址是否相同;
所述设置单元122,用于在第一外网地址与第二外网地址相同时,将第一通话地址信息中的第一内网地址的权重值设为第一预设值,将第一外网地址以及第一中转站地址的权重值设为第二预设值,其中,第一预设值大于第二预设值。
本实施例通过判断第一通话地址信息中的第一外网地址与第二通话地址信息中的第二外网地址是否相同,在第一外网地址与第二外网地址相同时,将第一通话地址信息中的第一内网地址的权重值设为第一预设值,将第一外网地址以及第一中转站地址的权重值设为第二预设值,其中,第一预设值大于第二预设值。由于通过比对确定接听客户端的第二外网地址与主叫客户端的第一外网地址相同时,则确定该接听客户端与该主叫客户端处于同一局域网内,从而确定该第一内网地址的权重值为最大,因此减少了该接听客户端确定各个通话地址的权重值的程序,从而降低了权重值的确定时间,提高了音视频通话连接效率。
进一步的,基于第一实施例,提出本发明客户端的第二实施例,在本实施例中,接听客户端还包括:检测模块150、第一设置模块160以及第二设置模块170。
所述检测模块150,用于在第一外网地址与第二外网地址不相同时,检测呼叫信息中主叫客户端的第一网络地址转换类型与本端的第二网络地址转换类型是否均为预设类型;
所述第一设置模块160,用于在第一网络地址转换类型与第二网络地址转换类型均为预设类型时,将第一中转站地址的权重值设为第三预设值,并将第一外网地址以及第一内网地址的权重值设为第四预设值,其中,第三预设值大于第四预设值。
所述第二设置模块170,用于在第一网络地址转换类型与第二网络地址转换类型不是预设类型时,将第一外网地址的权重值设为第五预设值,将第一中转站地址的权重值设为第六预设值,并将第一内网地址的权重值设为第七预设值,其中,第六预设值大于第七预设值,且小于第五预设值。
本实施例通过判断第一通话地址信息中的第一外网地址与第二通话地址信息中的第二外网地址是否相同,在第一外网地址与第二外网地址不相同时,检测呼叫信息中主叫客户端的第一网络地址转换类型与本端的第二网络地址转换类型是否均为预设类型,在第一网络地址转换类型与第二网络地址转换类型均为预设类型时,将第一中转站地址的权重值设为第三预设值,并将第一外网地址以及第一内网地址的权重值设为第四预设值,其中,第三预设值大于第四预设值,在第一网络地址转换类型与第二网络地址转换类型不是预设类型时,将第一外网地址的权重值设为第五预设值,将第一中转站地址的权重值设为第六预设值,并将第一内网地址的权重值设为第七预设值,其中,第六预设值大于第七预设值,且小于第五预设值。由于在第一外网地址与第二外网地址不相同时,表明该接听客户端与该主叫客户端的网络环境不同中,通过判断该主叫客户端的第一网络地址转换类型与本端的第二网络地址转换类型来进一步确定该主叫客户端对应的第一通话地址信息中的各个通话地址的权重值,因此使得第一通话地址信息中的各个通话地址的权重值的确定更加精确,从而使得该接听客户端基于权重值最大的该通话地址建立与该主叫客户端的通话连接更加稳定。
本发明进一步又提供一种客户端。
在主叫客户端的第五实施例中,主叫客户端包括:发送模块210、接收模块220、第二测试模块230以及连接模块240。
所述发送模块210,用于在主叫客户端进入音视频通话模式后,向接听客户端发送呼叫信息;
所述接收模块220,用于接收接听客户端基于呼叫信息发送的第一通话地址信息中各个通话地址的权重值,其中,接听客户端解析呼叫信息以获取主叫客户端对应的第一通话地址信息,并向第一通话地址信息中的第一中转站地址对应的中转站获取本端对应的第二通话地址信息,接听客户端基于第一通话地址信息以及第二地址信息确定第一地址信息中各个通话地址的权重值,并将第一通话地址信息中各个通话地址的权重值发送至主叫客户端,第一通话地址信息中的通话地址包括第一外网地址、第一内网地址以及第一中转站地址;
所述第二测试模块230,用于基于权重值最大的通话地址进行连通性测试;
所述连接模块240,用于在连通性测试成功时,根据权重值最大的通话地址与接听客户端进行通话连接。
本实施例通过主叫客户端接收接听客户端基于呼叫信息发送的第一通话地址信息中各个通话地址的权重值,其中,接听客户端解析呼叫信息以获取主叫客户端对应的第一通话地址信息,并向第一通话地址信息中的第一中转站地址对应的中转站获取本端对应的第二通话地址信息,接听客户端基于第一通话地址信息以及第二地址信息确定第一地址信息中各个通话地址的权重值,并将第一通话地址信息中各个通话地址的权重值发送至主叫客户端,第一通话地址信息中的通话地址包括第一外网地址、第一内网地址以及第一中转站地址,主叫客户端基于权重值最大的通话地址进行连通性测试,在连通性测试成功时,主叫客户端根据权重值最大的通话地址与接听客户端进行通话连接。由于主叫客户端在接收到接听客户端发送的第一通话地址信息中各个通话地址的权重值时,基于权重值最大的通话地址进行连通性测试,因此优化了连通性检测程序,降低了连通性测试时间,从而降低了音视频通话连接时间,进而提高了音视频通话连接效率。
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。

Claims (18)

  1. 一种通话连接方法,其特征在于,所述通话连接方法包括以下步骤:
    在接听客户端接收到主叫客户端发送的呼叫信息时,解析所述呼叫信息以获取所述主叫客户端对应的第一通话地址信息,并向所述第一通话地址信息中的第一中转站地址对应的中转站获取本端对应的第二通话地址信息;
    所述接听客户端基于所述第一通话地址信息以及所述第二通话地址信息确定所述第一通话地址信息中各个通话地址的权重值,所述第一通话地址信息中的通话地址包括第一外网地址、第一内网地址以及所述第一中转站地址;
    所述接听客户端基于权重值最大的所述通话地址进行连通性测试,并将所述第一通话地址信息中各个通话地址的权重值发送至所述主叫客户端,以供所述主叫客户端基于权重值最大的所述通话地址进行连通性测试;
    在连通性测试成功时,所述接听客户端基于权重值最大的所述通话地址建立与所述主叫客户端的通信连接。
  2. 如权利要求1所述的通话连接方法,其特征在于,所述接听客户端基于权重值最大的所述通话地址进行连通性测试,并将所述第一通话地址信息中各个通话地址的权重值发送至所述主叫客户端,以供所述主叫客户端基于权重值最大的所述通话地址进行连通性测试的步骤之后,还包括:
    在连通性测试失败时,所述接听客户端根据所述第一中转站地址跳转至中转站,基于所述中转站建立与所述主叫客户端的通信连接。
  3. 如权利要求1所述的通话连接方法,其特征在于,所述接听客户端基于所述第一通话地址信息以及所述第二通话地址信息确定所述第一通话地址信息中各个通话地址的权重值的步骤包括:
    判断所述第一通话地址信息中的所述第一外网地址与所述第二通话地址信息中的第二外网地址是否相同;
    在所述第一外网地址与所述第二外网地址相同时,将所述第一通话地址信息中的所述第一内网地址的权重值设为第一预设值,将所述第一外网地址以及第一中转站地址的权重值设为第二预设值,其中,所述第一预设值大于所述第二预设值。
  4. 如权利要求3所述的通话连接方法,其特征在于,所述接听客户端基于权重值最大的所述通话地址进行连通性测试的步骤包括:
    所述接听客户端基于所述第一内网地址与所述主叫客户端进行连通性测试;
    所述接听客户端基于所述第一内网地址与所述主叫客户端进行连通性测试的步骤之后,还包括:
    在连通性测试失败时,所述接听客户端根据所述第一中转站地址跳转至中转站,基于所述中转站建立与所述主叫客户端的通信连接。
  5. 如权利要求3所述的通话连接方法,其特征在于,所述判断所述第一通话地址信息中的所述第一外网地址与所述第二通话地址信息中的第二外网地址是否相同的步骤之后,所述通话连接方法还包括:
    在所述第一外网地址与所述第二外网地址不相同时,检测所述呼叫信息中所述主叫客户端的第一网络地址转换类型与本端的第二网络地址转换类型是否均为预设类型;
    在所述第一网络地址转换类型与所述第二网络地址转换类型均为预设类型时,将所述第一中转站地址的权重值设为第三预设值,并将所述第一外网地址以及第一内网地址的权重值设为第四预设值,其中,所述第三预设值大于所述第四预设值。
    在所述第一网络地址转换类型与所述第二网络地址转换类型不是预设类型时,将所述第一外网地址的权重值设为第五预设值,将所述第一中转站地址的权重值设为第六预设值,并将所述第一内网地址的权重值设为第七预设值,其中,所述第六预设值大于所述第七预设值,且小于所述第五预设值。
  6. 一种通话连接方法,其特征在于,所述通话连接方法包括以下步骤:在主叫客户端进入音视频通话模式后,向接听客户端发送呼叫信息;
    所述主叫客户端接收所述接听客户端基于所述呼叫信息发送的第一通话地址信息中各个通话地址的权重值,其中,所述接听客户端解析所述呼叫信息以获取所述主叫客户端对应的第一通话地址信息,并向所述第一通话地址信息中的第一中转站地址对应的中转站获取本端对应的第二通话地址信息,所述接听客户端基于所述第一通话地址信息以及所述第二通话地址信息确定所述第一通话地址信息中各个通话地址的权重值,并将所述第一通话地址信息中各个通话地址的权重值发送至所述主叫客户端,所述第一通话地址信息中的通话地址包括第一外网地址、第一内网地址以及所述第一中转站地址;
    所述主叫客户端基于权重值最大的所述通话地址进行连通性测试;
    在连通性测试成功时,所述主叫客户端根据所述权重值最大的所述通话地址与所述接听客户端进行通话连接。
  7. 如权利要求6所述的通话连接方法,其特征在于,所述中转站包括网络地址转换类型为预设转换类型的客户端。
  8. 如权利要求6所述的通话连接方法,其特征在于,所述主叫客户端基于权重值最大的所述通话地址进行连通性测试的步骤之后,还包括:
    在连通性测试失败时,所述主叫客户端根据所述第一中转站地址对应的中转站与所述接听客户端进行通话连接。
  9. 如权利要求8所述的通话连接方法,其特征在于,所述中转站包括网络地址转换类型为预设转换类型的客户端。
  10. 一种客户端,其特征在于,包括:接听客户端以及主叫客户端;其中,所述接听客户端包括:
    解析模块,用于在接听客户端接收到主叫客户端发送的呼叫信息时,解析所述呼叫信息以获取所述主叫客户端对应的第一通话地址信息,并向所述第一通话地址信息中的第一中转站地址对应的中转站获取本端对应的第二通话地址信息;
    确定模块,用于基于所述第一通话地址信息以及所述第二地址信息确定所述第一通话地址信息中各个通话地址的权重值,所述第一通话地址信息中的通话地址包括第一外网地址、第一内网地址以及所述第一中转站地址;
    第一测试模块,用于基于权重值最大的所述通话地址进行连通性测试,并将所述第一通话地址信息中各个通话地址的权重值发送至所述主叫客户端,以供所述主叫客户端基于权重值最大的所述通话地址进行连通性测试;
    创建模块,用于在连通性测试测试成功时,基于权重值最大的所述通话地址建立与所述主叫客户端的通信连接。
  11. 如权利要求10所述的客户端,其特征在于,所述创建模块还用于:
    在连通性测试失败时,根据所述第一中转站地址跳转至中转站,基于所述中转站建立与所述主叫客户端的通信连接。
  12. 如权利要求10所述的客户端,其特征在于,所述确定模块包括:
    判断单元,用于判断所述第一通话地址信息中的所述第一外网地址与所述第二通话地址信息中的第二外网地址是否相同;
    设置单元,用于在所述第一外网地址与所述第二外网地址相同时,将所述第一通话地址信息中的所述第一内网地址的权重值设为第一预设值,将所述第一外网地址以及第一中转站地址的权重值设为第二预设值,其中,所述第一预设值大于所述第二预设值。
  13. 如权利要求12所述的客户端,其特征在于,所述第一测试模块,用于基于所述第一内网地址与所述主叫客户端进行连通性测试;
    所述创建模块,还用于在连通性测试失败时,根据所述第一中转站地址跳转至中转站,基于所述中转站建立与所述主叫客户端的通信连接。
  14. 如权利要求12所述的客户端,其特征在于,所述接听客户端包括:
    检测模块,用于在所述第一外网地址与所述第二外网地址不相同时,获取所述呼叫信息中所述主叫客户端的第一网络地址转换类型与本端的第二网络地址转换类型是否均为预设类型;
    第一设置模块,用于在所述第一网络地址转换类型与所述第二网络地址转换类型均为预设类型时,将所述第一中转站地址的权重值设为第三预设值,并将所述第一外网地址以及第一内网地址的权重值设为第四预设值,其中,所述第三预设值大于所述第四预设值。
    第二设置模块,用于在所述第一网络地址转换类型与所述第二网络地址转换类型不是预设类型时,将所述第一外网地址的权重值设为第五预设值,将所述第一中转站地址的权重值设为第六预设值,并将所述第一内网地址的权重值设为第七预设值,其中,所述第六预设值大于所述第七预设值,且小于所述第五预设值。
  15. 一种客户端,其特征在于,包括:接听客户端以及主叫客户端;其中,所述主叫客户端包括:
    发送模块,用于在主叫客户端进入音视频通话模式后,向接听客户端发送呼叫信息;
    接收模块,用于接收所述接听客户端基于所述呼叫信息发送的第一通话地址信息中各个通话地址的权重值,其中,所述接听客户端解析所述呼叫信息以获取所述主叫客户端对应的第一通话地址信息,并向所述第一通话地址信息中的第一中转站地址对应的中转站获取本端对应的第二通话地址信息,所述接听客户端基于所述第一通话地址信息以及所述第二地址信息确定所述第一地址信息中各个通话地址的权重值,并将所述第一通话地址信息中各个通话地址的权重值发送至所述主叫客户端,所述第一通话地址信息中的通话地址包括第一外网地址、第一内网地址以及所述第一中转站地址;
    第二测试模块,用于基于权重值最大的所述通话地址进行连通性测试;
    连接模块,用于在连通性测试成功时,根据所述权重值最大的所述通话地址与所述接听客户端进行通话连接。
  16. 如权利要求15所述的客户端,其特征在于,所述中转站包括网络地址转换类型为预设转换类型的客户端。
  17. 如权利要求15所述的客户端,其特征在于,所述连接模块还用于:
    在连通性测试失败时,根据所述第一中转站地址对应的中转站与所述接听客户端进行通话连接。
  18. 如权利要求17所述的客户端,其特征在于,所述中转站包括网络地址转换类型为预设转换类型的客户端。
PCT/CN2017/080836 2016-05-30 2017-04-18 通话连接方法及客户端 WO2017206600A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610373444.9 2016-05-30
CN201610373444.9A CN106411836B (zh) 2016-05-30 2016-05-30 通话连接方法及客户端

Publications (1)

Publication Number Publication Date
WO2017206600A1 true WO2017206600A1 (zh) 2017-12-07

Family

ID=58006388

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/080836 WO2017206600A1 (zh) 2016-05-30 2017-04-18 通话连接方法及客户端

Country Status (2)

Country Link
CN (1) CN106411836B (zh)
WO (1) WO2017206600A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106411836B (zh) * 2016-05-30 2017-09-19 深圳市鼎盛智能科技有限公司 通话连接方法及客户端

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102664901A (zh) * 2012-05-15 2012-09-12 苏州工业园区云视信息技术有限公司 Sip呼叫中自适应穿越nat的方法
US20160094589A1 (en) * 2014-09-25 2016-03-31 Microsoft Corporation Media Session Between Network Endpoints
US20160094586A1 (en) * 2014-09-25 2016-03-31 Microsoft Corporation Media Session Between Network Endpoints
CN106411836A (zh) * 2016-05-30 2017-02-15 深圳市鼎盛智能科技有限公司 通话连接方法及客户端

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102739815A (zh) * 2011-06-03 2012-10-17 北京天地互连信息技术有限公司 减小视频会议系统网络地址转换穿越的系统时延的方法
CN102685268B (zh) * 2012-05-22 2015-02-18 北京邮电大学 一种VoIP中基于ICE协议的快速私网穿越方法
CN102685141B (zh) * 2012-05-22 2015-09-02 北京邮电大学 一种VoIP中基于语音可达性的融合穿越方法
CN105187567B (zh) * 2015-06-24 2019-01-08 东莞市南星电子有限公司 一种基于sip和ice的音视频通信方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102664901A (zh) * 2012-05-15 2012-09-12 苏州工业园区云视信息技术有限公司 Sip呼叫中自适应穿越nat的方法
US20160094589A1 (en) * 2014-09-25 2016-03-31 Microsoft Corporation Media Session Between Network Endpoints
US20160094586A1 (en) * 2014-09-25 2016-03-31 Microsoft Corporation Media Session Between Network Endpoints
CN106411836A (zh) * 2016-05-30 2017-02-15 深圳市鼎盛智能科技有限公司 通话连接方法及客户端

Also Published As

Publication number Publication date
CN106411836B (zh) 2017-09-19
CN106411836A (zh) 2017-02-15

Similar Documents

Publication Publication Date Title
WO2019128174A1 (zh) 音频播放方法、智能电视及计算机可读存储介质
WO2018023926A1 (zh) 电视与移动终端的互动方法及系统
WO2016101698A1 (zh) 基于dlna技术实现屏幕推送的方法及系统
WO2015120774A1 (en) Network access method and apparatus applied to mobile application
WO2016165556A1 (zh) 一种视频流的数据处理方法、装置和系统
WO2016029594A1 (zh) 终端连接显示设备的方法及系统
WO2017177524A1 (zh) 音视频同步播放的方法及装置
EP2351391A2 (en) Method and apparatus for controlling session for interworking in converged ip messaging service and system thereof
WO2014187158A1 (zh) 终端数据云分享的控制方法、服务器及终端
WO2016187986A1 (zh) 一种红外传输的 wifi 联网方法及系统
WO2018223607A1 (zh) 电视终端及hdr图像转为sdr的方法和计算机可读存储介质
WO2016173259A1 (zh) 蓝牙配对方法和蓝牙配对设备
WO2019051902A1 (zh) 终端控制方法、空调器及计算机可读存储介质
WO2020032649A1 (en) Electronic device and communication relaying method thereof
WO2017185480A1 (zh) 多屏互动连接方法、装置及系统
WO2017020649A1 (zh) 音视频播放控制方法及装置
WO2017088438A1 (zh) 无线路由器及其控制方法
WO2018233221A1 (zh) 多窗口声音输出方法、电视机以及计算机可读存储介质
WO2017190452A1 (zh) 背光自适应调节方法及装置
EP3114820A1 (en) Method and system for establishing a service session between seeker device and advertiser device
WO2018121026A1 (zh) 一种机顶盒配置方法及系统
WO2017084301A1 (zh) 音频数据播放方法、装置及智能电视机
WO2016090991A1 (zh) 流媒体数据的下载方法及装置
WO2017096764A1 (zh) 音频数据输出方法及装置
WO2019085301A1 (zh) 座机未接来电的反馈方法、装置、设备及可读存储介质

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17805545

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17805545

Country of ref document: EP

Kind code of ref document: A1