CN104410648A - LAN (local area network) based VoIP (Voice over Internet Protocol) communication method, system and communication terminal - Google Patents

LAN (local area network) based VoIP (Voice over Internet Protocol) communication method, system and communication terminal Download PDF

Info

Publication number
CN104410648A
CN104410648A CN201410800134.1A CN201410800134A CN104410648A CN 104410648 A CN104410648 A CN 104410648A CN 201410800134 A CN201410800134 A CN 201410800134A CN 104410648 A CN104410648 A CN 104410648A
Authority
CN
China
Prior art keywords
area network
local area
communication
exchange server
party
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.)
Pending
Application number
CN201410800134.1A
Other languages
Chinese (zh)
Inventor
赵刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410800134.1A priority Critical patent/CN104410648A/en
Publication of CN104410648A publication Critical patent/CN104410648A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/1066Session management
    • H04L65/1069Session establishment or de-establishment

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses an LAN (local area network) based VoIP (Voice over Internet Protocol) communication method, a system and a communication terminal. The method comprises the following steps: a voice exchange server determines whether a calling party and a called party are located in the same LAN in a communication connection process of the calling party and the called party; if the calling party and the called party are located in the same LAN, a notification message of LAN communication is sent to the calling party and the called party; and the calling party and the called party transmit VoIP call data packets to the opposite party through the LAN after receiving the notification message. With adoption of the technical scheme, the calling party and the called party are connected through the voice exchange server, the VoIP call data packets are transmitted through the LAN, by means of high transmission rate and safety of the LAN, the communication quality of VoIP are improved, the communication speed of VoIP is increased, and user experience is improved.

Description

