CN110944086B - Call holding method and electronic equipment - Google Patents
Call holding method and electronic equipment Download PDFInfo
- Publication number
- CN110944086B CN110944086B CN201911149677.0A CN201911149677A CN110944086B CN 110944086 B CN110944086 B CN 110944086B CN 201911149677 A CN201911149677 A CN 201911149677A CN 110944086 B CN110944086 B CN 110944086B
- Authority
- CN
- China
- Prior art keywords
- electronic device
- call
- electronic equipment
- detection
- detection request
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72463—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the invention provides a call holding method and electronic equipment, which are applied to the technical field of communication and are used for solving the problem of resource waste under the condition that any call object in a call holding state suddenly crashes or is disconnected in the related technology. The method comprises the following steps: the method comprises the steps that under the condition that a first electronic device and a second electronic device are in a call holding state, a first detection request is sent to the second electronic device, and the first detection request is used for detecting the current call state of the second electronic device. If the first electronic equipment does not receive the first detection response sent by the second electronic equipment within the first preset time, the first electronic equipment disconnects the call connection with the second electronic equipment. The method is applied to a mobile communication scene.
Description
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a call holding method and electronic equipment.
Background
With the development of communication technology, users use electronic devices (e.g., smartphones) more and more frequently. For the convenience of the user, when the user uses the electronic equipment to carry out a call, the electronic equipment can realize the purpose of carrying out a call with two parties through a call holding function. Specifically, the electronic device realizes call hold by creating a two-way call. One of the two calls is in a call state, and the other one is in a call hold state.
In the related art, an electronic device determines whether to actively hang up a call on hold by receiving a real-time transport control protocol (RTCP) message sent by a network device. Specifically, the network device sends RTCP messages to the two electronic devices in the call hold state, and when one of the electronic devices actively hangs up the call, a notification message is sent to the network device, so that the network device stops sending RTCP messages to the other electronic device, and at this time, when the other electronic device does not receive the RTCP messages, the other electronic device actively hangs up the call.
However, when any one of the two electronic devices in the call holding state suddenly crashes or is disconnected, the network device cannot send a notification message to the network device, so that the network device cannot acquire the current call state of the electronic device in time, the network device still sends an RTCP message to the other electronic device, the electronic device cannot cut off the call in the call holding state in time, and call resources are wasted.
Disclosure of Invention
The embodiment of the invention provides a call holding method and electronic equipment, which are used for solving the problem of call resource waste in the related art under the condition that any call object in a call holding state suddenly crashes or is disconnected.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present invention provides a call holding method, where the method includes: under the condition that the first electronic equipment and the second electronic equipment are in a call holding state, sending a first detection request to the second electronic equipment, wherein the first detection request is used for detecting the current call state of the second electronic equipment; if the first electronic equipment does not receive the first detection response sent by the second electronic equipment within the first preset time, the first electronic equipment disconnects the call connection with the second electronic equipment.
In a second aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes a sending module, a receiving module, and a control module; the sending module is used for sending a first detection request to the second electronic equipment, wherein the first detection request is used for detecting the current call state of the second electronic equipment; the receiving module is used for receiving a first detection response sent by the second electronic equipment after receiving the first detection request sent by the sending module; and the control module is used for disconnecting the call connection with the second electronic equipment when the receiving module does not receive the first detection response sent by the second electronic equipment within the first preset time.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and being executable on the processor, and when executed by the processor, the computer program implements the steps of the call holding method according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the call holding method according to the first aspect.
In the embodiment of the invention, the first electronic device sends the first detection request for detecting the current call state of the second electronic device to the second electronic device, and if the first detection response sent by the second electronic device is not received within the first preset time, the first electronic device can determine that the second electronic device is in the call disconnection state, so that the call connection with the second electronic device is disconnected, and therefore, under the condition that the second electronic device suddenly crashes or drops, the problem that the first electronic device cannot timely hang up the call with the second electronic device due to the fact that the call state of the first electronic device cannot be obtained is avoided, the call charge loss of a user is reduced, and the user experience is improved.
Drawings
Fig. 1 is a first schematic flow chart of a call holding method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a call holding method according to an embodiment of the present invention;
fig. 4 is a third schematic flow chart of a call holding method according to an embodiment of the present invention;
fig. 5 is a first schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Some terms involved in the embodiments of the present invention are explained below for convenience of understanding:
and (3) call holding: the mobile user who is in the process of communication can temporarily interrupt the original telephone of data and make a new telephone, and simultaneously keeps contact with the original telephone; when the original call needs to be replied, the newly-made call is kept, and then the call with the original call party is continued, namely, the two calls can be selected and switched by operating the keys of the mobile phone, and the call with the call party can be respectively or simultaneously ended.
There may be two calls that the electronic device is in connection with: 1. an active call (active call) is a call in a normal state in which a call is connected in two directions; 2. a hold call refers to a call in which one party is on one way, and the user on hold typically hears a piece of background music played on the network.
In the related art, as shown in fig. 1, when the electronic device 1 and the electronic device 2 enter the call holding state, the electronic device 1 transmits an UPDATE request message to the electronic device 2 through the network device, where a parameter a of the request message is sendonly, and the UPDATE request message is used to make the electronic device 2 enter the call holding state, and then, after receiving the request message, the electronic device 2 transmits an UPDATE response message to the electronic device 1 through the network device, where a parameter a of the response message is recurvon (receive only). Therefore, the electronic device 1 and the electronic device 2 are in a call holding state, at this time, the electronic device 1 may send media information, the electronic device 2 may receive the media information, the network device may receive the media information of the electronic device 1, but does not forward the media information to the electronic device 2, but sends a prompt tone to the electronic device 2 to prompt that the electronic device is in the call holding state. After that, the network device sends RTCP messages periodically (typically 20 seconds or 3600 seconds) to the electronic device 1 and the electronic device 2, respectively, so that the electronic device 1 and the electronic device 2 are continuously in a call-hold state.
When the electronic device 2 actively cuts off the call with the electronic device 1, the electronic device 2 sends an interrupt message to the network device, so that the network device can acquire the call state of the electronic device 2. Then, the network device stops sending the RTCP message to the electronic device 1, and when the electronic device 1 does not receive the RTCP message sent by the network device within a preset period, the electronic device 1 actively disconnects the call connection with the electronic device 2 in the call holding state of the electronic device 1.
When the electronic device 1 and the electronic device 2 are in a call hold state, if the electronic device 2 suddenly crashes or drops, the interrupt message cannot be sent to the network device, and at this time, the network device still sends the RTCP message to the electronic device 1. In this way, the electronic device 1 cannot disconnect the call connection with the electronic device 2 in time, and the call cost of the user is wasted.
In order to solve the above problem, embodiments of the present invention provide a call holding method and an electronic device, which can cut off a call connection in time when one of two parties in call holding suddenly crashes or drops, so as to reduce user loss and improve user experience.
The parameter a in the UPDATE message mentioned in the embodiment of the present invention represents the media direction of the electronic device sending the message, and the value of the parameter a may be sendonly, inactive, revonly and sendrecv. Wherein, if the direction of a certain media stream is requested to be sendonly, the direction of the corresponding media in the response must be rechonly; if the direction of a certain media stream is requested to be recvon, the direction of the corresponding media in the response must be sendonly; if the direction of a certain media stream is requested to be sendecv, the direction of the corresponding media in the response can be one of sendecv/sendonly/revonly/inactive; if the direction of a request for a media stream is inactive, the direction of the corresponding media in the response must be inactive.
It should be noted that "/" in this context means "or", for example, A/B may mean A or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone.
It should be noted that "a plurality" herein means two or more than two.
It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
It should be noted that, for the convenience of clearly describing the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, words such as "first" and "second" are used to distinguish the same items or similar items with substantially the same functions or actions, and those skilled in the art can understand that the words such as "first" and "second" do not limit the quantity and execution order. For example, the first and second detection requests are for distinguishing between different detection requests, rather than for describing a particular order of detection requests.
The main execution body of the call holding method provided in the embodiment of the present invention may be the electronic device (including a mobile terminal device and a non-mobile terminal device), or may also be a functional module and/or a functional entity capable of implementing the call holding method in the electronic device, which may be determined specifically according to actual use requirements, and the embodiment of the present invention is not limited. The following takes an electronic device as an example to exemplarily explain the call holding method provided by the embodiment of the present invention.
The electronic device in the embodiment of the present invention may be a terminal device, or may also be a User Equipment (UE). The terminal device may be a mobile terminal device or a non-mobile terminal device. The mobile terminal device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), etc.; the non-mobile terminal device may be a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, or the like; the embodiments of the present invention are not particularly limited.
The electronic device in the embodiment of the present invention may be a terminal device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
The following describes a software environment applied to the call holding method provided by the embodiment of the present invention, taking an android operating system as an example.
Fig. 2 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 2, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the call holding method provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 2, so that the call holding method may operate based on the android operating system shown in fig. 2. That is, the processor or the electronic device may implement the call holding method provided by the embodiment of the present invention by running the software program in the android operating system.
The call holding method according to the embodiment of the present invention is described below with reference to a flow chart of the call holding method shown in fig. 3, where fig. 3 is a flow chart of the call holding method according to the embodiment of the present invention, and the flow chart includes steps S201 to S202:
s201, under the condition that the first electronic device and the second electronic device are in a conversation holding state, the first electronic device sends a first detection request to the second electronic device.
The first detection request is used for detecting the current call state of the second electronic equipment.
Optionally, step S201 may include the following steps: under the condition that the first electronic device and the second electronic device are in a conversation holding state, the first electronic device sends a first detection request to the second electronic device at intervals of preset time.
For example, since either one of the two parties on hold may suddenly crash or drop, in step S201, the first electronic device and the second electronic device alternately transmit a first detection request for detecting the current call state of the other party according to the above steps at preset time intervals. Therefore, when the first electronic equipment or the second electronic equipment breaks down, the party in conversation with the first electronic equipment and maintaining conversation with the second electronic equipment can acquire the current conversation state of the party in conversation and cut off the conversation connection between the first electronic equipment and the second electronic equipment in time.
Optionally, the first detection request is an UPDATE message based on an SDP protocol.
For example, when the first electronic device transmits the first detection request, in order to ensure that the first detection response of the second electronic device can be received, the first detection request includes: the parameter a in the UPDATE message is inactive.
S202, if the first electronic equipment does not receive the first detection response sent by the second electronic equipment within the first preset time, the first electronic equipment disconnects the call connection with the second electronic equipment.
Illustratively, the first predetermined time may be 10 seconds in consideration of network delay and an operation state of the second electronic device (e.g., whether a stuck condition occurs or not). That is, when the first electronic device does not receive the first detection response sent by the second electronic device within 10 seconds after sending the first detection request to the second electronic device, the first electronic device determines that the second electronic device has a failure, and disconnects the call connection with the second electronic device.
Optionally, in the step S202, the process of disconnecting the call connection between the first electronic device and the second electronic device may further include the following steps S202a and S202 b:
s202a, if the first electronic device does not receive the first detection response sent by the second electronic device within the first preset time, the first electronic device sends a second detection request to the second electronic device.
And the second detection request is used for detecting the current call state of the second electronic equipment.
For example, in order to more accurately determine whether the second electronic device suddenly crashes or drops, a secondary detection mechanism is provided in an embodiment of the present application, that is, when the first electronic device does not receive the first detection response sent by the second electronic device within a preset time, the first electronic device sends a second detection request to the second electronic device.
S202b, if the first electronic device does not receive the second detection response sent by the second electronic device within the second preset time, the first electronic device disconnects the call connection with the second electronic device.
For example, the second preset time may be 10 seconds, considering the network delay and the operation state of the second electronic device (e.g., whether the second electronic device is stuck or not). That is, when the first electronic device does not receive the second detection response sent by the second electronic device within 10 seconds after sending the second detection request to the second electronic device, the first electronic device determines that the second electronic device is faulty, and disconnects the call connection with the second electronic device.
Optionally, in the step S201, after the first electronic device sends the first detection request to the second electronic device, the method may further include the following steps S201a and S201 b:
s201a, if the first electronic device receives the first detection response sent by the second electronic device within the first preset time, the first electronic device sends a second detection request to the second electronic device.
And the second detection request is used for detecting the current call state of the second electronic equipment.
For example, after the second electronic device receives the first detection request sent by the first electronic device, since the first detection request is an UPDATE message based on an SDP protocol and a parameter a in the UPDATE message is inactive, the first detection response sent by the second electronic device is an UPDATE message based on the SDP protocol and the parameter a in the UPDATE message is inactive according to the third generation partnership project (3 GPP) protocol specification.
S201b, if the first electronic device receives a second detection response sent by the second electronic device within a second preset time, the first electronic device maintains a call connection with the second electronic device.
For example, after the second electronic device receives the second detection request sent by the first electronic device, since the second detection request is an UPDATE message based on an SDP protocol and a parameter a in the UPDATE message is sendorly, the second detection response sent by the second electronic device is an UPDATE message based on the SDP protocol and the parameter a in the UPDATE message is revonly according to the 3GPP protocol specification.
Note that, in step S201a, the first electronic device sends an UPDATE message with parameter a being inactive to the second electronic device, and the second electronic device replies the UPDATE message with parameter a being inactive to the first electronic device, at this time, the call holding state of the first electronic device and the second electronic device has changed, so in order to recover the call holding state, the first electronic device needs to send an UPDATE message with parameter a being sendonly to the second electronic device.
For example, for convenience of understanding, as shown in fig. 4, taking a first electronic device as the electronic device 1 and a second electronic device as the electronic device 2 as an example, a flow of the call holding method provided in the embodiment of the present application is described, where the method includes the following two flows, which are flow 1 and flow 2 respectively, where:
the process 1 is as follows: when the electronic device 1 and the electronic device 2 are in a normal call holding state (that is, the electronic device 1 and the electronic device 2 do not have a sudden crash or a failure of dropping), a flow of maintaining call holding between the electronic device 1 and the electronic device 2 is performed.
The process 2 is as follows: when the electronic device 1 and the electronic device 2 are in a call holding state, and the electronic device 2 suddenly crashes or is disconnected, the electronic device 1 determines a call state of the electronic device 2.
Specifically, as shown in fig. 4, the process 1 includes the following steps:
s300a, the electronic device 1 sends a first detection request to the electronic device 2. Wherein, the parameter a in the UPDATE message in the first detection request is inactive.
S300b, after receiving the first detection request sent by the electronic device 1 within the first preset time, the electronic device 2 sends a first detection response to the electronic device 1. Wherein, the parameter a in the UPDATE message in the first detection response is inactive.
S300c, after receiving the first detection response sent by the electronic device 2 within the second preset time, the electronic device 1 sends a second detection request to the electronic device 2. Wherein, the parameter a in the UPDATE message in the second detection request is sendonly.
S300d, after receiving the second detection request sent by the electronic device 1 within the second preset time, the electronic device 2 sends a second detection response to the electronic device 1. Wherein, the parameter a in the UPDATE message in the second detection response is recurvon.
After receiving the second detection response sent by the electronic device 2 within the second preset time, the electronic device 1 determines that the electronic device 2 is in a normal call holding state, and then continues to hold the call connection with the electronic device 2.
Specifically, as shown in fig. 4, the process 2 includes the following steps:
s301a, the electronic device 1 sends a first detection request to the electronic device 2. Wherein, the parameter a in the UPDATE message in the first detection request is inactive.
S301b, when the electronic device 1 does not receive the first detection response sent by the electronic device 2 within the first preset time, sending a second detection response to the electronic device 2. Wherein, the parameter a in the UPDATE message in the second detection request is sendonly.
S301c, when the electronic device 1 does not receive the second detection response sent by the electronic device 2 within the second preset time, determining that the electronic device 2 has a fault, and disconnecting the call with the electronic device 2.
Note that, the above-mentioned flow 1 and flow 2 are flows executed periodically, and when the flow is completed, the parameter a of the UPDATE message sent by the electronic device 1 is sendonly, and the parameter a of the UPDATE message sent by the electronic device 2 is recurvon, and at this time, the state of the electronic device 2 is that only reception is not sent, so when a new flow is started, the electronic device 1 needs to send an UPDATE message with parameter a being inactive to the electronic device 2 to change the state of the electronic device 2 so that it can respond to the UPDATE message sent by the electronic device 1. Since the detection request (e.g., the first detection request and the second detection request) sent by the electronic device 1 to the electronic device 2 and the detection response (e.g., the first detection response and the second detection response) sent by the electronic device 2 to the electronic device 1 are both forwarded by the network device, the response message received by the electronic device 1 is necessarily sent by the electronic device 2. If the electronic device 2 crashes or drops suddenly, the electronic device 1 will not receive any response, and therefore, the call state of the electronic device 2 can be determined accordingly.
In the embodiment of the present invention, the call holding methods shown in the above-mentioned method drawings are all exemplarily described with reference to one drawing in the embodiment of the present invention. In specific implementation, the call holding method shown in each method drawing can also be implemented by combining any other drawing which can be combined and is illustrated in the above embodiments, and details are not described here.
According to the call keeping method provided by the embodiment of the invention, the first electronic equipment sends the detection request to the second electronic equipment, and the second electronic equipment can be found to be out of order and disconnected from the call connection with the second electronic equipment in time according to whether the first electronic equipment can receive the detection response sent by the second electronic equipment within the preset time, so that the call charge loss of a user is reduced, and the call experience of the user is improved.
Fig. 5 is a schematic diagram of a possible structure of an electronic device according to an embodiment of the present invention, and as shown in fig. 5, the electronic device 400 includes: a sending module 401, a receiving module 402 and a control module 403, wherein:
the sending module 401 is configured to send a first detection request to the second electronic device, where the first detection request is used to detect a current call state of the second electronic device. A receiving module 402, configured to receive a first detection response sent by the second electronic device after receiving the first detection request sent by the sending module. The control module 403 is configured to disconnect a call connection with the second electronic device when the receiving module 402 does not receive the first detection response sent by the second electronic device within the first preset time.
Optionally, the sending module 401 is further configured to send a second detection request to the second electronic device when the receiving module 402 does not receive the first detection response sent by the second electronic device within the first preset time, where the second detection request is used to detect the current call state of the second electronic device. The receiving module 402 is further configured to receive a second detection response sent by the second electronic device. The control module 403 is further configured to disconnect the call connection with the second electronic device when the receiving module 402 does not receive the second detection response sent by the second electronic device within the second preset time.
Optionally, the sending module 401 is specifically configured to send a second detection request to the second electronic device after the receiving module 402 receives the first detection response sent by the second electronic device within the first preset time. The control module 403 is specifically configured to maintain the call connection with the second electronic device after the receiving module 402 receives the second detection response sent by the second electronic device within the second preset time.
Optionally, the first detection request includes: UPDATE message based on session initiation protocol SDP.
Optionally, the sending module is specifically configured to send the first detection request to the second electronic device at preset time intervals.
According to the electronic equipment provided by the embodiment of the invention, the first electronic equipment sends the detection request to the second electronic equipment, and the second electronic equipment can be timely found to have a fault and disconnect the call connection with the second electronic equipment according to whether the first electronic equipment can receive the detection response sent by the second electronic equipment within the preset time, so that the call charge loss of a user is reduced, and the call experience of the user is improved.
The electronic device provided by the embodiment of the present invention can implement each process implemented by the electronic device in the above method embodiments, and is not described herein again to avoid repetition.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device 100 for implementing various embodiments of the present invention, where the electronic device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the configuration of electronic device 100 shown in fig. 6 does not constitute a limitation of the electronic device, and that electronic device 100 may include more or fewer components than shown, or combine certain components, or a different arrangement of components. In the embodiment of the present invention, the electronic device 100 includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal device, a wearable device, a pedometer, and the like.
The radio frequency unit 101 is configured to send a first detection request to the second electronic device, where the first detection request is used to detect a current call state of the second electronic device. The radio frequency unit 101 is further configured to receive a first detection response sent by the second electronic device after receiving the first detection request sent by the sending module. The processor 110 is configured to disconnect a call connection with the second electronic device when the radio frequency unit 101 does not receive the first detection response sent by the second electronic device within the first preset time.
According to the electronic equipment provided by the embodiment of the invention, the first electronic equipment sends the detection request to the second electronic equipment, and the second electronic equipment can be timely found to have a fault and disconnect the call connection with the second electronic equipment according to whether the first electronic equipment can receive the detection response sent by the second electronic equipment within the preset time, so that the call charge loss of a user is reduced, and the call experience of the user is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The electronic device 100 provides wireless broadband internet access to the user via the network module 102, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic apparatus 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The electronic device 100 also includes at least one sensor 105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the electronic device 100 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus 100. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 6, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the electronic device 100, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the electronic device 100, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the electronic apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (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/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 100 or may be used to transmit data between the electronic apparatus 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the electronic device 100, connects various parts of the entire electronic device 100 using various interfaces and lines, and performs various functions of the electronic device 100 and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the electronic device 100. Processor 110 may include one or more processing units; alternatively, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The electronic device 100 may further include a power supply 111 (e.g., a battery) for supplying power to each component, and optionally, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 100 includes some functional modules that are not shown, and are not described in detail herein.
Optionally, an embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor 110, where the computer program, when executed by the processor, implements each process of the foregoing call holding method embodiment, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the embodiment of the call holding method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (10)
1. A call hold method applied to a first electronic device is characterized by comprising the following steps:
under the condition that the first electronic device and a second electronic device are in a call holding state, sending a first detection request to the second electronic device, wherein the first detection request is used for detecting the current call state of the second electronic device;
and if the first electronic equipment does not receive the first detection response sent by the second electronic equipment within the first preset time, disconnecting the call connection with the second electronic equipment.
2. The method of claim 1, wherein the disconnecting the call connection with the second electronic device comprises:
if the first electronic device does not receive a first detection response sent by the second electronic device within a first preset time, sending a second detection request to the second electronic device, wherein the second detection request is used for detecting the current call state of the second electronic device;
and if the first electronic equipment does not receive a second detection response sent by the second electronic equipment within second preset time, disconnecting the call connection with the second electronic equipment.
3. The method of claim 1, wherein after the sending the first detection request to the second electronic device, the method further comprises:
if the first electronic equipment receives a first detection response sent by the second electronic equipment within a first preset time, sending a second detection request to the second electronic equipment, wherein the second detection request is used for detecting the current call state of the second electronic equipment;
and if the first electronic equipment receives a second detection response sent by the second electronic equipment within a second preset time, keeping the call connection with the second electronic equipment.
4. The method according to any of claims 1 to 3, wherein the first detection request comprises: UPDATE message based on session initiation protocol SDP.
5. The method of claim 4, wherein sending a first detection request to a second electronic device in a case where the first electronic device and the second electronic device are in a call-on-hold state comprises:
and sending a first detection request to the second electronic equipment at preset time intervals under the condition that the first electronic equipment and the second electronic equipment are in a conversation holding state.
6. An electronic device, comprising a transmitting module, a receiving module and a control module;
the sending module is configured to send a first detection request to a second electronic device, where the first detection request is used to detect a current call state of the second electronic device;
the receiving module is configured to receive a first detection response sent by the second electronic device after receiving the first detection request sent by the sending module;
the control module is used for disconnecting the call connection with the second electronic equipment when the receiving module does not receive the first detection response sent by the second electronic equipment within the first preset time.
7. The electronic device of claim 6,
the sending module is further configured to send a second detection request to the second electronic device when the receiving module does not receive a first detection response sent by the second electronic device within a first preset time, where the second detection request is used to detect a current call state of the second electronic device;
the receiving module is further configured to receive a second detection response sent by the second electronic device;
the control module is further configured to disconnect a call connection with the second electronic device when the receiving module does not receive a second detection response sent by the second electronic device within a second preset time.
8. The electronic device of claim 6,
the sending module is specifically configured to send a second detection request to the second electronic device after the receiving module receives a first detection response sent by the second electronic device within a first preset time;
the control module is specifically configured to maintain a call connection with the second electronic device after the receiving module receives a second detection response sent by the second electronic device within a second preset time.
9. The electronic device of any of claims 6-8, wherein the first detection request comprises: UPDATE message based on session initiation protocol SDP.
10. The electronic device of claim 9,
the sending module is specifically configured to send a first detection request to the second electronic device every preset time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911149677.0A CN110944086B (en) | 2019-11-21 | 2019-11-21 | Call holding method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911149677.0A CN110944086B (en) | 2019-11-21 | 2019-11-21 | Call holding method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110944086A CN110944086A (en) | 2020-03-31 |
CN110944086B true CN110944086B (en) | 2021-02-26 |
Family
ID=69907336
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911149677.0A Active CN110944086B (en) | 2019-11-21 | 2019-11-21 | Call holding method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110944086B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1501726A (en) * | 2002-11-18 | 2004-06-02 | Lg电子株式会社 | Mobile communication system exchange state information and operating method thereof |
CN103002115A (en) * | 2011-09-16 | 2013-03-27 | 中兴通讯股份有限公司 | Communication device and abnormal power failure processing method |
CN105164993A (en) * | 2013-04-21 | 2015-12-16 | 高通股份有限公司 | Methods and apparatuses to convey a local call hold state to a recipient device |
CN105557020A (en) * | 2014-04-08 | 2016-05-04 | 华为技术有限公司 | Call hold method and user equipment |
CN108616667A (en) * | 2018-05-14 | 2018-10-02 | 联想(北京)有限公司 | The method and device of call |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120314850A1 (en) * | 2011-06-08 | 2012-12-13 | Thomas Love | System of hardware, software and technical methods to enable active management of on hold calls on smart phones and other programmable phones |
-
2019
- 2019-11-21 CN CN201911149677.0A patent/CN110944086B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1501726A (en) * | 2002-11-18 | 2004-06-02 | Lg电子株式会社 | Mobile communication system exchange state information and operating method thereof |
CN103002115A (en) * | 2011-09-16 | 2013-03-27 | 中兴通讯股份有限公司 | Communication device and abnormal power failure processing method |
CN105164993A (en) * | 2013-04-21 | 2015-12-16 | 高通股份有限公司 | Methods and apparatuses to convey a local call hold state to a recipient device |
CN105557020A (en) * | 2014-04-08 | 2016-05-04 | 华为技术有限公司 | Call hold method and user equipment |
CN108616667A (en) * | 2018-05-14 | 2018-10-02 | 联想(北京)有限公司 | The method and device of call |
Also Published As
Publication number | Publication date |
---|---|
CN110944086A (en) | 2020-03-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108540655B (en) | Caller identification processing method and mobile terminal | |
CN112799577B (en) | Method, terminal and storage medium for projecting small window | |
CN110058836B (en) | Audio signal output method and terminal equipment | |
CN110913066A (en) | Display method and electronic equipment | |
CN108196947B (en) | Application running state control method and mobile terminal | |
CN110944408B (en) | Data transmission method and electronic equipment | |
WO2020216329A1 (en) | Handover method and terminal | |
CN113163460A (en) | Service processing method, terminal and network equipment | |
WO2021031717A1 (en) | Screen capturing method and terminal device | |
CN108282759B (en) | Service processing method and mobile communication terminal | |
CN109831359B (en) | Method for detecting connection state of data network and terminal equipment thereof | |
CN111107223B (en) | Message processing method and electronic equipment | |
WO2021000778A1 (en) | Uplink transmission discarding method, uplink transmission discarding configuration method and related device | |
CN109992192B (en) | Interface display method and terminal equipment | |
CN111093289A (en) | Service transmission method and electronic equipment | |
CN110796438A (en) | Message sending method and mobile terminal | |
CN107678622B (en) | Application icon display method, terminal and storage medium | |
CN111314903B (en) | Information sharing method and electronic equipment | |
CN109743469B (en) | VOLTE-based communication method and mobile terminal | |
CN112463234A (en) | Shutdown management method and device, intelligent terminal and readable storage medium | |
CN112395106A (en) | Process management method, mobile terminal, and computer-readable storage medium | |
CN109068276B (en) | Message conversion method and terminal | |
CN110944086B (en) | Call holding method and electronic equipment | |
CN111083293B (en) | Communication control method and electronic equipment | |
CN109788129B (en) | Message display method and terminal equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |