WO2013037244A1 - 语音通信中的呼叫方法及移动终端 - Google Patents

语音通信中的呼叫方法及移动终端 Download PDF

Info

Publication number
WO2013037244A1
WO2013037244A1 PCT/CN2012/078841 CN2012078841W WO2013037244A1 WO 2013037244 A1 WO2013037244 A1 WO 2013037244A1 CN 2012078841 W CN2012078841 W CN 2012078841W WO 2013037244 A1 WO2013037244 A1 WO 2013037244A1
Authority
WO
WIPO (PCT)
Prior art keywords
internet
called party
calling
protocol stack
party
Prior art date
Application number
PCT/CN2012/078841
Other languages
English (en)
French (fr)
Inventor
叶大伟
Original Assignee
惠州Tcl移动通信有限公司
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 惠州Tcl移动通信有限公司 filed Critical 惠州Tcl移动通信有限公司
Publication of WO2013037244A1 publication Critical patent/WO2013037244A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/12Setup of transport tunnels

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a calling method and a mobile terminal in voice communication.
  • the core application of mobile terminals is voice communication.
  • the mobile communication operator provides a fee-based service based on the voice communication service provided by the 2G or 3G mobile communication network. The longer the talk time, the more the charge.
  • the existing mobile terminal users who have installed the voice client and the own wireless network module cannot effectively select the almost free wireless Internet for voice communication, which makes the voice communication costly.
  • the technical problem to be solved by the present invention is to provide a calling method and a mobile terminal in voice communication, which can effectively reduce communication costs and also ensure the immediacy of voice communication.
  • a technical solution adopted by the present invention is a calling method in voice communication, wherein the method includes:
  • the calling party's account is used to log in to the Internet server, and it is determined whether both the calling party and the called party have logged into the Internet server;
  • the Internet is called to call the called party. If at least one of the calling party and the called party is not logged into the Internet server, the mobile communication network is selected to call the called party.
  • the account of the calling party is used to log in to the Internet server
  • the account of the calling party is the mobile terminal number of the calling party.
  • the step of using the calling party's account to log in to the Internet server specifically includes:
  • the step of determining whether the calling party and the called party are both logged into the Internet server includes:
  • the online status recorded in the Internet server returned by the network protocol stack determines whether the calling party and the called party have logged into the Internet server, and the network protocol stack returns the result that both the calling party and the called party are online, and then the call is determined as a call. Both the party and the called party are logged into the Internet server; if the network protocol stack returns the result that the calling party or the called party is not online, it is determined that both the calling party and the called party are not logged into the Internet server.
  • the steps of determining whether the called party logs in to the Internet server specifically include:
  • the called party's telephone number is sent to the Internet server through the network protocol stack. After receiving the telephone number, the Internet server starts a local database query to check whether the number has been recorded as online.
  • the step of determining whether the calling party is connected to the Internet when initiating a call to the called party specifically includes:
  • the result returned by the calling function determines whether to connect to the Internet through the network protocol stack, if the result returned by the calling function is 0, it is determined that the Internet is not connected to the Internet protocol stack; if the result returned by the calling function is 1, it is determined as Connect to the Internet through a network protocol stack.
  • another technical solution adopted by the present invention is to provide a calling method in voice communication, the method comprising: determining whether to connect to the Internet when initiating a call to the called party; Yes, it is judged whether both the calling party and the called party have logged into the Internet server; if the judgment is yes, the Internet is called to call the called party; otherwise, the mobile communication network is selected to call the called party.
  • the method Before the step of determining whether the calling party and the called party have all logged into the Internet server, the method includes: using the calling party's mobile terminal number as an account and logging in to the Internet server through the network protocol stack, and if logging in to the Internet server, recording It is online, otherwise it is recorded as offline.
  • the step of determining whether the calling party and the called party have logged into the Internet server comprises: determining whether the calling party and the called party have logged into the Internet server by using the online status recorded in the Internet server returned by the network protocol stack.
  • the network protocol stack returns the result that both the calling party and the called party are online, and it is determined that both the calling party and the called party have logged into the Internet server; if the network protocol stack returns the result that the calling party or the called party is not online , it is determined that not both the calling party and the called party have logged into the Internet server.
  • the step of determining whether to connect to the Internet when initiating a call to the called party includes: determining whether to connect to the Internet through the network protocol stack according to the result returned by the calling function, and if the result returned by the calling function is 0, determining that The Internet is not connected through the network protocol stack; if the result returned by the calling function is 1, it is determined that the Internet is connected through the network protocol stack.
  • another technical solution adopted by the present invention is to provide a mobile terminal, where the mobile terminal includes: a first determining unit, configured to determine whether to connect to the Internet when initiating a call to the called party;
  • the second determining unit is configured to determine whether the calling party and the called party have logged into the Internet server when determining to connect to the Internet;
  • the selecting unit is configured to select when the calling party and the called party are both logged into the Internet server, and then select The Internet calls the called party, otherwise, the mobile communication network is selected to call the called party.
  • the mobile terminal includes a login unit, configured to use the mobile terminal number of the calling party as an account number and log in to the Internet server through the network protocol stack before determining whether the calling party and the called party have logged into the Internet server, if the login to the Internet
  • the server is recorded as online, otherwise it is recorded as offline.
  • the mobile terminal includes a network protocol stack module, a communication protocol stack module, and a signal processing module, the network protocol stack module, and the first determining unit, the second determining unit, the login unit, the selecting unit, and the signal processing module.
  • the communication protocol stack module is connected to the selection unit and the signal processing module;
  • the signal processing module is connected to the network protocol stack module, the communication protocol stack module, and the selection unit, and is used in the selection unit
  • the function of calling the called party is implemented together with the network protocol stack module, or the function of calling the called party is implemented together with the communication protocol stack module when the selection unit selects the mobile communication network call;
  • the first judgment The unit, the second determining unit, the selecting unit and the login unit are disposed in a central processing module.
  • the mobile terminal includes a second determining unit, specifically configured to determine, when determining whether the calling party and the called party have logged into the Internet server, determine the calling party by using the online status recorded in the remote server returned by the network protocol stack module. Whether the called party and the called party have logged into the Internet server. If the result returned by the network protocol stack module is that both the calling party and the called party are online, it is determined that both the calling party and the called party have logged into the Internet server; If the stack module returns the result that both the calling party and the called party are not online, it is determined that both the calling party and the called party are not logged into the Internet server.
  • the first determining unit is specifically configured to determine whether to connect to the Internet through the network protocol stack module according to the result returned by the calling function when determining whether to connect to the Internet when calling the called party, if the result returned by the calling function If it is 0, it is judged that the Internet is not connected through the network protocol stack module; if the result returned by the calling function is 1, it is determined that the Internet is connected through the network protocol stack module.
  • another technical solution adopted by the present invention is to provide a mobile terminal, where the mobile terminal includes: a determining module, configured to determine whether the call is from the Internet when receiving a call; When the determination is yes, the Internet is selected for voice communication, otherwise the mobile communication network is selected for voice communication.
  • the invention has the beneficial effects that the mobile phone that is different from the prior art cannot effectively select the almost free Internet for voice communication, and the voice communication cost is high.
  • the invention automatically determines the mobile phone when the mobile phone initiates a call to the called party. If the called party is connected to the Internet, if both the mobile phone and the called party are connected to the Internet, the Internet is selected to initiate a call. After the called party receives the call, it determines whether the call is from the Internet. If the call comes from the Internet, the Internet is selected for voice.
  • the mobile phone can automatically judge and prioritize almost free Internet for voice communication, which greatly reduces the communication cost, even when the mobile phone and the called party have not connected to the Internet or the mobile phone initiated the call is not from the Internet, the mobile phone It also automatically selects the mobile communication network for voice communication, which in turn ensures the immediacy of voice communication.
  • FIG. 1 is a flowchart of a calling method in voice communication according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a voice communication system provided by an experimental example of the present invention.
  • FIG. 3 is a schematic diagram of a mobile terminal according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of another mobile terminal according to an embodiment of the present invention.
  • a flowchart of a method for calling in voice communication includes:
  • Step 101 Determine whether to connect to the Internet when initiating a call to the called party;
  • the calling party selects the called party's name from the phone book or enters the called party's telephone number to initiate a call to the called party.
  • the mobile terminal can detect the current network connection status by calling a special API function. Different system software has different API function names. For example, some software systems call the IsConnected() function to return the status of the network, and if the function returns the result returned by the function. If it is 0, it is judged that the Internet is not connected through the network protocol stack.
  • the mobile communication network is selected and the call is initiated to the called party through the communication protocol stack; if the result returned by the calling function is 1, it is determined to be connected through the network protocol stack.
  • the mobile terminal can easily determine whether the network protocol stack can work by calling the function, that is, whether the mobile terminal can connect to the wireless network.
  • the mobile terminal number of the calling party may be used as an account and the Internet server may be logged in through the network protocol stack.
  • the Internet server may be logged in through the network protocol stack.
  • other numbers preset by the mobile terminal may be used as the binding mobile terminal number.
  • the account is logged into the Internet server through the network protocol stack. If you log in to the Internet server, it will be recorded as online, otherwise it will be recorded as offline. In more designs, you can continue to log back in to the Internet server after logging as offline, and you can set a threshold for the number of re-logins.
  • the mobile terminal is based on TCP/IP
  • the protocol uses the network protocol stack to implement login. For example, using the login method of the ordinary website, the mobile terminal number is first transmitted through the network protocol, and then the Internet server responds. If the response is successful, the successful login or successful online, the mobile terminal puts itself The online status is recorded in the online presence variable of the machine, and the Internet server also records the successful login information in its own database. If the Internet server does not respond or responds to the wrong mobile terminal number, then the login fails or is dropped, and the recording is made in the Internet server; similarly, the mobile terminal also records the status in the online presence variable of the local machine.
  • the connection is maintained. Since the TCP/IP protocol is used, the protocol allows the two parties to stay connected at all times, and the connection between the two parties is lost, and the other party can be connected to the Internet (Internet server or mobile).
  • the terminal perceives that if the connection is lost, for example because of a communication failure or if one party loses power, the other party will respond appropriately. For example, if the Internet server finds that the connection is disconnected, then the mobile terminal number should be recorded in its own database. If the mobile terminal finds that the connection is disconnected, the mobile terminal should first modify its online state variable to be offline, and then try to reconnect. The Internet server does not modify the online state variable to online until the connection is successful.
  • Step 102 If the determination is yes, determine whether the calling party and the called party are both logged into the Internet server;
  • step 101 after determining to connect to the Internet through the network protocol stack, the step is performed, specifically: determining whether the calling party and the called party have logged into the Internet through the online status recorded in the Internet server returned by the network protocol stack.
  • the server, the network protocol stack returns the result that both the calling party and the called party are online, and it is determined that both the calling party and the called party are logged into the Internet server; if the network protocol stack returns the calling party or the called party is not online As a result, it is determined that both the calling party and the called party are not logged into the Internet server.
  • the called party uses its mobile terminal number as an account to log in to the Internet server through the network protocol stack. If it logs in to the Internet server, it logs to the online state, otherwise the record is offline, and logs back to the Internet server after being recorded as offline. .
  • the method or specification for judging whether the called party logs into the Internet server can be freely designed, for example, sending the called party's telephone number to the Internet server through the network protocol stack, and the Internet server starts the local database query after receiving the telephone number, and checks whether the number has been The record is online. If online, the caller's "called party online” signal is returned through the network protocol stack. Otherwise, the caller's "called party is not online” signal is returned through the network protocol stack.
  • Step 103 If the determination is yes, the Internet is selected to call the called party, otherwise, the mobile communication network is selected to call the called party;
  • the Internet After determining that both the calling party and the called party have logged in to the Internet server, select the Internet and call the called party through the network protocol stack; after determining that both the calling party and the called party have logged into the Internet server, select the mobile communication.
  • the network calls the called party through the communication protocol stack.
  • the called party After receiving the call initiated by the calling party, the called party performs the following steps:
  • Step 1 Determine if the call is from the Internet
  • the mobile terminal will always check whether it is connected to the Internet through the network protocol stack. If it is connected to the Internet, it will log in to the Internet server to identify its online status. This status will be recorded by the database of the Internet server and also recorded in the local online state variable. . If the caller is online, the caller initiates a call through the Internet, then the call signal is transmitted to the antenna through the Internet, and then transmitted to the network protocol stack, which is resolved into a call signal; if it is not online, the communication protocol stack will receive The call signal is transmitted to the communication protocol stack via the primary antenna and is parsed into a call signal. The mobile terminal determines whether the call is from the Internet by determining whether the call signal is parsed by the network protocol stack or parsed by the communication protocol stack.
  • the network protocol stack encodes and decodes signals based on the TCP/IP protocol standard, that is, encodes the original signal into a network signal format, and transmits the data to the Internet via the wireless network antenna or the Internet signal received on the wireless network antenna.
  • the communication protocol stack is responsible for parsing the communication signal received by the main antenna into an ordinary digital voice signal or packaging the digital voice signal into a standard communication signal and transmitting it through the main antenna.
  • the communication protocol stack must conform to the 3GPP standard to communicate with the base station. It generally includes a hardware DSP with fast computing capability and a software protocol stack. The received signals can be parsed and transmitted in real time through the cooperation of software and hardware.
  • Mobile terminals generally use a dedicated system-on-chip (System On a Chip, SOC) The chip implements the functions of the communication protocol stack.
  • Soc System On a Chip
  • Step 2 When it is determined that the call is from the Internet, the user is prompted to have a new incoming call on the screen of the mobile terminal, and the voice over Internet Protocol (Voice over Internet) is started. Protocol The Internet program of the VoIP technology responds to the call; when it is determined that the call is not from the Internet, the user is prompted to have a new incoming call on the screen of the mobile terminal, and a normal mobile communication network program based on a 2G/3G network standard is activated to respond to the call. call.
  • VoIP over Internet Voice over Internet
  • the mobile terminal of the two communication terminals immediately log in to the Internet server after connecting to the Internet, and records the connection status of the communication parties in the database of the Internet server, and the communication parties maintain the connection with the Internet server.
  • the Internet server knows that the mobile terminals of both communication parties are ready, and can perform voice communication through the Internet at any time.
  • Voice communication using the Internet can be established through various methods, such as establishing a peer-to-peer network through TCP/IP, and peer-to-peer communication between peer-to-peer networks via VoIP technology. This communication does not occupy server resources and saves server bandwidth.
  • An Internet server-based method that is, the communication parties first send the voice message to the Internet server in the middle, and the Internet server forwards it to the other party to complete the communication.
  • the essence of the Internet is the data communication network, and the mobile communication network also supports high-speed data communication services, such as high-speed packet access based on 3.5G networks.
  • High-speed data communication services such as high-speed packet access based on 3.5G networks.
  • Access, HSPA) Data services in theory, can also achieve similar functions using HSPA high-speed data communication, but HSPA It is a fee, and using the wireless internet will be cheaper.
  • This embodiment does not limit the bearer mode of the data network, as long as the optimal data communication network is selected.
  • the mobile phone different from the prior art cannot effectively select the almost free Internet for voice communication, and the voice communication cost is high.
  • the present invention can automatically judge and preferentially select almost free wireless internet for voice communication, reduce communication costs, and communicate.
  • the mobile terminal can automatically select the mobile communication network for voice communication to ensure the immediacy of voice communication.
  • a schematic diagram of a voice communication system includes: a first mobile terminal 1, a second mobile terminal 2, and an Internet server 3.
  • the first mobile terminal 1 includes a communication module 11 and a phone book management module 12
  • the second mobile terminal 2 includes a communication module 21 and a phone book management module 22.
  • the communication module 11 inside the first mobile terminal 1 and the communication module 21 inside the second mobile terminal 2 integrate an internet communication service and a mobile network communication service, and the internet communication service may be wireless fidelity (Wireless) Fidelity, WIFI)
  • the obtained data service after connecting to the Internet the phone book management module 12 inside the first mobile terminal 1 is responsible for answering, dialing, and maintaining the contact of the first mobile terminal 1, etc., the second mobile
  • the phone book management module 22 in the terminal 2 is responsible for the answering, dialing, and maintenance of the voice of the second mobile terminal 2, and the like
  • the Internet server 3 is configured to record the first mobile terminal 1 and the second mobile terminal 2 to log in to the Internet. status.
  • the first mobile terminal 1 determines through its communication module 11 whether it has connected to the Internet, and if it is not connected to the Internet, selects the mobile communication network to the first The mobile terminal 2 initiates a call, and after receiving the call, the phone book management module 22 of the second mobile terminal 2 performs voice communication with the first mobile terminal 1 through the communication module 21 of the second mobile terminal 2; if the Internet is already connected, the first The mobile terminal 1 logs in to the Internet server 3 and records it as an online state, and then checks whether the second mobile terminal 2 is also online.
  • the mobile communication network is selected to initiate a call to the second mobile terminal 2, and second After the phone book management module 22 of the mobile terminal 2 answers the call, it performs voice communication with the first mobile terminal 1 through the communication module 21 of the second mobile terminal 2, and if the second mobile terminal 2 is online, selects the Internet to the second mobile terminal 2 After the call is initiated, the phone book management module 22 of the second mobile terminal 2 passes the call of the second mobile terminal 2 after receiving the call.
  • a first module 21 and a mobile terminal for voice communication or:
  • the second mobile terminal 2 determines through its communication module 21 whether or not it has connected to the Internet, and if not connected to the Internet, selects the mobile communication network to the first A mobile terminal 1 initiates a call, and after receiving the call, the phone book management module 12 of the first mobile terminal 1 performs voice communication with the second mobile terminal 2 through the communication module 11 of the first mobile terminal 1; if the Internet is already connected, the second The mobile terminal 2 logs in to the Internet server 3 and records it as an online state, and then checks whether the first mobile terminal 1 is also online. If the first mobile terminal 1 is not online, the mobile communication network is selected to initiate a call to the first mobile terminal 1, first.
  • the communication module 11 of the first mobile terminal 1 performs voice communication with the second mobile terminal 2. If the first mobile terminal 1 is online, the Internet is selected to the first mobile terminal 1. After the call is initiated, the phone book management module 12 of the first mobile terminal 1 passes the call of the first mobile terminal 1 after receiving the call. Module 11 and the second terminal 2 for the mobile voice communication.
  • a schematic diagram of a mobile terminal includes: a central processing module 4, a communication protocol stack module 5, a network protocol stack module 6, and a signal processing module 7.
  • the first processing unit 41, the registration unit 42, the second determination unit 43, and the selection unit 44 are disposed in the central processing module 4.
  • the network protocol stack module 6 is connected to the first determining unit 41, the login unit 42, the second determining unit 43, the selecting unit 44, and the signal processing module 7.
  • the network protocol stack module 6 encodes and decodes signals based on the TCP/IP protocol standard.
  • the processed module, the module may be a software module or a hardware module, and the function of the network protocol stack module 6 is to encode the original signal into a network signal format and transmit it to the Internet via a wireless network antenna; or to receive the wireless network antenna The incoming Internet signal is decoded into the original signal for processing by the signal processing module 7.
  • the communication protocol stack module 5 is connected to the selection unit 44 and the signal processing module 7.
  • the communication protocol stack module 5 is responsible for parsing the communication signal received by the main antenna into a normal digital voice signal and transmitting it to the signal processing module 7.
  • the communication protocol stack module 5 is required to comply with the 3GPP standard to communicate with the base station. Generally, it includes a hardware DSP with fast computing capability and a software protocol stack, and the received signal can be obtained through cooperation of hardware and software.
  • 3GPP standard to communicate with the base station.
  • it includes a hardware DSP with fast computing capability and a software protocol stack, and the received signal can be obtained through cooperation of hardware and software.
  • Soc suppliers such as Mediatek, Qualcomm and so on.
  • the signal processing module 7 is connected to the communication protocol stack module 5, the network protocol stack module 6 and the selection unit 44 for communicating with the network protocol stack module 6 when the selection unit 44 selects an internet call, or selecting the mobile communication at the selection unit 44.
  • the network call is communicated with the communication protocol stack module 5.
  • the signal processing module 7 is a software module or a hardware module, which is responsible for converting the digital signal processing into a voice signal that can be accepted by the speaker. In turn, the voice signal is also converted into a digital signal, and the module uses various types. Signal processing algorithms, such as noise reduction processing, encryption and decryption processing, etc., can be calculated by a computing chip through a proprietary program, or can be completed by a proprietary hardware computing chip.
  • the signal processing module 7 can not only transmit the original voice signal to the original communication protocol stack module 5, but also transmit the signal to the network protocol stack module 6, and the central processing module 4 automatically determines the signal according to the algorithm. 5 is still to be transmitted through the network protocol module 6.
  • the central processing module 4 coordinates and controls the entire voice communication process, for example, when the new signal arrives, responds to the signal, notifies the user of the response when there is an incoming call, opens the signal channel (answers the call), and transmits the signal or network protocol of the communication protocol stack module 5.
  • the signal of the stack module 6 is sequentially transmitted to the signal processing module 7 and controls the signal, etc., and is also responsible for informing the communication protocol stack module 5 or the network protocol stack module 6 to establish a new call link (outgoing call), and is connected in the channel.
  • the signal of the signal processing module 7 is then introduced into the communication protocol stack module 5 or the network protocol stack module 6.
  • the central processing module 4 implements its function of coordinating control of voice communication through respective units disposed therein.
  • the first determining unit 41 is configured to determine whether to connect to the Internet when initiating a call to the called party, and specifically, according to the result returned by the calling function, determine whether the Internet is connected through the network protocol stack module 6, if the result returned by the calling function If it is 0, it is judged that the Internet is not connected through the network protocol stack module 6; if the result returned by the calling function is 1, it is determined that the Internet is connected through the network protocol stack module 6.
  • the first judging unit can detect the current network connection state by calling a special API function. Different system softwares have different API function names.
  • some software systems call the IsConnected() function to return the status of the network, and if the calling function returns If the result is 0, it is determined that the Internet is not connected to the Internet through the network protocol stack module 6, and then the mobile communication network is selected and the call is initiated to the called party through the communication protocol stack module 6; if the result returned by the calling function is 1, the judgment is made.
  • the first judging unit 41 can very conveniently judge whether the network protocol stack module 6 can work by calling the function.
  • the login unit 42 may use the mobile terminal number of the calling party as the account number to log in to the Internet server through the network protocol stack module 6, and may also use the mobile terminal preset. The other number is used as an account to log in to the Internet server through the network protocol stack module 6. If the Internet server is logged in, it is recorded as online, otherwise the record is offline, and the Internet server is logged in after being recorded as offline.
  • the login unit 42 is based on TCP/IP.
  • the protocol uses the network protocol stack module 6 to implement login. For example, using the login method of the ordinary website, the mobile terminal number is first transmitted through the network protocol module 6, and then the Internet server responds. If the response is successful, it indicates successful login or successful online. The mobile terminal records its online status into the online status variable, and the Internet server also records the successful login information in its own database. If the Internet server does not respond or responds to the wrong mobile terminal number, then the login fails or is dropped. Similarly, the mobile terminal records the status into the online status variable. When the mobile terminal is connected to the Internet server, the connection is maintained.
  • the protocol allows the two parties to stay connected at all times, and the connection between the two parties is lost, and the other party can be connected to the Internet (Internet server or mobile).
  • the terminal perceives that if the connection is lost, for example because of a communication failure or if one party loses power, the other party will respond appropriately. For example, if the Internet server finds that the connection is disconnected, then the mobile terminal number should be recorded in its own database. If the mobile terminal finds that the connection is disconnected, the mobile terminal should first modify its online state variable to be offline, and then try to reconnect. The Internet server does not modify the online state variable to online until the connection is successful.
  • the second determining unit 43 is configured to determine, when determining that the Internet is connected, whether the calling party and the called party have logged into the Internet server, specifically, the online status recorded in the remote server returned by the network protocol stack module 6 Determining whether both the calling party and the called party have logged into the Internet server. If the result returned by the network protocol stack module 6 is that both the calling party and the called party are online, it is determined that both the calling party and the called party have logged into the Internet server; If the result returned by the network protocol stack module 6 is that both the calling party and the called party are not online, it is determined that both the calling party and the called party are not logged into the Internet server.
  • the called party uses its mobile terminal number as an account number and logs in to the Internet server through the network protocol stack module 6. If the Internet server is logged in, the online status is recorded, otherwise the record is offline, and after being recorded as offline, Log back in to the Internet server.
  • the method or specification for judging whether the called party logs into the Internet server can be freely designed, for example, sending the called party's telephone number to the Internet server through the network protocol stack module 6, and the Internet server starts the local database query after receiving the telephone number, and checks whether the number is It has been recorded as online. If it is online, it returns the signal of the called party "called party online” through the network protocol stack module 6, otherwise, it returns the signal of the calling party "the called party is not online” through the network protocol stack module 6.
  • the selecting unit 44 is configured to select an Internet call called party when the determination is yes, and otherwise select a mobile communication network to call the called party. For example, after the second determining unit 43 determines that both the calling party and the called party have logged in to the Internet server, the selecting unit 44 selects the Internet and calls the called party through the network protocol stack module 6; the second determining unit 43 determines that the call is made. After both the party and the called party have logged into the Internet server, the selection unit 44 selects the mobile communication network and calls the called party through the communication protocol stack.
  • FIG. 4 another schematic diagram of a mobile terminal according to an embodiment of the present invention includes:
  • the determining module 81 is configured to determine, when the call is received, whether the call is from the Internet;
  • the mobile terminal will always check whether it is connected to the Internet through the network protocol stack. If it is connected to the Internet, it will log in to the Internet server to identify its online status. This status will be recorded by the database of the Internet server and also recorded in the local online state variable. . If the caller is online, the caller initiates a call through the Internet, then the call signal is transmitted to the antenna through the Internet, and then transmitted to the network protocol stack, which is resolved into a call signal; if it is not online, the communication protocol stack will receive The call signal is transmitted to the communication protocol stack via the primary antenna and is parsed into a call signal. The mobile terminal determines whether the call is from the Internet by determining whether the call signal is parsed by the network protocol stack or parsed by the communication protocol stack.
  • the selecting module 82 is configured to select the Internet for voice communication when the determination is yes, and otherwise select the mobile communication network for voice communication;
  • the user When it is determined that the call is from the Internet, the user is prompted to have a new call on the screen of the mobile terminal, and the voice based on the Internet protocol is started (Voice) Over Internet Protocol
  • VoIP Voice based on Internet Protocol
  • the Internet program of the VoIP technology responds to the call; when it is determined that the call is not from the Internet, the user is prompted to have a new incoming call on the screen of the mobile terminal, and a normal 2G/3G-based mobile communication network program is initiated to respond to the call.

