Patent ID: 8442195

Claim:
A method for controlling the process of establishing a call, the method comprising: setting group codes in a called terminal, wherein setting the group codes comprises setting in the called terminal a maximum number of sending incorrect group codes, and setting a blacklist to record all the calling numbers which have sent the incorrect group codes more than the maximum number of times; receiving, by the called terminal, a calling number and a corresponding group code transmitted by a calling terminal corresponding to the calling number; determining whether the corresponding calling number of the group code is in the blacklist stored in the called terminal; if the corresponding calling number of the group code is in the blacklist stored in the called terminal, refusing, by the called terminal, the call from the calling number and terminating the process; if the corresponding calling number of the group code is not in the blacklist stored in the called terminal, determining, by the called terminal, whether the received group code is one of the group codes set in the called terminal; if the received group code is one of the group codes set in the called terminal, allowing a call to be established between the calling terminal and the called terminal, otherwise, refusing the call; before the refusing the call, determining, by the called terminal, whether the calling number and the corresponding number of sending incorrect group codes have been recorded in the called terminal; if the calling number and the corresponding number of sending incorrect group codes have not been recorded in the called terminal, recording, by the called terminal, the calling number and set the number of incorrect group codes, otherwise incrementing, by the called terminal, the previously recorded number of incorrect group codes and determining whether the number of incorrect group codes after adding exceeds the preset maximum number of incorrect group codes; if the number of incorrect group codes after adding exceeds the preset maximum number of incorrect group codes, adding, by the called terminal, the calling number to the blacklist, otherwise not adding, by the called terminal, the calling number to the blacklist; wherein the method further comprises, in the called terminal, setting a level for every group code and a level for every scenario; and wherein determining, by the called terminal, whether the received group code is one of the group codes set in the called terminal comprises determining, by the called terminal, whether the level of the received group code is higher than the level of the current scenario.