1. Technical Field
The present disclosure relates to a method for filtering incoming calls to a communication device.
2. Description of Related Art
A suspicious incoming call, such as a fraudulent call, generally rings once and terminates to entice a mobile phone user to call back. Once the mobile phone user calls back, he or she may be defrauded by caller of the fraudulent call, or may be charged for costly phone fee. Although some filter software implemented in a mobile phone may filter the fraudulent call, some normal phone calls which ring once and terminate may also be filtered.
In general, the word “module” as used herein, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language, such as, for example, Java, C, or Assembly. One or more software instructions in the unit may be integrated in firmware, such as an EPROM. It will be appreciated that module may comprise connected logic units, such as gates and flip-flops, and may comprise programmable units, such as programmable gate arrays or processors. The unit described herein may be implemented as either software and/or hardware unit and may be stored in any type of computer-readable medium or other computer storage device.
The read module 100 reads a phone number of the incoming call, the default ring duration M, and the default call frequency N. The timer module 300 calculates ring duration of the incoming call when the default ring duration M is greater than zero. The determination module 200 determines whether the default ring duration M is greater than zero, whether the ring duration reaches the default ring duration M, and whether the phone number is stored in the database 20. In the embodiment, the default ring duration M can be set as 2 seconds. The determination module 200 determines that the incoming call is suspicious when the ring duration is shorter than 2 seconds, in one example.
The control module 400 stores the phone number in the database 20 when the ring duration does not reach the default ring duration M, the phone number is not stored in the database 20. If the phone number is stored in the database 20, the control module 400 deletes the phone number from the database 20 when the ring duration reaches the default ring duration M. The control module 400 records a call frequency of the incoming call when the ring duration does not reach the default ring duration M and the phone number is not stored in the database 20. The control module 400 increments the call frequency by one when the ring duration does not reach the default ring duration M and the phone number is stored in the database 20. In the embodiment, the default call frequency N can be set as five times. The control module 400 adds the phone number to the block list and then deletes the phone number from the database 20 when the ring duration does not reach the default ring duration M and the call frequency reaches five times.
In block S10, The read module 100 reads the phone number of the incoming call, the default ring duration M, and the default call frequency N.
In block S12, The determination module 200 determines whether the default ring duration M is greater than zero. If the default ring duration M equals zero, block S22 is implemented.
If the default ring duration M is greater than zero, in block S14, the timer module 300 calculates the ring duration of the incoming call.
In block S16, the determination module 200 determines whether the ring duration reaches the default ring duration M. If the ring duration does not reach the default ring duration M, block S24 is implemented.
If the ring duration reaches the default ring duration M, in block S18, the determination module 200 further determines whether the phone number is stored in the database 20.
If the phone number is stored in the database 20, in block S20, the control module 400 deletes the phone number from the database 20.
If the phone number is not stored in the database 20, in block S22, the control module 400 retains a record of the incoming call generated by the processor 30. The control module 400 further instructs the prompt module 500 to prompt users that the incoming call occurred through a text message or a ring.
In block S24, the determination module 200 determines whether the phone number is stored in the database 20.
If the phone number is not stored in the database 20, in block S26, the control module 400 stores the phone number in the database 20. The control module 400 further records the call frequency.
If the phone number is stored in the database 20, in block S28, the control module 400 increments the call frequency by one.
In block S30, the determination module 200 determines whether the call frequency reaches the default call frequency N. If the call frequency does not reach the default call frequency N, block S34 is implemented.
If the call frequency reaches the default call frequency N, in block S32, the control module 400 adds the phone number to the block list of the firewall 40, and further deletes the phone number from the database 20.
In block S34, the control module 400 deletes the record of the incoming call, and further instructs the prompt module 500 not to prompt the users that the incoming call has occurred.
The present disclosure provides a method for filtering an incoming call to a communication device. A phone number of a fraudulent call which rings once and terminates can be blocked.
Although certain embodiments of the present disclosure have been specifically described, the present disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the present disclosure without departing from the scope and spirit of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201010528497.6 | Nov 2010 | CN | national |