Abstract

本发明公开了一种语音通信中的呼叫方法及移动终端,在向被叫方发起呼叫时判断是否连接上互联网;若是,则判断呼叫方和被叫方是否均已登录互联网服务器;若是,则选择互联网呼叫被叫方,否则选择移动通信网络呼叫被叫方。本发明能优先选择联网进行语音通信,降低通信费用,并且还保证语音通信的即时性。

Description

语音通信中的呼叫方法及移动终端 技术领域
本发明涉及通信技术领域,特别是涉及一种语音通信中的呼叫方法及移动终端。
背景技术
移动终端的核心应用是语音通信。移动通信运营商基于2G或3G移动通信网络提供的语音通信服务为收费的服务,通话时间越长,收费越多。
进入移动互联网时代后,一些移动终端用户在自己的终端上安装了语音客户端,利用移动终端自带的无线网络模块连接互联网,通过互联网和另一个在线用户进行语音通信,这种基于互联网的通信方式几乎是免费的,但是这种通信方式也带来一个问题,即需要通信的双方时刻都必须接入无线互联网,任何一方不在线,通信就无法进行。由于电信运营商远没有实现全范围的无线互联网覆盖,移动终端很难保证双方时刻都接入互联网,因此依靠无线互联网的通话服务并没有成为移动终端在语音通信服务中的主流应用。
如上所述,现有的安装了语音客户端和自带无线网络模块的移动终端用户无法有效选择几乎是免费的无线互联网进行语音通信,使得语音通信费用高。
如何使移动终端用户双方在进行语音通信时有效选择几乎是免费的无线互联网进行语音通信,降低通信费用,是通信技术领域研究方向之一 。
技术问题
本发明主要解决的技术问题是提供一种语音通信中的呼叫方法及移动终端,能够有效降低通信费用,同时也保证语音通信的即时性。
技术解决方案
为解决上述技术问题,本发明采用的一个技术方案是一种语音通信中的呼叫方法,其中所述方法包括:
在向被叫方发起呼叫时判断呼叫方是否连接上互联网;
若所述呼叫方已连接上互联网,则利用呼叫方的账号登录互联网服务器,并判断呼叫方和被叫方是否均已登录互联网服务器;
若呼叫方和被叫方均已登录互联网服务器,则选择互联网呼叫被叫方,若呼叫方和被叫方中的至少一者未登录互联网服务器,选择移动通信网络呼叫被叫方。
其中利用呼叫方的账号登录互联网服务器时,该呼叫方的账号为所述呼叫方的移动终端号码。
,其中利用呼叫方的帐号登录互联网服务器的步骤具体包括:
利用呼叫方的帐号通过网络协议栈登录互联网服务器,若登录上互联网服务器,则记录为在线状态,否则记录为不在线状态。
其中所述判断呼叫方和被叫方是否均已登录互联网服务器的步骤包括:
通过网络协议栈返回的在互联网服务器中记录的在线状态来判断呼叫方和被叫方是否均已登录互联网服务器,网络协议栈返回的是呼叫方和被叫方均在线的结果,则判断为呼叫方和被叫方均已登录上互联网服务器;若网络协议栈返回的是呼叫方或被叫方不在线的结果,则判断为呼叫方和被叫方并非均已登录上互联网服务器。
其中判断被叫方是否登录上互联网服务器的步骤具体包括:
通过网络协议栈发送被叫方电话号码给互联网服务器,互联网服务器收到该电话号码后开始本地数据库查询,检查该号码是否已经被记录为在线。
其中所述在向被叫方发起呼叫时判断呼叫方是否连接上互联网的步骤具体包括:
根据调用函数返回的结果来判断是否通过网络协议栈连接上互联网,若调用函数返回的结果是0,则判断为没有通过网络协议栈连接上互联网;若调用函数返回的结果是1,则判断为通过网络协议栈连接上互联网。
为解决上述技术问题,本发明采用的另一个技术方案是:提供一种语音通信中的呼叫方法,所述方法包括:在向被叫方发起呼叫时判断是否连接上互联网;若所述判断为是,则判断呼叫方和被叫方是否均已登录互联网服务器;若所述判断为是,则选择互联网呼叫被叫方,否则,选择移动通信网络呼叫被叫方。
其中,在所述判断呼叫方和被叫方是否均已登录互联网服务器的步骤之前,包括:利用呼叫方的移动终端号码作为帐号并通过网络协议栈登录互联网服务器,若登录上互联网服务器,则记录为在线状态,否则记录为不在线状态。
其中,所述判断呼叫方和被叫方是否均已登录互联网服务器的步骤包括:通过网络协议栈返回的在互联网服务器中记录的在线状态来判断呼叫方和被叫方是否均已登录互联网服务器,网络协议栈返回的是呼叫方和被叫方均在线的结果,则判断为呼叫方和被叫方均已登录上互联网服务器;若网络协议栈返回的是呼叫方或被叫方不在线的结果,则判断为呼叫方和被叫方并非均已登录上互联网服务器。
其中,所述在向被叫方发起呼叫时判断是否连接上互联网的步骤包括:根据调用函数返回的结果来判断是否通过网络协议栈连接上互联网,若调用函数返回的结果是0,则判断为没有通过网络协议栈连接上互联网;若调用函数返回的结果是1,则判断为通过网络协议栈连接上互联网。
为解决上述技术问题,本发明采用的又一个技术方案是:提供一种移动终端,所述移动终端包括:第一判断单元,用于在向被叫方发起呼叫时判断是否连接上互联网;第二判断单元,用于在判断为连接上互联网时,判断呼叫方和被叫方是否均已登录互联网服务器;选择单元,用于在判断呼叫方和被叫方均已登录互联网服务器时,则选择互联网呼叫被叫方,否则,选择移动通信网络呼叫被叫方。
其中,所述移动终端包括登录单元,用于在判断呼叫方和被叫方是否均已登录互联网服务器之前,利用呼叫方的移动终端号码作为帐号并通过网络协议栈登录互联网服务器,若登录上互联网服务器,则记录为在线状态,否则记录为不在线状态。
其中,所述移动终端包括网络协议栈模块、通信协议栈模块以及信号处理模块,所述网络协议栈模块,与所述第一判断单元、第二判断单元、登录单元、选择单元以及信号处理模块相连;所述通信协议栈模块,与所述选择单元以及信号处理模块相连;所述信号处理模块,与所述网络协议栈模块、通信协议栈模块以及选择单元相连,用于在所述选择单元选择互联网呼叫时与网络协议栈模块一起实现呼叫被叫方的功能,或,在所述选择单元选择移动通信网络呼叫时与通信协议栈模块一起实现呼叫被叫方的功能;所述第一判断单元、第二判断单元、选择单元以及登录单元设置于一中央处理模块内。
其中,所述移动终端包括第二判断单元,具体用于在判断呼叫方和被叫方是否均已登录互联网服务器时,通过网络协议栈模块返回的在远程服务器中记录的在线状态来判断呼叫方和被叫方是否均已登录互联网服务器,若通过网络协议栈模块返回的是呼叫方和被叫方均在线的结果,则判断为呼叫方和被叫方均已登录互联网服务器;若通过网络协议栈模块返回的是呼叫方和被叫方均不在线的结果,则判断为呼叫方和被叫方并非均已登录互联网服务器。
其中,所述第一判断单元具体用于在向被叫方发起呼叫时判断是否连接上互联网时,根据调用函数返回的结果来判断是否通过网络协议栈模块连接上互联网,若调用函数返回的结果是0,则判断为没有通过网络协议栈模块连接上互联网;若调用函数返回的结果是1,则判断为通过网络协议栈模块连接上互联网。
为解决上述技术问题,本发明采用的又一个技术方案是:提供一种移动终端,所述移动终端包括:判断模块,用于在接收到呼叫时判断所述呼叫是否来自互联网;选择模块,用于在所述判断为是时,则选择互联网进行语音通信,否则选择移动通信网络进行语音通信。
有益效果
本发明的有益效果是:区别于现有技术的手机无法有效选择几乎是免费的互联网进行语音通信、使得语音通信费用高的情况,本发明在手机向被叫方发起呼叫时,自动判断手机及被叫方是否连接上互联网,若手机及被叫方都连接上互联网,则选择互联网发起呼叫,被叫方在接收到呼叫后,判断呼叫是否来自互联网,若呼叫来自互联网,则选择互联网进行语音通信,由于手机能自动判断并且优先选择几乎免费的互联网进行语音通信,这就大大降低了通信费用,即使在手机及被叫方有一方没有连接上互联网或手机发起的呼叫不是来自互联网时,手机还能自动选择移动通信网络进行语音通信,这样又能保证语音通信的即时性。
附图说明
图1是 本发明实施例提供的语音通信中的呼叫方法的流程图;
图2是 本发明实验例提供的语音通信系统的示意图;
图3是 本发明实施例提供的一种移动终端的示意图;
图4是 本发明实施例提供的另一种移动终端的示意图。
本发明的最佳实施方式
下面结合附图和实施例对本发明进行详细说明。
请参见图1,本发明实施例提供的语音通信中的呼叫方法的流程图包括:
步骤101:在向被叫方发起呼叫时判断是否连接上互联网;
呼叫方从电话簿中选出被叫方名字或输入被叫方电话号码,向被叫方发起呼叫,同时,根据调用函数返回的结果来判断是否已通过网络协议栈连接上互联网。移动终端可以通过调用专门的API函数,用来检测当前的网络连接状态,不同的系统软件有不同的API函数命名,比如有些软件系统调用IsConnected()函数返回网络的状态,若调用函数返回的结果是0,则判断为没有通过网络协议栈连接上互联网,之后,选择移动通信网络并通过通信协议栈向被叫方发起呼叫;若调用函数返回的结果是1,则判断为通过网络协议栈连接上互联网,移动终端通过调用函数可以非常方便地判断出网络协议栈是否可以工作,即移动终端是否可以连接无线网络。
在判断为通过网络协议栈连接上互联网之前,可以先利用呼叫方的移动终端号码作为帐号并通过网络协议栈登录互联网服务器,当然也可以使用移动终端预设的其他号码,作为绑定移动终端号码的帐号通过网络协议栈登录互联网服务器。若登录上互联网服务器,则记录为在线状态,否则记录为不在线状态。在更多的设计中,可以在记录为不在线状态之后继续重新登录互联网服务器,重新登录的次数可以设定一个阈值。
具体地,移动终端基于TCP/IP 协议,利用网络协议栈来实现登录,比如使用普通网站的登录方式,先通过网络协议传递移动终端号码,然后等待互联网服务器响应,如果响应成功,那么就说明成功登录或者成功在线,移动终端把自己的在线状态记录到本机的在线状态变量中,同时互联网服务器也会把成功登录的信息记录在自己的数据库中。如果互联网服务器没有响应或者响应错误的移动终端号码,那么就说明登录失败或者掉线,并在互联网服务器中进行记录;同样,移动终端把该状态也会被记录到本机的在线状态变量中。
当移动终端和互联网服务器连接后,该连接被一直保持,由于使用的是TCP/IP协议,该协议允许通信双方时刻保持连接,通信双方任何一方连接丢失,都可以被另外一方(互联网服务器或者移动终端)察觉到,如果连接丢失比如因为通信故障或者某一方掉电,那么另外一方就要做出合适的响应。比如互联网服务器发现连接断开,那么应该在自己的数据库中记录该移动终端号码不在线,如果移动终端发现连接断开,那么移动终端应该首先修改自己的在线状态变量为不在线,然后尝试重新连接互联网服务器,直到连接成功后,才把在线状态变量修改为在线。
步骤102:若所述判断为是,则判断呼叫方和被叫方是否均已登录互联网服务器;
在步骤101中,在判断通过网络协议栈连接上互联网之后就执行本步骤,具体是:通过网络协议栈返回的在互联网服务器中记录的在线状态来判断呼叫方和被叫方是否均已登录互联网服务器,网络协议栈返回的是呼叫方和被叫方均在线的结果,则判断为呼叫方和被叫方均已登录上互联网服务器;若网络协议栈返回的是呼叫方或被叫方不在线的结果,则判断为呼叫方和被叫方并非均已登录上互联网服务器。
其中,被叫方利用其移动终端号码作为帐号通过网络协议栈登录互联网服务器若登录上互联网服务器,则记录为在线状态,否则记录为不在线状态,并在记录为不在线状态之后重新登录互联网服务器。判断被叫方是否登录互联网服务器的方法或者规范可以自由设计,比如通过网络协议栈发送被叫方电话号码给互联网服务器,互联网服务器收到该电话号码后开始本地数据库查询,检查该号码是否已经被记录为在线,如果在线则通过网络协议栈返回呼叫方“被叫方在线”的信号,否则,通过网络协议栈返回呼叫方“被叫方不在线”的信号。
步骤103:若所述判断为是,则选择互联网呼叫被叫方,否则,选择移动通信网络呼叫被叫方;
在判断为呼叫方和被叫方均已登录上互联网服务器之后,选择互联网并通网络协议栈呼叫被叫方;在判断为呼叫方和被叫方并非均已登录上互联网服务器之后,选择移动通信网络并通过通信协议栈呼叫被叫方。
此外,被叫方在接收到呼叫方发起的呼叫后,进行如下步骤:
步骤一:判断呼叫是否来自互联网;
移动终端会时刻通过网络协议栈检查自己是否已经连接互联网,如果连接上互联网便会登录互联网服务器标识自己的在线状态,这个状态会被互联网服务器的数据库记录,也会记录在本地的在线状态变量中。如果自己在线,呼叫方通过互联网发起呼叫,那么该呼叫信号通过互联网传递到自己的天线中,再传递到网络协议栈中,被解析成呼叫信号;如果自己没有在线,那么通信协议栈会接收到呼叫信号,经主天线传递给通信协议栈,被解析成呼叫信号,移动终端通过判断呼叫信号是被网络协议栈解析还是被通信协议栈解析来判断呼叫是否来自互联网。
其中,网络协议栈是基于TCP/IP协议标准对信号进行编解码处理,即把原始信号编码成网络信号格式,并经无线网络天线传递到国际互联网上或者把无线网络天线上收到的互联网信号,解码成原始信号;通信协议栈负责把主天线接受到的通信信号,解析成普通的数字语音信号或者把数字语音信号包装成标准通信信号经主天线传送出去。通信协议栈必须符合3GPP的标准才能和基站进行通信,它一般包含具有快速计算能力的硬件DSP,以及一个软件协议栈,通过软硬件的配合可以把收到的信号进行实时解析并传递,现有移动终端一般都会使用专门的片上系统(System on a Chip,SOC) 芯片来实现通信协议栈的功能,这类Soc的供应商有很多,比如Mediatek、 高通公司等等。
步骤二:当判断出呼叫来自互联网,则在移动终端的屏幕上提示用户有新来电,并启动基于互联网协议语音(Voice over Internet Protocol ,VoIP)技术的互联网程序响应该呼叫;当判断出呼叫不是来自互联网,则在移动终端的屏幕上提示用户有新来电,并启动正常的基于2G/3G等网络制式的移动通信网络程序响应该呼叫。
本实施例可以进一步作出要求,通信双方的移动终端一旦连接到互联网后,就立即登录互联网服务器,并在互联网服务器的数据库中记录通信双方的连接状态,并且通信双方保持和互联网服务器的连接。这样,通信双方的移动终端登录互联网服务器后,互联网服务器就知道通信双方的移动终端都已经准备好,可以随时通过互联网进行语音通信。
利用互联网的语音通信可以通过多种方法,比如通信双方通过TCP/IP建立对等网络,对等网络间通过VoIP技术进行对等语音通信,这种通信不占用服务器资源,节省服务器带宽,还有一种基于互联网服务器的方法,即通信双方把语音消息先发送到处于中间的互联网服务器,互联网服务器再转发到另一方,完成通信。
互联网的本质是数据通信网络,移动通信网络也支持高速的数据通信业务,比如基于3.5G网络的高速分组接入(high speed packet access,HSPA) 数据业务,理论上,使用HSPA高速数据通信也可以实现类似的功能,但是HSPA 是收费的,利用无线互联网会更便宜。本实施例并不会限制数据网络的承载方式,只要选择最优的数据通信网络即可。
区别于现有技术的手机无法有效选择几乎是免费的互联网进行语音通信、使得语音通信费用高的情况,本发明能够自动判断并优先选择几乎免费的无线互联网进行语音通信,降低通信费用,并且通信双方有一方没有连接上互联网时,移动终端还能自动选择移动通信网络进行语音通信,保证语音通信的即时性。
请参见图2,本发明实施例提供的语音通信系统的示意图,所述系统包括:第一移动终端1、第二移动终端2以及互联网服务器3。其中,第一移动终端1包括通信模块11及电话簿管理模块12,第二移动终端2包括通信模块21及电话簿管理模块22。第一移动终端1内部的通信模块11以及第二移动终端2内部的通信模块21集成了互联网通信服务和移动网络通信服务,互联网通信服务可以是无线保真(Wireless Fidelity,WIFI)连接到互联网后的得到的数据服务;第一移动终端1内部的电话簿管理模块12负责第一移动终端1的语音的接听、拨打、以及联系人的维护等等,第二移动终端2内部的电话簿管理模块22负责第二移动终端2的语音的接听、拨打、以及联系人的维护等等;互联网服务器3,用于记录第一移动终端1以及第二移动终端2登录互联网的状态。
在第一移动终端1通过其电话簿管理模块12呼叫第二移动终端2前,第一移动终端1通过其通信模块11判断自己是否已经连接互联网,如果没有连接互联网,则选择移动通信网络向第二移动终端2发起呼叫,第二移动终端2的电话簿管理模块22接听呼叫后,通过第二移动终端2的通信模块21与第一移动终端1进行语音通信;如果已经连接互联网,则第一移动终端1登录到互联网服务器3并记录为在线状态,之后检查第二移动终端2是否也在线,如果第二移动终端2不在线,则选择移动通信网络向第二移动终端2发起呼叫,第二移动终端2的电话簿管理模块22接听呼叫后,通过第二移动终端2的通信模块21与第一移动终端1进行语音通信,如果第二移动终端2在线,则选择互联网向第二移动终端2发起呼叫,第二移动终端2的电话簿管理模块22接听呼叫后,通过第二移动终端2的通信模块21与第一移动终端1进行语音通信,或者:
在第二移动终端2通过其电话簿管理模块22呼叫第一移动终端1前,第二移动终端2通过其通信模块21判断自己是否已经连接互联网,如果没有连接互联网,则选择移动通信网络向第一移动终端1发起呼叫,第一移动终端1的电话簿管理模块12接听呼叫后,通过第一移动终端1的通信模块11与第二移动终端2进行语音通信;如果已经连接互联网,则第二移动终端2登录到互联网服务器3并记录为在线状态,之后检查第一移动终端1是否也在线,如果第一移动终端1不在线,则选择移动通信网络向第一移动终端1发起呼叫,第一移动终端1的电话簿管理模块12接听呼叫后,通过第一移动终端1的通信模块11与第二移动终端2进行语音通信,如果第一移动终端1在线,则选择互联网向第一移动终端1发起呼叫,第一移动终端1的电话簿管理模块12接听呼叫后,通过第一移动终端1的通信模块11与第二移动终端2进行语音通信。
请参见图3,本发明实施例提供的一种移动终端的示意图,包括:中央处理模块4、通信协议栈模块5、网络协议栈模块6以及信号处理模块7。中央处理模块4内设置有第一判断单元41、登录单元42、第二判断单元43以及选择单元44。
网络协议栈模块6,与第一判断单元41、登录单元42、第二判断单元43、选择单元44以及信号处理模块7相连;网络协议栈模块6是基于TCP/IP协议标准对信号进行编解码处理的模块,该模块可以是软件模块也可以是硬件模块,网络协议栈模块6的作用是把原始信号编码成网络信号格式,并经无线网络天线传递到互联网上;或者把无线网络天线上收到的互联网信号,解码成原始信号交由信号处理模块7处理。
通信协议栈模块5,与选择单元44以及信号处理模块7相连。通信协议栈模块5负责把主天线接受到的通信信号,解析成普通的数字语音信号,并传递给信号处理模块7。在一个实施例中,要求通信协议栈模块5符合3GPP的标准才能和基站进行通信,它一般包含具有快速计算能力的硬件DSP,以及一个软件协议栈,通过软硬件的配合可以把收到的信号进行实时解析并传递,现代手机一般都会使用专门的片上系统SOC 芯片来实现这个通信协议栈的功能,这类Soc的供应商有很多,比如Mediatek, 高通公司等等。
信号处理模块7,与通信协议栈模块5、网络协议栈模块6以及选择单元44相连,用于在选择单元44选择互联网呼叫时与网络协议栈模块6通信,或,在选择单元44选择移动通信网络呼叫时与通信协议栈模块5通信。信号处理模块7是一个软件模块也可以是一个硬件模块,它负责把数字信号处理变成可被喇叭接受的语音信号,反过来,也把语音信号变成数字信号,该模块会使用到各种信号处理算法,比如降噪处理,加密解密处理等等,这些处理可以通过专有的程序由计算芯片计算完成,也可以通过专有的硬件计算芯片运算完成。信号处理模块7不仅可以把原始语音信号传递给原来的通信协议栈模块5传送,也可以把信号传递给网络协议栈模块6传送,中央处理模块4根据算法自动决定了信号该经过通信协议栈模块5还是该经过网络协议模块6进行传送。
中央处理模块4协调控制整个语音通信过程,比如负责有新信号到来时,对信号进行响应,有来电时通知用户响应,打开信号通道(接听电话),把通信协议栈模块5的信号或网络协议栈模块6的信号有序传递到信号处理模块7中并控制信号等等,还负责通知通信协议栈模块5或网络协议栈模块6建立新的呼叫链路(呼出电话),并在通道接通后把信号处理模块7的信号导入通信协议栈模块5或网络协议栈模块6中。中央处理模块4是通过设置于其内的各个单元来实现其协调控制语音通信的功能。
各个单元的具体作用如下:
第一判断单元41,用于在向被叫方发起呼叫时判断是否连接上互联网,具体地,根据调用函数返回的结果来判断是否通过网络协议栈模块6连接上互联网,若调用函数返回的结果是0,则判断为没有通过网络协议栈模块6连接上互联网;若调用函数返回的结果是1,则判断为通过网络协议栈模块6连接上互联网。第一判断单元可以通过调用专门的API函数,用来检测当前的网络连接状态,不同的系统软件有不同的API函数命名,比如有些软件系统调用IsConnected()函数返回网络的状态,若调用函数返回的结果是0,则判断为没有通过网络协议栈模块6连接上互联网,之后,选择移动通信网络并通过通信协议栈模块6向被叫方发起呼叫;若调用函数返回的结果是1,则判断为通过网络协议栈模块6连接上互联网。第一判断单元41通过调用函数可以非常方便地判断出网络协议栈模块6是否可以工作。
在判断为通过网络协议栈模块6连接上互联网之前,也可以在之后,登录单元42利用呼叫方的移动终端号码作为帐号通过网络协议栈模块6登录互联网服务器,当然也可以使用移动终端预设的其他号码作为帐号通过网络协议栈模块6登录互联网服务器,若登录上互联网服务器,则记录为在线状态,否则记录为不在线状态,并在记录为不在线状态之后重新登录互联网服务器。
具体地,登录单元42基于TCP/IP 协议,利用网络协议栈模块6来实现登录,比如使用普通网站的登录方式,先通过网络协议模块6传递移动终端号码,然后等待互联网服务器响应,如果响应成功,那么就说明成功登录或者成功在线,移动终端把自己的在线状态记录到在线状态变量中,同时互联网服务器也会把成功登录的信息记录在自己的数据库中。如果互联网服务器没有响应或者响应错误的移动终端号码,那么就说明登录失败或者掉线,同样,移动终端把该状态也会被记录到在线状态变量中。当移动终端和互联网服务器连接后,该连接被一直保持,由于使用的是TCP/IP协议,该协议允许通信双方时刻保持连接,通信双方任何一方连接丢失,都可以被另外一方(互联网服务器或者移动终端)察觉到,如果连接丢失比如因为通信故障或者某一方掉电,那么另外一方就要做出合适的响应。比如互联网服务器发现连接断开,那么应该在自己的数据库中记录该移动终端号码不在线,如果移动终端发现连接断开,那么移动终端应该首先修改自己的在线状态变量为不在线,然后尝试重新连接互联网服务器,直到连接成功后,才把在线状态变量修改为在线。
第二判断单元43,用于在判断为连接上互联网时,判断呼叫方和被叫方是否均已登录互联网服务器,具体地,通过网络协议栈模块6返回的在远程服务器中记录的在线状态来判断呼叫方和被叫方是否均已登录互联网服务器,若通过网络协议栈模块6返回的是呼叫方和被叫方均在线的结果,则判断为呼叫方和被叫方均已登录互联网服务器;若通过网络协议栈模块6返回的是呼叫方和被叫方均不在线的结果,则判断为呼叫方和被叫方并非均已登录互联网服务器。
其中,被叫方利用其移动终端号码作为帐号并通过网络协议栈模块6登录互联网服务器,若登录上互联网服务器,则记录为在线状态,否则记录为不在线状态,并在记录为不在线状态之后重新登录互联网服务器。判断被叫方是否登录互联网服务器的方法或者规范可以自由设计,比如通过网络协议栈模块6发送被叫方电话号码给互联网服务器,互联网服务器收到该电话号码后开始本地数据库查询,检查该号码是否已经被记录为在线,如果在线则通过网络协议栈模块6返回呼叫方“被叫方在线”的信号,否则,通过网络协议栈模块6返回呼叫方“被叫方不在线”的信号。
选择单元44,用于在所述判断为是时,则选择互联网呼叫被叫方,否则,选择移动通信网络呼叫被叫方。比如,在第二判断单元43判断为呼叫方和被叫方均已登录上互联网服务器之后,选择单元44选择互联网并通网络协议栈模块6呼叫被叫方;在第二判断单元43判断为呼叫方和被叫方并非均已登录上互联网服务器之后,选择单元44选择移动通信网络并通过通信协议栈呼叫被叫方。
请参见图4,本发明实施例提供的另一种移动终端示意图,包括:
判断模块81,用于在接收到呼叫时判断所述呼叫是否来自互联网;
移动终端会时刻通过网络协议栈检查自己是否已经连接互联网,如果连接上互联网便会登录互联网服务器标识自己的在线状态,这个状态会被互联网服务器的数据库记录,也会记录在本地的在线状态变量中。如果自己在线,呼叫方通过互联网发起呼叫,那么该呼叫信号通过互联网传递到自己的天线中,再传递到网络协议栈中,被解析成呼叫信号;如果自己没有在线,那么通信协议栈会接收到呼叫信号,经主天线传递给通信协议栈,被解析成呼叫信号,移动终端通过判断呼叫信号是被网络协议栈解析还是被通信协议栈解析来判断呼叫是否来自互联网。
选择模块82,用于在所述判断为是时,则选择互联网进行语音通信,否则选择移动通信网络进行语音通信;
当判断出呼叫来自互联网,则在移动终端的屏幕上提示用户有新来电,并启动基于互联网协议语音(Voice over Internet Protocol ,VoIP)技术的互联网程序响应该呼叫;当判断出呼叫不是来自互联网,则在移动终端的屏幕上提示用户有新来电,并启动正常的基于2G/3G的移动通信网络程序响应该呼叫。
以上所述仅为本发明的实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。
本发明的实施方式
工业实用性
序列表自由内容

