WO2017185381A1 - 一种通话切换方法、终端设备及存储介质 - Google Patents

一种通话切换方法、终端设备及存储介质 Download PDF

Info

Publication number
WO2017185381A1
WO2017185381A1 PCT/CN2016/080843 CN2016080843W WO2017185381A1 WO 2017185381 A1 WO2017185381 A1 WO 2017185381A1 CN 2016080843 W CN2016080843 W CN 2016080843W WO 2017185381 A1 WO2017185381 A1 WO 2017185381A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
type
communication network
account
network
Prior art date
Application number
PCT/CN2016/080843
Other languages
English (en)
French (fr)
Inventor
王再尚
陈磊
苏俊峰
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201680018195.XA priority Critical patent/CN107852656B/zh
Priority to US16/097,159 priority patent/US10819850B2/en
Priority to EP16899892.0A priority patent/EP3442272B1/en
Priority to PCT/CN2016/080843 priority patent/WO2017185381A1/zh
Publication of WO2017185381A1 publication Critical patent/WO2017185381A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/42Systems providing special services or facilities to subscribers
    • H04M3/42365Presence services providing information on the willingness to communicate or the ability to communicate in terms of media capability or network connectivity
    • H04M3/42374Presence services providing information on the willingness to communicate or the ability to communicate in terms of media capability or network connectivity where the information is provided to a monitoring entity such as a potential calling party or a call processing server
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • H04W36/0022Control or signalling for completing the hand-off for data sessions of end-to-end connection for transferring data sessions between adjacent core network technologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • H04W36/0022Control or signalling for completing the hand-off for data sessions of end-to-end connection for transferring data sessions between adjacent core network technologies
    • H04W36/00224Control or signalling for completing the hand-off for data sessions of end-to-end connection for transferring data sessions between adjacent core network technologies between packet switched [PS] and circuit switched [CS] network technologies, e.g. circuit switched fallback [CSFB]
    • 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/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2207/00Type of exchange or network, i.e. telephonic medium, in which the telephonic communication takes place
    • H04M2207/18Type of exchange or network, i.e. telephonic medium, in which the telephonic communication takes place wireless networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/42Systems providing special services or facilities to subscribers
    • H04M3/42025Calling or Called party identification service
    • H04M3/42034Calling party identification service
    • H04M3/42059Making use of the calling party identifier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/42Systems providing special services or facilities to subscribers
    • H04M3/42025Calling or Called party identification service
    • H04M3/42085Called party identification service
    • H04M3/42102Making use of the called party identifier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a call switching method, a terminal device, and a storage medium.
  • the voice call is usually bound to the Subscriber Identity Module (SIM) card, and the voice call service is provided by the operator.
  • SIM Subscriber Identity Module
  • the call process uses a specific network.
  • GSM Global System for Mobile Communication
  • CDMA Code Division Multiple Access
  • the traditional voice call technology is called Circuit Switched (CS: Domain) voice.
  • WiFi wireless local area network
  • VoIP Voice over LTE
  • IMS IP Multimedia Subsystem
  • the user can select one of the call networks to make a call, so the user can have more choices.
  • the embodiment of the invention provides a call switching method, a terminal device and a storage medium, which are used to solve In the prior art, the technical problem of the call network selection caused by the user manually selecting the call network is not flexible enough.
  • an embodiment of the present invention provides a call handover method, including:
  • the first terminal device detects whether the first terminal device and the second terminal device are in the first type of communication network at the same time; when the first terminal device detects the first terminal device and the second terminal device When in the first type of communication network, the first terminal device initiates a second call request to the second terminal device by using the first type of communication network; wherein the first type of communication network It is different from the second type of communication network.
  • the method in the embodiment of the present invention automatically determines the network type of the communication network to which the two parties are connected by using the terminal device, and then automatically selects the call network. Compared with the manually selected call network in the prior art, the method in the embodiment of the present invention has More flexible technical effects.
  • the first terminal device when the first terminal device detects that the first terminal device and the second terminal device are not in the first type at the same time In the communication network, the first terminal device initiates a third call request to the second terminal device by using the second type of communication network. In this way, it can be ensured that the first terminal device can communicate with the second terminal device without waiting for the first terminal device and the second terminal device to be in communication with the first type of communication network at the same time.
  • the first terminal device when the first terminal device detects the first terminal device and the When the second terminal device is in the first type of communication network, the first terminal rejects the first call request.
  • communication can be performed using only one type of communication network, and another type of communication network can be rejected, which can save power of the terminal device.
  • the first terminal device Abandoning the first terminal device and the second terminal device to send through a second type of communication network Before the first call request, the method further includes: the first terminal device determining that a signal quality of the first type of communication network satisfies a preset condition. Through this method, the quality of the call can be guaranteed to a large extent.
  • the first terminal device detects the first Whether the terminal device and the second terminal device are in the communication network of the first type at the same time, the first terminal device receives the second prompt information sent by the second terminal, and the second prompt information includes the second The network type of the communication network to which the terminal device is currently connected; the first terminal device detects the first terminal device and the device according to the network type of the communication network to which the first terminal device is currently connected and the second prompt information. Whether the second terminal device is in the first type of communication network at the same time. Through the method, the first terminal device can quickly determine whether the first terminal device and the second terminal device are simultaneously in the first type of communication network. Further, it can be ensured that the method in the first aspect can be performed normally when the first terminal device is not connected to the server.
  • the first terminal device detects the first Whether the terminal device and the second terminal device are in the first type of communication network at the same time, the first terminal device receiving the third prompt information sent by the second terminal device, where the third prompt information is used to represent the Whether the first terminal device and the second terminal device are in the first type of communication network at the same time; the first terminal device determines the first terminal device and the second terminal device according to the third prompt information Whether it is in the first type of communication network at the same time.
  • the first terminal device can directly obtain the detection result, so that it can be determined more quickly whether the first terminal device and the second terminal device are simultaneously in the first type of communication network. Further, it can be ensured that the method in the first aspect can be performed normally when the first terminal device is not connected to the server.
  • an embodiment of the present invention provides a call handover method, including:
  • the first terminal device Receiving, by the first terminal device, the first call request initiated by the second terminal device by the second type of communication network or the first terminal device detecting the input operation initiated by the user to initiate a call request to the second terminal device; the first terminal The device detects that the first terminal device and the second terminal device are Is not in the first type of communication network at the same time; when the first terminal device and the second terminal device are simultaneously in the first type of communication network, the first terminal device abandons the first call request, The first terminal device sends the first prompt information to the second terminal device, where the first prompt information is used to indicate that the first terminal device and the second terminal device are simultaneously in the first type Communication network; the first type of communication network is different from the second type of communication network.
  • the first terminal device automatically detects the network condition of the devices at both ends of the call, and sends the prompt information that can be switched to the peer terminal device, so that the peer terminal device can directly perform the call network based on the prompt.
  • the switching eliminates the step of detecting the network by the peer terminal device, which saves the switching time.
  • the first terminal device detects whether the first terminal device and the second terminal device are in the first type of communication network at the same time, and the first terminal device determines the first a terminal device is in the first type of communication network; the first terminal device sends a query request to the server, where the query request is used to query a network type of the communication network to which the second terminal device is currently connected; Recording, in the server, a network type of a communication network to which the second terminal device is currently connected; the first terminal device receiving a query result sent by the server; the query result includes a current location of the second terminal device The network type of the connected communication network; the first terminal device detects, according to the query result, whether the first terminal device and the second terminal device are simultaneously in the first type of communication network. Through this method, the network type of the communication network to which the second terminal device is currently connected can be accurately obtained.
  • the method further includes: the first terminal device determining the first type of Whether the signal quality of the communication network satisfies a preset condition; when the signal quality of the first type of communication network does not satisfy the preset condition, the first terminal device passes the second type of communication network to the The second terminal device initiates a voice call request; after the voice call request is answered, the first terminal device sends and receives audio data of the video call through the second type of communication network; One type of communication network to send and receive Image data of the video call.
  • the method in the embodiment of the present invention automatically determines the signal quality of the current video call network, and then establishes a voice call, and separates the audio data and the image data of the video call on two networks for transmission to ensure the communication quality of the video call.
  • the method further includes: determining, by the first terminal device, whether a signal quality of the first type of communication network meets the preset condition; When the signal quality of the first type of communication network satisfies the preset condition, the first terminal device cancels a voice call over the second type of communication network, and passes the first type of communication
  • the network transmits and receives audio data and image data of the video call.
  • the solution saves the tariff and saves power by detecting the signal quality of the video call network and then transmitting the audio data and image data originally transmitted on the two networks through the video call network and hanging up the voice call.
  • an embodiment of the present invention provides a call handover method, including:
  • the first terminal device determines whether the signal quality of the first type of communication network satisfies a preset condition; When the signal quality of a type of communication network does not satisfy the preset condition, the first terminal device initiates a voice call request to the second terminal device through the second type of communication network; and the voice call request is answered Thereafter, the first terminal device transmits and receives audio data of the video call through the second type of communication network; and transmits and receives image data of the video call through the first type of communication network; The first type of communication network is different from the second type of communication network.
  • the method in the embodiment of the present invention automatically determines the signal quality of the current video call network, and then establishes a voice call, and separates the audio data and the image data of the video call on two networks for transmission to ensure the communication quality of the video call.
  • the method further includes: determining, by the first terminal device, the first type of communication network Whether the signal quality satisfies the preset condition; when the signal quality of the first type of communication network satisfies the preset condition, the first terminal device cancels the second type a voice call initiated by the communication network, and transmitting and receiving audio data and image data of the video call through the first type of communication network.
  • the solution saves the tariff and saves power by detecting the signal quality of the video call network and then transmitting the audio data and image data originally transmitted on the two networks through the video call network and hanging up the voice call.
  • an embodiment of the present invention provides a call handover method, including:
  • the first terminal device When the first terminal device and the second terminal device perform a voice call through the second type of communication network, the first terminal device establishes a video call with the second terminal device by using the first type of communication network; the first terminal device Determining whether a signal quality of the first type of communication network meets a preset condition; when the signal quality of the first type of communication network does not satisfy the preset condition, the first terminal device passes the second a type of communication network transmitting and receiving audio data of the video call; and transmitting and receiving image data of the video call over the first type of communication network; wherein the first type of communication network and the first The two types of communication networks are different.
  • the method further includes:
  • the first terminal device Determining, by the first terminal device, whether a signal quality of the first type of communication network satisfies the preset condition; when the signal quality of the first type of communication network satisfies the preset condition, the first The terminal device cancels the voice call initiated by the second type of communication network, and transmits and receives audio data and image data of the video call through the first type of communication network.
  • a fifth aspect of the present invention provides a terminal device, including: a wireless communication module, a user input module, a processor, and a memory;
  • the wireless communication module is configured to support the terminal device to communicate with other terminal devices on different types of communication networks; and the user input module is configured to detect an input operation initiated by the user to initiate a call request to the second terminal device.
  • the memory is configured to store an instruction; the processor is configured to invoke the instruction to: when the user input module detects the input operation, or when the terminal device receives the second terminal device When the first call request initiated by the second type of communication network is detected, detecting whether the terminal device and the second terminal device are in the first class at the same time a communication network; and when detecting that the terminal device and the second terminal device are simultaneously in the first type of communication network, initiating the second terminal device by using the first type of communication network Two call requests; wherein the first type of communication network is different from the second type of communication network.
  • the processor invokes an instruction stored in the memory to implement the solution in the method design of the first aspect, and the implementation of the problem and the beneficial effects of the terminal device may be referred to the first aspect and the first aspect.
  • the possible implementations and the beneficial effects, therefore, the implementation of the terminal device can refer to the implementation of the method, and the repeated description is not repeated.
  • an embodiment of the present invention provides a terminal device, including: a wireless communication module, a user input module, a processor, and a memory;
  • the wireless communication module is configured to support the terminal device to communicate with other terminal devices on different types of communication networks; and the user input module is configured to detect an input operation initiated by the user to initiate a call request to the second terminal device.
  • the memory is for storing instructions; the processor is configured to invoke the instructions to: when the user input module detects the input operation, or when receiving a second terminal device through a second type of communication network When the first call request is initiated, detecting whether the terminal device and the second terminal device are simultaneously in the first type of communication network; and detecting that the terminal device and the second terminal device are simultaneously in the first type
  • the first prompt information is sent to the second terminal device by the wireless communication module, wherein the first prompt information is used to indicate that the terminal device and the second terminal device are simultaneously in the A first type of communication network; the first type of communication network being different from the second type of communication network.
  • the processor calls an instruction stored in the memory to implement the solution in the method design of the second aspect, and the implementation of the problem and the beneficial effects of the terminal device can be referred to the second aspect and the second aspect.
  • the possible implementations and the beneficial effects, therefore, the implementation of the terminal device can refer to the implementation of the method, and the repeated description is not repeated.
  • a seventh aspect of the present invention provides a terminal device, including: a wireless communication module, a processor, a memory, and an audio and video input module;
  • the wireless communication module is configured to support the terminal device to communicate with other terminal devices on different types of communication networks;
  • the memory is configured to store instructions;
  • the processor is configured to invoke the instructions to implement: When the terminal device and the second terminal device perform a video call through the first type of communication network, determine whether the signal quality of the first type of communication network satisfies a preset condition; and the signal quality of the first type of communication network is not
  • the preset condition is met
  • the first terminal device initiates a voice call request to the second terminal device through a second type of communication network; after the voice call request is answered, passes the second type of Transmitting and receiving audio data of the video call; and transmitting and receiving image data of the video call through the first type of communication network; wherein the first type of communication network and the second type The communication network is different;
  • the audio and video input module is configured to acquire the audio data and the image data.
  • the processor invokes an instruction stored in the memory to implement the solution in the method design of the foregoing third aspect.
  • the implementation manner and the beneficial effects of the terminal device to solve the problem refer to the foregoing third and third aspects.
  • the possible implementations and the beneficial effects therefore, the implementation of the terminal device can refer to the implementation of the method, and the repeated description is not repeated.
  • an embodiment of the present invention provides a terminal device, including: a wireless communication module, a processor, a memory, and an audio and video input module;
  • the wireless communication module is configured to support the terminal device to communicate with other terminal devices on different types of communication networks;
  • the memory is configured to store instructions;
  • the processor is configured to invoke the instructions to implement: When the terminal device and the second terminal device perform a voice call through the second type of communication network, establish a video call with the second terminal device through the first type of communication network; and determine whether the signal quality of the first type of communication network is Satisfying a preset condition; transmitting, and receiving audio data of the video call by the second type of communication network when the signal quality of the first type of communication network does not satisfy the preset condition;
  • the first type of communication network transmits and receives image data of the video call; wherein the first type of communication network is different from the second type of communication network;
  • the audio and video input module is configured to acquire the Audio data and the video data.
  • the processor invokes an instruction stored in the memory to implement the solution in the method design of the fourth aspect, and the implementation of the problem and the beneficial effects of the terminal device can be referred to the fourth aspect and the fourth aspect.
  • the possible implementations and the beneficial effects, therefore, the implementation of the terminal device can refer to the implementation of the method, and the repeated description is not repeated.
  • a ninth aspect the embodiment of the present invention provides a terminal device, where the terminal device includes a function module for implementing the method in any one of the first to fourth aspects.
  • the implementation of the method in any of the possible implementations of the first to fourth aspects and the beneficial effects thereof may be referred to due to the principle and the beneficial effects of the device.
  • the implementation of the device reference may be made to the implementation of the method in any of the possible implementations of the first aspect to the fourth aspect, and the repeated description is not repeated.
  • an embodiment of the present invention provides a non-volatile computer storage medium, where the non-volatile computer storage medium stores program code, where the program code includes the first aspect to the fourth aspect.
  • FIG. 1 is a structural diagram of a terminal device according to an embodiment of the present disclosure
  • FIG. 2 is a flowchart of a first call handover method according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a second call handover method according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of a third call handover method according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of a fourth call handover method according to an embodiment of the present invention.
  • FIG. 6 is a functional block diagram of a first terminal device according to an embodiment of the present invention.
  • FIG. 7 is a functional block diagram of a second terminal device according to an embodiment of the present invention.
  • FIG. 8 is a functional block diagram of a third terminal device according to an embodiment of the present invention.
  • the embodiment of the invention provides a call switching method, a terminal device and a storage medium, which are used to solve In the prior art, the technical problem of the call network selection caused by the user manually selecting the call network is not flexible enough.
  • first and second are only for indicating a call between at least two terminal devices, so “first” and “second” are only Distinguishing two terminal devices does not have a specific meaning by itself.
  • the first terminal device and the second terminal device can be implemented in various forms.
  • the wireless terminal device may be a device that provides voice and/or other service data connectivity to the user, a handheld device with wireless connection function, or other processing connected to the wireless modem. device.
  • the wireless terminal device can communicate with one or more core networks via a radio access network (English: Radio Access Network; RAN), and the wireless terminal device can be a mobile terminal, such as a mobile phone (or "cellular" phone).
  • RAN Radio Access Network
  • a computer having a mobile terminal for example, can be a portable, pocket, handheld, computer built-in or in-vehicle mobile device that exchanges language and/or data with the wireless access network.
  • a wireless terminal device may also be referred to as a system, a Subscriber Unit, a Subscriber Station, a Mobile Station, a Mobile, a Remote Station, and a remote station.
  • Terminal Remote Terminal
  • Access Terminal User Terminal
  • User Agent User Agent
  • User Equipment User Equipment
  • the first terminal device and the second terminal device may be the same type of terminal device, for example, both mobile phones and terminal devices of different types.
  • the first terminal device is a mobile phone
  • the second terminal device is a tablet computer.
  • FIG. 1 is a structural diagram of a terminal device according to an embodiment of the present invention
  • FIG. 1 is a schematic structural diagram of hardware structures of a first terminal device and a second terminal device in various embodiments according to an embodiment of the present invention.
  • the terminal device includes a processor 10, an audio and video input module 20, a user input module 30, a memory 40, a wireless communication module 50, an output module 60, and an interface module 70.
  • Figure 1 shows a terminal device having various components, but it should be understood that not all illustrated components are required to be implemented. More or fewer components can be implemented instead.
  • each component may be a bus structure or other structure, such as a star structure, which is not specifically limited in the present invention.
  • the processor 10 may be a general-purpose central processing unit or an application specific integrated circuit (ASIC), and may be one or more integrated circuits for controlling program execution, and may be A hardware circuit developed using a Field Programmable Gate Array (English: Field Programmable Gate Array, FPGA for short).
  • ASIC application specific integrated circuit
  • processor 10 typically controls the overall operation of the terminal device. For example, processor 10 performs the control and processing associated with voice calls, data communications, video calls, and the like.
  • the audio and video input module 20 is configured to receive an audio or video signal.
  • the audio and video input module 30 can include a camera and a microphone.
  • the camera processes the image data of the still image or video obtained by the image capturing device in the video capturing mode or the image capturing mode.
  • the processed image frames can be displayed on a display in output module 60.
  • Image frames processed by the camera can also be stored in storage Transmitter 40 (or other storage medium) is transmitted via wireless communication module 50. Two or more cameras may be provided depending on the configuration of the terminal device.
  • the microphone can receive sound via a microphone in an operation mode such as a call mode, a recording mode, and the like, and can process such remaining as audio data.
  • the processed audio data can be converted to a format that can be transmitted via the wireless communication module in the case of a call mode.
  • the microphone can implement various types of noise cancellation (or suppression) algorithms to eliminate (or suppress) noise or interference generated during the process of receiving and transmitting audio data.
  • the user input module 30 can generate key input data in accordance with commands input by the user to control various operations of the terminal device.
  • the user input module 30 allows the user to input various types of information and may include one or more of a keyboard, a touch pad, a scroll wheel, and a joystick.
  • a touchscreen can be formed.
  • the memory 40 may store a software program or the like for processing and control operations performed by the processor 10, or may store data that has been output or is to be outputted (for example, a phone book, a message, a still image, a video, etc.).
  • the memory 40 can also store data regarding various modes of vibration and audio signals that are output when a touch is applied to the touch screen.
  • the memory 40 may include one or more of a read only memory (English: Read Only Memory, ROM for short), a random access memory (English: Random Access Memory, RAM), and a disk storage.
  • ROM Read Only Memory
  • RAM Random Access Memory
  • the number of memories 40 is one or more.
  • Wireless communication module 50 typically includes one or more components that permit radio communication between the terminal device and a wireless communication system or network.
  • the wireless communication module 50 may include a mobile communication module, a wireless internet module, a short-range communication module, and a broadcast receiving module.
  • the broadcast receiving module receives a broadcast signal and/or broadcast associated information from an external broadcast management server via a broadcast channel.
  • the broadcast associated information may also be provided via a mobile communication network, and in this case, the broadcast associated information may be received via the mobile communication module.
  • the mobile communication module transmits the radio signal to and/or receives a radio signal from at least one of the base station, the external terminal, and the server.
  • radio signals may include voice call signals, video call signals, or various types of data transmitted and/or received in accordance with text and/or multimedia messages.
  • the base station mentioned in this document may be a base station in GSM or CDMA (Base Transceiver Station; BTS for short) or a Wideband Code Division Multiple Access (WCDMA).
  • the base station (English: NodeB; NB for short) may also be an evolved base station (English: Evolutional Node B; eNB or eNodeB) in LTE, or a relay station or an access point, or a base station in a future 5G network.
  • the wireless internet module supports wireless internet access for mobile terminals.
  • the module can be internally or externally coupled to the terminal device.
  • the wireless Internet access technologies involved in the module may include Wireless Local Area Networks (WLAN), Wireless Broadband, and Worldwide Wireless Interconnect (Wimax).
  • the short-range communication module is a module for supporting short-range communication.
  • Some examples of short-range communication technologies include Bluetooth, radio frequency, infrared, ultra-wideband, and the like.
  • Output module 60 can include a display and an audio output unit.
  • the display can display information processed in the terminal device. For example, when the terminal device is in the call mode, the display may display a user interface (English: User Interface, UI for short) or a graphical user interface related to a call or other information (eg, text messaging, multimedia file download) (English: Graphical User Interface (referred to as GUI).
  • GUI Graphical User Interface
  • the display may display the captured image and/or the received image, a UI or GUI showing the video or image and related functions, and the like.
  • the display can be used as an input device and an output device.
  • the touch screen can be used to detect touch input pressure as well as touch input position and touch input area.
  • the audio output module may convert the audio data received by the wireless communication module 50 or stored in the memory 40 into an audio signal and output as a sound when the terminal device is in a call signal receiving mode, a call mode, an example sentence mode, and the like. Further, the audio output module can provide audio output (eg, call signal reception sound, message reception sound) related to a particular function performed by the terminal device.
  • the audio output module can include a speaker, a buzzer, and the like.
  • the interface module 70 serves as an interface through which at least one external device can connect with the terminal device.
  • the external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input and output port One or more of a video input/output port and a headphone port.
  • the identification module may be stored to verify various information used by the user to use the terminal device and may include one or more of a User Identification Module (English: User Identity Module, UIM), a SIM, and a Universal SIM (USIM).
  • FIG. 2 is a flowchart of a first call handover method according to an embodiment of the present invention. Referring to FIG. 2, it is a flowchart of a call handover method according to an embodiment of the present invention. As shown in Figure 2, the method includes:
  • Step 101 When the first terminal device detects an input operation initiated by the user to initiate a call request to the second terminal device, or when the first terminal device receives the first call initiated by the second terminal device through the second type of communication network When requested, the first terminal device detects whether the first terminal device and the second terminal device are simultaneously in the first type of communication network;
  • Step 102 When the first terminal device detects that the first terminal device and the second terminal device are simultaneously in the first type of communication network, the first terminal device initiates a second call request to the second terminal device by using the first type of communication network. Wherein the first type of communication network is different from the second type of communication network.
  • the first terminal device may be a calling device, and the second terminal device is a called device.
  • the first terminal device may also be the called device, and correspondingly, the second terminal device is the calling device.
  • the method further includes: the first terminal device detecting whether there is an input operation initiated by the user to initiate a call request to the second terminal device.
  • the input operation is an input operation that needs to initiate a call request to the second terminal device through the second type of communication network.
  • the user selects the mobile phone number corresponding to the second terminal and clicks the dialing button.
  • the first terminal device can detect the dialing operation.
  • the second type of communication network such as a WiFi call interface
  • the user inputs a dialing operation, and the first terminal device can also detect the dialing operation.
  • the method further includes: the first terminal device receiving the first call request initiated by the second terminal device.
  • the second type of communication network is, for example, GSM or CDMA (also referred to as a 2G network).
  • the first call request is initiated or received by a mobile communication module corresponding to GSM or CDMA.
  • the first type of communication network is, for example, an LTE system (which may also be referred to as a 4G network) or a WiFi network.
  • the step 101 may have multiple implementation manners, where an implementation manner is: the first terminal device determines that the first terminal device is in a first type of communication network; the first terminal device sends a query request to the server, The query request is used to query a network type of a communication network to which the second terminal device is currently connected; wherein the server records the network type of the communication network to which the second terminal device is currently connected; the first terminal device receives the query sent by the server The result of the query includes the network type of the communication network to which the second terminal device is currently connected; the first terminal device detects, according to the query result, whether the first terminal device and the second terminal device are simultaneously in the first type of communication.
  • the internet is: the first terminal device determines that the first terminal device is in a first type of communication network; the first terminal device sends a query request to the server, The query request is used to query a network type of a communication network to which the second terminal device is currently connected; wherein the server records the network type of the communication network to which the second terminal device is currently connected
  • a server may be added to the existing network, and the terminal device may periodically report or report the network type of the communication network to which the first terminal device is connected when the network type of the connected communication network changes. Further, the signal quality of the network can also be reported above.
  • the server saves and updates the network type of the communication network to which each terminal device is currently connected, and further preserves the signal quality of the communication network. Therefore, the first terminal device can send a query request to the server for querying the network type of the communication network to which the second terminal device is currently connected.
  • the query request may include a device identifier of the second terminal device or an account registered by the second terminal device on the server, or may be a mobile phone number. As long as the logo, account number or mobile phone number is unique.
  • the device identifier is, for example, an International Mobile Equipment Identity (IMEI) or a Mobile Equipment Identifier (MEID).
  • IMEI International Mobile Equipment Identity
  • MEID Mobile Equipment Identifier
  • the server After receiving the query request sent by the first terminal device, the server may be configured according to the second terminal.
  • the unique identifier of the device queries the network type of the communication network to which the second terminal device is currently connected, for example, 2G, WiFi, or 4G.
  • the server sends the query result to the first terminal device.
  • the first terminal device receives the query result, and detects, according to the query result, whether the second terminal device is in the first type of communication network at the same time.
  • the first type of communication network is a WiFi network and the second type of communication network is a 2G network.
  • the communication network currently connected to the first terminal device is a 2G network and WiFi.
  • the query result indicates that the communication network currently connected by the second terminal device is a 2G network and a WiFi network, so the first terminal device can determine that the first terminal device and the second terminal device are simultaneously in the WiFi network.
  • the first terminal device receives the second prompt information sent by the second terminal device, and the second prompt information includes the second terminal.
  • the network type of the communication network to which the device is currently connected the first terminal device detects the first terminal device and the second terminal device according to the network type of the communication network to which the first terminal device is currently connected and the second prompt information. Whether it is in the first type of communication network at the same time.
  • the second terminal device may send a prompt in a browser/server mode (English: Browser/Server, abbreviated as: B/S) or a client/browser mode (English: Client/Server, referred to as C/S).
  • a prompt in a browser/server mode (English: Browser/Server, abbreviated as: B/S) or a client/browser mode (English: Client/Server, referred to as C/S).
  • Information to the first terminal device.
  • the prompt information can also be sent by other means, for example, by using a short message.
  • the second terminal device may send, when receiving the call request, prompt information including the network type of the communication network to which the first terminal device is currently connected.
  • the first terminal device for example, the prompt information includes a WiFi network, and the first terminal device further determines that the first terminal device and the second terminal device are simultaneously located according to the WiFi network in the prompt information and the WiFi currently connected to the first terminal device. WiFi.
  • the first terminal device receives the third prompt information sent by the second terminal device, and the third prompt information is used to represent the first Whether the terminal device and the second terminal device are in the first type of communication network at the same time; the first terminal device determines, according to the third prompt information, whether the first terminal device and the second terminal device are the same It is in the first type of communication network.
  • the second terminal device when the first terminal device calls the second terminal device, when detecting the call request, the second terminal device queries the server for the network type of the communication network to which the first terminal device is currently connected, and then according to the first terminal.
  • the network type of the communication network to which the device is currently connected and the network type of the communication network to which the first terminal device is currently connected determine whether the first terminal device and the second terminal device are simultaneously in the first type of communication network. For example, if the query result on the server is that the communication network currently connected to the first terminal device is a 4G network, and the communication network currently connected to the second terminal device is WiFi, the second terminal device determines that the two are not at the same time.
  • the first type of communication network is that the communication network currently connected to the first terminal device is a 4G network, and the communication network currently connected to the second terminal device is WiFi.
  • the second terminal device determines that both are in the WiFi network, that is, in the first type of communication network. Then, the second terminal device sends its own judgment result, that is, the prompt information, to the first terminal device.
  • step 102 is performed to initiate a second call to the second terminal device through the first type of communication network. request.
  • the first terminal device also discards the first terminal device and the second terminal device by using the second type of communication network.
  • the first call request initiated. Among them, the abandonment of the first call request is to reject or hang up the current call request.
  • the first terminal device when the first user dials the mobile phone number 139xxxxxxxx on the first terminal device, the first terminal device performs step 101.
  • the result of the detection in step 101 is that both the first terminal device and the second terminal device are in WiFi, the first terminal device initiates a WiFi call request.
  • the first terminal device when the first terminal device receives the call from the second terminal with the mobile phone number 139xxxxxxxx, the first terminal device performs step 101.
  • the result of the detection in step 101 is that both the first terminal device and the second terminal device are in WiFi, the first terminal device hangs up the phone and initiates a WiFi call request.
  • the call interface can be displayed on the display included in the output module 60.
  • the third call request is initiated to the second terminal by using the second type of communication network.
  • the WiFi call can be a mobile phone number or other ID. If it is a WiFi network of the operator, the communication is generally performed by the mobile phone number. If it is a non-operator WiFi network, it usually uses a different ID to indicate the identity of the user. The ID is unique in the whole network, such as the aforementioned device identification or account number. The identity ID of the user is on the network server. Both the operator and the non-operator have a heartbeat mechanism. The terminal device notifies the network server of the state of the first terminal device in the network at a certain frequency, so Accurately switch the call network without the situation where the two ends of the call are different after switching.
  • the first terminal device has a first account and a second account; and the second terminal has a third account and a fourth account.
  • the first account is associated with the second account; the third account is associated with the fourth account.
  • the first account and the third account may establish a call request through the second type of communication network.
  • the second account and the fourth account may establish a call request through the first type of communication network.
  • the first account and the second account are mobile phone numbers
  • the third account is a unique identification code of the first terminal device
  • the fourth account is a unique identification code of the second terminal device.
  • the method in the embodiment of the present invention automatically determines the network type of the communication network to which the two parties are connected by using the terminal device, and automatically selects the call network, compared with the manually selected call network in the prior art.
  • the method in the embodiments of the invention has a more flexible technical effect.
  • the user can set the first type of communication network to be a WiFi network, and the second type of communication network to be a 2G network.
  • the WiFi network has a higher call tariff, and the WiFi network is usually a free network or has a lower tariff, when detecting that the user is dialing a 2G call, it detects whether both ends of the call are in the WiFi network, and if so, switches to WiFi network, so you can flexibly switch between different call networks to achieve cost reduction.
  • the method further comprises: the first terminal device determining that the signal quality of the first type of communication network satisfies a preset condition.
  • signal quality can be characterized by a variety of parameters, such as bandwidth, data transmission rate, Signal to noise ratio, packet loss rate, signal strength. If the signal quality is bandwidth, the first terminal device determines whether the bandwidth of the first type of communication network is greater than or equal to the preset bandwidth. If the signal quality is the data transmission rate, the first terminal device determines whether the current data transmission rate is greater than or equal to a preset transmission rate, and if the signal quality is a signal to noise ratio, the first terminal device determines the current signal to noise ratio.
  • the first terminal device determines whether the current signal strength is greater than or equal to the preset signal to noise ratio. Therefore, the preset conditions will be different depending on the parameters.
  • the signal quality of the first terminal device acquiring the communication network may be different according to the type of the network, but regardless of the network, the quality of the acquired signal is well known to those skilled in the art, for example, obtaining a WiFi network.
  • the signal quality can be obtained by calculating the signal strength and bandwidth of the WiFi, so the network transmission rate can be calculated, so it will not be described here.
  • determining that the signal quality of the first type of communication network meets the preset condition comprises: determining a signal quality of the first type of communication network on the first terminal device side and/or a second terminal device side The signal quality of a type of communication network satisfies a preset condition.
  • each terminal device may report the type of the connected communication network to the server, and may also report the communication network. Signal quality, so the first terminal device can separately request the signal quality of the first type of communication network connected to the second terminal device side from the server, or the server can carry the signal quality in the detection result and send it to the first terminal device. .
  • the first terminal device When the first terminal device is used as the called device, in addition to being implemented according to the method described above, the following embodiments may also be adopted;
  • FIG. 3 is a flowchart of a second method for switching a call according to an embodiment of the present invention. Referring to FIG. 3, the method includes:
  • Step 201 The first terminal device receives a first call request initiated by the second terminal device by using the second type of communication network.
  • Step 202 The first terminal device detects whether the first terminal device and the second terminal device are in the first type of communication network at the same time;
  • Step 203 When the first terminal device and the second terminal device are simultaneously in the first type of communication network, the first terminal device discards the first call request, and sends the first prompt information to the second terminal device;
  • the first prompt information is used to indicate that the first terminal device and the second terminal device are simultaneously in the first type of communication network; the first type of communication network is different from the second type of communication network.
  • step 201 and the step 202 and the step 203 for discarding the first call request are the same as or similar to those of the foregoing description, and therefore are not described herein again.
  • the first terminal device automatically detects the network condition of the devices at both ends of the call, and sends the prompt information that can be switched to the peer terminal device, so that the peer terminal device can The call network is directly switched based on the prompt, which eliminates the step of detecting the network by the peer terminal device, and saves the switching time.
  • the first terminal device sends, to the second terminal device, prompt information for characterizing that the first terminal device and the second terminal device are simultaneously in the first type of communication network, for example, may be in a B/S mode. Or send the prompt information in C/S mode.
  • the second terminal device may directly initiate a call request on the first type of communication network.
  • step 202 may be performed.
  • step 203 may be performed.
  • the called device when the called device detects that the called device and the calling device are simultaneously in the first type of communication network, the called device actively hangs up the received call request, but may not initiate the first type actively.
  • the communication request of the communication network, but the detection result is sent to the calling device.
  • the calling device may determine whether to initiate a call request of the first type of communication network based on the detection result.
  • the method further includes: the first terminal device determines that the signal quality of the first type of communication network satisfies the preset condition.
  • the call request may be a voice call request or a video call request.
  • the first type of communication network may be a WiFi network and the second type of communication network may be a 4G network.
  • first type of communication network and the second type of communication network herein may also be future 5G networks or other networks, as long as it is a communication network that can implement voice calls or video calls, and is applicable to the present invention.
  • the method in the examples may also be future 5G networks or other networks, as long as it is a communication network that can implement voice calls or video calls, and is applicable to the present invention. The method in the examples.
  • a terminal device can automatically select or switch a voice call or a video call.
  • voice data of a video call can be selected to be transmitted on a different network or on the same network according to the signal quality of the communication network. And image data.
  • FIG. 4 is a flowchart of a third call handover method according to an embodiment of the present invention. Referring to FIG. 4, it is a flowchart of another call handover method according to an embodiment of the present invention. The method includes:
  • Step 301 When the first terminal device and the second terminal device perform a video call through the first type of communication network, the first terminal device determines whether the signal quality of the first type of communication network meets a preset condition;
  • Step 302 When the signal quality of the first type of communication network does not meet the preset condition, the first terminal device initiates a voice call request to the second terminal device by using the second type of communication network.
  • Step 303 After the voice call request is answered, the first terminal device sends and receives the audio data of the video call through the second type of communication network; and sends and receives the video call through the first type of communication network. Image data; wherein the first type of communication network is different from the second type of communication network.
  • the video call may be initiated by the first terminal device or initiated by the second terminal device.
  • the first terminal device determines whether the signal quality of the communication network of the first type meets the preset condition.
  • the specific implementation process is similar to the implementation process described in the foregoing, and therefore is not described here.
  • the first terminal device When the first type of signal quality does not satisfy the preset condition, indicating that the current communication quality of the first type of communication network is not good, the first terminal device initiates a voice call request to the second terminal device through the second type of communication network. . After the voice call request is answered, the image data of the video call can be sent and received through the first type of communication network; and the audio data of the video call is sent and received through the second type of communication network. Thereby, the purpose of separating the audio data and the image data on different networks is realized, and the call quality of the voice and the transmission quality of the image can be ensured as much as possible.
  • the first terminal device and the second terminal device are in a video call through the 4G network.
  • the audio data and the image data of the video call are transmitted through the 4G network.
  • the first terminal device detects whether the signal quality of the 4G network is good. If the result of the detection is that the signal quality of the 4G network is not very good, for example, the signal strength is weak and the transmission rate is low, the result may be that the video call is stuck. Case. Therefore, at this time, the first terminal device initiates a 2G voice call to the second terminal device, and after the second terminal device answers the voice call request, the first terminal device and the second terminal device can transmit the audio data through the 2G network. And then transfer the image data through the 4G network. In other words, video calls are implemented through two networks to ensure communication quality.
  • the method further includes: determining, by the first terminal device, whether a signal quality of the first type of communication network meets the preset condition; and performing signal quality on the first type of communication network
  • the first terminal device abandons the voice call initiated by the second type of communication network, and transmits and receives the audio data and image data of the video call through the first type of communication network.
  • the first terminal device After transmitting the audio data through the 2G network and transmitting the image through the 4G network, the first terminal device can also detect whether the signal quality of the 4G network is better in real time, and after the signal quality is improved, the 2G voice call can be hung up and continue to pass.
  • the 4G network transmits voice and images.
  • the audio data may be added to the image data, for example, the audio data and the image data are compression-encoded by a Moving Picture Experts Group (English: Moving Picture Experts Group, MPEG-4) compression coding standard, and then compressed. The subsequent audio and video data is transmitted through the 4G network.
  • MPEG-4 Moving Picture Experts Group
  • other compression coding standards can be used to add audio data to The image data, for example, H.246, Audio Video Interleaved (Audio Video Interleaved, AVI), etc., is a content that is well known to those skilled in the art, and therefore will not be described herein.
  • the above describes the process of separately separating the audio data and the image data of the video call according to the signal quality of the bearer network of the video call in the video call, and then describes a call switching when the video call is initiated during the voice call.
  • FIG. 5 is a flowchart of a fourth call handover method according to an embodiment of the present invention. Referring to FIG. 5, the method includes:
  • Step 401 When the first terminal device and the second terminal device perform a voice call through the second type of communication network, the first terminal device establishes a video call with the second terminal device by using the first type of communication network.
  • Step 402 The first terminal device determines whether the signal quality of the first type of communication network meets a preset condition.
  • Step 403 When the signal quality of the first type of communication network does not meet the preset condition, the first terminal device sends and receives the audio data of the video call through the second type of communication network; and passes the first A type of communication network transmits and receives image data of the video call; wherein the first type of communication network and the second type of communication network are different.
  • the first terminal device and the second terminal device when the first terminal device and the second terminal device perform a voice call through the second type of communication network, for example, when the voice call is performed through the 2G network, the first terminal device or the second terminal device passes the A type of communication network initiates a video call request, and after the response, a video call is established between the first terminal device and the second terminal device, for example, a video call is established through WiFi.
  • a voice call and a video call are established on the two different networks on the first terminal device and the second terminal.
  • the first terminal device may perform step 402, that is, determine whether the signal quality of the first type of communication network satisfies a preset condition. In other words, it is determined whether the signal quality of the first type of communication network is relatively good, for example, whether the signal quality of the WiFi network is good.
  • step 402 determines whether the signal quality of the first type of communication network satisfies a preset condition. In other words, it is determined whether the signal quality of the first type of communication network is relatively good, for example, whether the signal quality of the WiFi network is good.
  • the audio data of the video call is separated into the second type of communication network for transmission, and the first type of communication network only transmits the image data of the video call. can. This ensures the quality of voice and images as much as possible.
  • the audio data is transmitted through the 2G network, and the WiFi network only transmits the image data.
  • the method further includes: determining, by the first terminal device, whether the signal quality meets the preset condition; when the signal quality meets the preset condition, the first terminal The device discards the voice call on the second type of communication network and transmits and receives the audio data and image data of the video call over the first type of communication network.
  • the terminal device can also save power.
  • whether the audio data and the image data of the video call are to be separated can be determined according to the signal quality of the video call. It is transmitted on two different networks, which guarantees the quality of video calls. Further, when the signal quality of the video call is improved, the audio data and the image data can be synthesized again, and the audio data and the image data are transmitted through the network of the video call. In this way, the terminal device can be saved in the case of ensuring communication quality.
  • the embodiment of the present invention further provides a terminal device, which is configured, for example, as shown in FIG. 1 , to implement any of the call switching methods shown in FIG. 2 to FIG. 4 . Configure the terminal device according to actual needs.
  • the wireless communication module 50 is configured to support the terminal device on different types of communication networks and other terminal devices.
  • the user input module 30 is configured to detect an input operation initiated by the user to initiate a call request to the second terminal device; the memory 40 is configured to store quality, and the processor 10 is configured to invoke the instruction to implement: at the user input module 30 When the input operation is detected, or when the terminal device receives the first call request initiated by the second terminal device through the second type of communication network And detecting whether the terminal device and the second terminal device are in the first type of communication network at the same time; and when detecting that the terminal device and the second terminal device are simultaneously in the first type of communication network, The first type of communication network initiates a second call request to the second terminal device; or sends the first prompt information to the second terminal device by using the wireless communication module; wherein, the first prompt information is used by Characterizing that the first terminal device and the second terminal device are simultaneously in the first type of communication network
  • the processor 10 is further configured to invoke the instruction to: when detecting that the terminal device and the second terminal device are not simultaneously in the first type of communication network, pass the second type The communication network initiates a third call request to the second terminal device.
  • the processor 10 is further configured to invoke the instruction to: reject the first call request when detecting that the terminal device and the second terminal device are simultaneously in the first type of communication network .
  • the processor 10 is further configured to invoke the instruction to: determine the first type of communication network before initiating a second call request to the second terminal device by using the first type of communication network.
  • the signal quality meets the preset conditions.
  • the processor 10 is configured to invoke the instruction to: determine that the terminal device is in the first type of communication network; send a query request to the server by using the wireless communication module 50, where the query request is used to request a query.
  • the query result includes: a network type of the communication network to which the second terminal device is currently connected; and detecting, according to the query result, whether the terminal device and the second terminal device are simultaneously in the first type Communication network.
  • the processor 10 is configured to invoke the instruction to: receive the second prompt information sent by the second terminal by using the wireless communication module 50, where the second prompt information includes the current location of the second terminal device.
  • the type of network of the connected communication network according to the current connection of the terminal device
  • the network type of the communication network and the second prompt information detect whether the terminal device and the second terminal device are simultaneously in the first type of communication network.
  • the processor 10 is configured to invoke the instruction to: receive, by the wireless communication module 50, third prompt information sent by the second terminal device, where the third prompt information is used to represent the terminal device Whether the second terminal device is in the first type of communication network at the same time; and determining, according to the prompt information, whether the terminal device and the second terminal device are simultaneously in the first type of communication network.
  • the processor 10 is further configured to invoke the instruction to: determine, after the second call request is a video call request, and the second call request is answered, determine the first type of communication network. Whether the signal quality satisfies a preset condition; when the signal quality does not satisfy the preset condition, a voice call request is initiated to the second terminal device by the second type of communication network; and the voice call request is After answering, transmitting and receiving audio data of the video call through the second type of communication network; and transmitting and receiving image data of the video call through the first type of communication network.
  • the processor 10 is further configured to: after the voice call request is answered, determine whether a signal quality of the first type of communication network meets the preset condition; in the first type of communication network When the signal quality satisfies the preset condition, the voice call initiated by the second type of communication network is cancelled, and the audio data and the image data of the video call are transmitted and received through the first type of communication network.
  • the wireless communication module 50 is configured to support the terminal device to communicate with other terminal devices on different types of communication networks; And storing the instruction; the processor 10 is configured to invoke the instruction to: determine a signal quality of the first type of communication network when the terminal device and the second terminal device perform a video call through the first type of communication network Whether the preset condition is met; when the signal quality does not satisfy the preset condition, the first terminal device initiates a voice call request to the second terminal device by using a second type of communication network; After the request is answered, the audio data of the video call is transmitted and received through the second type of communication network; The first type of communication network transmits and receives image data of the video call; wherein the first type of communication network is different from the second type of communication network; the audio and video input module 20 is configured to acquire the audio Data and the image data.
  • the processor 10 is further configured to invoke the instruction to: determine, after the voice call request is answered, whether a signal quality of the first type of communication network meets the preset condition; When the signal quality of the first type of communication network satisfies the preset condition, canceling a voice call initiated by the second type of communication network, and transmitting and receiving the video call through the first type of communication network Audio data and image data.
  • the wireless communication module 50 is configured to support the terminal device to communicate with other terminal devices on different types of communication networks; And storing the instruction; the processor 10 is configured to invoke the instruction to implement: when the terminal device and the second terminal device perform a voice call through the second type of communication network, by using the first type of communication network and the second The terminal device establishes a video call; determines whether the signal quality of the first type of communication network meets a preset condition; and when the signal quality of the first type of communication network does not satisfy the preset condition, passes the second a type of communication network transmitting and receiving audio data of the video call; and transmitting and receiving image data of the video call over the first type of communication network; wherein the first type of communication network and the first The two types of communication networks are different; the audio and video input module 20 is configured to acquire the audio data and the video data.
  • the processor 10 is further configured to invoke the instruction to: determine whether a signal quality of the first type of communication network meets the preset condition; and satisfy a signal quality of the first type of communication network. And the preset condition, canceling the voice call initiated by the second type of communication network, and transmitting and receiving audio data and image data of the video call by using the first type of communication network.
  • the embodiment of the present invention further provides a terminal device, which is used to implement the call switching method shown in FIG. 2 and FIG. 3.
  • the terminal device includes: a user input unit 501, configured to: The input operation of the user inputting the call request to the second terminal device is detected; the receiving unit 502 is configured to receive the first call request initiated by the second terminal device by using the second type of communication network; and the detecting unit 503 is configured to When the user input unit 501 detects the input operation or the receiving unit 502 receives the first call request, it is detected whether the terminal device and the second terminal device are simultaneously in the first type of communication network; the sending unit 504 uses Transmitting the first prompt information to the second terminal device according to the indication of the processing unit, where the first prompt information is used to indicate that the terminal device and the second terminal device are simultaneously in the first type a communication network; the processing unit 505, configured to: when the detecting unit 503 detects that the terminal device and the second terminal device are in the first class at the same time
  • the processing unit 505 is further configured to: when the detecting unit 503 detects that the terminal device and the second terminal device are not in the first type of communication network at the same time, to the second through the second type of communication network The terminal device initiates a third call request.
  • the processing unit 505 is further configured to: when the detecting unit 503 detects that the terminal device and the second terminal device are simultaneously in the first type of communication network, reject the first call request.
  • the processing unit 505 is further configured to: before determining a second call request to the second terminal device by using the first type of communication network, determining that a signal quality of the first type of communication network meets a preset condition.
  • the processing unit 505 is configured to: determine that the first terminal device is in the first type of communication network; send a query request to the server by using the sending unit 504, where the query request is used to request to query the second terminal.
  • the processing unit 505 is configured to: receive second prompt information sent by the second terminal, where the second prompt information includes a network type of a communication network to which the second terminal device is currently connected; The network type of the communication network to which the terminal device is currently connected and the second prompt information detect whether the terminal device and the second terminal device are simultaneously in the first type of communication network.
  • the processing unit 505 is configured to: receive the third prompt information that is sent by the second terminal device, where the third prompt information is used to indicate whether the terminal device and the second terminal device are in the same a communication network of the type; determining, according to the third prompt information, whether the terminal device and the second terminal device are simultaneously in the first type of communication network.
  • the processing unit 505 is further configured to: after the second call request is a video call request, and after the second call request is answered, determine whether a signal quality of the first type of communication network meets a preset a condition; when the signal quality of the first type of communication network does not satisfy the preset condition, initiate a voice call request to the second terminal device by using the second type of communication network; After being answered, the audio data of the video call is transmitted and received through the second type of communication network; and the image data of the video call is transmitted and received through the first type of communication network.
  • the processing unit 505 is further configured to: after the voice call request is answered, determine whether a signal quality of the first type of communication network meets the preset condition; in the first type of communication network When the signal quality satisfies the preset condition, the voice call initiated by the second type of communication network is cancelled, and the audio data and image data of the video call are transmitted and received through the first type of communication network.
  • the embodiment of the present invention further provides a terminal device, which is used to implement the call switching method shown in FIG. 3.
  • the terminal device includes: a receiving unit 601, configured to receive Receiving, by the second terminal device, a first call request initiated by the second type of communication network; the detecting unit 602, configured to detect whether the terminal device and the second terminal device are simultaneously in the first type of communication network; the sending unit 603 And sending, by the processing unit, the first prompt information to the second terminal device, where the first prompt information is used to indicate that the terminal device and the second terminal device are simultaneously in the first a type of communication network; the processing unit 604, configured to reject the first call request when the terminal device and the second terminal device are simultaneously in the first type of communication network, and send, by using the sending unit 603, The second terminal device sends first prompt information; wherein the first type of communication network and the second type of communication network are different.
  • the processing unit 604 is further configured to: before the first call request is discarded, determine that the signal quality of the first type of communication network meets a preset condition.
  • the processing unit 604 is further configured to: send, by using the sending unit 603, a query request to the server, where the query request is used to query a network type of the communication network to which the second terminal device is currently connected; wherein, in the server The network type of the communication network to which the second terminal device is currently connected is recorded; the query result sent by the server is received by the receiving unit 601; the query result includes a network of the communication network to which the second terminal device is currently connected And detecting, according to the network type of the communication network to which the terminal device is currently connected, and the query result, whether the terminal device and the second terminal device are in the first type of communication network at the same time.
  • the embodiment of the present invention further provides a terminal device, which is used to implement the call switching method as shown in FIG. 4 and FIG. 5.
  • the terminal device includes: a processing unit 701 and a transceiver unit. 702.
  • the terminal device can be configured according to actual needs.
  • the processing unit 701 is configured to: when the terminal device and the second terminal device perform a video call by using the first type of communication network, Determining whether a signal quality of the first type of communication network satisfies a preset condition; when the signal quality of the first type of communication network does not satisfy the preset condition, to the first type through the second type of communication network
  • the second terminal device initiates a voice call request
  • the transceiver unit 702 is configured to send and receive the second type of communication network after the voice call request is answered. And audio data of the video call; and transmitting and receiving image data of the video call through the first type of communication network; wherein the first type of communication network and the second type of communication network are different.
  • the processing unit 701 is further configured to: after the voice call request is answered, determine whether a signal quality of the first type of communication network meets the preset condition; in the first type of communication network When the signal quality meets the preset condition, the voice call initiated by the second type of communication network is cancelled; the transceiver unit 702 is further configured to: send and receive the video call by using the first type of communication network Audio data and image data.
  • the processing unit 701 is configured to: when the terminal device and the second terminal device perform a voice call through the second type of communication network, The first type of communication network establishes a video call with the second terminal device; determines whether the signal quality of the first type of communication network satisfies a preset condition; and the transceiver unit 702 is configured to use the first type of communication network Transmitting and receiving audio data of the video call through the second type of communication network when the signal quality does not satisfy the preset condition; and transmitting and receiving the video call through the first type of communication network Image data; wherein the first type of communication network is different from the second type of communication network.
  • the processing unit 701 is further configured to: determine whether a signal quality of the first type of communication network meets the preset condition; when a signal quality of the first type of communication network satisfies the preset condition And canceling the voice call initiated by the second type of communication network; the transceiver unit 702 is further configured to send and receive audio data and image data of the video call by using the first type of communication network.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may employ an entirely hardware embodiment, an entirely software embodiment, Or in the form of an embodiment of the software and hardware aspects. Moreover, the invention can take the form of a computer program product embodied on one or more non-volatile computer-usable storage media (including but not limited to disk storage and optical storage, etc.) in which computer usable program code is embodied.
  • the computer program instructions can also be stored in a non-transitory computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the generation of instructions stored in the computer readable memory includes the manufacture of the instruction device.
  • the instruction means implements the functions specified in a block or blocks of a flow or a flow and/or a block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

一种通话切换方法、终端设备及存储介质,该方法包括:当第一终端设备检测到用户输入的向第二终端设备发起通话请求的输入操作时,或者当第一终端设备接收到第二终端设备通过第二类型的通信网络发起的第一通话请求时,第一终端设备检测所述第一终端设备与第二终端设备是否同时处于第一类型的通信网络;当第一终端设备检测到第一终端设备和第二终端设备同时处于第一类型的通信网络时,第一终端设备通过第一类型的通信网络向第二终端设备发起第二通话请求,或第一终端设备向第二终端设备发送第一提示信息;其中,第一提示信息用于表征第一终端设备和第二终端设备同时处于第一类型的通信网络;所述第一类型的通信网络和所述第二类型的通信网络不同。

Description

一种通话切换方法、终端设备及存储介质 技术领域
本发明涉及通信技术领域,尤其涉及一种通话切换方法、终端设备及存储介质。
背景技术
随着通信技术的不断发展,使得随时随地通话已不成问题。当前,语音通话通常都是与客户识别模块(英文:Subscriber Identity Module,简称:SIM)卡绑定的,同时由运营商提供语音通话业务。通常情况下,通话过程都是使用特定的网络,例如中国移动通信公司以及中国联合网络通信集团有限公司使用全球移动通信系统(英文:Global System for Mobile Communication,简称:GSM)提供语音通话业务。而中国电信集团公司使用码分多址(英文:Code Division Multiple Access,简称:CDMA)技术提供语音通话业务。在业界内,传统的语音通话技术称为电路交换(英文:Circuit Switched,简称:CS)域语音。
然而,上述传统的语音通话因为比较单一而且资费较高,所以又发展出了其它多种通话网络,例如通过无线保真(英文:Wireless Fidelity,简称:WiFi)达成的无线局域网的通话方式,业界内称为WiFi Call。再例如基于长期演进(英文:Long Term Evolution,简称:LTE)系统的通话技术,业界内称为VoLTE(Voice over LTE)或者称为网络协议多媒体子系统(英文:IP Multimedia Subsystem,简称:IMS)Call。
在实际使用中,用户可以选择其中一种通话网络进行通话,所以用户可以有较多的选择。
发明内容
本发明实施例提供一种通话切换方法、终端设备及存储介质,用以解决 现有技术中由用户人工选择通话网络而导致的通话网络选择不够灵活的技术问题。
第一方面,本发明实施例提供了一种通话切换方法,包括:
当第一终端设备检测到用户输入的向第二终端设备发起通话请求的输入操作时,或者当第一终端设备接收到第二终端设备通过第二类型的通信网络发起的第一通话请求时,所述第一终端设备检测所述第一终端设备与第二终端设备是否同时处于第一类型的通信网络;当所述第一终端设备检测到所述第一终端设备和所述第二终端设备同时处于所述第一类型的通信网络时,所述第一终端设备通过所述第一类型的通信网络向所述第二终端设备发起第二通话请求;其中,所述第一类型的通信网络和所述第二类型的通信网络不同。
本发明实施例中的方法通过终端设备自动判断通话双方所连接的通信网络的网络类型,进而自动选择通话网络,相较于现有技术中的人工选择通话网络,本发明实施例中的方法具有更加灵活的技术效果。
结合第一方面,在第一方面的第一种可能的实现方式中,当所述第一终端设备检测到所述第一终端设备和所述第二终端设备未同时处于所述第一类型的通信网络时,所述第一终端设备通过所述第二类型的通信网络向所述第二终端设备发起第三通话请求。如此可以保证第一终端设备能够实现和第二终端设备之间进行通信,而不用等待到第一终端设备和所述第二终端设备同时处于所述第一类型的通信网络时才可以建立通信。
结合第一方面或第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,当所述第一终端设备检测到所述第一终端设备和所述第二终端设备同时处于所述第一类型的通信网络时,所述第一终端拒绝所述第一通话请求。通过该方法可以只用一种类型的通信网络进行通信,拒绝另一种类型的通信网络,可以节约终端设备的电量。
结合第一方面或第一方面的第一种可能的实现方式或第一方面的第二种可能的实现方式,在第一方面的第三种可能的实现方式中,在所述第一终端设备放弃所述第一终端设备和所述第二终端设备通过第二类型的通信网络发 起的第一通话请求之前,所述方法还包括:所述第一终端设备确定所述第一类型的通信网络的信号质量满足预设条件。通过该方法,可以较大程度上保证通话的质量。
结合第一方面的第一种可能的实现方式或第一方面的第三种可能的实现方式,在第一方面的第四种可能的实现方式中,所述第一终端设备检测所述第一终端设备与第二终端设备是否同时处于第一类型的通信网络,包括:所述第一终端设备接收所述第二终端发送的第二提示信息,所述第二提示信息中包括所述第二终端设备当前所连接的通信网络的网络类型;所述第一终端设备根据所述第一终端设备当前所连接的通信网络的网络类型及所述第二提示信息检测所述第一终端设备与所述第二终端设备是否同时处于所述第一类型的通信网络。通过该方法,第一终端设备可以快速的确定第一终端设备与第二终端设备是否同时处于第一类型的通信网络。进一步,可以保证在第一终端设备连接不到服务器时,可以正常执行第一方面中的方法。
结合第一方面的第一种可能的实现方式或第一方面的第三种可能的实现方式,在第一方面的第五种可能的实现方式中,所述第一终端设备检测所述第一终端设备与第二终端设备是否同时处于第一类型的通信网络,包括:所述第一终端设备接收所述第二终端设备发送的第三提示信息,所述第三提示信息用以表征所述第一终端设备和所述第二终端设备是否同时处于所述第一类型的通信网络;所述第一终端设备根据所述第三提示信息确定所述第一终端设备和所述第二终端设备是否同时处于所述第一类型的通信网络。通过该方法,第一终端设备可以直接得到检测结果,所以可以更快速的确定第一终端设备与第二终端设备是否同时处于第一类型的通信网络。进一步,可以保证在第一终端设备连接不到服务器时,可以正常执行第一方面中的方法。
第二方面,本发明实施例提供一种通话切换方法,包括:
第一终端设备接收第二终端设备通过第二类型的通信网络发起的第一通话请求或第一终端设备检测到用户输入的向第二终端设备发起通话请求的输入操作时;所述第一终端设备检测所述第一终端设备与所述第二终端设备是 否同时处于第一类型的通信网络;在所述第一终端设备和所述第二终端设备同时处于所述第一类型的通信网络时,所述第一终端设备放弃所述第一通话请求,所述第一终端设备向所述第二终端设备发送第一提示信息;其中,所述第一提示信息用于表征所述第一终端设备和所述第二终端设备同时处于所述第一类型的通信网络;所述第一类型的通信网络和所述第二类型的通信网络不同。
在本发明实施例中,第一终端设备自动检测通话两端设备的网络情况,并将可以切换通话网络的提示信息发给对端终端设备,使得对端终端设备可以直接基于该提示进行通话网络的切换,省去了对端终端设备检测网络的步骤,节约了切换的时间。
结合上述一些可能的实现方式,所述第一终端设备检测所述第一终端设备与所述第二终端设备是否同时处于第一类型的通信网络,包括:所述第一终端设备确定所述第一终端设备处于所述第一类型的通信网络;所述第一终端设备向服务器发送查询请求,所述查询请求用于查询所述第二终端设备当前所连接的通信网络的网络类型;其中,所述服务器中记录有所述第二终端设备当前所连接的通信网络的网络类型;所述第一终端设备接收所述服务器发送的查询结果;所述查询结果包括所述第二终端设备当前所连接的通信网络的网络类型;所述第一终端设备根据所述查询结果检测所述第一终端设备与所述第二终端设备是否同时处于所述第一类型的通信网络。通过该方法,可以准确的获取到第二终端设备当前所连接的通信网络的网络类型。
结合上述一些可能的实现方式,在所述第二通话请求为视频通话请求,且所述第二通话请求被应答后,所述方法还包括:所述第一终端设备确定所述第一类型的通信网络的信号质量是否满足预设条件;在所述第一类型的通信网络的信号质量不满足所述预设条件时,所述第一终端设备通过所述第二类型的通信网络向所述第二终端设备发起语音通话请求;在所述语音通话请求被应答之后,所述第一终端设备通过所述第二类型的通信网络发送以及接收所述视频通话的音频数据;并通过所述第一类型的通信网络发送以及接收 所述视频通话的图像数据。本发明实施例中的方法通过自动判断当前视频通话网络的信号质量,进而建立语音通话,将视频通话的音频数据和图像数据分离在两个网络上进行传输,以保证视频通话的通信质量。
结合上述一些可能的实现方式,在所述语音通话请求被应答之后,所述方法还包括:所述第一终端设备确定所述第一类型的通信网络的信号质量是否满足所述预设条件;在所述第一类型的通信网络的信号质量满足所述预设条件时,所述第一终端设备取消通过所述第二类型的通信网络上的语音通话,并通过所述第一类型的通信网络发送以及接收所述视频通话的音频数据和图像数据。该方案通过检测视频通话网络的信号质量,然后将原本分离在两个网络上传输的音频数据和图像数据再次通过视频通话网络上进行传输并挂断语音通话,以此来节约资费以及节约电量。
第三方面,本发明实施例提供一种通话切换方法,包括:
在第一终端设备和第二终端设备通过第一类型的通信网络进行视频通话时,所述第一终端设备确定所述第一类型的通信网络的信号质量是否满足预设条件;在所述第一类型的通信网络的信号质量不满足所述预设条件时,所述第一终端设备通过第二类型的通信网络向所述第二终端设备发起语音通话请求;在所述语音通话请求被应答之后,所述第一终端设备通过所述第二类型的通信网络发送以及接收所述视频通话的音频数据;并通过所述第一类型的通信网络发送以及接收所述视频通话的图像数据;其中,所述第一类型的通信网络和所述第二类型的通信网络不同。
本发明实施例中的方法通过自动判断当前视频通话网络的信号质量,进而建立语音通话,将视频通话的音频数据和图像数据分离在两个网络上进行传输,以保证视频通话的通信质量。
结合第三方面,在第三方面的第一种可能的实现方式中,在所述语音通话请求被应答之后,所述方法还包括:所述第一终端设备确定所述第一类型的通信网络的信号质量是否满足所述预设条件;在所述第一类型的通信网络的信号质量满足所述预设条件时,所述第一终端设备取消通过所述第二类型 的通信网络发起的语音通话,并通过所述第一类型的通信网络发送以及接收所述视频通话的音频数据和图像数据。该方案通过检测视频通话网络的信号质量,然后将原本分离在两个网络上传输的音频数据和图像数据再次通过视频通话网络上进行传输并挂断语音通话,以此来节约资费以及节约电量。
第四方面,本发明实施例提供一种通话切换方法,包括:
在第一终端设备和第二终端设备通过第二类型的通信网络进行语音通话时,第一终端设备通过第一类型的通信网络与所述第二终端设备建立视频通话;所述第一终端设备确定所述第一类型的通信网络的信号质量是否满足预设条件;在所述第一类型的通信网络的信号质量不满足所述预设条件时,所述第一终端设备通过所述第二类型的通信网络发送以及接收所述视频通话的音频数据;并通过所述第一类型的通信网络发送以及接收所述视频通话的图像数据;其中,所述第一类型的通信网络和所述第二类型的通信网络不同。
结合第四方面,在第四方面的第一种可能的实现方式中,所述方法还包括:
所述第一终端设备确定所述第一类型的通信网络的信号质量是否满足所述预设条件;在所述第一类型的通信网络的信号质量满足所述预设条件时,所述第一终端设备取消通过所述第二类型的通信网络发起的语音通话,并通过所述第一类型的通信网络发送以及接收所述视频通话的音频数据和图像数据。
第五方面,本发明实施例提供一种终端设备,包括:无线通信模块、用户输入模块、处理器、存储器;
所述无线通信模块,用于支持所述终端设备在不同类型的通信网络上与其它终端设备进行通信;所述用户输入模块,用于检测用户输入的向第二终端设备发起通话请求的输入操作;所述存储器用于存储指令;所述处理器用于调用所述指令以实现:在所述用户输入模块检测到所述输入操作时,或者当所述终端设备接收到所述第二终端设备通过第二类型的通信网络发起的第一通话请求时,检测所述终端设备与所述第二终端设备是否同时处于第一类 型的通信网络;并当检测到所述终端设备和所述第二终端设备同时处于所述第一类型的通信网络时,通过所述第一类型的通信网络向所述第二终端设备发起第二通话请求;其中,所述第一类型的通信网络和所述第二类型的通信网络不同。
所述处理器调用存储在所述存储器中的指令以实现上述第一方面的方法设计中的方案,由于该终端设备解决问题的实施方式以及有益效果可以参见上述第一方面和第一方面的各可能的实施方式以及有益效果,因此该终端设备的实施可以参见方法的实施,重复之处不再赘述。
第六方面,本发明实施例提供一种终端设备,包括:无线通信模块、用户输入模块、处理器、存储器;
所述无线通信模块,用于支持所述终端设备在不同类型的通信网络上与其它终端设备进行通信;所述用户输入模块,用于检测用户输入的向第二终端设备发起通话请求的输入操作;所述存储器用于存储指令;所述处理器用于调用所述指令以实现:在所述用户输入模块检测到所述输入操作时,或者当接收到第二终端设备通过第二类型的通信网络发起的第一通话请求时,检测所述终端设备与第二终端设备是否同时处于第一类型的通信网络;并当检测到所述终端设备和所述第二终端设备同时处于所述第一类型的通信网络时,通过所述无线通信模块向所述第二终端设备发送第一提示信息;其中,所述第一提示信息用于表征所述终端设备和所述第二终端设备同时处于所述第一类型的通信网络;所述第一类型的通信网络和所述第二类型的通信网络不同。
所述处理器调用存储在所述存储器中的指令以实现上述第二方面的方法设计中的方案,由于该终端设备解决问题的实施方式以及有益效果可以参见上述第二方面和第二方面的各可能的实施方式以及有益效果,因此该终端设备的实施可以参见方法的实施,重复之处不再赘述。
第七方面,本发明实施例提供一种终端设备,包括:无线通信模块、处理器、存储器以及音视频输入模块;
所述无线通信模块,用于支持所述终端设备在不同类型的通信网络上与其它终端设备进行通信;所述存储器用于存储指令;所述处理器用于调用所述指令以实现:在所述终端设备和第二终端设备通过第一类型的通信网络进行视频通话时,确定所述第一类型的通信网络的信号质量是否满足预设条件;在所述第一类型的通信网络的信号质量不满足所述预设条件时,所述第一终端设备通过第二类型的通信网络向所述第二终端设备发起语音通话请求;在所述语音通话请求被应答之后,通过所述第二类型的通信网络发送以及接收所述视频通话的音频数据;并通过所述第一类型的通信网络发送以及接收所述视频通话的图像数据;其中,所述第一类型的通信网络和所述第二类型的通信网络不同;所述音视频输入模块,用于获取所述音频数据以及所述图像数据。
所述处理器调用存储在所述存储器中的指令以实现上述第三方面的方法设计中的方案,由于该终端设备解决问题的实施方式以及有益效果可以参见上述第三方面和第三方面的各可能的实施方式以及有益效果,因此该终端设备的实施可以参见方法的实施,重复之处不再赘述。
第八方面,本发明实施例提供一种终端设备,包括:无线通信模块、处理器、存储器以及音视频输入模块;
所述无线通信模块,用于支持所述终端设备在不同类型的通信网络上与其它终端设备进行通信;所述存储器用于存储指令;所述处理器用于调用所述指令以实现:在所述终端设备和第二终端设备通过第二类型的通信网络进行语音通话时,通过第一类型的通信网络与所述第二终端设备建立视频通话;确定所述第一类型的通信网络的信号质量是否满足预设条件;在所述第一类型的通信网络的信号质量不满足所述预设条件时,通过所述第二类型的通信网络发送以及接收所述视频通话的音频数据;并通过所述第一类型的通信网络发送以及接收所述视频通话的图像数据;其中,所述第一类型的通信网络和所述第二类型的通信网络不同;所述音视频输入模块,用于获取所述音频数据以及所述视频数据。
所述处理器调用存储在所述存储器中的指令以实现上述第四方面的方法设计中的方案,由于该终端设备解决问题的实施方式以及有益效果可以参见上述第四方面和第四方面的各可能的实施方式以及有益效果,因此该终端设备的实施可以参见方法的实施,重复之处不再赘述。
第九方面,本发明实施例提供一种终端设备,所述终端设备包括用于实现第一方面至第四方面中的任一种可能的实现方式中的方法的功能模块。
基于同一发明构思,由于该装置解决问题的原理以及有益效果可以参见上述第一方面至第四方面中的任一种可能的实现方式中的方法的实施方式以及所带来的有益效果,因此该装置的实施可以参见上述第一方面至第四方面中的任一种可能的实现方式中的方法的实施,重复之处不再赘述。
第十方面,本发明实施例提供一种非易失性计算机存储介质,所述非易失性计算机存储介质上存储有程序代码,所述程序代码包括用于实现所述第一方面至第四方面中的任一种可能的实现方式中的方法的指令。
附图说明
图1为本发明实施例提供的一种终端设备的结构图;
图2为本发明实施例提供的第一种通话切换方法的流程图;
图3为本发明实施例提供的第二种通话切换方法的流程图;
图4为本发明实施例提供的第三种通话切换方法的流程图;
图5为本发明实施例提供的第四种通话切换方法的流程图;
图6为本发明实施例提供的第一种终端设备的功能框图;
图7为本发明实施例提供的第二种终端设备的功能框图;
图8为本发明实施例提供的第三种终端设备的功能框图。
具体实施方式
本发明实施例提供一种通话切换方法、终端设备及存储介质,用以解决 现有技术中由用户人工选择通话网络而导致的通话网络选择不够灵活的技术问题。
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行描述。
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
本发明实施例中通话切换方法主要应用于终端设备,现在将参考附图描述实现本发明各个实施例的终端设备。在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本发明的说明,其本身并没有特定的意义,因此,“模块”和“部件”可以替换使用。
本文中提到的第一终端设备和第二终端设备,“第一”和“第二”仅为了表示至少是两个终端设备之间的通话,所以“第一”和“第二”仅为了区分两个终端设备,其本身并没有特定的意义。
在实际运用中,第一终端设备和第二终端设备可以以各种形式来实施。例如可以是无线终端设备也可以是有线终端设备,无线终端设备可以是指向用户提供语音和/或其他业务数据连通性的设备,具有无线连接功能的手持式设备、或连接到无线调制解调器的其它处理设备。无线终端设备可以经无线接入网(英文:Radio Access Network;简称:RAN)与一个或多个核心网进行通信,无线终端设备可以是移动终端,如移动电话(或称为“蜂窝”电话)和具有移动终端的计算机,例如,可以是便携式、袖珍式、手持式、计算机内置的或者车载的移动装置,它们与无线接入网交换语言和/或数据。例如,个人通信业务(英文:Personal Communication Service;简称:PCS)电话、无绳电话、会话发起协议(英文:Session Initiation Protocol;简称:SIP)话机、无线本地环路(英文:Wireless Local Loop;简称:WLL)站、个人数字助理(英文:Personal Digital Assistant;简称:PDA)等设备。无线终端设备也可以称为系统、订户单元(Subscriber Unit)、订户站(Subscriber Station),移动站(Mobile Station)、移动台(Mobile)、远程站(Remote Station)、远程 终端(Remote Terminal)、接入终端(Access Terminal)、用户终端(User Terminal)、用户代理(User Agent)、用户设备(User Device or User Equipment)。
第一终端设备和第二终端设备可以是相同类型的终端设备,例如均为手机、也可以是不相同类型的终端设备,例如第一终端设备为手机,第二终端设备为平板电脑。
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。
图1为本发明实施例提供的一种终端设备的结构图;请参考图1所示,为本发明实施例提供的各个实施例中的第一终端设备和第二终端设备的硬件结构示意图。
终端设备包括处理器10、音视频输入模块20、用户输入模块30、存储器40、无线通信模块50、输出模块60和接口模块70。图1示出了具有各种组件的终端设备,但是应理解的是,并不要求实施所有示出的组件。可以替代地实施更多或更少的组件。另外,各个组件之间可以是总线结构,也可以是其它结构,例如星型结构,本发明不作具体限定。
可选的,处理器10可以是通用的中央处理器或者是特定应用集成电路(英文:Application Specific Integrated Circuit,简称:ASIC),可以是一个或多个用于控制程序执行的集成电路,可以是使用现场可编程门阵列(英文:Field Programmable Gate Array,简称:FPGA)开发的硬件电路。
可选的,处理器10通常控制终端设备的总体操作。例如处理器10执行与语音通话、数据通信、视频通话等相关的控制和处理。
可选的,音视频输入模块20用于接收音频或视频信号。音视频输入模块30可以包括相机和麦克风。相机对在视频捕获模式或图像捕获模式中由图像捕获装置获得的静态图像或视频的图像数据进行处理。处理后的图像帧可以显示在输出模块60中的显示器上。经相机处理后的图像帧也可以存储在存储 器40(或其它存储介质)上经由无线通信模块50发送。可以根据终端设备的构造提供两个或两个以上的相机。麦克风可以在通话模式、记录模式等运行模式中经由麦克风接收声音,并且能够将这样的剩余处理为音频数据。处理后的音频数据可以在通话模式的情况下转换为可经由无线通信模块发送的格式输出。麦克风可以实施各种类型的噪声消除(或抑制)算法以消除(或抑制)在接收和发送音频数据的过程中产生的噪声或者干扰。
用户输入模块30可以根据用户输入的命令生成键输入数据以控制终端设备的各种操作。用户输入模块30允许用户输入各种类型的信息,并且可以包括键盘、触摸板、滚轮、摇杆的一种或多种。当触摸板以层的形式叠加在显示器上时,可以形成触摸屏。
存储器40可以存储由处理器10执行的处理和控制操作的软件程序等,或者可以蚕食地存储已经输出或将要输出的数据(例如,电话薄、消息、静态图像、视频等)。存储器40还可以存储关于当触摸施加到触摸屏时输出的各种方式的振动和音频信号的数据。
存储器40可以包括只读存储器(英文:Read Only Memory,简称:ROM)、随机存取存储器(英文:Random Access Memory,简称:RAM)和磁盘存储器中的一种或多种。存储器40的数量为一个或多个。
无线通信模块50通常包括一个或多个组件,其允许终端设备与无线通信系统或网络之间的无线电通信。例如无线通信模块50可以包括移动通信模块、无线互联网模块、短程通信模块、广播接收模块。
广播接收模块经由广播信道从外部广播管理服务器接收广播信号和/或广播相关信息。广播相关信息也可以经由移动通信网络提供,并且在该情况下,广播相关信息可以经由移动通信模块来接收。
移动通信模块将无线电信号发送到基站、外部终端以及服务器中的至少一个和/或从其接收无线电信号。这样的无线电信号可以包括语音通话信号、视频通话信号、或者根据文本和/或多媒体消息发送和/或接收的各种类型的数据。
本文中提到的基站,可以是GSM或CDMA中的基站(英文:Base Transceiver Station;简称:BTS)中,也可以是宽带码分多址(英文:Wideband Code Division Multiple Access;简称:WCDMA)中的基站(英文:NodeB;简称NB),还可以是LTE中的演进型基站(英文:Evolutional Node B;简称:eNB或eNodeB),或者中继站或接入点,或者未来5G网络中的基站等。
无线互联网模块支持移动终端的无线互联网接入。该模块可以内部或外部地耦接到终端设备。该模块所涉及的无线互联网接入技术可以包括无线局域网(英文:Wireless Local Area Networks,简称:WLAN)(WiFi)、无线宽带、全球微波互联接入(Wimax)等。
短程通信模块是用于支持短程通信的模块。短程通信技术的一些示例包括蓝牙、射频、红外、超宽带等。
输出模块60可以包括显示器以及音频输出单元。显示器可以显示在终端设备中处理的信息。例如,当终端设备处于通话模式时,显示器可以显示与通话或其它信息(例如,文本信息收发、多媒体文件下载)相关的用户界面(英文:User Interface,简称:UI)或图形用户界面(英文:Graphical User Interface,简称:GUI)。当终端设备处于视频通话模式或者图像捕获模式时,显示器可以显示捕获的图像和/或接收的图像、示出视频或图像以及相关功能的UI或GUI等。
进一步,当显示器和触摸板以层的形式彼此叠加以形成触摸屏时,显示器可以用作输入装置和输出装置。触摸屏可用于检测触摸输入压力以及触摸输入位置和触摸输入面积。
音频输出模块可以在终端设备处于呼叫信号接收模式、通话模式、例句模式等模式下时,将无线通信模块50接收的或者在存储器40中存储的音频数据转换为音频信号并且输出为声音。进一步,音频输出模块可以提供与终端设备执行的特定功能相关的音频输出(例如呼叫信号接收声音、消息接收声音)。音频输出模块可以包括扬声器、蜂鸣器等。
接口模块70用作至少一个外部装置与终端设备连接可以通过的接口。例 如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入输出端口、视频输入输出端口、耳机端口中的一种或多种。识别模块可以是存储用于验证用户使用终端设备的各种信息并且可以包括用户识别模块(英文:User Identify Module,简称:UIM)、SIM、通用SIM(USIM)中的一种或多种。
图2为本发明实施例提供的第一种通话切换方法的流程图,请参考图2所示,为本发明实施例提供的一种通话切换方法的流程图。如图2所示,该方法包括:
步骤101:当第一终端设备检测到用户输入的向第二终端设备发起通话请求的输入操作时,或者当第一终端设备接收到第二终端设备通过第二类型的通信网络发起的第一通话请求时,第一终端设备检测所述第一终端设备与第二终端设备是否同时处于第一类型的通信网络;
步骤102:当第一终端设备检测到第一终端设备和第二终端设备同时处于第一类型的通信网络时,第一终端设备通过第一类型的通信网络向第二终端设备发起第二通话请求;其中,第一类型的通信网络和第二类型的通信网络不同。
在实际运用中,第一终端设备可能是主叫设备,对应的,第二终端设备为被叫设备。反之,第一终端设备也可以是被叫设备,相应的,第二终端设备为主叫设备。
当第一终端设备为主叫设备时,在步骤101之前,该方法还包括:第一终端设备检测是否有用户输入的向第二终端设备发起通话请求的输入操作。可选的,该输入操作是需要通过第二类型的通信网络向第二终端设备发起呼叫请求的输入操作。举例来说,用户选中第二终端对应的手机号,并点击了拨号键,此时,第一终端设备可以检测到该拨号操作。当然,也可以是在第二类型的通信网络,例如WiFi的通话界面,用户输入了拨号操作,此时第一终端设备也可以检测到拨号操作。
当第一终端设备为被叫设备时,在步骤101之前,该方法还包括:第一终端设备接收所述第二终端设备发起的所述第一通话请求。
可选的,第二类型的通信网络例如为GSM或者CDMA(也可以称为2G网络),对应的,第一通话请求为通过GSM或者CDMA对应的移动通信模块来发起的或者接收的。
可选的,第一类型的通信网络例如为LTE系统(也可以称为4G网络)或者WiFi网络。
在实际运用中,步骤101可以有多种实施方式,其中一种实施方式为:第一终端设备确定所述第一终端设备处于第一类型的通信网络;第一终端设备向服务器发送查询请求,所述查询请求用于查询第二终端设备当前所连接的通信网络的网络类型;其中,服务器中记录有第二终端设备当前所连接的通信网络的网络类型;第一终端设备接收服务器发送的查询结果;所述查询结果包括第二终端设备当前所连接的通信网络的网络类型;第一终端设备根据所述查询结果检测所述第一终端设备与第二终端设备是否同时处于第一类型的通信网络。
详细来说,可以在现有的网络中增设服务器,终端设备可以周期性上报或者在所连接的通信网络的网络类型发生变化时上报所述第一终端设备所连接的通信网络的网络类型。进一步,还可以上报网络的信号质量。服务器保存并更新每个终端设备当前所连接的通信网络的网络类型,进一步还保存该通信网络的信号质量。因此,第一终端设备可以向服务器发送用于查询第二终端设备当前所连接的通信网络的网络类型的查询请求。可选的,查询请求中可以包括第二终端设备的设备标识或者第二终端设备在服务器上注册的账号,也可以是手机号。只要该标识、账号或手机号是唯一的即可。设备标识例如为国际移动设备标识(英文:International Mobile Equipment Identity,简称:IMEI),或者是移动设备标识码(英文:Mobile Equipment Identifier,简称:MEID)。设备标识、手机号或者账号可以统称为终端设备的唯一识别码。
服务器在接收到第一终端设备发送的查询请求之后,可以根据第二终端 设备的唯一识别码查询到第二终端设备当前所连接的通信网络的网络类型,例如为2G、WiFi或者4G。在查询到之后,服务器将查询结果发送给第一终端设备。相应的,第一终端设备接收该查询结果,并根据所述查询结果检测第二终端设备是否同时处于第一类型的通信网络。
举例来说,假设第一类型的通信网络为WiFi网络,第二类型的通信网络为2G网络。第一终端设备当前所连接的通信网络为2G网络和WiFi。同时,查询结果表明第二终端设备当前所连接的通信网络为2G网络和WiFi网络,所以第一终端设备就可以确定所述第一终端设备和第二终端设备同时处于WiFi网络中。
当第一终端设备为主叫设备时,步骤101的另一种可能的实现方式为:第一终端设备接收第二终端设备发送的第二提示信息,所述第二提示信息中包括第二终端设备当前所连接的通信网络的网络类型;第一终端设备根据所述第一终端设备当前所连接的通信网络的网络类型及所述第二提示信息检测所述第一终端设备与第二终端设备是否同时处于第一类型的通信网络。
可选的,第二终端设备可以以浏览器/服务器模式(英文:Browser/Server,简称:B/S)或者客户端/浏览器模式(英文:Client/Server,简称:C/S)发送提示信息给第一终端设备。当然,在实际运用中,还可以通过其它方式发送提示信息,例如通过短信。
举例来说,当第一终端设备呼叫第二终端设备时,第二终端设备在接收到呼叫请求时,可以将包含所述第一终端设备当前所连接的通信网络的网络类型的提示信息发送给第一终端设备,例如提示信息中包含WiFi网络,第一终端设备进而根据该提示信息中的WiFi网络和所述第一终端设备当前所连接的WiFi确定第一终端设备和第二终端设备同时处于WiFi中。
当第一终端设备为主叫设备时,步骤101的再一种可能的实现方式为:第一终端设备接收第二终端设备发送的第三提示信息,所述第三提示信息用以表征第一终端设备和第二终端设备是否同时处于第一类型的通信网络;第一终端设备根据所述第三提示信息确定第一终端设备和第二终端设备是否同 时处于第一类型的通信网络。
举例来说,第一终端设备呼叫第二终端设备时,第二终端设备在检测到该呼叫请求时,就向服务器查询第一终端设备当前所连接的通信网络的网络类型,然后根据第一终端设备当前所连接的通信网络的网络类型和所述第一终端设备当前所连接的通信网络的网络类型确定第一终端设备和第二终端设备是否同时处于第一类型的通信网络。例如在服务器上的查询结果为第一终端设备当前所连接的通信网络为4G网络,而第二终端设备当前所连接的通信网络为WiFi,所以第二终端设备判断的结果为两者未同时处于第一类型的通信网络。如果在服务器上的查询结果为第一终端设备当前所连接的通信网络也为WiFi,那么第二终端设备判断的结果为两者同时处于WiFi网络,即同时处于第一类型的通信网络。然后第二终端设备将自己的判断结果,即提示信息发送给第一终端设备。
当在步骤101中检测的结果为第一终端设备和第二终端设备同时处于第一类型的通信网络时,接下来执行步骤102,通过第一类型的通信网络向第二终端设备发起第二通话请求。
进一步,如果检测到第一终端设备第一终端设备和第二终端设备同时处于第一类型的通信网络时,第一终端设备还放弃第一终端设备和第二终端设备通过第二类型的通信网络发起的第一通话请求。其中,放弃第一通话请求即为拒绝或者挂断当前通话请求。
举例来说,当第一用户在第一终端设备上拨打手机号139xxxxxxxx时,此时,第一终端设备执行步骤101。在步骤101中的检测的结果为第一终端设备和第二终端设备均处于WiFi时,第一终端设备发起WiFi通话请求。
再举例来说,当第一终端设备接收到手机号为139xxxxxxxx的第二终端打来的电话时,第一终端设备执行步骤101。在步骤101中的检测的结果为第一终端设备和第二终端设备均处于WiFi时,第一终端设备挂断该电话并发起WiFi的通话请求。
可选的,可以在输出模块60包含的显示器上显示通话界面。
可选的,如果在步骤101中检测的结果为第一终端设备和第二终端设备未同时处于第一类型的通信网络时,就通过第二类型的通信网络向第二终端发起第三通话请求。
需要说明的是,WiFi通话可以是手机号也可以是其它的ID,如果是运营商的WiFi网络,一般是通过手机号进行通信。如果是非运营商的WiFi网络,通常会用一个其它的ID来表示用户的身份,该ID在全网中是唯一的,例如前述的设备标识或者账号。而用户的身份ID都是在网络服务器上,无论是运营商还是非运营商都存在一种心跳的机制,终端设备会以一定的频率通知网络服务器所述第一终端设备在网的状态,所以可以准确的进行通话网络的切换,而不会出现切换后通话两端不一样的情况。
在一种可能的实现方式中,第一终端设备具有第一账户和第二账户;所述第二终端具有第三账户和第四账户。第一账户和所述第二账户关联;所述第三账户和所述第四账户关联。第一账户与第三账户可以通过所述第二类型的通信网络建立通话请求。第二账户与第四账户可以通过所述第一类型的通信网络建立通话请求。例如,第一账户和第二账户为手机号码,第三账户为第一终端设备的唯一识别码,第四账户为第二终端设备的唯一识别码。
由以上描述可以看出,本发明实施例中的方法通过终端设备自动判断通话双方所连接的通信网络的网络类型,进而自动选择通话网络,相较于现有技术中的人工选择通话网络,本发明实施例中的方法具有更加灵活的技术效果。举例来说,用户可以设置第一类型的通信网络为WiFi网络,第二类型的通信网络为2G网络。因为2G网络的通话资费较高,而WiFi网络通常为免费网络或者资费较低,所以当检测到用户在拨打2G电话时,就检测是否通话两端均处于WiFi网络,如果是的话,就切换为WiFi网络,如此可以灵活在不同的通话网络之间切换,以达到降低费用的效果。
进一步,为了保证在第一类型的通信网络中的通话质量,在步骤102之前,该方法还包括:第一终端设备确定第一类型的通信网络的信号质量满足预设条件。其中,信号质量可以用多种参数表征,例如带宽、数据传输速率、 信噪比、丢包率、信号强度。如果信号质量是带宽的话,第一终端设备就确定第一类型的通信网络的带宽是否大于或等于预设带宽。如果信号质量是数据传输速率的话,第一终端设备就确定当前的数据传输速率是否大于或等于预设的传输速率,如果信号质量是信噪比的话,第一终端设备就确定当前的信噪比是否大于或等于预设的信噪比,如果信号质量是信号强度的话,第一终端设备就确定当前的信号强度是否大于或等于预设的信噪比。因此,根据不同的参数,预设条件也会不同。
通过该方法,尽可能的保证通话质量,满足用户的体验度,所以用户的体验较好。
需要说明的是,第一终端设备获取通信网络的信号质量根据网络类型的不同,也会不同,不过不管是哪种网络,获取信号质量为本领域技术人员所熟知的内容,例如获取WiFi网络的信号质量,可以是获取WiFi的信号强度和带宽可以计算出网络传输速率,所以在此不再赘述。
另外需要说明的是,确定第一类型的通信网络的信号质量满足预设条件包括:确定所述第一终端设备侧的第一类型的通信网络的信号质量和/或第二终端设备侧的第一类型的通信网络的信号质量满足预设条件。
关于确定第二终端设备侧的第一类型的通信网络的信号质量满足预设条件,在前文中描述了各终端设备在向服务器上报所连接的通信网络的类型时,还可以上报该通信网络的信号质量,所以第一终端设备可以单独向服务器请求第二终端设备侧所连接的第一类型的通信网络的信号质量,也可以是服务器将信号质量携带在检测结果中下发给第一终端设备。
当第一终端设备作为被叫设备时,除了可以按照前述描述的方法实施外,还可以采用如下实施方式;
图3为本发明实施例提供的第二种通话切换方法的流程图,请参考图3所示,该方法包括:
步骤201:第一终端设备接收第二终端设备通过第二类型的通信网络发起的第一通话请求;
步骤202:第一终端设备检测所述第一终端设备与第二终端设备是否同时处于第一类型的通信网络;
步骤203:在第一终端设备和第二终端设备同时处于第一类型的通信网络时,第一终端设备放弃所述第一通话请求,并向第二终端设备发送第一提示信息;其中,所述第一提示信息用于表征第一终端设备和第二终端设备同时处于第一类型的通信网络;第一类型的通信网络和第二类型的通信网络不同。
其中,步骤201和步骤202以及步骤203中放弃第一通话请求的部分与前述描述的相同或类似,所以在此不再赘述。
由以上描述可以看出,在本发明实施例中,第一终端设备自动检测通话两端设备的网络情况,并将可以切换通话网络的提示信息发给对端终端设备,使得对端终端设备可以直接基于该提示进行通话网络的切换,省去了对端终端设备检测网络的步骤,节约了切换的时间。
需要说明的是,步骤203中,第一终端设备向第二终端设备发送用于表征第一终端设备和第二终端设备同时处于第一类型的通信网络的提示信息,例如可以以B/S模式或者C/S模式发送该提示信息。
而第二终端设备在接收到该提示信息之后,可以直接发起第一类型的通信网络上的呼叫请求。
虽然上述描述了第一终端设备作为被叫的情况,但是图2所示的方法同样适用于第一终端设备为主叫的情况,例如在检测到前述的输入操作时,也可以执行步骤202至步骤203。
换言之,在本实施例中,被叫设备在检测到被叫设备和主叫设备同时处于第一类型的通信网络中时,会主动挂断接收到的通话请求,但是可以不主动发起第一类型的通信网络的通话请求,而是将检测结果发送给主叫设备。主叫设备可以基于检测结果确定是否发起第一类型的通信网络的通话请求。
类似的,为了保证通话质量,在步骤202之后,步骤203之前,该方法还包括:第一终端设备确定第一类型的通信网络的信号质量满足预设条件。该步骤的具体实施方式可以参考前述描述的内容。
在图2及图3的通话切换方法中,通话请求可以是语音通话请求,也可以是视频通话请求。如果是视频通话请求时,第一类型的通信网络可以是WiFi网络,第二类型的通信网络可以是4G网络。
另外,需要说明的是,本文中第一类型的通信网络和第二类型的通信网络还可以是未来5G网络或者其它网络,只要是可以实现语音通话或者视频通话的通信网络,均适用于本发明实施例中的方法。
以上描述了终端设备可以自动选择或者切换语音通话或视频通话的网络,接下来将描述在视频通话中,可以根据通信网络的信号质量选择在不同网络上或者在同一网络上传输视频通话的语音数据和图像数据。以下将详细描述这部分内容;
图4为本发明实施例提供的第三种通话切换方法的流程图,请参考图4所示,为本发明实施例提供的另一种通话切换方法的流程图。该方法包括:
步骤301:在第一终端设备和第二终端设备通过第一类型的通信网络进行视频通话时,第一终端设备确定第一类型的通信网络的信号质量是否满足预设条件;
步骤302:在所述第一类型的通信网络的信号质量不满足所述预设条件时,第一终端设备通过第二类型的通信网络向第二终端设备发起语音通话请求;
步骤303:在所述语音通话请求被应答之后,第一终端设备通过第二类型的通信网络发送以及接收所述视频通话的音频数据;并通过第一类型的通信网络发送以及接收所述视频通话的图像数据;其中,第一类型的通信网络和第二类型的通信网络不同。
在实际运用中,该视频通话可以是第一终端设备发起的,也可以是第二终端设备发起的。
步骤301中,第一终端设备确定第一类型的通信网络的信号质量是否满足预设条件,具体的实施过程与前述描述的实施过程类似,所以在此不再赘述。
在第一类型的信号质量不满足预设条件时,表示第一类型的通信网络当前的通信质量不是很好,所以第一终端设备通过第二类型的通信网络向第二终端设备发起语音通话请求。在语音通话请求被应答之后,就可以通过第一类型的通信网络收发视频通话的图像数据;以及通过第二类型的通信网络收发视频通话的音频数据。由此实现音频数据和图像数据分离在不同的网络上传输的目的,进而可以尽可能的保证语音的通话质量和图像的传输质量。
举例来说,第一终端设备和第二终端设备通过4G网络在进行视频通话,此时,视频通话的音频数据和图像数据均是通过4G网络传输的。第一终端设备检测4G网络的信号质量是否较好,如果检测的结果为4G网络的信号质量不是很好,例如信号强度较弱,传输速率较低,导致的结果可能的是视频通话出现卡顿的情况。因此,此时,第一终端设备向第二终端设备发起2G的语音通话,在第二终端设备应答了该语音通话请求之后,第一终端设备和第二终端设备就可以通过2G网络传输音频数据,然后通过4G网络传输图像数据。换言之,通过两种网络实现视频通话,以保证通信质量。
可选的,在步骤103之后,该方法还包括:第一终端设备确定所述第一类型的通信网络的信号质量是否满足所述预设条件;在所述第一类型的通信网络的信号质量满足所述预设条件时,第一终端设备放弃通过第二类型的通信网络发起的语音通话,并通过第一类型的通信网络发送与接收所述视频通话的音频数据与图像数据。
继续以前述例子为例进行说明。在通过2G网络传输音频数据以及通过4G网络传输图像之后,第一终端设备还可以实时检测4G网络的信号质量是否变好,在信号质量变好之后,就可以挂断2G的语音通话,继续通过4G网络传输语音和图像。
可选的,可以将音频数据加入在图像数据中,例如采用动态图像专家组(英文:Moving Picture Experts Group,简称:MPEG)-4压缩编码标准对音频数据和图像数据进行压缩编码,然后将压缩后的音视频数据通过4G网络进行传输。在实际运用中,还可以采用其它的压缩编码标准将音频数据加入在 图像数据中,例如H.246、音频视频交错格式(英文:Audio Video Interleaved,简称:AVI)等,该部分内容为本领域技术人员所熟知的内容,所以在此不再赘述。
上述描述了在视频通话中,根据视频通话的承载网络的信号质量对视频通话的音频数据和图像数据进行分离传输的过程,接下来将描述一个在语音通话的过程中发起视频通话时的通话切换方法;
图5为本发明实施例提供的第四种通话切换方法的流程图,请参考图5所示,该方法包括:
步骤401:在第一终端设备和第二终端设备通过第二类型的通信网络进行语音通话时,第一终端设备通过第一类型的通信网络与所述第二终端设备建立视频通话;
步骤402:第一终端设备确定第一类型的通信网络的信号质量是否满足预设条件;
步骤403:在所述第一类型的通信网络的信号质量不满足所述预设条件时,第一终端设备通过第二类型的通信网络发送以及接收所述视频通话的音频数据;并通过第一类型的通信网络发送以及接收所述视频通话的图像数据;其中,所述第一类型的通信网络和所述第二类型的通信网络不同。
在本实施例中,当第一终端设备和第二终端设备在通过第二类型的通信网络进行语音通话时,例如通过2G网络在进行语音通话时,第一终端设备或者第二终端设备通过第一类型的通信网络发起视频通话的请求,在应答后,第一终端设备以及第二终端设备之间就建立了视频通话,例如通过WiFi建立了视频通话。换言之,在同一时刻,第一终端设备和第二终端上在不同的两个网络上建立有语音通话和视频通话。
此时,第一终端设备可以执行步骤402,即判断第一类型的通信网络的信号质量是否满足预设条件。换言之,即确定第一类型的通信网络的信号质量是否比较好,例如判断WiFi网络的信号质量是否良好。具体的确定方式请参考前述的描述。
在信号质量不满足预设条件,即信号质量不是很好时,就将视频通话的音频数据分离到第二类型的通信网络上进行传输,第一类型的通信网络只传输视频通话的图像数据即可。如此可以尽可能的保证语音和图像的质量。
例如,在WiFi网络的信号质量不是很好时,就通过2G网络传输音频数据,WiFi网络只传输图像数据即可。
可选的,在步骤403或者步骤402之后,该方法还包括:第一终端设备确定所述信号质量是否满足所述预设条件;在所述信号质量满足所述预设条件时,第一终端设备放弃第二类型的通信网络上的语音通话,并通过第一类型的通信网络发送以及接收所述视频通话的音频数据和图像数据。
举例来说,如果检测到WiFi网络的信号质量良好,那么就挂断2G网络的语音通信,并通过WiFi网络传输音频数据和图像数据。如此在保证通话质量的同时,既可以节约2G网络语音通话的资费,也可以为终端设备省电。
由上面对图4和图5所示的通话切换方法的描述可以看出,在这两个实施例中,可以根据视频通话的信号质量来确定是否要将视频通话的音频数据和图像数据分离在不同的两个网络上传输,如此可以保证视频通话的质量。进一步,在视频通话的信号质量转好时,可以再次将音频数据和图像数据进行合成,并通过视频通话的网络传输音频数据和图像数据。如此可以在保证通信质量的情况下,为终端设备省电。
基于同一发明构思,本发明实施例还提供一种终端设备,其结构例如如图1所示,用以实现图2至图4中所示的任意一种通话切换方法,在实际运用中,可以根据实际需求对终端设备进行配置。
可选的,当终端设备用以实现如图2和图3所示的通话切换方法时,具体的,无线通信模块50,用于支持所述终端设备在不同类型的通信网络上与其它终端设备进行通信;用户输入模块30,用于检测用户输入的向第二终端设备发起通话请求的输入操作;存储器40用于存储质量,处理器10用于调用所述指令以实现:在用户输入模块30检测到所述输入操作时,或者当所述终端设备接收到第二终端设备通过第二类型的通信网络发起的第一通话请求 时,检测所述终端设备与第二终端设备是否同时处于第一类型的通信网络;并当检测到所述终端设备和所述第二终端设备同时处于所述第一类型的通信网络时,通过所述第一类型的通信网络向所述第二终端设备发起第二通话请求;或者通过所述无线通信模块向所述第二终端设备发送第一提示信息;其中,所述第一提示信息用于表征所述第一终端设备和所述第二终端设备同时处于所述第一类型的通信网络;其中,所述第一类型的通信网络和所述第二类型的通信网络不同。
可选的,处理器10还用于调用所述指令以实现:当检测到所述终端设备和所述第二终端设备未同时处于所述第一类型的通信网络时,通过所述第二类型的通信网络向所述第二终端设备发起第三通话请求。
可选的,处理器10还用于调用所述指令以实现:当检测到所述终端设备和所述第二终端设备同时处于所述第一类型的通信网络时,拒绝所述第一通话请求。
可选的,处理器10还用于调用所述指令以实现:在通过所述第一类型的通信网络向所述第二终端设备发起第二通话请求之前,确定所述第一类型的通信网络的信号质量满足预设条件。
可选的,处理器10用于调用所述指令以实现:确定所述终端设备处于所述第一类型的通信网络;通过无线通信模块50向服务器发送查询请求,所述查询请求用于请求查询所述第二终端设备当前所连接的通信网络的网络类型;其中,所述服务器中记录有所述第二终端设备当前所连接的通信网络的网络类型;通过无线通信模块50接收所述服务器发送的查询结果;所述查询结果包括所述第二终端设备当前所连接的通信网络的网络类型;根据所述查询结果检测所述终端设备与所述第二终端设备是否同时处于所述第一类型的通信网络。
可选的,处理器10用于调用所述指令以实现:通过无线通信模块50接收所述第二终端发送的第二提示信息,所述第二提示信息中包括所述第二终端设备当前所连接的通信网络的网络类型;根据所述终端设备当前所连接的 通信网络的网络类型及所述第二提示信息检测所述终端设备与所述第二终端设备是否同时处于所述第一类型的通信网络。
可选的,处理器10用于调用所述指令以实现:通过所述无线通信模块50接收所述第二终端设备发送的第三提示信息,所述第三提示信息用以表征所述终端设备和所述第二终端设备是否同时处于所述第一类型的通信网络;根据所述提示信息确定所述终端设备和所述第二终端设备是否同时处于所述第一类型的通信网络。
可选的,处理器10还用于调用所述指令以实现:在所述第二通话请求为视频通话请求,且所述第二通话请求被应答后,确定所述第一类型的通信网络的信号质量是否满足预设条件;在所述信号质量不满足所述预设条件时,通过所述第二类型的通信网络向所述第二终端设备发起语音通话请求;在所述语音通话请求被应答之后,通过所述第二类型的通信网络发送以及接收视频通话的音频数据;并通过所述第一类型的通信网络发送以及接收所述视频通话的图像数据.
可选的,处理器10还用于在所述语音通话请求被应答之后,确定所述第一类型的通信网络的信号质量是否满足所述预设条件;在所述第一类型的通信网络的信号质量满足所述预设条件时,取消通过所述第二类型的通信网络发起的语音通话,并通过所述第一类型的通信网络发送以及接收所述视频通话的音频数据和图像数据。
可选的,当终端设备用于实现如图4所示的通话切换方法时,无线通信模块50,用于支持所述终端设备在不同类型的通信网络上与其它终端设备进行通信;存储器40用于存储指令;处理器10用于调用所述指令以实现:在所述终端设备和第二终端设备通过第一类型的通信网络进行视频通话时,确定所述第一类型的通信网络的信号质量是否满足预设条件;在所述信号质量不满足所述预设条件时,所述第一终端设备通过第二类型的通信网络向所述第二终端设备发起语音通话请求;在所述语音通话请求被应答之后,通过所述第二类型的通信网络发送以及接收所述视频通话的音频数据;并通过所述 第一类型的通信网络发送以及接收所述视频通话的图像数据;其中,所述第一类型的通信网络和所述第二类型的通信网络不同;音视频输入模块20,用于获取所述音频数据以及所述图像数据。
可选的,处理器10还用于调用所述指令以实现:在所述语音通话请求被应答之后,确定所述第一类型的通信网络的信号质量是否满足所述预设条件;在所述第一类型的通信网络的信号质量满足所述预设条件时,取消通过所述第二类型的通信网络发起的语音通话,并通过所述第一类型的通信网络发送以及接收所述视频通话的音频数据和图像数据。
可选的,当终端设备用于实现如图5所示的通话切换方法时,无线通信模块50,用于支持所述终端设备在不同类型的通信网络上与其它终端设备进行通信;存储器40用于存储指令;处理器10用于调用所述指令以实现:在所述终端设备和第二终端设备通过第二类型的通信网络进行语音通话时,通过第一类型的通信网络与所述第二终端设备建立视频通话;确定所述第一类型的通信网络的信号质量是否满足预设条件;在所述第一类型的通信网络的信号质量不满足所述预设条件时,通过所述第二类型的通信网络发送以及接收所述视频通话的音频数据;并通过所述第一类型的通信网络发送以及接收所述视频通话的图像数据;其中,所述第一类型的通信网络和所述第二类型的通信网络不同;音视频输入模块20,用于获取所述音频数据以及所述视频数据。
可选的,处理器10还用于调用所述指令以实现:确定所述第一类型的通信网络的信号质量是否满足所述预设条件;在所述第一类型的通信网络的信号质量满足所述预设条件时,取消所述第二类型的通信网络发起的语音通话,并通过所述第一类型的通信网络发送以及接收所述视频通话的音频数据和图像数据。
前述图2至图4实施例中的通话切换方法中的各种变化方式和具体实例同样适用于本实施例的终端设备,通过前述对通话切换方法的详细描述,本领域技术人员可以清楚的知道本实施例中终端设备的实施方法,所以为了说 明书的简洁,在此不再详述。
基于同一发明构思,本发明实施例还提供一种终端设备,用以实现如图2和图3所示的通话切换方法,如图6所示,该终端设备包括:用户输入单元501,用于检测用户输入的向第二终端设备发起通话请求的输入操作;接收单元502,用于接收所述第二终端设备通过第二类型的通信网络发起的第一通话请求;检测单元503,用于当用户输入单元501检测到所述输入操作时或者接收单元502接收到所述第一通话请求时,检测所述终端设备与第二终端设备是否同时处于第一类型的通信网络;发送单元504,用于根据所述处理单元的指示向所述第二终端设备发送第一提示信息;其中,所述第一提示信息用于表征所述终端设备和所述第二终端设备同时处于所述第一类型的通信网络;处理单元505,用于当检测单元503检测到所述终端设备和所述第二终端设备同时处于所述第一类型的通信网络时,通过所述第一类型的通信网络向所述第二终端设备发起第二通话请求,或者通过发送单元504向所述第二终端设备发送所述第一提示信息;其中,所述第一类型的通信网络和所述第二类型的通信网络不同。
可选的,处理单元505还用于:当检测单元503检测所述终端设备与第二终端设备未同时处于第一类型的通信网络时,通过所述第二类型的通信网络向所述第二终端设备发起第三通话请求。
可选的,处理单元505还用于:当检测单元503检测到所述终端设备和所述第二终端设备同时处于所述第一类型的通信网络时,拒绝所述第一通话请求。
可选的,处理单元505还用于:在通过所述第一类型的通信网络向所述第二终端设备发起第二通话请求之前,确定所述第一类型的通信网络的信号质量满足预设条件。
可选的,处理单元505用于:确定所述第一终端设备处于所述第一类型的通信网络;通过发送单元504向服务器发送查询请求,所述查询请求用于请求查询所述第二终端设备当前所连接的通信网络的网络类型;其中,所述 服务器中记录有所述第二终端设备当前所连接的通信网络的网络类型;通过接收单元502接收所述服务器发送的查询结果;所述查询结果包括所述第二终端设备当前所连接的通信网络的网络类型;根据所述查询结果检测所述终端设备与所述第二终端设备是否同时处于所述第一类型的通信网络。
可选的,处理单元505用于:接收所述第二终端发送的第二提示信息,所述第二提示信息中包括所述第二终端设备当前所连接的通信网络的网络类型;根据所述终端设备当前所连接的通信网络的网络类型及所述第二提示信息检测所述终端设备与所述第二终端设备是否同时处于所述第一类型的通信网络。
可选的,处理单元505用于:接收所述第二终端设备发送的第三提示信息,所述第三提示信息用以表征所述终端设备和所述第二终端设备是否同时处于所述第一类型的通信网络;根据所述第三提示信息确定所述终端设备和所述第二终端设备是否同时处于所述第一类型的通信网络。
可选的,处理单元505还用于:在所述第二通话请求为视频通话请求,且所述第二通话请求被应答后,确定所述第一类型的通信网络的信号质量是否满足预设条件;在所述第一类型的通信网络的信号质量不满足所述预设条件时,通过所述第二类型的通信网络向所述第二终端设备发起语音通话请求;在所述语音通话请求被应答之后,通过所述第二类型的通信网络发送以及接收视频通话的音频数据;并通过所述第一类型的通信网络发送以及接收所述视频通话的图像数据。
可选的,处理单元505还用于:在所述语音通话请求被应答之后,确定所述第一类型的通信网络的信号质量是否满足所述预设条件;在所述第一类型的通信网络的信号质量满足所述预设条件时,取消通过所述第二类型的通信网络发起的语音通话,并通过所述第一类型的通信网络发送以及接收所述视频通话的音频数据和图像数据。
基于同一发明构思,本发明实施例还提供一种终端设备,用以实现如图3所示的通话切换方法,如图7所示,该终端设备包括:接收单元601,用于接 收第二终端设备通过第二类型的通信网络发起的第一通话请求;检测单元602,用于检测所述终端设备与所述第二终端设备是否同时处于第一类型的通信网络;发送单元603,用于根据所述处理单元的指示向所述第二终端设备发送第一提示信息;其中,所述第一提示信息用于表征所述终端设备和所述第二终端设备同时处于所述第一类型的通信网络;处理单元604,用于在所述终端设备和所述第二终端设备同时处于所述第一类型的通信网络时,拒绝所述第一通话请求,并通过发送单元603向所述第二终端设备发送第一提示信息;其中,所述第一类型的通信网络和所述第二类型的通信网络不同。
可选的,处理单元604还用于:在放弃所述第一通话请求之前,确定所述第一类型的通信网络的信号质量满足预设条件。
可选的,处理单元604还用于:通过发送单元603向服务器发送查询请求,所述查询请求用于查询所述第二终端设备当前所连接的通信网络的网络类型;其中,所述服务器中记录有所述第二终端设备当前所连接的通信网络的网络类型;通过接收单元601接收所述服务器发送的查询结果;所述查询结果包括所述第二终端设备当前所连接的通信网络的网络类型;根据所述终端设备当前所连接的通信网络的网络类型及所述查询结果检测所述终端设备与所述第二终端设备是否同时处于所述第一类型的通信网络。
基于同一发明构思,本发明实施例还提供一种终端设备,用以实现如图4和如图5所示的通话切换方法,如图8所示,该终端设备包括:处理单元701和收发单元702。
在实际运用中,可以根据实际需求配置该终端设备。
可选的,当该终端设备用于实现如图4所示的通话切换方法时,处理单元701,用于在所述终端设备和第二终端设备通过第一类型的通信网络进行视频通话时,确定所述第一类型的通信网络的信号质量是否满足预设条件;在所述第一类型的通信网络的信号质量不满足所述预设条件时,通过第二类型的通信网络向所述第二终端设备发起语音通话请求;收发单元702,用于在所述语音通话请求被应答之后,通过所述第二类型的通信网络发送以及接收所 述视频通话的音频数据;并通过所述第一类型的通信网络发送以及接收所述视频通话的图像数据;其中,所述第一类型的通信网络和所述第二类型的通信网络不同。
可选的,处理单元701还用于:在所述语音通话请求被应答之后,确定所述第一类型的通信网络的信号质量是否满足所述预设条件;在所述第一类型的通信网络的信号质量满足所述预设条件时,取消通过所述第二类型的通信网络发起的语音通话;收发单元702还用于:通过所述第一类型的通信网络发送以及接收所述视频通话的音频数据和图像数据。
可选的,该终端设备用于实现如图5所示的通话切换方法时,处理单元701,用于在所述终端设备和第二终端设备通过第二类型的通信网络进行语音通话时,通过第一类型的通信网络与所述第二终端设备建立视频通话;确定所述第一类型的通信网络的信号质量是否满足预设条件;收发单元702,用于在所述第一类型的通信网络的信号质量不满足所述预设条件时,通过所述第二类型的通信网络发送以及接收所述视频通话的音频数据;并通过所述第一类型的通信网络发送以及接收所述视频通话的图像数据;其中,所述第一类型的通信网络和所述第二类型的通信网络不同。
可选的,处理单元701还用于:确定所述第一类型的通信网络的信号质量是否满足所述预设条件;在所述第一类型的通信网络的信号质量满足所述预设条件时,取消所述第二类型的通信网络发起的语音通话;收发单元702还用于通过所述第一类型的通信网络发送以及接收所述视频通话的音频数据和图像数据。
前述图2至图4实施例中的通话切换方法中的各种变化方式和具体实例同样适用于本实施例的终端设备,通过前述对通话切换方法的详细描述,本领域技术人员可以清楚的知道本实施例中终端设备的实施方法,所以为了说明书的简洁,在此不再详述。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、 或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的非易失性计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的非易失性计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。

Claims (40)

  1. 一种通话切换方法,其特征在于,包括:
    当第一终端设备检测到用户输入的向第二终端设备发起通话请求的输入操作时,或者当第一终端设备接收到第二终端设备通过第二类型的通信网络发起的第一通话请求时,所述第一终端设备检测所述第一终端设备与所述第二终端设备是否同时处于第一类型的通信网络;
    当所述第一终端设备检测到所述第一终端设备和所述第二终端设备同时处于所述第一类型的通信网络时,所述第一终端设备通过所述第一类型的通信网络向所述第二终端设备发起第二通话请求,或所述第一终端设备向所述第二终端设备发送第一提示信息;其中,所述第一提示信息用于表征所述第一终端设备和所述第二终端设备同时处于所述第一类型的通信网络;其中,所述第一类型的通信网络和所述第二类型的通信网络不同。
  2. 如权利要求1所述的方法,其特征在于,所述方法还包括:
    当所述第一终端设备检测到所述第一终端设备和所述第二终端设备未同时处于所述第一类型的通信网络时,所述第一终端设备通过所述第二类型的通信网络向所述第二终端设备发起第三通话请求。
  3. 如权利要求1或2所述的方法,其特征在于,所述方法还包括:
    当所述第一终端设备检测到所述第一终端设备和所述第二终端设备同时处于所述第一类型的通信网络时,所述第一终端拒绝所述第一通话请求。
  4. 如权利要求1-3任一项所述的方法,其特征在于,在所述第一终端设备通过所述第一类型的通信网络向所述第二终端设备发起第二通话请求之前,所述方法还包括:
    所述第一终端设备确定所述第一类型的通信网络的信号质量满足预设条件。
  5. 如权利要求1-4任一项所述的方法,其特征在于,所述第一终端设备检测所述第一终端设备与第二终端设备是否同时处于第一类型的通信网络, 包括:
    所述第一终端设备确定所述第一终端设备处于所述第一类型的通信网络;
    所述第一终端设备向服务器发送查询请求,所述查询请求用于请求查询所述第二终端设备当前所连接的通信网络的网络类型;其中,所述服务器中记录有所述第二终端设备当前所连接的通信网络的网络类型;
    所述第一终端设备接收所述服务器发送的查询结果;所述查询结果包括所述第二终端设备当前所连接的通信网络的网络类型;
    所述第一终端设备根据所述查询结果检测所述第二终端设备是否处于所述第一类型的通信网络。
  6. 如权利要求1-4任一项所述的方法,其特征在于,所述第一终端设备检测所述第一终端设备与第二终端设备是否同时处于第一类型的通信网络,包括:
    所述第一终端设备接收所述第二终端发送的第二提示信息,所述第二提示信息中包括所述第二终端设备当前所连接的通信网络的网络类型;
    所述第一终端设备根据所述第一终端设备当前所连接的通信网络的网络类型及所述第二提示信息检测所述第一终端设备与所述第二终端设备是否同时处于所述第一类型的通信网络。
  7. 如权利要求1-4任一项所述的方法,其特征在于,所述第一终端设备检测所述第一终端设备与第二终端设备是否同时处于第一类型的通信网络,包括:
    所述第一终端设备接收所述第二终端设备发送的第三提示信息,所述第三提示信息用以表征所述第一终端设备和所述第二终端设备是否同时处于所述第一类型的通信网络;
    所述第一终端设备根据所述第三提示信息确定所述第一终端设备和所述第二终端设备是否同时处于所述第一类型的通信网络。
  8. 如权利要求1所述的方法,其特征在于,在所述第二通话请求为视频 通话请求,且所述第二通话请求被应答后,所述方法还包括:
    所述第一终端设备确定所述第一类型的通信网络的信号质量是否满足预设条件;
    在所述第一类型的通信网络的信号质量不满足所述预设条件时,所述第一终端设备通过所述第二类型的通信网络向所述第二终端设备发起语音通话请求;
    在所述语音通话请求被应答之后,所述第一终端设备通过所述第二类型的通信网络发送以及接收所述视频通话的音频数据;并通过所述第一类型的通信网络发送以及接收所述视频通话的图像数据。
  9. 如权利要求8所述的方法,其特征在于,在所述语音通话请求被应答之后,所述方法还包括:
    所述第一终端设备确定所述第一类型的通信网络的信号质量是否满足所述预设条件;
    在所述第一类型的通信网络的信号质量满足所述预设条件时,所述第一终端设备取消通过所述第二类型的通信网络向所述第二终端设备发起的语音通话,并通过所述第一类型的通信网络发送以及接收所述视频通话的音频数据和图像数据。
  10. 如权利要求1-9任一项所述的方法,其特征在于,
    所述第一终端具有第一账户和第二账户;所述第二终端具有第三账户和第四账户;
    所述第一账户和所述第二账户关联;所述第三账户和所述第四账户关联;
    所述第一账户与第三账户可以通过所述第二类型的通信网络建立通话请求;
    所述第二账户与第四账户可以通过所述第一类型的通信网络建立通话请求。
  11. 如权利要求10所述的方法,其特征在于,所述第一账户和所述第二账户为手机号码,所述第三账户为所述第一终端设备的唯一识别码,所述第 四账户为所述第二终端设备的唯一识别码。
  12. 如权利要求1-11任一项所述的方法,其特征在于,所述第一类型的通信网络为长期演进LTE系统或者无线保真WiFi网络。
  13. 如权利要求1-12任一项所述的方法,其特征在于,所述第二类型的通信网络为全球移动通信系统GSM或者码分多址CDMA系统。
  14. 一种终端设备,其特征在于,包括:无线通信模块、用户输入模块、处理器、存储器;
    所述无线通信模块用于支持所述终端设备在不同类型的通信网络上与其它终端设备进行通信;
    所述用户输入模块用于检测用户输入的向第二终端设备发起通话请求的输入操作;
    所述存储器用于存储指令;
    所述处理器用于调用所述指令以实现:在所述用户输入模块检测到所述输入操作时,或者当所述终端设备接收到所述第二终端设备通过第二类型的通信网络发起的第一通话请求时,检测所述终端设备与所述第二终端设备是否同时处于第一类型的通信网络;并当检测到所述终端设备和所述第二终端设备同时处于所述第一类型的通信网络时,通过所述第一类型的通信网络向所述第二终端设备发起第二通话请求;或者通过所述无线通信模块向所述第二终端设备发送第一提示信息;其中,所述第一提示信息用于表征所述终端设备和所述第二终端设备同时处于所述第一类型的通信网络;其中,所述第一类型的通信网络和所述第二类型的通信网络不同。
  15. 如权利要求14所述的终端设备,其特征在于,所述处理器还用于调用所述指令以实现:当检测到所述终端设备和所述第二终端设备未同时处于所述第一类型的通信网络时,通过所述第二类型的通信网络向所述第二终端设备发起第三通话请求。
  16. 如权利要求14或15所述的终端设备,其特征在于,所述处理器还用于调用所述指令以实现:当检测到所述终端设备和所述第二终端设备同时 处于所述第一类型的通信网络时,拒绝所述第一通话请求。
  17. 如权利要求14-16任一项所述的终端设备,其特征在于,所述处理器还用于调用所述指令以实现:在通过所述第一类型的通信网络向所述第二终端设备发起第二通话请求之前,确定所述第一类型的通信网络的信号质量满足预设条件。
  18. 如权利要求14-17任一项所述的终端设备,其特征在于,所述处理器用于调用所述指令以实现:确定所述终端设备处于所述第一类型的通信网络;通过所述无线通信模块向服务器发送查询请求,所述查询请求用于请求查询所述第二终端设备当前所连接的通信网络的网络类型;其中,所述服务器中记录有所述第二终端设备当前所连接的通信网络的网络类型;通过所述无线通信模块接收所述服务器发送的查询结果;所述查询结果包括所述第二终端设备当前所连接的通信网络的网络类型;根据所述查询结果检测所述终端设备与所述第二终端设备是否同时处于所述第一类型的通信网络。
  19. 如权利要求14-17任一项所述的终端设备,其特征在于,所述处理器用于调用所述指令以实现:通过所述无线通信模块接收所述第二终端发送的第二提示信息,所述第二提示信息中包括所述第二终端设备当前所连接的通信网络的网络类型;根据所述终端设备当前所连接的通信网络的网络类型及所述第二提示信息检测所述终端设备与所述第二终端设备是否同时处于所述第一类型的通信网络。
  20. 如权利要求14-17任一项所述的终端设备,其特征在于,所述处理器用于调用所述指令以实现:通过所述无线通信模块接收所述第二终端设备发送的第三提示信息,所述第三提示信息用以表征所述终端设备和所述第二终端设备是否同时处于所述第一类型的通信网络;根据所述第三提示信息确定所述终端设备和所述第二终端设备是否同时处于所述第一类型的通信网络。
  21. 如权利要求14所述的终端设备,其特征在于,所述处理器还用于调用所述指令以实现:在所述第二通话请求为视频通话请求,且所述第二通话请求被应答后,确定所述第一类型的通信网络的信号质量是否满足预设条件; 在所述信号质量不满足所述预设条件时,通过所述第二类型的通信网络向所述第二终端设备发起语音通话请求;在所述语音通话请求被应答之后,通过所述第二类型的通信网络发送以及接收所述视频通话的音频数据;并通过所述第一类型的通信网络发送以及接收所述视频通话的图像数据。
  22. 如权利要求21所述的终端设备,其特征在于,所述处理器还用于:在所述语音通话请求被应答之后,确定所述第一类型的通信网络的信号质量是否满足所述预设条件;在所述第一类型的通信网络的信号质量满足所述预设条件时,取消通过所述第二类型的通信网络向所述第二终端设备发起的语音通话,并通过所述第一类型的通信网络发送以及接收所述视频通话的音频数据以及所述图像数据。
  23. 如权利要求14-22任一项所述的终端设备,其特征在于,
    所述第一终端具有第一账户和第二账户;所述第二终端具有第三账户和第四账户;
    所述第一账户和所述第二账户关联;所述第三账户和所述第四账户关联;
    所述第一账户与第三账户可以通过所述第二类型的通信网络建立通话请求;
    所述第二账户与第四账户可以通过所述第一类型的通信网络建立通话请求。
  24. 如权利要求23所述的终端设备,其特征在于,所述第一账户和所述第二账户为手机号码,所述第三账户为所述终端设备的唯一识别码,所述第四账户为所述第二终端设备的唯一识别码。
  25. 如权利要求14-24任一项所述的终端设备,其特征在于,所述第一类型的通信网络为长期演进LTE系统或者无线保真WiFi网络。
  26. 如权利要求14-25任一项所述的终端设备,其特征在于,所述第二类型的通信网络为全球移动通信系统GSM或者码分多址CDMA系统。
  27. 一种终端设备,其特征在于,包括:
    用户输入单元,用于检测用户输入的向第二终端设备发起通话请求的输 入操作;
    接收单元,用于接收所述第二终端设备通过第二类型的通信网络发起的第一通话请求;
    检测单元,用于当所述用户输入单元检测到所述输入操作时或者所述接收单元接收到所述第一通话请求时,检测所述终端设备与第二终端设备是否同时处于第一类型的通信网络;
    发送单元,用于根据所述处理单元的指示向所述第二终端设备发送第一提示信息;其中,所述第一提示信息用于表征所述终端设备和所述第二终端设备同时处于所述第一类型的通信网络;
    处理单元,用于当所述检测单元检测到所述终端设备和所述第二终端设备同时处于所述第一类型的通信网络时,通过所述第一类型的通信网络向所述第二终端设备发起第二通话请求,或者通过所述发送单元向所述第二终端设备发送所述第一提示信息;其中,所述第一类型的通信网络和所述第二类型的通信网络不同。
  28. 如权利要求27所述的终端设备,其特征在于,所述处理单元还用于:当所述检测单元检测所述终端设备与第二终端设备未同时处于第一类型的通信网络时,通过所述第二类型的通信网络向所述第二终端设备发起第三通话请求。
  29. 如权利要求27或28所述的终端设备,其特征在于,所述处理单元还用于:当所述检测单元检测到所述终端设备和所述第二终端设备同时处于所述第一类型的通信网络时,拒绝所述第一通话请求。
  30. 如权利要求27-29任一项所述的终端设备,其特征在于,所述处理单元还用于:在所述通过所述第一类型的通信网络向所述第二终端设备发起第二通话请求之前,确定所述第一类型的通信网络的信号质量满足预设条件。
  31. 如权利要求27-30任一项所述的终端设备,其特征在于,所述处理单元用于:确定所述终端设备处于所述第一类型的通信网络;通过所述发送单元向服务器发送查询请求,所述查询请求用于请求查询所述第二终端设备当 前所连接的通信网络的网络类型;其中,所述服务器中记录有所述第二终端设备当前所连接的通信网络的网络类型;通过所述接收单元接收所述服务器发送的查询结果;所述查询结果包括所述第二终端设备当前所连接的通信网络的网络类型;根据所述查询结果检测所述终端设备与所述第二终端设备是否同时处于所述第一类型的通信网络。
  32. 如权利要求27-30任一项所述的终端设备,其特征在于,所述处理单元用于:接收所述第二终端发送的第二提示信息,所述第二提示信息中包括所述第二终端设备当前所连接的通信网络的网络类型;根据所述终端设备当前所连接的通信网络的网络类型及所述第二提示信息检测所述终端设备与所述第二终端设备是否同时处于所述第一类型的通信网络。
  33. 如权利要求27-30任一项所述的终端设备,其特征在于,所述处理单元用于:接收所述第二终端设备发送的第三提示信息,所述第三提示信息用以表征所述终端设备和所述第二终端设备是否同时处于所述第一类型的通信网络;根据所述第三提示信息确定所述终端设备和所述第二终端设备是否同时处于所述第一类型的通信网络。
  34. 如权利要求27所述的终端设备,其特征在于,所述处理单元还用于:在所述第二通话请求为视频通话请求,且所述第二通话请求被应答后,确定所述第一类型的通信网络的信号质量是否满足预设条件;在所述第一类型的通信网络的信号质量不满足所述预设条件时,通过所述第二类型的通信网络向所述第二终端设备发起语音通话请求;在所述语音通话请求被应答之后,通过所述第二类型的通信网络发送以及接收所述视频通话的音频数据;并通过所述第一类型的通信网络发送以及接收所述视频通话的图像数据。
  35. 如权利要求34所述的终端设备,其特征在于,所述处理单元还用于:在所述语音通话请求被应答之后,确定所述第一类型的通信网络的信号质量是否满足所述预设条件;在所述第一类型的通信网络的信号质量满足所述预设条件时,取消通过所述第二类型的通信网络向所述第二终端设备发起的语音通话,并通过所述第一类型的通信网络发送以及接收所述视频通话的音频 数据和图像数据。
  36. 如权利要求35所述的终端设备,其特征在于,
    所述第一终端具有第一账户和第二账户;所述第二终端具有第三账户和第四账户;
    所述第一账户和所述第二账户关联;所述第三账户和所述第四账户关联;
    所述第一账户与第三账户可以通过所述第二类型的通信网络建立通话请求;
    所述第二账户与第四账户可以通过所述第一类型的通信网络建立通话请求。
  37. 如权利要求36所述的终端设备,其特征在于,所述第一账户和所述第二账户为手机号码,所述第三账户为所述终端设备的唯一识别码,所述第四账户为所述第二终端设备的唯一识别码。
  38. 如权利要求27-37所述的终端设备,其特征在于,所述第一类型的通信网络为长期演进LTE系统或者无线保真WiFi网络。
  39. 如权利要求27-38任一项所述的终端设备,其特征在于,所述第二类型的通信网络为全球移动通信系统GSM或者码分多址CDMA系统。
  40. 一种存储一个或多个程序的非易失性计算机可读存储介质,其特征在于,所述一个或多个程序包括指令,所述指令当被终端设备执行时,使所述终端设备执行如权利要求1-13任一项所述的方法。
PCT/CN2016/080843 2016-04-29 2016-04-29 一种通话切换方法、终端设备及存储介质 WO2017185381A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN201680018195.XA CN107852656B (zh) 2016-04-29 2016-04-29 一种通话切换方法、终端设备及存储介质
US16/097,159 US10819850B2 (en) 2016-04-29 2016-04-29 Call switching method, terminal device, and storage medium
EP16899892.0A EP3442272B1 (en) 2016-04-29 2016-04-29 Conversation switching method, terminal device and storage medium
PCT/CN2016/080843 WO2017185381A1 (zh) 2016-04-29 2016-04-29 一种通话切换方法、终端设备及存储介质

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/080843 WO2017185381A1 (zh) 2016-04-29 2016-04-29 一种通话切换方法、终端设备及存储介质

Publications (1)

Publication Number Publication Date
WO2017185381A1 true WO2017185381A1 (zh) 2017-11-02

Family

ID=60161709

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/080843 WO2017185381A1 (zh) 2016-04-29 2016-04-29 一种通话切换方法、终端设备及存储介质

Country Status (4)

Country Link
US (1) US10819850B2 (zh)
EP (1) EP3442272B1 (zh)
CN (1) CN107852656B (zh)
WO (1) WO2017185381A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109618372A (zh) * 2019-01-11 2019-04-12 Oppo广东移动通信有限公司 数据传输方法及相关装置

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108882291B (zh) * 2018-08-30 2021-08-13 中国联合网络通信集团有限公司 语音质量评估方法及装置
CN112003637A (zh) * 2020-08-31 2020-11-27 广东虹勤通讯技术有限公司 通信方法及装置

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101001464A (zh) * 2006-12-26 2007-07-18 宇龙计算机通信科技(深圳)有限公司 移动通信终端及其呼叫方法
CN101588617A (zh) * 2009-05-14 2009-11-25 中兴通讯股份有限公司 一种网络切换方法及多模移动终端
US20120315905A1 (en) * 2011-06-07 2012-12-13 Jing Zhu Multi-radio handover manager system and algorithms for heterogeneous wireless networking
CN104602361A (zh) * 2014-12-05 2015-05-06 南京中科创达软件科技有限公司 一种用WiFi网络扩展手机无线网络业务的方法
CN104902115A (zh) * 2015-06-03 2015-09-09 腾讯科技(深圳)有限公司 通信方法及通信终端
WO2015147576A1 (en) * 2014-03-26 2015-10-01 Samsung Electronics Co., Ltd. Apparatus and method for communicating voice data in a wireless network
CN105101325A (zh) * 2015-05-28 2015-11-25 努比亚技术有限公司 语音切换方法、终端、服务器及系统
US20150358878A1 (en) * 2006-12-22 2015-12-10 Tp Lab Inc. Methods and systems for switching over a voice call

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100417278C (zh) 2004-12-21 2008-09-03 华为技术有限公司 一种语音切换方法
US20070183394A1 (en) * 2006-02-03 2007-08-09 Deepak Khandelwal Automatic call origination for multiple wireless networks
JP5116398B2 (ja) * 2007-08-06 2013-01-09 京セラ株式会社 通信装置、無線通信装置および通信制御方法
US20090180440A1 (en) * 2008-01-16 2009-07-16 Snrlabs Corporation Client-Based Multimode Handover in Communication Systems
US8270346B2 (en) 2008-04-21 2012-09-18 Shoretel, Inc. Dynamic call anchoring
US8416767B2 (en) * 2009-07-06 2013-04-09 T-Mobile Usa, Inc. Communication mode swapping for telecommunications devices
US20120170503A1 (en) 2010-12-30 2012-07-05 Motorola, Inc. Method and apparatus for controlling network access in a multi-technology wireless communication system
GB201122387D0 (en) * 2011-12-28 2012-02-08 Vodafone Espana Sau Establishing international calls
CN103298143A (zh) 2012-02-27 2013-09-11 宇龙计算机通信科技(深圳)有限公司 一种实现多方通话的方法、系统及移动终端
CN103458215B (zh) 2012-05-29 2016-11-23 国基电子(上海)有限公司 切换视频通话的系统、手机、电子装置及切换方法
CN103716849B (zh) 2012-10-09 2017-08-11 中兴通讯股份有限公司 一种自动切换语音电话业务的方法、装置和系统
GB201301452D0 (en) 2013-01-28 2013-03-13 Microsoft Corp Providing notifications of call-related services
GB2516625B (en) 2013-07-25 2021-05-26 Metaswitch Networks Ltd Controlling a user device
US8879544B1 (en) * 2013-10-22 2014-11-04 Bandwidth.Com, Inc. Outbound communication session establishment on a telecommunications network
US20160112941A1 (en) * 2014-10-21 2016-04-21 Microsoft Corporation Connection selection in hybrid networks

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150358878A1 (en) * 2006-12-22 2015-12-10 Tp Lab Inc. Methods and systems for switching over a voice call
CN101001464A (zh) * 2006-12-26 2007-07-18 宇龙计算机通信科技(深圳)有限公司 移动通信终端及其呼叫方法
CN101588617A (zh) * 2009-05-14 2009-11-25 中兴通讯股份有限公司 一种网络切换方法及多模移动终端
US20120315905A1 (en) * 2011-06-07 2012-12-13 Jing Zhu Multi-radio handover manager system and algorithms for heterogeneous wireless networking
WO2015147576A1 (en) * 2014-03-26 2015-10-01 Samsung Electronics Co., Ltd. Apparatus and method for communicating voice data in a wireless network
CN104602361A (zh) * 2014-12-05 2015-05-06 南京中科创达软件科技有限公司 一种用WiFi网络扩展手机无线网络业务的方法
CN105101325A (zh) * 2015-05-28 2015-11-25 努比亚技术有限公司 语音切换方法、终端、服务器及系统
CN104902115A (zh) * 2015-06-03 2015-09-09 腾讯科技(深圳)有限公司 通信方法及通信终端

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109618372A (zh) * 2019-01-11 2019-04-12 Oppo广东移动通信有限公司 数据传输方法及相关装置
CN109618372B (zh) * 2019-01-11 2020-09-15 Oppo广东移动通信有限公司 数据传输方法及相关装置
US11648466B2 (en) 2019-01-11 2023-05-16 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Data transmission method and related apparatus

Also Published As

Publication number Publication date
CN107852656B (zh) 2020-07-24
US10819850B2 (en) 2020-10-27
EP3442272A1 (en) 2019-02-13
EP3442272B1 (en) 2020-05-13
CN107852656A (zh) 2018-03-27
EP3442272A4 (en) 2019-02-13
US20190268467A1 (en) 2019-08-29

Similar Documents

Publication Publication Date Title
CN106303104B (zh) 一种播放视频彩铃的方法以及主叫用户设备
US10154539B2 (en) System and method for sharing cellular network for call routing
WO2017177452A1 (zh) VoLTE通信方法、设备以及系统
CN110049481B (zh) 一种业务指示方法和相关设备
WO2019192587A1 (zh) 业务的实现方法、网络单元和终端
US20150119011A1 (en) Information processing method and device
JP5779285B2 (ja) 移動通信ネットワークにおけるパケットサービスコール管理
WO2017113581A1 (zh) 一种通话控制方法以及装置、系统
TW201724879A (zh) 在遠距通信期間發送語音對話的轉錄本
WO2017185381A1 (zh) 一种通话切换方法、终端设备及存储介质
TWI500296B (zh) 在行動通訊使用者設備中管理於電路服務通話建立期間內之一封包服務通話
CN110771199B (zh) 测量处理方法及装置
US8755780B2 (en) Apparatus, and associated method, for reconnecting dropped call
US20220021765A1 (en) Method for playing multimedia customized ringing signal and customized alerting tone, and application server
WO2023015535A1 (zh) 一种执行小数据包传输和确定随机接入消息传输方式的方法、装置、设备及存储介质
CN114126032A (zh) 信息同步方法、智能终端及存储介质
CA2802350C (en) Apparatus, and associated method, for reconnecting dropped call
WO2018000322A1 (zh) 数据传输方法及装置
CN111602428B (zh) 一种切换方法及装置
KR102359316B1 (ko) 콜 제어를 제공하는 사용자 단말 장치 및 이의 제어 방법
JP6590276B2 (ja) 通信装置
TW201618528A (zh) 電話會議系統及方法
WO2017032108A1 (zh) 一种视频通话方法、网络设备、终端及系统
KR20150049064A (ko) 통신 네트워크에서 송수신 지연을 감소시키기 위한 시스템, 이를 위한 장치, 이를 위한 방법 및 이 방법이 기록된 컴퓨터 판독 가능한 기록매체
JP2017022680A (ja) 通信装置

Legal Events

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

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2016899892

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2016899892

Country of ref document: EP

Effective date: 20181108

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

Ref document number: 16899892

Country of ref document: EP

Kind code of ref document: A1