Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
Design of the present invention is that portable terminal provides different contextual models, judges that current contextual model is interception pattern or receiving mode, starts blacklist under the interception pattern, and interception meets the incoming call or the information of blacklist rule, and other all is accepted; Start white list under receiving mode, accept to meet the incoming call or the information of white list rule, other all is blocked.
See also Fig. 1, the portable terminal incoming call and the information filtering method of the embodiment of the invention may further comprise the steps:
Step 1: portable terminal receives incoming call or information.
Wherein, information can be note, multimedia messages or Email etc., be that example is introduced in embodiments of the present invention with the note, but its scope and embodiment is not limited to note, can also be the information of other type, as multimedia messages or Email etc.
Step 2: judgment data is incoming call or note, if incoming call then carry outstep 3, if note then carry outstep 8.
Step 3:, judge that current pattern is interception pattern or receiving mode, if receiving mode then carry outstep 4, if the interception pattern then carry out step 7 according to the contextual model that portable terminal is provided with.
The user can be provided with the contextual model of portable terminal voluntarily, in addition, portable terminal also can switch automatically to contextual model, for example, operating time automatically switches to the interception pattern, all the other times automatically switch to receiving mode, also can automatically switch to the interception pattern time of having a rest, and all the other times automatically switch to receiving mode.
Contextual model comprises interception pattern and receiving mode, under the interception pattern, starts blacklist, and interception meets the information and the incoming call of blacklist rule, and other all is accepted, and wherein, blacklist refers to the incoming call that the user refuses to answer and the information of rejection; Under receiving mode, start white list, accept to meet the information and the incoming call of white list and cards folder rule, other all is blocked, and wherein, white list refers to that the user is ready incoming call and the information accepted except cards folder.
Comprise telephone number and/or information keyword in white list and the blacklist, telephone number can be mobile phone, landline telephone or number segment.In addition, can to specify be to be applied to incoming call, note or incoming call+note to each telephone number that comprises in white list and the blacklist.When appointment was applied to send a telegram here, only when receiving incoming call, this telephone number just can come into force, if specify when being applied to note, only when receiving note, this telephone number just can come into force, if assigning incoming+note then can all come into force when receiving incoming call and note.
The information keyword comes into force at short message, as containing this keyword, then this note can be blocked in the note of sending, and the interception rule is: when rule has only telephone number or has only keyword, only mate the non-NULL part, i.e. corresponding telephone number or the keyword of coupling; When rule application during,, then should rule need mate telephone number simultaneously and keyword just comes into force if the existing telephone number of wall scroll rule has keyword again in information.For example: number is empty, and keyword is " king ", and this rule match content comprises the information of " king "; Number is " 95555 ", and keyword is " China Merchants Bank ", and this rule match number comprises " 95555 ", and content comprises the note of " China Merchants Bank " simultaneously; Number is " 13810 ", and keyword is empty.All notes and the incoming call that mate this rule will be blocked.
In addition, the user can also be provided with a plurality of keywords, can realize that the quantity of information keyword and length can be limited by the user by defining many rules.
Step 4: search the telephone number in white list and the cards folder, judge whether caller ID and number wherein are complementary, if, then carry outstep 5, if not, then carry outstep 6.
Step 5: connecting incoming call and jingle bell.
For example: contain number segment 13810 in the white list, then caller ID is then all connected if comprise 13810 number.
Step 6: refusing incoming call keeps the interception record.
Wherein, interception record comprises information such as the telephone number, commit time of interception, browses and checks for the user.Simultaneously can also carry out corresponding polite rejection according to current rejection pattern is set, the rejection pattern of setting comprises: return busy tone, return spacing, return and shut down, return and shut down.The return busy tone specific implementation is: directly send the rejection of a CM_PS_INCOING_CALL_REJECTED information to L4 and come, given by operator and call side's busy tone prompting this moment.Returning the specific implementation of shutting down is: the chance busy hour call of enabling mobile phone is shifted, when when incoming call rejection message is sent CM_PS_INCOMING_CALL_REJECTED to L4, mobile machine station was thought then that the user is just busy and the spacing of having shut down is transferred in this call request was got on this moment.Shut down, spacing uses the same method realization, be not described in detail here.
Step 7: search the telephone number in the blacklist, judge caller ID whether with blacklist in number be complementary, if then execution instep 6, if not, then execution instep 5.
Step 8:, judge that current pattern is interception pattern or receiving mode, if receiving mode then carry outstep 9, if the interception pattern then carry outstep 13 according to the contextual model that portable terminal is provided with.
The sight here be provided with pattern with when incoming call be provided with identical, also can be separately at the information setting contextual model, the contextual model that the contextual model that is provided with in the time of promptly can be with incoming call is identical to be provided with also can be with incoming call the time is inequality.
Step 9: judge to send short message number and whether with in the white list to specify and be applied to the telephone number of note and the number in the cards folder is complementary, if, then carry outstep 10, if not, then carry outstep 11.
Step 10: judge whether white list has the note keyword,, then judge the part that whether has in the note that sends over note keyword coupling if the note keyword is arranged, if, then carry outstep 12, if not, then carry outstep 11; If do not have the note keyword, then carry outstep 12.
Step 11: the rejection note keeps the interception record.
Step 12: receive note.
Whether step 13: judge to send short message number and with in the blacklist to specify the telephone number that is applied to note to be complementary, if then execution in step 14, if not, then execution instep 15.
Step 14: judge whether blacklist has the note keyword,, then judge the part that whether has in the note that sends over note keyword coupling if the note keyword is arranged, if, then carry outstep 11, if not, then carry outstep 12; If do not have the note keyword, then carry outstep 11.
Step 15: judge the part that whether has in the note that sends over note keyword coupling, if, then carry outstep 11, if not, then carry outstep 12.
See also Fig. 2, the portable terminal incoming call and the information filtering device of the embodiment of the invention comprise:
Receiver module is used for receiving incoming call or information;
Sight is provided with module, is used to be provided with the current contextual model of portable terminal;
First judge module is used for according to sight the contextual model that module is provided with being set, and judges that current contextual model is interception pattern or receiving mode;
Memory module is used to store white list and blacklist;
Blocking module is used for starting the blacklist in the memory module when first judge module judges that situation of presence pattern is the interception pattern, tackles incoming call that meets the blacklist rule or information that described receiver module receives, and other all is received;
Receiver module is used for starting the white list in the memory module when first judge module judges that situation of presence pattern is receiving mode, receives incoming call that meets the white list rule or information that described receiver module receives, and other all is blocked.
Described portable terminal incoming call and information filtering device can also comprise second judge module, are used to judge that the data that receiver module receives are incoming call or information.
Described portable terminal incoming call and information filtering device comprise that also first searches module, the 3rd judge module and phone rejecting module and telephone receiving module.
When the judged result of second judge module is that data that portable terminal receives are that the incoming call and first judge module are when judging that current contextual model is interception, first searches the telephone number in the module searches blacklist, the 3rd judge module judge caller ID whether with blacklist in number be complementary, if, then by phone rejecting module refusing incoming call, keep the interception record, if not, then by telephone receiving module connecting incoming call and jingle bell.
When the judged result of second judge module is that data that portable terminal receives are that the incoming call and first judge module judge that current contextual model is when receiving, first searches the telephone number in module searches white list and the cards folder, the 3rd judge module judges whether caller ID and number wherein are complementary, if, then telephone receiving module connecting incoming call and jingle bell, if not, then phone rejecting module refusing incoming call keeps the interception record.
Described portable terminal incoming call and information filtering device can also comprise that second searches module, the 4th judge module and information rejecting module and information receiving module.
When the judged result of second judge module is that data that portable terminal receives are that the information and first judge module are when judging that current contextual model is interception, second searches the telephone number of specifying the information that is applied in the module searches blacklist, the 4th judge module judges that whether with in the blacklist number of transmission information specify the telephone number of the information that is applied to be complementary, if be complementary, judge further then whether blacklist has the information keyword, if the information keyword is arranged, then judge the part that whether has in the information that sends over information keyword coupling, if, then by information rejecting module rejection information, keep the interception record, if not, then receive information by information receiving module, if there is not the information keyword, then by information rejecting module rejection information, keep the interception record, if be not complementary, then further judge the part that whether has in the information that sends over information keyword coupling, if, then by information rejecting module rejection information, keep the interception record, if not, then receive information by information receiving module.
When the judged result of second judge module is that data that portable terminal receives are that the information and first judge module judge that current contextual model is when receiving, second searches in the module searches white list to specify and is applied to the telephone number of information and the number in the cards folder, with in the white list whether the 4th judge module judge send short message number and to specify and be applied to the telephone number of information and the number in the cards folder is complementary, if be complementary, judge further then whether white list has the information keyword, if the information keyword is arranged, then judge the part that whether has in the information that sends over information keyword coupling, if, then receive information by information receiving module, if not, then, keep the interception record by information rejecting module rejection information; If there is not the information keyword, then receive information by information receiving module, if be not complementary,, keep the interception record then by information rejecting module rejection information.
Wherein, white list refers to the incoming call that the user is ready that except cards folder incoming call and the information accepted, blacklist refer to that the user refuses to answer and the information of rejection.
Under the interception pattern, start blacklist, interception meets the information and the incoming call of blacklist rule, and other all is accepted; Under receiving mode, start white list, accept to meet the information and the incoming call of white list and cards folder rule, other all is blocked.
Comprise telephone number and/or information keyword in white list and the blacklist, telephone number can be mobile phone, landline telephone or number segment.In addition, can to specify be to be applied to incoming call, note or incoming call+note to each telephone number that comprises in white list and the blacklist.When appointment was applied to send a telegram here, only when receiving incoming call, this telephone number just can come into force, if specify when being applied to note, only when receiving note, this telephone number just can come into force, if assigning incoming+note then can all come into force when receiving incoming call and note.
The information keyword comes into force at short message, as containing this keyword, then this note can be blocked in the note of sending, and the interception rule is: when rule has only telephone number or has only keyword, only mate the non-NULL part, i.e. corresponding telephone number or the keyword of coupling; When rule application during,, then should rule need mate telephone number simultaneously and keyword just comes into force if the existing telephone number of wall scroll rule has keyword again in information.For example: number is empty, and keyword is " king ", and this rule match content comprises the information of " king "; Number is " 95555 ", and keyword is " China Merchants Bank ", and this rule match number comprises " 95555 ", and content comprises the note of " China Merchants Bank " simultaneously; Number is " 13810 ", and keyword is empty.All notes and the incoming call that mate this rule will be blocked.
Intercept information comprises information such as the telephone number, commit time of interception, browses and checks for the user.Simultaneously can also carry out corresponding polite rejection according to current rejection pattern is set, the rejection pattern of setting comprises: return busy tone, return spacing, return and shut down, return and shut down.The return busy tone specific implementation is: directly send the rejection of a CM_PS_INCOING_CALL_REJECTED information to L4 and come, given by operator and call side's busy tone prompting this moment.Returning the specific implementation of shutting down is: the chance busy hour call of enabling mobile phone is shifted, when when incoming call rejection message is sent CM_PS_INCOMING_CALL_REJECTED to L4, mobile machine station was thought then that the user is just busy and the spacing of having shut down is transferred in this call request was got on this moment.Shut down, spacing uses the same method realization, be not described in detail here.
Adopt after the technical scheme of the present invention, portable terminal can filter incoming call and information according to the contextual model that the user sets up on their own, satisfies the demand of user under different conditions, in addition, can filter information simultaneously, and keep the interception record, make things convenient for the user to check.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.