Summary of the invention
The invention provides call block method and device, effectively can realize the interception to harassing call, ensure the validity realized simultaneously.
The invention provides following scheme:
A kind of call block method, comprising:
In advance set up treat intercept information list, described in treat to comprise in intercept information list need tackle telephone number ownership place and/or area code section;
Incoming call situation in communication terminal is monitored, obtains the telephone number of current call;
Judge the ownership place of the telephone number of described current call and/or area code section whether appear at described in set up in advance treat in intercept information list;
If so, then described current call is tackled as interception object.
Optionally, set up in advance described in the ownership place of telephone number and/or area code section of judging described current call appear at treat in intercept information list after also comprise:
Judge that the ownership place of the telephone number of described current call and/or area code section be whether identical with the ownership place of owner's telephone number and/or area code section, if not identical, then perform and described described current call is carried out the operation of tackling as interception object.
Optionally, the ownership place of telephone number and/or area code section of judging described current call appear at set up in advance treat in intercept information list after also comprise:
Obtain the current location message of owner;
Judge that whether the ownership place of the telephone number of described current call is identical with the current location of owner, if not identical, then perform and described described current call is carried out the operation of tackling as interception object.
Optionally, set up in advance described in the ownership place of telephone number and/or area code section of judging described current call appear at treat in intercept information list after also comprise:
Obtain the address list information preserved in described communication terminal;
Judge whether to exist in described address list the telephone number with the telephone number of described current call with same home ground and/or area code section, if there is no, then perform and described described current call is carried out the operation of tackling as interception object.
Optionally, intercept information list is treated by setting up in advance:
Obtain the telephone number being defined as harassing call;
The ownership place being defined as the telephone number of harassing call to described and/or area code section are analyzed;
According to the number of times that each ownership place and/or area code section occur, determine ownership place to be tackled and/or area code section, ownership place to be tackled described in preservation and/or area code section, generate and treat intercept information list.
Optionally, the telephone number that described acquisition is defined as harassing call comprises:
To the incoming call in communication terminal and/or go electric situation to monitor;
When monitoring user and having answered Stranger Calls or dialed strange phone, prompting user marks Stranger Calls;
Be that the telephone number of the incoming call of harassing call is defined as harassing call by user annotation.
A kind of call block device, comprising:
Treat that unit is set up in intercept information list, in advance set up treat intercept information list, described in treat to comprise in intercept information list need tackle telephone number ownership place and/or area code section;
Monitoring means, for monitoring the incoming call situation in communication terminal, obtains the telephone number of current call;
Judging unit, that sets up in advance described in whether ownership place and/or area code section for judging the telephone number of described current call appear at treats in intercept information list;
Interception unit, if be yes for the judged result of described judging unit, then tackles described current call as interception object.
Optionally, also comprise:
Owner's number judging unit, for set up in advance described in appearing at the ownership place of telephone number and/or area code section of judging described current call treat in intercept information list after, judge that the ownership place of the telephone number of described current call and/or area code section be whether identical with the ownership place of owner's telephone number and/or area code section, if not identical, then perform and described described current call is carried out the operation of tackling as interception object.
Optionally, also comprise:
Owner's position acquisition unit, for set up in advance described in appearing at the ownership place of telephone number and/or area code section of judging described current call treat in intercept information list after, obtain the current location message of owner;
Owner's position judgment unit, whether identical with the current location of owner for judging the ownership place of the telephone number of described current call, if not identical, then perform and described described current call is carried out the operation of tackling as interception object.
Optionally, also comprise:
Address list information acquiring unit, for set up in advance described in appearing at the ownership place of telephone number and/or area code section of judging described current call treat in intercept information list after, obtain the address list information preserved in described communication terminal;
Address list judging unit, for judging whether to exist in described address list the telephone number with the telephone number of described current call with same home ground and/or area code section, if there is no, then perform and described described current call is carried out the operation of tackling as interception object.
Optionally, treat that intercept information list is set up unit and comprised:
Number obtains subelement, for obtaining the telephone number being defined as harassing call;
Analyze subelement, analyze for the ownership place that is defined as the telephone number of harassing call to described and/or area code section;
Determine subelement, for the number of times occurred according to each ownership place and/or area code section, determine ownership place to be tackled and/or area code section, ownership place to be tackled described in preservation and/or area code section, generate and treat intercept information list.
Optionally, described number acquisition subelement comprises:
Monitoring subelement, for the incoming call in communication terminal and/or go electric situation to monitor;
Prompting subelement, for when monitoring user and having answered Stranger Calls or dialed strange phone, prompting user marks Stranger Calls;
Obtain subelement, the telephone number for the incoming call by user annotation being harassing call is defined as harassing call.
According to specific embodiment provided by the invention, the invention discloses following technique effect:
Pass through the present invention, can based on the regional Characteristics of harassing call, ownership place and/or the qualified incoming call of area code section are tackled as interception object, that is, can can tackle as doubtful harassing call the number of some special ownership place and/or area code, in the process, due to for most of user, itself just belong to certain special ownership place or smaller after all at the be related probability of people of certain special ownership place, therefore, user can be effectively prevented to be subject to the interference of harassing call.Meanwhile, do not rely on the blacklist of telephone number due to the process that judges, therefore, be unlikely to take too much memory space yet, or reduce the efficiency of inquiry, ensure the validity realized.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain, all belongs to the scope of protection of the invention.
See Fig. 1, the call block method that the embodiment of the present invention provides comprises the following steps:
S101: in advance set up treat intercept information list, described in treat to comprise in intercept information list need tackle telephone number ownership place and/or area code section;
Generally speaking, telephone number has specific coded format, and wherein can comprise area code information.Such as, the phone number that China uses is 11, wherein each section have different coding staffs to: front 3 for network identification mark, 4-7 is for being exactly area code, and 8-11 position is Subscriber Number.The ownership place of telephone number just can be determined by area code.
The present inventor is realizing finding in process of the present invention, the telephone number of harassing call generally has obvious regional Characteristics, such as, the overwhelming majority " only ringing a sound formula phone " all derives from Foshan or other regions etc., therefore, just can using Foshan and other similar regions as object to be tackled.During specific implementation, just can set up one in advance and treat intercept information list, in this list, preservation may be the number attribution information of harassing call.Certainly because area code itself may embody information of home location to a certain extent, therefore, in this list while preservation ownership place, also area code information is preserved.Or, if some areas coding of certain ownership place often appears in harassing call, and other area codes of this ownership place infrequently appearing in harassing call, now, also only can preserve these and often appear at area code information in harassing call, etc.
Specifically foundation until intercept information list time, various ways can be had, such as, can first get the telephone number being confirmed as harassing call, then the ownership place of these telephone numbers and/or area code section are analyzed, according to the number of times that each ownership place and/or area code section occur, just can determine ownership place to be tackled and/or area code section, preserve this ownership place to be tackled and/or area code section, just can generate intercept information list.During specific implementation, can according to the setting threshold such as statistics or empirical value, if be confirmed as in the number of harassing call, the occurrence number of certain ownership place exceedes quantity threshold, or proportion exceedes certain proportion threshold value, then can be defined as ownership place to be tackled.Such as, the telephone number one being confirmed as harassing call has 100, the ownership place of 50 is wherein had to be all Foshan, then can using this ownership place as ownership place to be tackled, the area code section of number corresponding for these ownership place can also be preserved simultaneously, or directly preserve these area code sections, etc.
Wherein, when needing acquisition to be confirmed as the telephone number of harassing call, various ways can be had, such as, can directly using the telephone number in blacklist of the prior art as this telephone number being confirmed as harassing call, also namely directly can analyze the number in blacklist, obtain the provincial characteristics of number.Certainly, number in blacklist is limited after all, in order to obtain up-to-date information in time, can also in the following ways: to the incoming call of each user and/or go electric situation to monitor, if receive certain strange phone (being also the telephone number that there is not this incoming call in address list), or when having dialed certain strange phone, and do not comprise this telephone number in blacklist yet, then can after user have answered this incoming call or has dialed this phone, user can be pointed out to mark this telephone number, if number mark is harassing call by user, then can it can be used as a telephone number being confirmed as harassing call, join in the ranks analyzing its ownership place and/or area code section.Wherein, why be marked by user again after user has answered Stranger Calls or dialed certain strange phone, be because, for Stranger Calls, user is carrying out before certain converses with the other side, also cannot determine whether as harassing call, also just cannot ensure the accuracy of user's label information.
It should be noted that, in actual applications, the sender of some refuse messages may buy a collection of number for sending refuse messages simultaneously, the number of this bulk purchase may have following features: in same each number of buying of buying goods wholesale, its former bit digital may be all the same, only has several last differences; Such as, if certain refuse messages sender is a collection of have purchased 50 numbers, then these 50 first 9 of numbers possibilities are all identical, only have rear two differences, therefore, after finding this rule by monitoring, also can treat in intercept information list, preserve this nine items code, etc.
S102: monitor the incoming call situation in communication terminal, obtains the telephone number of current call;
During specific implementation, the operating system in communication terminal device can be generally the more open interfaces of application program, obtains required information for application program from system.Therefore, in embodiments of the present invention, in order to monitor the incoming call situation of communication terminal, can run an application program in communication terminal, then just can utilize this feature of communication terminal system, application programs is registered in an operating system.Like this, when operating system broadcast notice messages, application program just can this notification message of uppick, and therefrom obtains required information.Such as, when receiving incoming call, the operating system of communication terminal will broadcast this incoming message, and carries telephone number corresponding to incoming call, and like this, application program just can monitor this event, and therefrom gets the telephone number of incoming call.
S103: judge the ownership place of the telephone number of described current call and/or area code section whether appear at set up in advance treat in intercept information list;
Establish above-mentioned treat intercept information list after, just can monitor according to this list for user incoming call, if what find that certain ownership place of sending a telegram here and/or area code section appear at that this sets up in advance treats in intercept information list, then one can be it can be used as to tackle object and to tackle.
Specifically when obtaining the information of home location of current call, various ways can be had.Such as, the corresponding relation between area code and ownership place can being preserved at communication terminal in advance, when receiving current call, directly can know by this corresponding relation of inquiry the ownership place that current call is corresponding.Or, in order to avoid taking the storage resources of communication terminal, can also when receiving incoming call, the telephone number of incoming call is sent to cloud server or other provide the server of ownership place inquiry service to inquire about, the result returned according to server determines the number attribution of current call, etc.Certainly, when the mode by server lookup obtains the information of home location of number, only need the area code section of number to send to server, other number can send.Or some server providing ownership place to inquire about may require that the Query Information inputted comprises NID, now, also NID and area code (being also first 7 of phone number) can be sent to server end together to inquire about.
Certainly, in actual applications, if all tackled appearing at all incoming calls treated in intercept information list simply, then the possibility of some erroneous judgements may be there is.Such as, suppose that ownership place to be tackled comprises Foshan, and if owner is exactly people from Foshan, then from the incoming call of Foshan, may be not just harassing call; Or, if owner is not Foshan people, but currently just in time to go on business in Foshan or tourism etc., then from the incoming call also not necessarily harassing call of Foshan; Again or, if there is the friend of Foshan in the contact person of owner, then from the incoming call also not necessarily harassing call of Foshan, etc.Therefore, in embodiments of the present invention, the ownership place of telephone number and/or area code section of judging described current call appear at set up in advance treat in intercept information list after, judgements operation that some improve reliabilities can also be carried out again.Such as, can judge that the ownership place of the telephone number of current call and/or area code section be whether identical with the ownership place of owner's telephone number and/or area code section, if not identical, then continue current call to tackle as interception object, otherwise, can tackle.Or, can also by communication terminal self with navigation system etc. obtain the current location message of owner, then judge that whether the ownership place of the telephone number of current call is identical with the current location of owner, if not identical, current call is then continued to tackle as interception object, otherwise, can tackle.Again or, the address list information can also preserved in obtaining communication terminal, judge whether to exist in address list the telephone number with the telephone number of described current call with same home ground and/or area code section, if there is no, current call is then continued to tackle as interception object, otherwise, also can tackle.Certainly, in actual applications, above-mentioned various judgment mode can also be carried out various combinationally using, such as, after the ownership place and/or area code section of judging the ownership place of telephone number of current call and/or area code section and owner's telephone number are different, can also judge that whether the ownership place of the telephone number of current call is identical with the current location of owner further, if still not identical, then judge whether to exist in address list the telephone number with the telephone number of described current call with same home ground and/or area code section further, if still do not existed, perform interception operation again, etc..Certainly, when not performing interception operation, can also point out to user, informing that the ownership place of this incoming call of user is more special, may a harassing call, etc.
S104: if then described current call is tackled as interception object.
After determining an interception object, just can perform interception operation to it.This interception operation can be perform at communication terminal jingle bell and before demonstrating incoming information, and like this, user would not be subject to the impact of this phone.Certainly after execution interception, can also to user's display reminding information, to inform user, for it performs once incoming call interception operation, certainly the number be blocked can also be pointed out out, so that when there is erroneous judgement, user can according to this information, find caller ID, then carry out the operations such as clawback.Certainly, this function can be set to optional, when user determines to need to receive information, just can point out to user, otherwise can not point out.Wherein, specifically the method for tackling of sending a telegram here see the realization in prior art, can be repeated no more here.
Visible, the call block method provided by the embodiment of the present invention, based on the regional Characteristics of harassing call, can be tackled as interception object ownership place and/or the qualified incoming call of area code section, like this, user can be effectively prevented to be subject to the interference of harassing call.Meanwhile, do not rely on the blacklist of telephone number due to the process that judges, therefore, the excessive expansion being also unlikely to blacklist causes excessively taking storage resources.Certainly, in embodiments of the present invention, also need maintenance one to treat intercept information list, this list also can be kept at communication terminal this locality, and is upgraded it by high in the clouds or local program etc.; But owing to only preserving the phone home ground and/or area code segment information that need tackle in this list, therefore, for preserving the blacklist of concrete telephone number, the data stored are needed greatly to reduce, accordingly, after upgrading it even if follow-up, add new data, total data volume is also unlikely to too large, and the time needed for inquiry is also unlikely to oversize, ensures the validity realized.
Corresponding with the call block method that the embodiment of the present invention provides, the embodiment of the present invention additionally provides a kind of call block device, and see Fig. 2, this device can comprise:
Treat that unit 201 is set up in intercept information list, in advance set up treat intercept information list, described in treat to comprise in intercept information list need tackle telephone number ownership place and/or area code section;
Monitoring means 202, for monitoring the incoming call situation in communication terminal, obtains the telephone number of current call;
Judging unit 203, that sets up in advance described in whether ownership place and/or area code section for judging the telephone number of described current call appear at treats in intercept information list;
Interception unit 204, if be yes for the judged result of described judging unit, then tackles described current call as interception object.
In actual applications, this device can also comprise:
Owner's number judging unit, for appear at the ownership place of telephone number and/or area code section of judging described current call set up in advance treat in intercept information list after, judge that the ownership place of the telephone number of described current call and/or area code section be whether identical with the ownership place of owner's telephone number and/or area code section, if not identical, then perform and described described current call is carried out the operation of tackling as interception object.
Or this device can also comprise:
Owner's position acquisition unit, for appear at the ownership place of telephone number and/or area code section of judging described current call set up in advance treat in intercept information list after, obtain the current location message of owner;
Owner's position judgment unit, whether identical with the current location of owner for judging the ownership place of the telephone number of described current call, if not identical, then perform and described described current call is carried out the operation of tackling as interception object.
Moreover this device can also comprise:
Address list information acquiring unit, for appear at the ownership place of telephone number and/or area code section of judging described current call set up in advance treat in intercept information list after, obtain the address list information preserved in described communication terminal;
Address list judging unit, for judging whether to exist in described address list the telephone number with the telephone number of described current call with same home ground and/or area code section, if there is no, then perform and described described current call is carried out the operation of tackling as interception object.
Certainly, in order to reduce the probability of erroneous judgement further, each judging unit above-mentioned can be carried out with the use of, judge from many aspects simultaneously.
When specific implementation, treating that unit 201 is set up in intercept information list can by setting up described intercept information list with lower unit:
Number obtains subelement, for obtaining the telephone number being defined as harassing call;
Analyze subelement, analyze for the ownership place that is defined as the telephone number of harassing call to described and/or area code section;
Determine subelement, for the number of times occurred according to each ownership place and/or area code section, determine ownership place to be tackled and/or area code section, ownership place to be tackled described in preservation and/or area code section, generate intercept information list.
Wherein, number acquisition subelement comprises:
Monitoring subelement, for the incoming call in communication terminal and/or go electric situation to monitor;
Prompting subelement, for when monitoring user and having answered Stranger Calls or dialed strange phone, prompting user marks Stranger Calls;
Obtain subelement, the telephone number for the incoming call by user annotation being harassing call is defined as harassing call.
The call block device provided by the embodiment of the present invention, can based on the regional Characteristics of harassing call, ownership place and/or the qualified incoming call of area code section are tackled as interception object, that is, can can tackle as doubtful harassing call the number of some special ownership place and/or area code, in the process, due to for most of user, itself just belong to certain special ownership place or smaller after all at the be related probability of people of certain special ownership place, therefore, user can be effectively prevented to be subject to the interference of harassing call.Meanwhile, do not rely on the blacklist of telephone number due to the process that judges, therefore, the excessive expansion being also unlikely to blacklist causes excessively taking storage resources, ensures the validity realized.
As seen through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required general hardware platform by software and realizes.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform the method described in some part of each embodiment of the present invention or embodiment.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for device or system embodiment, because it is substantially similar to embodiment of the method, so describe fairly simple, relevant part illustrates see the part of embodiment of the method.Apparatus and system embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
Above to call block method provided by the present invention and device, be described in detail, apply specific case herein to set forth principle of the present invention and execution mode, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications.In sum, this description should not be construed as limitation of the present invention.