VoIP communication method, system and communication terminal based on local area network
Technical Field
The present invention relates to communication technology, and in particular, to a VoIP communication method, system and communication terminal based on a local area network.
Background
With the development of communication technology and internet technology, internet telephony is increasingly popular because its cost performance is higher than that of the traditional communication method. The internet phone is Voice call software based on VoIP (Voice over internet protocol), and after analog Voice signals are compressed and packaged, the Voice signals are transmitted in an IP network in a data package manner, so that the security and timeliness of the call are ensured.
The existing internet call implementation method generally comprises: the calling party sends a calling request, the server forwards the request, after the receiving party receives the calling request, if an answering key is pressed, answering information is sent to the server, the server establishes communication connection between the calling party and the server, and then the calling party and the receiving party can send UDP (User data protocol) data packets through the server to realize internet communication.
However, the inventor of the present invention finds that the existing internet communication method usually uses a server to transmit voice communication data packets in a wan, and occupies a large amount of server or wan resources, and the existing internet communication method is prone to the situations of large communication time delay, poor communication quality, and intermittent communication of a user, which results in poor user experience.
Therefore, it is necessary to provide a VoIP communication method based on a local area network, which can implement internet call through the local area network, thereby improving the call quality in the local area network and further improving the user experience.
Disclosure of Invention
The present invention aims to solve at least one of the above technical defects, and in particular, to improve the communication quality and improve the user experience by transmitting VoIP communication packets based on a local area network.
The invention provides a VoIP communication method based on a local area network, which comprises the following steps:
the method comprises the steps that a voice exchange server judges whether a calling party and a receiving party are located in the same local area network or not in the communication connection process of the calling party and the receiving party;
if yes, sending notification information of local area network communication to the calling party and the receiving party;
wherein, the notification information is used for indicating the caller or the receiver to transmit the VoIP call data packet to the other party through the local area network.
The invention provides another VoIP communication method based on a local area network, which comprises the following steps:
the communication terminal is in communication connection with the opposite terminal through the voice exchange server;
the communication terminal sends the local area network information of the communication terminal to the voice exchange server so that the voice exchange server can judge whether the communication terminal and the opposite terminal are positioned in the same local area network or not;
transmitting a VoIP call data packet to an opposite terminal based on the local area network according to the notification information of the local area network communication sent by the voice exchange server;
the notification information of the local area network communication is sent to the communication terminal and/or the opposite terminal by the voice interaction server after judging that the communication terminal and the opposite terminal are positioned in the same local area network in the communication connection process of the communication terminal and the opposite terminal.
The invention also provides a VoIP communication method based on the local area network, which comprises the following steps:
the communication terminal is in communication connection with the opposite terminal through the voice exchange server;
the communication terminal receives the local area network information of the opposite terminal through the voice exchange server;
according to the local area network information of the opposite terminal, trying to connect with the opposite terminal in a local area network;
and after the connection attempt is successful, transmitting a VoIP call data packet to the opposite terminal through the local area network.
The invention provides a VoIP communication system based on a local area network, comprising: a voice exchange server, a caller and a receiver;
the voice exchange server is used for judging whether the calling party and the receiving party are positioned in the same local area network or not in the communication connection process of the calling party and the receiving party; if yes, sending notification information of local area network communication to the calling party and the receiving party;
and the calling party or the receiving party is used for transmitting the VoIP communication data packet to the opposite party through the local area network after receiving the notification information.
The invention provides another VoIP communication system based on a local area network, which comprises: a voice exchange server, a caller and a receiver; wherein,
the voice exchange server is used for forwarding the local area network information of the calling party to the receiving party in the communication connection process of the calling party and the receiving party;
the receiving party is used for trying to connect with the calling party in a local area network according to the local area network information of the calling party; and after the connection attempt is successful, transmitting a VoIP call data packet to the calling party through the local area network.
The invention provides a communication terminal, comprising:
the communication connection module is used for carrying out communication connection with an opposite terminal of the communication terminal through the voice exchange server; sending local area network information of the communication terminal to the voice exchange server so that the voice exchange server can judge whether the communication terminal and the opposite terminal are positioned in the same local area network;
and the local area network communication module is used for transmitting a VoIP communication data packet to the opposite terminal based on the local area network according to the notification information of the local area network communication sent by the voice exchange server.
The present invention provides another communication terminal, including:
the communication connection module is used for carrying out communication connection with an opposite terminal of the communication terminal through the voice exchange server;
the local area network connection module is used for receiving the local area network information of the opposite terminal through the voice exchange server and trying to connect with the opposite terminal in the local area network according to the received local area network information; after the attempted connection is successful, sending a local area network communication notice;
and the local area network communication module is used for connecting with the opposite terminal in the local area network to transmit the VoIP communication data packet after receiving the local area network communication notification.
The invention provides a voice exchange server, comprising:
the communication connection establishing module is used for establishing communication connection between a calling party and a receiving party;
the network judging module is used for judging whether the calling party and the receiving party are positioned in the same local area network or not; if yes, sending notification information of local area network communication to the calling party and the receiving party.
The present invention provides another voice exchange server, including:
the communication connection establishing module is used for establishing communication connection between a calling party and a receiving party;
and the local area network information forwarding module is used for forwarding the received local area network information of the calling party to the receiving party.
In the scheme of the invention, the calling party and the receiving party are connected through the voice exchange server, and the VoIP communication data packet is transmitted through the local area network, and the transmission rate of the local area network is high, and the safety is high, so that the problem of low communication quality caused by the transmission of the VoIP communication data packet through the server in the prior art is solved, and the user experience is further improved.
And when the conversation quality of the communication link of the local area network is determined to be lower than that of the communication link of the wide area network, switching to the wide area network to transmit the VoIP conversation data packet. Therefore, when the local area network is interrupted or is particularly poor, the calling party and the receiving party can still carry out normal conversation through the wide area network.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic structural diagram of a VoIP communication system based on a local area network according to a first embodiment of the present invention;
fig. 2a, 2b and 2c are schematic flow charts of a VoIP communication method based on a local area network according to a first embodiment of the present invention;
fig. 3 is a schematic structural diagram of a VoIP communication system based on a local area network according to a second embodiment of the present invention;
fig. 4a and 4b are schematic flow charts of a VoIP communication method based on a local area network according to a second embodiment of the present invention;
fig. 5 is a schematic internal structure diagram of a communication terminal according to a first embodiment of the present invention;
fig. 6 is a block diagram of an internal structure of a voice exchange server according to a first embodiment of the present invention;
fig. 7 is a schematic internal structure diagram of a communication terminal according to a second embodiment of the present invention;
fig. 8 is a block diagram of an internal structure of a voice exchange server according to a second embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative only and should not be construed as limiting the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
As will be appreciated by those skilled in the art, "terminal" as used herein includes both devices that are wireless signal receivers, devices that have only wireless signal receivers without transmit capability, and devices that include receive and transmit hardware, devices that have receive and transmit hardware capable of performing two-way communication over a two-way communication link. Such a device may include: a cellular or other communication device having a single line display or a multi-line display or a cellular or other communication device without a multi-line display; PCS (Personal Communications Service), which may combine voice, data processing, facsimile and/or data communication capabilities; a PDA (personal digital Assistant), which may include a radio frequency receiver, a pager, internet/intranet access, a web browser, a notepad, a calendar, and/or a GPS (Global positioning system) receiver; a conventional laptop and/or palmtop computer or other device having and/or including a radio frequency receiver. As used herein, a "terminal" or "terminal device" may be portable, transportable, installed in a vehicle (aeronautical, maritime, and/or land-based), or situated and/or configured to operate locally and/or in a distributed fashion at any other location(s) on earth and/or in space. As used herein, a "terminal Device" may also be a communication terminal, a web terminal, a music/video playing terminal, such as a PDA, an MID (Mobile Internet Device) and/or a Mobile phone with music/video playing function, or a smart tv, a set-top box, etc.
The inventor of the present invention considers that the existing VoIP communication method usually completes the transmission of the voice data packet through the server in the wan, and the transmission rate and reliability of the lan are usually higher than those of the wan, so that if the caller and the receiver are in the same lan, the lan can be used to transmit the voice data packet, which can save wan resources, and on the other hand, can improve the voice transmission rate, improve the call quality, and further improve the user experience.
The technical scheme of the invention is explained in detail in the following with the accompanying drawings.
The present invention provides two specific embodiments. In the technical scheme of the first embodiment, the voice exchange server judges whether a calling party and a receiving party are in the same local area network or not; in the second technical solution of the embodiment, whether the communication terminal as the receiving party or the calling party is in the same local area network as the opposite party is determined.
Example one
An architecture diagram of a VoIP communication system based on a local area network according to an embodiment of the present invention is shown in fig. 1, and includes: a caller 101, a receiver 102 and a voice exchange server 103.
The voice exchange server 103 is configured to determine whether the caller 101 and the receiver 102 are located in the same local area network during a communication connection between the caller 101 and the receiver 102; if yes, the system sends notification information of local area network communication to the calling party 101 and the receiving party 102.
The caller 101 and the receiver 102 are configured to transmit the VoIP conversation packet to each other through the local area network after receiving the notification information. The caller and the receiver can be communication terminals such as tablet computers, mobile phones and PCs with VoIP communication software.
Preferably, the caller 101 or the receiver 102 is further configured to switch to transmitting the VoIP conversation packet to the other party through the wide area network when determining that the conversation quality of the communication link of the local area network is lower than that of the communication link of the wide area network.
Here, the communication link of the wide area network refers to a communication link that transmits VoIP call packets (UDP packets) through the voice exchange server 103 in the wide area network. The communication link of the local area network refers to a communication link for transmitting VoIP call packets through the local area network between the caller 101 and the receiver 102.
Based on the VoIP communication system according to the first embodiment of the present invention, the flowchart of the VoIP communication method based on the local area network according to the first embodiment of the present invention, as shown in fig. 2a, includes the following steps S201 to S202:
step S201: the voice exchange server 103 judges whether the caller 101 and the receiver 102 are located in the same local area network in the communication connection process of the caller 101 and the receiver 102; if yes, go to step S202; otherwise, the transmission of the VoIP conversation data packet between the caller 101 and the receiver 102 is performed according to the prior art method.
Specifically, the process of the voice exchange server 103 establishing the communication connection between the caller 101 and the receiver 102 may include: a calling party 101 sends a call request to a voice exchange server 103; the voice exchange server 103 forwards the call request to the receiver 102 according to the information of the receiver 102 in the call request; the receiving party 102 may return a ringing message to the voice exchange server 103 and send an answering message to the voice exchange server 103 after answering the call; after receiving the answering information, the voice exchange server 103 establishes a communication connection between the receiving party 101 and the calling party 102.
In fact, the voice exchange server 103 may determine whether the caller 101 and the receiver 102 are not in the same lan during the communication connection between the caller 101 and the receiver 102 according to the wan information, such as IP information, of the caller 101 and the receiver 102. For example, when the caller 101 is located in a mobile network and the receiver 102 is located in a connected network, the voice exchange server 103 can easily determine that the caller 101 and the receiver 102 are not in the same lan, and in this case, the voice exchange server 103 can directly send the notification information of the wan communication to the caller 101 and/or the receiver 102. In this way, after the caller 101 and/or the receiver 102 receive the notification information of the wan communication, the VoIP conversation data packet between the caller 101 and the receiver 102 can be transmitted based on the wan directly according to the prior art method.
When the voice exchange server 103 cannot determine that the calling party 101 and the receiving party 102 are not in the same local area network, the voice exchange server 103 may parse the local area network information of the calling party 101 from the call request sent by the calling party 101; analyzing local area network information of the receiver 102 from answering information sent by the receiver 102 after answering the call; the voice exchange server 103 determines whether the caller 101 and the receiver 102 are located in the same local area network based on the local area network information of the caller 101 and the receiver 102.
Step S202: the voice exchange server 103 transmits notification information of the local area network communication to the caller 101 and the receiver 102.
Specifically, if the voice exchange server 103 determines that the caller 101 and the receiver 103 are located in the same local area network, the notification information of the local area network communication is sent to the caller 101 and the receiver 102, and the VoIP communication based on the local area network between the caller 101 and the receiver 102 is started. The notification information of the local area network communication is used to instruct the caller 101 and/or the receiver 102 to transmit the VoIP conversation data packet to the other party through the local area network.
Thus, after receiving the notification information, the caller 101 or the receiver 102 transmits the VoIP call packet to the other party via the lan.
In practical applications, the voice exchange server 103 determines whether the caller 101 and the receiver 102 are located in the same lan according to the lan information of the caller 101 and the receiver 102, which may cause a misjudgment, that is, the voice exchange server 103 may determine that the caller 101 and the receiver 102 are located in the same lan, but the caller 101 and the receiver 102 are not actually located in the same lan.
Preferably, to avoid this situation, when the caller 101 and/or the receiver 102 receives the notification message of the local area network communication sent by the voice exchange server 103, the caller can also send the local area network IP address, the monitoring port and a newly generated Token message of the own to the other party through the voice exchange server 103; in this way, the opposite party uses the received Token to connect the local area network IP address and the monitoring port of the own party, and if the connection is available within the set time period, the two parties transmit the VoIP conversation data packet based on the local area network, thereby realizing the P2P conversation. The length of the set time period can be set by a person skilled in the art according to actual requirements.
Therefore, the voice exchange server 103, the calling party 101 and/or the receiving party 102 sequentially judge whether the calling party 101 and the receiving party 102 are located in the same local area network, so that the accuracy of judgment can be ensured, and the normal conversation between the calling party 101 and the receiving party 102 is ensured.
As shown in fig. 2b, the flow chart of the VoIP communication method based on the local area network according to the first embodiment of the present invention may further include the following steps S221 to S223:
step S221: the communication terminal is in communication connection with the opposite terminal through the voice exchange server 103.
Specifically, the communication terminal may be the caller 101 or the receiver 102. When the communication terminal is a calling party, the opposite end is a receiving party; when the communication terminal is a receiving party, the opposite end is a calling party.
Step S222: the communication terminal sends the local area network information of the communication terminal to the voice exchange server 103, so that the voice exchange server 103 determines whether the communication terminal and the opposite terminal are located in the same local area network.
Specifically, after the communication terminal sends the local area network information of the communication terminal to the voice exchange server 103, the voice exchange server 103 determines whether the communication terminal and the opposite terminal are located in the same local area network.
Step S223: the communication terminal transmits a VoIP call packet to the opposite terminal based on the local area network according to the notification information of the local area network communication sent by the voice exchange server 103.
The notification information of the local area network communication is sent to the communication terminal and/or the opposite terminal by the voice interaction server 103 after judging that the communication terminal and the opposite terminal are located in the same local area network in the communication connection process of the communication terminal and the opposite terminal.
The following describes a VoIP communication method according to an embodiment of the present invention by describing in detail the interaction between a caller, a receiver, and a voice exchange server. Specifically, as shown in fig. 2c, the flowchart of the VoIP communication method based on the local area network according to the first embodiment of the present invention includes the following steps S211 to S217:
step S211: the calling party 101 sends a call request to the voice exchange server 103.
In this step, the calling party 101 sends a call request to the voice exchange server 103 through the wide area network.
Step S212: the voice switching server 103 forwards the call request to the receiving party 102.
In this step, the voice exchange server 103 parses the call request sent by the caller 101, acquires the information of the receiver 102, and forwards the call request to the receiver 102 in the wide area network according to the acquired information.
Step S213: the receiving side 102 transmits the answering information to the voice exchange server 103.
In this step, the receiving party 102 presses the answer key, and when the call of the calling party 101 is answered, sends answer information to the voice exchange server 103. Further, as described above, the receiving side 102 may also transmit ringing information to the voice exchange server 103 before transmitting the listening information.
If the receiving party 102 hangs up or does not answer the call of the calling party 101, the information of refusing to answer or not answering is sent to the voice exchange server 103, the voice exchange server 103 does not establish communication connection between the two, and can send a notice that the receiving party 102 refuses to answer or not answer to the calling party 101, and the communication is finished.
Step S214: the voice exchange server 103 establishes a communication connection between the caller 101 and the receiver 102.
In this step, the voice exchange server 103 receives the answering information sent by the receiving party 102, and establishes a communication connection between the calling party 101 and the receiving party 102, that is, the calling party 101 and the receiving party 102 are connected to communicate.
A communication connection between the caller 101 and the receiver 102 can be established through the above steps S211 to S214. In fact, during the communication connection between the caller 101 and the receiver 102, it can be determined how to perform the transmission of the VoIP call packet by determining whether the caller 101 and the receiver 102 are located in the same lan through the following steps S215 to S217.
Step S215: voice exchange server 103 determines whether calling party 101 and receiving party 102 are located in the same local area network; if yes, go to step S216; otherwise, the VoIP conversation data packet transmission between the caller 101 and the receiver 102 is performed according to the existing method.
In this step, the method for the voice exchange server 103 to determine whether the caller 101 and the receiver 102 are located in the same local area network may refer to the method described in step S201, and is not described herein again.
If the caller 101 and the receiver 102 are not located in the same lan, the voice exchange server 103 performs VoIP communication through the wan.
Step S216: the voice exchange server 103 transmits notification information of the local area network communication to the caller 101 and the listener 102.
Step S217: the caller 101 and the receiver 102 transmit VoIP conversation packets over the lan.
In this step, the calling party 101 and the receiving party 102 transmit VoIP call data packets through the local area networks in which the two parties are located. For example, the caller 101 and the receiver 102 are connected to the same wifi (wireless fidelity), and then the VoIP call data packet is transmitted through wifi, and the call rate is positively correlated to the wifi network speed.
Preferably, after transmitting the VoIP call packet to the opposite party through the local area network, the caller 101 or the receiver 102 switches to the wide area network to transmit the VoIP call packet to the opposite party when determining that the call quality of the communication link of the local area network is lower than the call quality of the communication link of the wide area network. Therefore, when the local area network is interrupted or is particularly poor, the calling party and the receiving party can still carry out normal conversation through the wide area network. For example, assume a scenario in which company employees a and B use the wifi network of the company to make a call after making a VoIP call, and when employee a leaves the company during the call, employee a may switch to the wide area network to make a VoIP call.
The call quality can be determined according to the following indexes: RTT value (Round-Trip Time) and/or packet loss rate of the communication link. Moreover, when the call quality is determined according to the RTT value and the packet loss rate of the communication link, a balance policy between the RTT value and the packet loss rate may be set, that is, the weight of the RTT value and the packet loss rate is set when the call quality is determined.
In fact, while the caller 101 and the receiver 102 transmit the VoIP conversation data packet to each other through the local area network, the voice exchange server 103 maintains the connection with the caller 101 and the receiver 102, and the caller 101 and the receiver 102 can send the heartbeat packet to the voice exchange server 103 to obtain the current RTT value; further, the caller 101 and the receiver 102 may also send a set number of VoIP call data packets to the voice exchange server 102 every set time period, so as to test the packet loss rate of the network.
For example, the RTT between the caller 101 and the voice exchange server 103 is a, the RTT between the receiver 102 and the voice exchange server 103 is b, and the RTT between the caller 101 and the receiver 102 is c, and if a + b < c, the caller 101 or the receiver 102 determines that the communication quality of the communication link of the local area network is lower than that of the communication link of the wide area network, and at this time, the local area network is switched to the wide area network to transmit the VoIP communication packet to the other party.
For another example, the packet loss rate between the caller 101 and the voice exchange server 103 is e, the packet loss rate between the receiver 102 and the voice exchange server 103 is f, and the packet loss rate of the VoIP call data packet transmitted by the caller 101 and the receiver 102 through the wide area network is g according to the packet loss rates e and f; and the packet loss rate of the VoIP call data packet transmitted by the caller 101 and the receiver 102 through the local area network is h, if g < h, the caller 101 or the receiver 102 determines the call quality of the communication link of the local area network to be lower than the call quality of the communication link of the wide area network, and at this time, the local area network is switched to the wide area network to transmit the VoIP call data packet to the other party.
In fact, the caller 101 or the receiver 102 may also compare the call quality of the communication link of the local area network with the call quality of the communication link of the wide area network at set time intervals, and determine whether to use the local area network or the wide area network for transmitting the VoIP call data packet according to the comparison result.
As shown in fig. 5, an internal structure block diagram of a communication terminal (a caller 101 or a receiver 102) provided in an embodiment of the present invention includes a communication connection module 501 and a local area network call module 502.
The communication connection module 501 is configured to perform communication connection with an opposite end of the communication terminal through the voice exchange server 103; and sends the local area network information of the communication terminal to the voice exchange server 103, so that the voice exchange server 103 determines whether the communication terminal and the opposite terminal are located in the same local area network.
The lan call module 502 is configured to transmit a VoIP call data packet to the opposite terminal based on the lan according to the notification information of the lan communication sent by the voice exchange server 103.
As shown in fig. 6, an internal structure block diagram of the voice exchange server 103 according to an embodiment of the present invention includes: a communication connection establishing module 601 and a network judging module 602.
The communication connection establishing module 601 is used for establishing a communication connection between the caller 101 and the receiver 102.
The network determining module 602 is configured to determine whether the caller 101 and the receiver 102 are located in the same lan; if yes, notification information of the local area network communication is sent to the caller 102 and the receiver 101.
In the technical scheme of the first embodiment of the invention, a voice exchange server judges whether a calling party and a receiving party are positioned in the same local area network or not in the communication connection of the calling party and the receiving party, and if so, sends the notification information of local area network communication to the calling party and the receiving party; after receiving the notification information, the calling party or the receiving party transmits a VoIP call data packet to the opposite party through the local area network, thereby realizing VoIP communication based on the local area network. Because the transmission rate of the local area network is high and the security is strong, the problem of low conversation quality caused by the fact that the server transmits the VoIP conversation data packet in the wide area network in the prior art is solved, and the user experience is further improved.
Example two
A schematic structural diagram of the VoIP communication system based on the local area network according to the second embodiment of the present invention is shown in fig. 3, and includes: a caller 301, a receiver 302, and a voice exchange server 303.
The voice exchange server 303 is configured to forward the local area network information of the caller 301 to the receiver 302 in the process of establishing the communication connection between the caller 301 and the receiver 302.
The receiving party 302 is configured to attempt to connect with the calling party 301 within the local area network according to the local area network information of the calling party 301; and transmits a VoIP conversation packet to the calling party 301 through the local area network after the attempted connection is successful. The caller and the receiver can be tablet computers, mobile phones, PCs and the like with VoIP communication software.
Preferably, the caller 301 or the receiver 302 is further configured to switch to transmitting the VoIP conversation packet to the other party through the wide area network when determining that the conversation quality of the communication link of the local area network is lower than that of the communication link of the wide area network.
Based on the VoIP communication system of the second embodiment of the present invention, a flow chart of the VoIP communication method based on the local area network provided in the second embodiment of the present invention is shown in fig. 4a, and the method includes the following steps S401 to S403:
step S401: the communication terminal is in communication connection with the opposite terminal through the voice exchange server 303.
Specifically, the communication terminal may be the caller 301 or the receiver 302. When the communication terminal is a calling party 301, the opposite end is a receiving party 302; when the communication terminal is the receiving party 302, the opposite end is the calling party 301.
Step S402: the communication terminal receives the local area network information of the opposite terminal through the voice exchange server 303.
Specifically, when the communication terminal is the receiving party 302, the opposite end (calling party 301) of the communication terminal may carry the local area network information in the call request sent to the voice exchange server 303; when the communication terminal is the caller 301, the opposite end (the receiver 302) of the communication terminal can carry the local area network information in the ringing information or the answering information sent to the voice exchange server 303.
Step S403: and the communication terminal tries to connect with the opposite terminal in the local area network according to the local area network information of the opposite terminal.
Specifically, when the communication terminal is the receiving party 302, according to the received local area network information of the opposite end (the calling party 301), connection with the opposite end (the calling party 301) is attempted, and whether the two are located in the same local area network is determined according to the result of whether the connection is successful.
Similarly, when the communication terminal is the calling party 301, according to the received local area network information of the opposite terminal (receiving party 302), connection with the opposite terminal is attempted, and whether both are located in the same local area network is determined according to the result of whether the connection is successful. The local area network information of the opposite terminal may include: local area network IP address, monitoring port and Token information.
For example, the communication terminal may try to ping with the opposite terminal successfully in the local area network through the ping command, and if so, it indicates that the two terminals are located in the same local area network; otherwise, the two are not located in the same local area network.
Step S404: and after the communication terminal successfully attempts to connect, transmitting a VoIP call data packet to the opposite terminal through the local area network.
Preferably, after the communication terminal transmits the VoIP call data packet to the opposite terminal through the local area network, if it is determined that the call quality of the communication link of the local area network is lower than the call quality of the communication link of the wide area network, the communication terminal switches to transmit the VoIP call data packet to the opposite terminal through the wide area network.
The determination index and method of the call quality are the same as those in the first embodiment, and are not described herein again.
The VoIP communication method according to the second embodiment of the present invention is explained below by describing in detail the interaction between the caller and the receiver and the voice exchange server. Specifically, as shown in fig. 4b, the flowchart of the VoIP communication method based on the local area network according to the second embodiment of the present invention includes the following steps S411 to S417:
step S411: the calling party 301 sends a call request to the voice switching server 303.
The communication terminal as the calling party 301 may send the local area network information of the communication terminal to the voice exchange server 303 by carrying the local area network information in the call request.
Step S412: the voice switching server 303 forwards the call request to the receiver 302.
Since the call request carries the lan information of the calling party 301, the lan information of the calling party is also forwarded when the call request is forwarded.
Step S413: the receiver 302 sends the answering information to the voice exchange server 303.
In this step, when the communication terminal as the receiving party 302 agrees to the call request of the calling party 301, the answering information is transmitted to the voice exchange server 303.
Step S414: voice switching server 303 establishes a communication connection between calling party 301 and answering party 302.
In this step, the voice exchange server 303 receives the answering information sent by the receiver 302, and establishes a communication connection between the caller 301 and the receiver 302, that is, the caller 301 and the receiver 302 are connected.
Step S415: the receiving party 302 sends a local area network connection command to the calling party 301 to attempt connection.
In this step, the receiving party 302 sends a local area network connection command, such as a ping command, to attempt connection according to the local area network information of the calling party 301 sent by the voice exchange server.
In fact, there is no strict execution sequence between the above steps S415 and S413, that is, the receiver 302 may attempt to connect to the caller 301 before, after or simultaneously with the receiver 302 sending the answering information.
Step S416: the caller 301 sends a connection success message to the receiver 302.
In this step, if the caller 301 and the receiver 302 are in the same local area network, the caller 301 sends a connection success message to the receiver 302; otherwise, the caller 301 does not send the connection success information to the receiver 302.
Step S417: the caller 301 and the receiver 302 transmit VoIP conversation packets over the local area network.
In this step, the caller 301 and the receiver 302 transmit VoIP call packets through the local area networks in which the two are located. For example, the caller 301 and the receiver 302 are connected to the same wifi (wireless fidelity), and then the VoIP call data packet is transmitted through wifi, and the call rate is positively correlated to the wifi network speed.
As shown in fig. 7, an internal structure block diagram of a communication terminal (a caller 301 or a receiver 302) provided in the second embodiment of the present invention includes: a communication connection module 701, a local area network connection module 702 and a local area network call module 703.
The communication connection module 701 is configured to perform communication connection with an opposite end of the communication terminal through the voice exchange server 303.
The local area network connection module 702 is configured to receive local area network information of an opposite end through the voice exchange server 303, and attempt to connect with the opposite end in the local area network according to the received local area network information; and sends a lan talk notification to the lan talk module 702 after the attempted connection is successful.
The lan communication module 703 is configured to connect with an opposite end in the lan to transmit the VoIP call data packet after receiving the lan communication notification sent by the lan connection module 702.
As shown in fig. 8, the internal structure block diagram of the voice exchange server 303 according to the second embodiment of the present invention includes: a communication connection establishing module 801 and a local area network information forwarding module 802.
The communication connection establishing module 801 is used for establishing a communication connection between the caller 301 and the receiver 302.
The local area network information forwarding module 802 is configured to forward the received local area network information of the calling party 301 to the receiving party 302. Alternatively, the local area network information forwarding module 802 is configured to forward the received local area network information of the receiving party 302 to the calling party 301.
In the second technical scheme of the embodiment of the invention, the voice exchange server forwards the local area network information of the calling party to the receiving party in the process of establishing the communication connection between the calling party and the receiving party; the receiving party tries to connect with the calling party in the local area network according to the local area network information of the calling party; and after the receiving party successfully attempts to connect, transmitting a VoIP call data packet to the calling party through the local area network. Because the transmission rate of the local area network is high and the security is strong, the problem of low conversation quality caused by the fact that the VoIP conversation data packet is transmitted in the wide area network through the server in the prior art is solved, and the user experience is further improved.
Those skilled in the art will appreciate that the present invention includes apparatus directed to performing one or more of the operations described in the present application. These devices may be specially designed and manufactured for the required purposes, or they may comprise known devices in general-purpose computers. These devices have stored therein computer programs that are selectively activated or reconfigured. Such a computer program may be stored in a device (e.g., computer) readable medium, including, but not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magnetic-optical disks, ROMs (Read-Only memories), RAMs (Random Access memories), EPROMs (Erasable Programmable Read-Only memories), EEPROMs (Electrically Erasable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards, or any type of media suitable for storing electronic instructions, and each coupled to a bus. That is, a readable medium includes any medium that stores or transmits information in a form readable by a device (e.g., a computer).
It will be understood by those within the art that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by computer program instructions. Those skilled in the art will appreciate that the computer program instructions may be implemented by a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, implement the features specified in the block or blocks of the block diagrams and/or flowchart illustrations of the present disclosure.
Those of skill in the art will appreciate that various operations, methods, steps in the processes, acts, or solutions discussed in the present application may be alternated, modified, combined, or deleted. Further, various operations, methods, steps in the flows, which have been discussed in the present application, may be interchanged, modified, rearranged, decomposed, combined, or eliminated. Further, steps, measures, schemes in the various operations, methods, procedures disclosed in the prior art and the present invention can also be alternated, changed, rearranged, decomposed, combined, or deleted.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A VoIP communication method based on a local area network is characterized by comprising the following steps:
the method comprises the steps that a voice exchange server judges whether a calling party and a receiving party are located in the same local area network or not in the communication connection process of the calling party and the receiving party;
if yes, sending notification information of local area network communication to the calling party and the receiving party;
the notification information is used for indicating the calling party and/or the receiving party to transmit a VoIP call data packet to the other party through a local area network.
2. The method according to claim 1, further comprising, after said transmitting VoIP conversation data packets to the opposite end through the local area network:
and the calling party or the receiving party determines the communication quality of the communication link of the local area network and switches to the wide area network to transmit the VoIP communication data packet to the opposite party when the communication quality of the communication link of the local area network is lower than that of the communication link of the wide area network.
3. A VoIP communication method based on a local area network is characterized by comprising the following steps:
the communication terminal is in communication connection with the opposite terminal through the voice exchange server;
the communication terminal sends the local area network information of the communication terminal to the voice exchange server so that the voice exchange server can judge whether the communication terminal and the opposite terminal are positioned in the same local area network or not;
transmitting a VoIP call data packet to an opposite terminal based on the local area network according to the notification information of the local area network communication sent by the voice exchange server;
the notification information of the local area network communication is sent to the communication terminal and/or the opposite terminal by the voice interaction server after judging that the communication terminal and the opposite terminal are positioned in the same local area network in the communication connection process of the communication terminal and the opposite terminal.
4. A VoIP communication method based on a local area network is characterized by comprising the following steps:
the communication terminal is in communication connection with the opposite terminal through the voice exchange server;
the communication terminal receives the local area network information of the opposite terminal through the voice exchange server;
according to the local area network information of the opposite terminal, trying to connect with the opposite terminal in a local area network;
and after the connection attempt is successful, transmitting a VoIP call data packet to the opposite terminal through the local area network.
5. A VoIP communication system based on a local area network, comprising: a voice exchange server, a caller and a receiver; wherein,
the voice exchange server is used for judging whether the calling party and the receiving party are positioned in the same local area network or not in the communication connection process of the calling party and the receiving party; if yes, sending notification information of local area network communication to the calling party and/or the receiving party;
and the calling party or the receiving party is used for transmitting a VoIP call data packet to the opposite party through the local area network after receiving the notification information.
6. A VoIP communication system based on a local area network, comprising: a voice exchange server, a caller and a receiver; wherein,
the voice exchange server is used for forwarding the local area network information of the calling party to the receiving party in the communication connection process of the calling party and the receiving party;
the receiving party is used for trying to connect with the calling party in a local area network according to the local area network information of the calling party; and after the connection attempt is successful, transmitting a VoIP call data packet to the calling party through the local area network.
7. A communication terminal, comprising:
the communication connection module is used for carrying out communication connection with an opposite terminal of the communication terminal through the voice exchange server; sending local area network information of the communication terminal to the voice exchange server so that the voice exchange server can judge whether the communication terminal and the opposite terminal are positioned in the same local area network;
and the local area network communication module is used for transmitting a VoIP communication data packet to the opposite terminal based on the local area network according to the notification information of the local area network communication sent by the voice exchange server.
8. A communication terminal, comprising:
the communication connection module is used for carrying out communication connection with an opposite terminal of the communication terminal through the voice exchange server;
the local area network connection module is used for receiving the local area network information of the opposite terminal through the voice exchange server and trying to connect with the opposite terminal in the local area network according to the received local area network information; after the attempted connection is successful, sending a local area network communication notice;
and the local area network communication module is used for connecting with the opposite terminal in the local area network to transmit the VoIP communication data packet after receiving the local area network communication notification.
9. A voice exchange server, comprising:
the communication connection establishing module is used for establishing communication connection between a calling party and a receiving party;
the network judging module is used for judging whether the calling party and the receiving party are positioned in the same local area network or not; if yes, sending notification information of local area network communication to the calling party and the receiving party.
10. A voice exchange server, comprising:
the communication connection establishing module is used for establishing communication connection between a calling party and a receiving party;
and the local area network information forwarding module is used for forwarding the received local area network information of the calling party to the receiving party.
CN201410800134.1A 2014-12-18 2014-12-18 LAN (local area network) based VoIP (Voice over Internet Protocol) communication method, system and communication terminal Pending CN104410648A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410800134.1A CN104410648A (en) 2014-12-18 2014-12-18 LAN (local area network) based VoIP (Voice over Internet Protocol) communication method, system and communication terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410800134.1A CN104410648A (en) 2014-12-18 2014-12-18 LAN (local area network) based VoIP (Voice over Internet Protocol) communication method, system and communication terminal

Publications (1)

Publication Number Publication Date
CN104410648A true CN104410648A (en) 2015-03-11

Family

ID=52648246

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410800134.1A Pending CN104410648A (en) 2014-12-18 2014-12-18 LAN (local area network) based VoIP (Voice over Internet Protocol) communication method, system and communication terminal

Country Status (1)

Country Link
CN (1) CN104410648A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105847505A (en) * 2016-04-15 2016-08-10 乐视控股(北京)有限公司 Method and device for switching telephone calling method
CN105959906A (en) * 2016-04-25 2016-09-21 上海海漾软件技术有限公司 Inter-network device communication method and inter-network device communication method
CN107646202A (en) * 2015-06-02 2018-01-30 瑞典爱立信有限公司 Communicator and method therein for the switching in cordless communication network
CN107646201A (en) * 2015-06-02 2018-01-30 瑞典爱立信有限公司 Network node and method therein for the switching in cordless communication network
CN109194754A (en) * 2018-09-11 2019-01-11 深圳市比特跳动技术有限公司 Equipment searching method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020085516A1 (en) * 2000-12-28 2002-07-04 Symbol Technologies, Inc. Automatic and seamless vertical roaming between wireless local area network (WLAN) and wireless wide area network (WWAN) while maintaining an active voice or streaming data connection: systems, methods and program products
CN1549634A (en) * 2003-05-09 2004-11-24 �ʼҷ����ֵ��ӹɷ����޹�˾ System and method for seamless roaming between radio wide area net and radio local area net
CN1964480A (en) * 2005-11-10 2007-05-16 华为技术有限公司 A method for switching stream media server
CN101035159A (en) * 2007-02-12 2007-09-12 中国移动通信集团浙江有限公司 Dialed monitoring system for the troubleshooting of the communication network and its monitoring method
CN101110868A (en) * 2007-07-27 2008-01-23 腾讯科技(深圳)有限公司 Method and system for multi-person voice communication based on PC and telephony
CN101179600A (en) * 2007-12-12 2008-05-14 腾讯科技(深圳)有限公司 Network protocol voice communication method, system and server

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020085516A1 (en) * 2000-12-28 2002-07-04 Symbol Technologies, Inc. Automatic and seamless vertical roaming between wireless local area network (WLAN) and wireless wide area network (WWAN) while maintaining an active voice or streaming data connection: systems, methods and program products
CN1606891A (en) * 2000-12-28 2005-04-13 讯宝科技公司 Automatic seamless vertical roaming between WLANs and WWANs
CN1549634A (en) * 2003-05-09 2004-11-24 �ʼҷ����ֵ��ӹɷ����޹�˾ System and method for seamless roaming between radio wide area net and radio local area net
CN1784864A (en) * 2003-05-09 2006-06-07 皇家飞利浦电子股份有限公司 System and methods for seamlessly roaming between wireless wide area network and wireless local area network
CN1964480A (en) * 2005-11-10 2007-05-16 华为技术有限公司 A method for switching stream media server
CN101035159A (en) * 2007-02-12 2007-09-12 中国移动通信集团浙江有限公司 Dialed monitoring system for the troubleshooting of the communication network and its monitoring method
CN101110868A (en) * 2007-07-27 2008-01-23 腾讯科技(深圳)有限公司 Method and system for multi-person voice communication based on PC and telephony
CN101179600A (en) * 2007-12-12 2008-05-14 腾讯科技(深圳)有限公司 Network protocol voice communication method, system and server

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107646202A (en) * 2015-06-02 2018-01-30 瑞典爱立信有限公司 Communicator and method therein for the switching in cordless communication network
CN107646201A (en) * 2015-06-02 2018-01-30 瑞典爱立信有限公司 Network node and method therein for the switching in cordless communication network
US10575227B2 (en) 2015-06-02 2020-02-25 Telefonaktiebolaget Lm Ericsson (Publ) Network node and method therein for handover in wireless communication network
CN105847505A (en) * 2016-04-15 2016-08-10 乐视控股(北京)有限公司 Method and device for switching telephone calling method
CN105959906A (en) * 2016-04-25 2016-09-21 上海海漾软件技术有限公司 Inter-network device communication method and inter-network device communication method
CN105959906B (en) * 2016-04-25 2020-03-24 上海海漾软件技术有限公司 Network equipment communication method and device and network equipment communication method and device
CN109194754A (en) * 2018-09-11 2019-01-11 深圳市比特跳动技术有限公司 Equipment searching method and device

Similar Documents

Publication Publication Date Title
KR102253561B1 (en) Tunneling voip call control on cellular networks
CN104410648A (en) LAN (local area network) based VoIP (Voice over Internet Protocol) communication method, system and communication terminal
US10182158B2 (en) Voice gateway-based communication method
CN115190468B (en) Redialing method and terminal equipment
CN102724203A (en) Internet protocol (IP) call dialing method for intelligent terminal
CN107197111B (en) Call forwarding method, system and IPPBX
WO2015050574A1 (en) Call handoff between different networks for hybrid mobile device
CN102378131A (en) Calling method used in voice communication and mobile terminal
CN109348470A (en) Business switch method, terminal, network server and storage medium
US20100151868A1 (en) Communication apparatus and mobile terminal
CN105828387B (en) A kind of wireless communication system, method for processing business and device
CN102355713B (en) Method of calling in voice communication and mobile terminal
US10764429B2 (en) System and method for displaying content on a mobile communications device
US9467325B2 (en) Methods and systems for controlling a communication session
CN106921625B (en) Multimedia service processing system, data transmission and reception method and terminal
CN105682157A (en) Call method and system
WO2015058648A1 (en) Message service processing method and apparatus based on ip telephone
CN103297630B (en) Method and device for playing multimedia information
JP5110915B2 (en) Wireless IP telephone and wireless IP telephone system
EP2224671A1 (en) Method, apparatus and computer program for merging telephony services over circuit switched network and packet switched data network
CN104683607A (en) Method and device for enhancing softphone call completing rate
JPWO2009028096A1 (en) COMMUNICATION METHOD, SERVER, AND PROGRAM FOR SESSION STATUS NOTIFICATION
CN107046673B (en) Method and system for wireless calling
CN112468468B (en) Voice transmission method and device based on IP, electronic equipment and storage medium
JP5094163B2 (en) Wireless IP telephone and wireless IP telephone system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150311