Claims (18)

  1. 一种语音通信中的呼叫方法,其中所述方法包括:
    在向被叫方发起呼叫时判断呼叫方是否连接上互联网;
    若所述呼叫方已连接上互联网,则利用呼叫方的账号登录互联网服务器,并判断呼叫方和被叫方是否均已登录互联网服务器;
    若呼叫方和被叫方均已登录互联网服务器,则选择互联网呼叫被叫方,若呼叫方和被叫方中的至少一者未登录互联网服务器,选择移动通信网络呼叫被叫方。
  2. 如权利要求1所述的语音通信中的呼叫方法,其中利用呼叫方的账号登录互联网服务器时,该呼叫方的账号为所述呼叫方的移动终端号码。
  3. 如权利要求1所述的语音通信中的呼叫方法,其中利用呼叫方的帐号登录互联网服务器的步骤具体包括:
    利用呼叫方的帐号通过网络协议栈登录互联网服务器,若登录上互联网服务器,则记录为在线状态,否则记录为不在线状态。
  4. 如权利要求3所述的语音通信中的呼叫方法,其中所述判断呼叫方和被叫方是否均已登录互联网服务器的步骤包括:
    通过网络协议栈返回的在互联网服务器中记录的在线状态来判断呼叫方和被叫方是否均已登录互联网服务器,网络协议栈返回的是呼叫方和被叫方均在线的结果,则判断为呼叫方和被叫方均已登录上互联网服务器;若网络协议栈返回的是呼叫方或被叫方不在线的结果,则判断为呼叫方和被叫方并非均已登录上互联网服务器。
  5. 如权利要求4所述的语音通信中的呼叫方法,其中判断被叫方是否登录上互联网服务器的步骤具体包括:
    通过网络协议栈发送被叫方电话号码给互联网服务器,互联网服务器收到该电话号码后开始本地数据库查询,检查该号码是否已经被记录为在线。
  6. 如权利要求1所述的语音通信中的呼叫方法,其中所述在向被叫方发起呼叫时判断呼叫方是否连接上互联网的步骤具体包括:
    根据调用函数返回的结果来判断是否通过网络协议栈连接上互联网,若调用函数返回的结果是0,则判断为没有通过网络协议栈连接上互联网;若调用函数返回的结果是1,则判断为通过网络协议栈连接上互联网。
  7. 一种语音通信中的呼叫方法,其中所述方法包括:
    在向被叫方发起呼叫时判断是否连接上互联网;
    若所述判断为是,则判断呼叫方和被叫方是否均已登录互联网服务器;
    若所述判断为是,则选择互联网呼叫被叫方,否则,选择移动通信网络呼叫被叫方。
  8. 如权利要求7所述的语音通信中的呼叫方法,其中在所述判断呼叫方和被叫方是否均已登录互联网服务器的步骤之前,包括:
    利用呼叫方的移动终端号码作为帐号并通过网络协议栈登录互联网服务器,若登录上互联网服务器,则记录为在线状态,否则记录为不在线状态。
  9. 如权利要求8所述的语音通信中的呼叫方法,其中所述判断呼叫方和被叫方是否均已登录互联网服务器的步骤包括:
    通过网络协议栈返回的在互联网服务器中记录的在线状态来判断呼叫方和被叫方是否均已登录互联网服务器,网络协议栈返回的是呼叫方和被叫方均在线的结果,则判断为呼叫方和被叫方均已登录上互联网服务器;若网络协议栈返回的是呼叫方或被叫方不在线的结果,则判断为呼叫方和被叫方并非均已登录上互联网服务器。
  10. 如权利要求9所述的语音通信中的呼叫方法,其中判断被叫方是否登录上互联网服务器的步骤具体包括:
    通过网络协议栈发送被叫方电话号码给互联网服务器,互联网服务器收到该电话号码后开始本地数据库查询,检查该号码是否已经被记录为在线。
  11. 如权利要求7所述的语音通信中的呼叫方法,其中所述在向被叫方发起呼叫时判断是否连接上互联网的步骤包括:
    根据调用函数返回的结果来判断是否通过网络协议栈连接上互联网,若调用函数返回的结果是0,则判断为没有通过网络协议栈连接上互联网;若调用函数返回的结果是1,则判断为通过网络协议栈连接上互联网。
  12. 一种移动终端,其中所述移动终端包括:
    第一判断单元,用于在向被叫方发起呼叫时判断是否连接上互联网;
    第二判断单元,用于在判断为连接上互联网时,判断呼叫方和被叫方是否均已登录互联网服务器;
    选择单元,用于在判断呼叫方和被叫方均已登录互联网服务器时,则选择互联网呼叫被叫方,否则,选择移动通信网络呼叫被叫方。
  13. 如权利要求12所述的移动终端,其中所述移动终端包括:
    登录单元,用于在判断呼叫方和被叫方是否均已登录互联网服务器之前,利用呼叫方的移动终端号码作为帐号并通过网络协议栈登录互联网服务器,若登录上互联网服务器,则记录为在线状态,否则记录为不在线状态。
  14. 如权利要求13所述的移动终端,其中:
    所述移动终端包括网络协议栈模块、通信协议栈模块以及信号处理模块;
    所述网络协议栈模块,与所述第一判断单元、第二判断单元、登录单元、选择单元以及信号处理模块相连;
    所述通信协议栈模块,与所述选择单元以及信号处理模块相连;
    所述信号处理模块,与所述网络协议栈模块、通信协议栈模块以及选择单元相连,用于在所述选择单元选择互联网呼叫时与网络协议栈模块一起实现呼叫被叫方的功能,或,在所述选择单元选择移动通信网络呼叫时与通信协议栈模块一起实现呼叫被叫方的功能;
    其中,所述第一判断单元、第二判断单元、选择单元以及登录单元设置于一中央处理模块内。
  15. 如权利要求14所述的移动终端,其中所述移动终端包括:
    第二判断单元,具体用于在判断呼叫方和被叫方是否均已登录互联网服务器时,通过网络协议栈模块返回的在远程服务器中记录的在线状态来判断呼叫方和被叫方是否均已登录互联网服务器,若通过网络协议栈模块返回的是呼叫方和被叫方均在线的结果,则判断为呼叫方和被叫方均已登录互联网服务器;若通过网络协议栈模块返回的是呼叫方和被叫方均不在线的结果,则判断为呼叫方和被叫方并非均已登录互联网服务器。
  16. 如权利要求15所述的移动终端,其中所述第二判断单元,还用于通过网络协议栈发送被叫方电话号码给互联网服务器,互联网服务器收到该电话号码后开始本地数据库查询,检查该号码是否已经被记录为在线。
  17. 如权利要求14所述的移动终端,其中:
    第一判断单元,具体用于在向被叫方发起呼叫时判断是否连接上互联网时,根据调用函数返回的结果来判断是否通过网络协议栈模块连接上互联网,若调用函数返回的结果是0,则判断为没有通过网络协议栈模块连接上互联网;若调用函数返回的结果是1,则判断为通过网络协议栈模块连接上互联网。
  18. 一种移动终端,其中所述移动终端包括:
    判断模块,用于在接收到呼叫时判断所述呼叫是否来自互联网;
    选择模块,用于在所述判断为是时,则选择互联网进行语音通信,否则选择移动通信网络进行语音通信。
