A kind of call guard method, device, terminal and storage medium
Technical field
The present embodiments relate to the technical field of voice communication more particularly to a kind of call guard method, device, terminals
And storage medium.
Background technology
Voice communication is by voice and by the communication way of transmission medium, and voice communication rests on electricity from pervious
Words, mobile phone and intercom are developing progressively a kind of universal means of communication till now.It is not only only chatted now by phone, also
Its software, even cell phone software can realize voice communication, can be divided into consumed flow and consume two kinds of forms of telephone expenses.
In recent years, the use of the user terminals such as tablet or smart mobile phone is more and more extensive, and user can be by various logical
Communication network, such as the networks such as wireless network, 2G, 3G or 4G carry out voice communication.In the application scenarios of some specific 3G networks
Under, in the voice communication course that user is answered the call or made a phone call, it will usually some application software meetings of user terminal occur
Backstage is automatic to access data.And in user in receiving or sending out the scene of audio call, after user does not need to synchronous use
Number of units evidence, and back-end data runs voice quality can be made to degenerate simultaneously.
Invention content
The embodiment of the present invention provides a kind of call guard method, device, terminal and storage medium, is being received with solving user
Or when sending out audio call back-end data synchronous operation caused by voice quality degenerate the problem of.
In a first aspect, an embodiment of the present invention provides a kind of call guard method, this method includes:
User terminal is detected whether in call connection status;
If the user terminal is in call connection status, back-end data and network in the user terminal are disconnected
Connection.
Further, it is disconnected in the user terminal after the connection of back-end data and network described, the method is also
Including:
If the user terminal disconnects call connection, restore the company of the back-end data and network in the user terminal
It connects.
Further, the connection for disconnecting back-end data and network in the user terminal, including:
The message of release data link is sent to modem, so that the modem is according to the release data
The data link of the message release back-end data of link.
Further, whether the detection user terminal is in call connection status, including:
Whether order modems detect the user terminal in call connection status according to the preset time.
Second aspect, an embodiment of the present invention provides a kind of call protective device, which includes:Converse detection module and
Network disconnects module;
The call detection module, for whether detecting user terminal in call connection status;
The network disconnects module, if being in call connection status for the user terminal, disconnects the user
The connection of back-end data and network in terminal.
Further, described device further includes:Network connecting module, on the backstage in disconnecting the user terminal
After the connection of data and network, if the user terminal disconnects call connection, restore the backstage in the user terminal
The connection of data and network.
Further, the network disconnects module and includes:Link releasing unit, for sending the message of release data link
To modem, so that data-link of the modem according to the message release back-end data of the release data link
Road.
Further, the call detection module includes:Call detection unit, for order modems according to default
Time whether detect the user terminal in call connection status.
The third aspect, the embodiment of the present invention additionally provide a kind of terminal, and the terminal includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are performed by one or more of processors so that one or more of processing
Device realizes the call guard method as described in any embodiment of the present invention.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer readable storage medium, are stored thereon with computer
Program realizes the call guard method as described in any embodiment of the present invention when the program is executed by processor.
The embodiment of the present invention is by detecting whether user terminal is in call connection status, and if the user terminal
In call connection status, then the connection of back-end data and network in the user terminal is disconnected, after solving in communication process
Caused by platform data run the problem of call voice quality degradation so that the apparent smoothness of voice in communication process, while
Reduce the waste of network data.
Description of the drawings
Fig. 1 is a kind of flow chart of call guard method in the embodiment of the present invention one;
Fig. 2 is a kind of structure diagram of call protective device in the embodiment of the present invention two;
Fig. 3 is a kind of structure diagram of terminal in the embodiment of the present invention three.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limitation of the invention.It also should be noted that in order to just
Part related to the present invention rather than entire infrastructure are illustrated only in description, attached drawing.
Embodiment one
Fig. 1 is the flow chart of a kind of call guard method that the embodiment of the present invention one provides, and the present embodiment is applicable to
User terminal carries out the situation of call protection when conversing, this method can be performed by call protective device, which can adopt
It is realized, and can integrated in the terminal with the mode of software and/or hardware, such as mobile phone etc. has the user terminal of call function.
Wherein, the method includes:
Whether S110, detection user terminal are in call connection status.
Generally, after user by user terminal is made a phone call or is answered the call and successfully connected, can be considered as and its
His user terminal establishes call connection, and the user terminal of user is in call connection status at this time, can carry out voice communication.
User terminal specifically detect user terminal whether in call connection status method can there are many, for example, can utilize use
Modem (Modulator Demodulator, modem) detection in the terminal of family, can also utilize can be to shape of conversing
Application program that state is detected detects.User terminal can connect the network of what standard, what frequency range can be connected, is
It is no have outstanding antijamming capability, data upload speed have how soon, both depend on the modem in user terminal.For example, we
It the networkings behavior such as is made a phone call, surfed the Internet with mobile phone, sent short messages, being all to be handled to perform by modem, modem can be in mobile phone and wireless network
A logical channel, transmission networking data and adjustment communication mode are set up between network.
If S120, the user terminal are in call connection status, disconnect in the user terminal back-end data with
The connection of network.
Wherein, some uses WCDMA (Wideband Code Division Multiple in existing operator
Access, wideband code division multiple access) or FDD (Frequency Division Duplexing, a kind of full-duplex communication technology) can
To support to surf the Internet and make a phone call simultaneously.The network of other operators, due to standard and the problem of signal is fallen after rise, making a phone call
It synchronous cannot be carried out with online.4G networks are data-only networks, do not support to converse, be substantially all by the way of voice fallback,
Realize call, for example when making a phone call, 4G networks just fall back to 3G network.For example, on the basis of WCDMA evolution 4G networks,
In call, signal falls back to 3G network, surfs the Internet while can realizing call.It is but same due to being used there are network and call
The problem of one signal path, during leading to call, while back-end data operation the quality of call voice can be caused to decline,
Cause call voice unintelligible.
At present, the application program of various functions can be generally housed in user terminal, it can be in the laggard of connection data network
The corresponding browsing of row and operation.And when user carries out voice communication, these application programs are in the case where being not turned off, backstage
Data still can be run, and still be connect with data network, while consumption data flow.Illustratively, user's end is opened in user
After a browser application in end, connection data traffic can browse picture and word on webpage, if user at this time
User terminal have telephone access, and user connects and calls, and there are no close browser, number of units after browser is relevant at this time
It still can be run according to due to being connected to network.
When modem detects that the user terminal in call connection status, disconnects back-end data in the user terminal
With the connection of network, it is possible to reduce the signal interference in voice call process makes voice apparent.Of course, it is possible to according to user
Demand and each application program demand condition, specific setting will prevent the back-end data or which application program of which type
The operation of back-end data.For example, the loading that pictorial information is carried out with network connection could be provided as preventing, it is soft to video player
The relevant back-end data of part is prevented, that is, disconnects the connection with network.
Optionally, whether the detection user terminal is in call connection status, including:
Whether order modems detect the user terminal in call connection status according to the preset time.Its
In, the preset time can be for detecting the time of call connection status setting or trigger condition.Such as interval 2s detections one
Certain electrical signal levels variation in secondary or mobile phone is more than threshold value as trigger condition.It opens in user terminal and normally transports
In the state of row, modem detection call connection status can be utilized.
Optionally, the connection for disconnecting back-end data and network in the user terminal, including:
The message of release data link is sent to modem, so that the modem is according to the release data
The data link of the message release back-end data of link.Under normal circumstances, in a circuit transmitting data, need some must
Want communication protocol control data transmission, if realize these agreements hardware and software be added to chain road, this link
Data link can be considered as, data link can provide data delivery service for network layer.When back-end data runs and surfs the Internet,
Corresponding data link connection is set up, data link is always maintained at the network communication that network connection carries out user terminal, directly
This data link or the certain external events of generation, such as the intervention of user are closed to there is specific instruction.Close data-link
Road will be the network layer address release of user's distribution originally, the data link of back-end data in user terminal be discharged, after disconnection
Number of units is according to the connection with network.When back-end data in call is not run, call voice quality is not interfered with so that call language
The apparent smoothness of sound.
Optionally, it is disconnected in the user terminal after the connection of back-end data and network described, the method is also wrapped
It includes:
If the user terminal disconnects call connection, restore the company of the back-end data and network in the user terminal
It connects.Wherein, when terminating to converse in the user terminal of user, for example hanging up the telephone, call connection disconnects, and modem detects user
Terminal is in the state that call connection disconnects, and can restore the connection of the back-end data disconnected during call and network,
Such as the data link discharged is carried out to re-establish connection.User in this way can connect call after end of conversation
Ongoing data manipulation is directly operated or is browsed in user terminal before foundation, for example continues directly to pass through browser
Browse the picture and word in webpage.
During practical application, can be designed to the call guard method described in any embodiment of the present invention should
With program, be installed in user terminal, this application program by switch realize the present invention call guard method whether use,
User can be user-friendly to carry out voice communication protection by opening this switch.
The embodiment of the present invention is by detecting whether user terminal is in call connection status, and if the user terminal
In call connection status, then the connection of back-end data and network in the user terminal is disconnected, is solved in communication process, after
During carrying out data transmission during platform data run with network connection the problem of caused call voice quality degradation so that logical
The apparent smoothness of voice during words, while also reduce the waste of network data.
Embodiment two
Fig. 2 is a kind of structure diagram of protective device of conversing provided by Embodiment 2 of the present invention, and the present embodiment is applicable
In the situation that call protection is carried out when user terminal is conversed.As shown in Fig. 2, the device includes:Call detection module 210 and net
Network disconnects module 220;
The call detection module 210, for whether detecting user terminal in call connection status;
The network disconnects module 220, if being in call connection status for the user terminal, disconnects the use
The connection of back-end data and network in the terminal of family.
Optionally, described device further includes:
Network connecting module, for being disconnected in the user terminal after the connection of back-end data and network, such as described
User terminal described in fruit disconnects call connection, then restores the connection of the back-end data and network in the user terminal.
Wherein, when detection module 210 of conversing detects that the user terminal is in call connection status, network disconnects mould
Block 220 disconnects the connection of back-end data and network in the user terminal, it is possible to reduce the signal interference in voice call process,
Make voice apparent.Certainly, the condition with each application program according to the demand of user, which class can also specifically be set will prevent
The operation of the back-end data of the back-end data of type or which application program.Optionally, the network disconnects module 220 and includes:
Link releasing unit, for sending the message of release data link to modem, so that the modulation /demodulation
Device discharges the data link of back-end data according to the message of the release data link.
Optionally, the call detection module 210 includes:
Call detection unit detects whether the user terminal is in for order modems according to the preset time
Call connection status.Wherein, the preset time can be the time for conversing detection unit for detecting call connection status setting
Or trigger condition.For example certain electrical signal levels variation of the call detection unit interval 2s detections once or in mobile phone is more than
Threshold value is as trigger condition.It is opened in user terminal and in the state of normal operation, call detection unit can indicate that Modem is examined
Survey call connection status.
Above device can perform the call guard method that any embodiment of the present invention is provided, and has and performs call protection
The corresponding function module of method and advantageous effect.
It is worth noting that, in the embodiment of above-mentioned call protective device, included modules are only according to function
What logic was divided, but above-mentioned division is not limited to, as long as corresponding function can be realized;In addition, each function
The specific name of unit is also only to facilitate mutually distinguish, the protection domain being not intended to restrict the invention.
Embodiment three
Referring to Fig. 3, a kind of terminal 300 is present embodiments provided, including:One or more processors 320;Storage device
310, for storing one or more programs, when one or more of programs are performed by one or more of processors 320,
So that one or more of processors 320 realize call guard method of the embodiment of the present invention, including:
Mobile subscriber terminal is detected whether in call connection status;
If mobile terminal user's terminal is in call connection status, disconnect in mobile terminal user's terminal
The connection of back-end data and network.
Certainly, it will be understood by those skilled in the art that processor 320 can also realize that any embodiment of the present invention is provided
Call guard method technical solution.
The terminal 300 that Fig. 3 is shown is only an example, and the function and use scope of the embodiment of the present invention should not be brought
Any restrictions.
As shown in figure 3, terminal 300 is showed in the form of universal computing device.The component of terminal 300 can include but unlimited
In:One or more processor 320, storage device 310, connection different system component is (including storage device 310 and processor
320) bus 350.
Bus 350 represents one or more in a few class bus structures, including memory bus or Memory Controller,
Peripheral bus, graphics acceleration port, processor or the local bus using the arbitrary bus structures in a variety of bus structures.It lifts
For example, these architectures include but not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC)
Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Terminal 300 typically comprises a variety of computer system readable media.These media can be it is any can be by terminal
300 usable mediums accessed, including volatile and non-volatile medium, moveable and immovable medium.
Storage device 310 can include the computer system readable media of form of volatile memory, such as arbitrary access
Memory (RAM) 311 and/or cache memory 312.Terminal 300 may further include other removable/nonremovable
, volatile/non-volatile computer system storage medium.Only as an example, it is not removable to can be used for read-write for storage system 313
Dynamic, non-volatile magnetic media (Fig. 3 do not show, commonly referred to as " hard disk drive ").Although being not shown in Fig. 3, can provide
For to moving the disc driver of non-volatile magnetic disk (such as " floppy disk ") read-write and to moving anonvolatile optical disk
The CD drive of (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driver can
To be connected by one or more data media interfaces with bus 350.Storage device 310 can include at least one program and produce
Product, the program product have one group of (for example, at least one) program module, these program modules are configured to perform of the invention each
The function of embodiment.
Program/utility 314 with one group of (at least one) program module 315 can be stored in such as storage dress
In putting 310, such program module 315 includes but not limited to operating system, one or more application program, other program moulds
Block and program data may include the realization of network environment in each or certain combination in these examples.Program module
315 usually perform function and/or method in any embodiment described in the invention.
Terminal 300 can also be logical with one or more external equipments 360 (such as keyboard, sensing equipment, display 370 etc.)
Letter can also enable a user to the equipment interacted with the terminal 300 communication and/or with causing the terminal 300 with one or more
Any equipment (such as network interface card, the modem etc.) communication that can be communicated with one or more of the other computing device.This
Kind communication can be carried out by input/output (I/O) interface 330.Also, terminal 300 can also by network adapter 340 with
One or more network (such as LAN (LAN), wide area network (WAN) and/or public network, such as internet) communication.Such as
Shown in Fig. 3, network adapter 340 is communicated by bus 350 with other modules of terminal 300.It should be understood that although do not show in figure
Go out, terminal 300 can be combined and use other hardware and/or software module, including but not limited to:It is microcode, device driver, superfluous
Remaining processing unit, external disk drive array, RAID system, tape drive and data backup storage system etc..
Processor 320 is stored in the program in storage device 310 by operation, so as to perform various functions application and number
According to processing, such as realize the call guard method that the embodiment of the present invention is provided.
Example IV
The present embodiment provides a kind of computer readable storage mediums, are stored thereon with computer program, which is handled
The call guard method described in any embodiment of the present invention is realized when device performs, this method includes:
User terminal is detected whether in call connection status;
If the user terminal is in call connection status, back-end data and network in the user terminal are disconnected
Connection.
Certainly, a kind of computer readable storage medium that the embodiment of the present invention is provided, is stored thereon with computer program,
The method operation that the computer program is not limited to the described above can also be performed the call that any embodiment of the present invention is provided and protect
Relevant operation in maintaining method.
The arbitrary of one or more computer-readable media may be used in the computer storage media of the embodiment of the present invention
Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable
Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or
Device or arbitrary above combination.The more specific example (non exhaustive list) of computer readable storage medium includes:Tool
There are one or the electrical connections of multiple conducting wires, portable computer diskette, hard disk, random access memory (RAM), read-only memory
(ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-
ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage
Medium can be any tangible medium for including or storing program, which can be commanded execution system, device or device
Using or it is in connection.
Computer-readable signal media can include in a base band or as a carrier wave part propagation data-signal,
Wherein carry computer-readable program code.Diversified forms may be used in the data-signal of this propagation, including but it is unlimited
In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can
Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for
By instruction execution system, device either device use or program in connection.
The program code included on computer-readable medium can be transmitted with any appropriate medium, including --- but it is unlimited
In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
It can write to perform the computer that operates of the present invention with one or more programming language or combinations
Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++,
Further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with
It fully performs, partly perform on the user computer on the user computer, the software package independent as one performs, portion
Divide and partly perform or perform on a remote computer or server completely on the remote computer on the user computer.
Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including LAN (LAN) or
Wide area network (WAN)-be connected to subscriber computer or, it may be connected to outer computer (such as is carried using Internet service
Pass through Internet connection for quotient).
Note that it above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The present invention is not limited to specific embodiment described here, can carry out for a person skilled in the art various apparent variations,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
It can include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.