PCT/CN2012/078841 2011-09-16 2012-07-19 语音通信中的呼叫方法及移动终端 WO2013037244A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110276753.1A CN102355713B (zh) 2011-09-16 2011-09-16 语音通信中的呼叫方法及移动终端
CN201110276753.1 2011-09-16

Publications (1)

Publication Number Publication Date
WO2013037244A1 true WO2013037244A1 (zh) 2013-03-21

Family

ID=45579188

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/078841 WO2013037244A1 (zh) 2011-09-16 2012-07-19 语音通信中的呼叫方法及移动终端

Country Status (2)

Country Link
CN (1) CN102355713B (zh)
WO (1) WO2013037244A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102355713B (zh) * 2011-09-16 2015-12-02 惠州Tcl移动通信有限公司 语音通信中的呼叫方法及移动终端
CN102378131A (zh) * 2011-10-08 2012-03-14 惠州Tcl移动通信有限公司 语音通信中的呼叫方法及移动终端
CN103209462A (zh) * 2013-03-12 2013-07-17 深圳创维数字技术股份有限公司 一种移动通信方法、移动通信服务器以及系统
CN108449238A (zh) * 2018-06-11 2018-08-24 西安万像电子科技有限公司 通信方法及通信系统
CN111030965A (zh) * 2018-10-09 2020-04-17 青岛海信移动通信技术股份有限公司 加密数据的发送方法、接收方法以及移动终端

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1658636A (zh) * 2005-03-25 2005-08-24 北京北方烽火科技有限公司 实现3g网络与互联网交互的即时语音通信方法
CN101282374A (zh) * 2008-05-07 2008-10-08 裴亚军 网络电话与固定电话一体机
CN101365020A (zh) * 2007-08-08 2009-02-11 朗讯科技公司 将电话呼叫转为互联网呼叫的方法、调制解调器及服务器
CN102355713A (zh) * 2011-09-16 2012-02-15 惠州Tcl移动通信有限公司 语音通信中的呼叫方法及移动终端

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594585A (zh) * 2008-05-30 2009-12-02 鸿富锦精密工业(深圳)有限公司 寻找最省钱通话方式的系统及方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1658636A (zh) * 2005-03-25 2005-08-24 北京北方烽火科技有限公司 实现3g网络与互联网交互的即时语音通信方法
CN101365020A (zh) * 2007-08-08 2009-02-11 朗讯科技公司 将电话呼叫转为互联网呼叫的方法、调制解调器及服务器
CN101282374A (zh) * 2008-05-07 2008-10-08 裴亚军 网络电话与固定电话一体机
CN102355713A (zh) * 2011-09-16 2012-02-15 惠州Tcl移动通信有限公司 语音通信中的呼叫方法及移动终端

Also Published As

Publication number Publication date
CN102355713A (zh) 2012-02-15
CN102355713B (zh) 2015-12-02

Similar Documents

Publication Publication Date Title
US9602553B2 (en) Method, apparatus, and system for implementing VOIP call in cloud computing environment
CA2343066A1 (en) System and method for enabling secure connections for h.323 voip calls
WO2013037244A1 (zh) 语音通信中的呼叫方法及移动终端
CN112953925B (zh) 基于sip协议和rtc网络实时音视频通信系统及方法
CN102378131A (zh) 语音通信中的呼叫方法及移动终端
CN110740429A (zh) 一种移动通信方法、装置及设备
EP3451631A1 (en) Webrtc communication method and user equipment
CN106658450B (zh) 一种远程异构网络移动实时通讯方法
US8755780B2 (en) Apparatus, and associated method, for reconnecting dropped call
KR101080383B1 (ko) 브이오아이피 호설정 방법 및 이를 수행하는 브이오아이피 통신 시스템
US10750027B1 (en) Call control in telephony-capable communications networks
CN110505356B (zh) 通话建立方法和通话建立系统
CA2802350C (en) Apparatus, and associated method, for reconnecting dropped call
JP4796924B2 (ja) ボタン電話システム
JP5233714B2 (ja) 通信メディア変換システム、方法及びプログラム
CN111901345B (zh) 语音通话的实现方法、装置、设备及存储介质
KR100442436B1 (ko) 인터넷 전화망에서 ivr 서비스를 이용한 사용자 인증방법
CN110418346B (zh) 通话建立方法和通话建立系统
CN112468468B (zh) 基于ip的语音传输方法、装置、电子设备及存储介质
KR101382133B1 (ko) 아이피통화로의 통화방식 변환방법과 이를 위한 아이피통화 장치 및 아이피통화 시스템
KR100493100B1 (ko) 이동통신 시스템에서 인터넷기반 음성서비스 제공 장치 및방법
TWI617174B (zh) 網路電話系統
CN105516123A (zh) 网络电话与电话网电话通信的方法及落地电话业务服务器
TW566022B (en) Network real-time dialog service system and method thereof to implement network dialog
TWI520562B (zh) 電話通訊方法

Legal Events

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

Ref document number: 12832054

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12832054

Country of ref document: EP

Kind code of ref document: A1