A method, device, equipment, medium and program product for determining a call limiting rule

CN122909341APending Publication Date: 2026-10-13CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610742588.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-05-27
Publication Date
2026-10-13

AI Technical Summary

Technical Problem

[0005]本发明所要解决的技术问题是依靠人工肉眼比对,易出现比对遗漏、判断失误等问题,冲突检测准确性低、效率差,难以保证限呼规则配置的安全性与可靠性

Benefits of technology

[0007]本发明的有益效果是:通过获取录入的限呼规则和待验证号码,并基于待验证号码对初始匹配规则进行匹配校验以得到有效限呼规则,能够在规则配置前期确保匹配逻辑的准确性,避免因规则错误带来的异常;再将有效限呼规则与预设规则库中的存量限呼规则进行冲突判定,得到冲突规则列表,实现对冲突情况的自动识别,克服人工比对易遗漏、误判的缺陷;最后对冲突规则列表中的规则进行冲突消除处理,得到可生效的目标限呼规则,保证规则之间无冲突、执行逻辑可靠,从而有效解决相关技术中冲突判断不准确、限呼规则配置可靠性低的问题。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122909341A_ABST
    Figure CN122909341A_ABST
Patent Text Reader

Abstract

The application relates to a call limiting rule determination method, device, equipment, medium and program product. The method comprises the following steps: obtaining an input call limiting rule and a to-be-verified number; wherein the call limiting rule comprises an initial matching rule; performing matching verification on the initial matching rule based on the to-be-verified number to obtain an effective call limiting rule; performing conflict determination on the effective call limiting rule and the inventory call limiting rule in a preset rule library to obtain a conflict rule list; and performing conflict elimination processing on the rules in the conflict rule list to obtain a target call limiting rule that can take effect. The application can effectively solve the problems of inaccurate conflict determination and low call limiting rule configuration reliability in related technologies.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology, and specifically to a method, apparatus, device, medium, and program product for determining call restriction rules. Background Technology

[0002] In the field of communication network operation and maintenance management, call restriction rules are a core configuration tool for ensuring network security, regulating call behavior, and preventing harassing calls and fraud risks.

[0003] In related technologies, when a new call restriction rule is added, operations and maintenance personnel manually read and compare it with existing rules one by one to determine whether there are conflicts such as overlapping number segments or mutually exclusive operations. However, relying solely on manual comparison is prone to omissions and misjudgments, resulting in low accuracy and efficiency in conflict detection, making it difficult to guarantee the security and reliability of call restriction rule configuration.

[0004] Therefore, there is an urgent need for a method that can improve the accuracy of conflict judgment, thereby enhancing the security of call restriction rule configuration. Summary of the Invention

[0005] The technical problem to be solved by this invention is that relying on manual visual comparison is prone to problems such as comparison omissions and judgment errors, resulting in low accuracy and efficiency in conflict detection, and making it difficult to guarantee the security and reliability of call restriction rule configuration.

[0006] The technical solution of the present invention to solve the above-mentioned technical problems is as follows: a method for determining call restriction rules, the method comprising: acquiring input call restriction rules and numbers to be verified; wherein, the call restriction rules include initial matching rules; performing matching verification on the initial matching rules based on the numbers to be verified to obtain valid call restriction rules; determining conflicts between the valid call restriction rules and existing call restriction rules in a preset rule base to obtain a list of conflicting rules; and performing conflict elimination processing on the rules in the list of conflicting rules to obtain a target call restriction rule that can be effective.

[0007] The beneficial effects of this invention are as follows: By acquiring the entered call restriction rules and the numbers to be verified, and performing matching verification on the initial matching rules based on the numbers to be verified to obtain valid call restriction rules, the accuracy of the matching logic can be ensured in the early stage of rule configuration, avoiding anomalies caused by rule errors; then, the valid call restriction rules are compared with the existing call restriction rules in the preset rule library to determine conflicts, thereby obtaining a list of conflicting rules and realizing automatic identification of conflict situations, overcoming the defects of easy omission and misjudgment in manual comparison; finally, the rules in the list of conflicting rules are processed to eliminate conflicts, thereby obtaining the target call restriction rules that can take effect, ensuring that there are no conflicts between the rules and that the execution logic is reliable, thus effectively solving the problems of inaccurate conflict judgment and low reliability of call restriction rule configuration in related technologies.

[0008] Based on the above technical solution, the present invention can be further improved as follows.

[0009] Furthermore, based on the number to be verified, the initial matching rule is matched and verified to obtain a valid call restriction rule, including: compiling the initial matching rule into a regular expression matcher; using the regular expression matcher to match the number to be verified to obtain a matching result; if the matching result indicates that the number to be verified is hit by the regular expression matcher, then the call restriction rule is determined to be a valid call restriction rule.

[0010] The beneficial effect of adopting the above-mentioned further solution is that by compiling the initial matching rules into a regular expression matcher, and using the regular expression matcher to match the number to be verified to obtain the matching result, the call restriction rule is determined to be a valid call restriction rule when the number to be verified is matched. This can accurately verify the matching validity of the rules during the configuration stage and improve the accuracy and reliability of call restriction rule determination.

[0011] Furthermore, the call restriction rules also include rule operation types; based on the conflict determination between the valid call restriction rules and the existing call restriction rules in the preset rule base, a list of conflicting rules is obtained, including: detecting whether the matching range of the valid call restriction rules and the existing call restriction rules overlaps; detecting whether there is a logical contradiction between the operation type of the rule and the operation type of the existing call restriction rules; if the matching range of the valid call restriction rules and the existing call restriction rules overlaps, and the operation type of the rule and the operation type of the existing call restriction rules have a logical contradiction, a conflicting rule is determined based on the valid call restriction rules; and a list of conflicting rules is constructed based on the conflicting rules.

[0012] The beneficial effect of adopting the above-mentioned further solution is that by detecting whether the matching range of the effective call restriction rule and the existing call restriction rule overlaps, detecting whether there is a logical contradiction between the operation type of the rule and the operation type of the existing call restriction rule, and determining the conflicting rules and constructing a list of conflicting rules when the matching range overlaps and the operation type has a logical contradiction, the conflict between call restriction rules can be accurately identified, thereby improving the accuracy and reliability of conflict detection.

[0013] Furthermore, conflict resolution processing is performed on the rules in the conflict rule list to obtain the target call restriction rules that can take effect. This includes: obtaining the rule priority of the conflicting rules in the conflict rule list; wherein the rule priority is stored in a priority field of positive integer type, and the smaller the number of the field, the higher the priority; responding to the sorting operation instruction for the rule priority, obtaining the rule identifier and target position of the rule to be adjusted; updating the priority field of the rule to be adjusted according to the target position, and simultaneously adjusting the priority fields of the adjacent rules of the rule to be adjusted, to obtain a target priority field list; based on the target priority field list, repeatedly executing the step of conflict determination based on the effective call restriction rules and the existing call restriction rules in the preset rule base to obtain a conflict rule list, until the conflict rule list is empty, thus obtaining the target call restriction rules that can take effect.

[0014] The beneficial effect of adopting the above-mentioned further solution is that by defining the priority of rules through positive integer priority fields, the corresponding rule identifier and target position are obtained in response to sorting operation instructions. Based on the target position, the priority fields of adjacent rules are updated and adjusted synchronously to form a target priority field list. Conflict judgment is repeatedly carried out until there is no conflict. This can conveniently complete the orderly adjustment of rule priorities, efficiently eliminate rule conflicts, and ensure that the finally determined call restriction rules can be stably and normally effective.

[0015] Furthermore, sorting operation instructions are triggered by front-end drag-and-drop operations, or by clicking the front-end move up or move down buttons.

[0016] The beneficial effect of adopting the above-mentioned further solution is that the sorting operation command can be triggered by dragging and dropping on the front end or clicking the up and down buttons, which can flexibly and conveniently issue priority adjustment commands, simplify the rule sorting operation process, and improve the convenience and operability of priority adjustment operation.

[0017] Furthermore, the process of obtaining the entered call restriction rules and the numbers to be verified includes: performing permission verification on the target object currently performing the configuration operation and obtaining the permission verification result; if the permission verification result indicates that the permissions of the target object meet the preset permissions, displaying the visual configuration interface; in response to the entry operation on the visual configuration interface, obtaining the call restriction rules; and receiving at least one number to be verified input by the user; wherein multiple numbers to be verified are separated by a separator.

[0018] The beneficial effect of adopting the above-mentioned further solution is that by performing permission verification on the configured operation object, and displaying a visual configuration interface after the permission meets the requirements, the call restriction rules can be entered and obtained through this interface, and multiple numbers to be verified can be received by being separated by a separator. This can standardize the configuration of operation permissions, and at the same time, facilitate the unified entry and collection of rules and verification numbers.

[0019] Furthermore, the present invention provides a device for determining call restriction rules, the device comprising: an acquisition module for acquiring input call restriction rules and numbers to be verified; wherein the call restriction rules include initial matching rules; a matching verification module for performing matching verification on the initial matching rules based on the numbers to be verified to obtain valid call restriction rules; a conflict determination module for determining conflicts between valid call restriction rules and existing call restriction rules in a preset rule base to obtain a list of conflicting rules; and a conflict resolution processing module for performing conflict resolution processing on the rules in the list of conflicting rules to obtain a target call restriction rule that can take effect.

[0020] Furthermore, the present invention provides a computer device, including: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to perform the method for determining call restriction rules as described in the first aspect or any corresponding embodiment.

[0021] Furthermore, the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to execute the method for determining call restriction rules of the first aspect or any corresponding embodiment described above.

[0022] Furthermore, the present invention provides a computer program product, including computer instructions, which are used to cause a computer to execute the method for determining call restriction rules in the first aspect or any corresponding embodiment described above. Attached Figure Description

[0023] Figure 1 A schematic diagram of the structure of the call restriction rule determination system provided by the present invention; Figure 2 A flowchart illustrating the method for determining call restriction rules provided by the present invention; Figure 3 A flowchart illustrating another method for determining call restriction rules provided by the present invention; Figure 4 A flowchart illustrating another method for determining call restriction rules provided by the present invention; Figure 5 A flowchart illustrating the method for determining a further call restriction rule provided by the present invention; Figure 6 A flowchart illustrating the method for determining a further call restriction rule provided by the present invention; Figure 7 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation

[0024] The principles and features of the present invention are described below. The examples given are only for explaining the present invention and are not intended to limit the scope of the present invention.

[0025] In the field of communication network operation and maintenance management, call restriction rules are a core configuration tool for ensuring network security, regulating call behavior, and preventing harassing calls and fraud risks.

[0026] In related technologies, when a new call restriction rule is added, operations and maintenance personnel manually read and compare it with existing rules one by one to determine whether there are conflicts such as overlapping number segments or mutually exclusive operations. However, relying solely on manual comparison is prone to omissions and misjudgments, resulting in low accuracy and efficiency in conflict detection, making it difficult to guarantee the security and reliability of call restriction rule configuration.

[0027] Based on this, the present invention provides a method for determining call restriction rules. By acquiring the entered call restriction rules and the number to be verified, and performing matching verification on the initial matching rules based on the number to be verified to obtain valid call restriction rules, the accuracy of the matching logic can be ensured in the early stage of rule configuration, avoiding anomalies caused by rule errors. Then, the valid call restriction rules are compared with the existing call restriction rules in the preset rule library to determine conflicts, thereby obtaining a list of conflicting rules. This enables automatic identification of conflicts and overcomes the defects of easy omissions and misjudgments in manual comparison. Finally, the rules in the list of conflicting rules are processed to eliminate conflicts, resulting in the target call restriction rules that can take effect. This ensures that there are no conflicts between the rules and that the execution logic is reliable, thereby effectively solving the problems of inaccurate conflict judgment and low reliability of call restriction rule configuration in related technologies.

[0028] According to an embodiment of the present invention, a method for determining call restriction rules is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0029] Please refer to Figure 1 , Figure 1 This is a schematic diagram of the system for determining call restriction rules provided by the present invention.

[0030] Combination Figure 1 The system for determining call restriction rules includes a front-end operation terminal, a back-end server, a rule storage module, and a permission management database.

[0031] The backend server, as the core processing unit of the system, integrates four major functional modules: The permission verification module receives operation requests from the front end and interacts with the permission management database through the permission verification data interaction channel to verify the identity and permissions of the operator, ensuring the legality of the operation.

[0032] The rule verification module is used to match and verify the entered call restriction rules with the numbers to be verified, and to filter out the valid call restriction rules.

[0033] The conflict detection module is used to compare the valid call restriction rules with the existing rules in the rule storage module, and automatically identify conflicting rules that have overlapping number segments and contradictory operation logic.

[0034] The dynamic sorting module is used to respond to sorting operation instructions sent by the front end, adjust the priority field of the rules in the rule storage module, and trigger the conflict detection module to perform a re-check after adjustment until the conflict is eliminated.

[0035] The rule storage module is responsible for storing all existing call restriction rules and their corresponding priority fields. The backend server reads the rules, updates the priorities, and writes the final target rules through the data read / write channel.

[0036] The permission management database stores the permission information of operators and provides data support for the permission verification module of the backend server.

[0037] This embodiment provides a method for determining call restriction rules, which can be used in the aforementioned call restriction rule determination system, etc. Figure 2 This is a flowchart of a method for determining call restriction rules according to an embodiment of the present invention, such as... Figure 2 As shown, the process includes the following steps: Step S201: Obtain the entered call restriction rules and the numbers to be verified; wherein, the call restriction rules include the initial matching rules.

[0038] Call restriction rules can be understood as configuration items used in a communication network to control the calling permissions of a number. Specifically, they can include information such as initial matching rules, rule operation types, and priority fields.

[0039] The initial matching rule can be understood as a logical rule used to limit the range of numbers to which the call restriction rule applies. Specifically, it can be expressed in the form of regular expressions, number ranges, etc.

[0040] The number to be verified can be understood as a real communication number provided by the operations and maintenance personnel to verify the validity of the initial matching rules, and it must be a valid number existing in the network.

[0041] Specifically, it can obtain the entered call restriction rules and the numbers to be verified.

[0042] As an example, the system performs permission verification on the target object of the current configuration operation. Once the permission is granted, a visual configuration interface is displayed. The system also responds to the input operation on the interface to obtain the call restriction rules and simultaneously receives at least one number to be verified from the user.

[0043] As an example, when a user logs in, they obtain a permission token. During configuration operations, the backend verifies the permission identifier in the token without directly accessing the database, improving verification efficiency. Users can directly input a number range (e.g., 13800000000-13899999999), which is automatically converted into an equivalent regular expression and stored. Users can upload a CSV file containing the number to be verified. The CSV file is parsed, all numbers are extracted, and after automatic deduplication, a string array is generated to obtain the number to be verified.

[0044] Step S202: Perform a matching verification on the initial matching rule based on the number to be verified to obtain a valid call restriction rule.

[0045] A valid call restriction rule can be understood as a call restriction rule that has been verified because all numbers to be verified have been matched by the initial matching rule.

[0046] Specifically, after obtaining the number to be verified, valid call restriction rules can be obtained based on the number to be verified.

[0047] As an example, the initial matching rule is compiled into an executable regular expression matcher, which iterates through the array of numbers to be verified and uses the matcher to match each number one by one. If all numbers are matched, the verification is considered successful, and a valid call restriction rule is obtained. If there are any numbers that are not matched, the specific failure number is returned, indicating that the rule is invalid.

[0048] As an example, the array of numbers to be verified is passed to the state machine, which performs the matching and verification of all numbers at once, instead of iterating through them one by one. After the matching is completed, a verification report is generated, which includes the number of hits, the number of missing numbers and the reasons for the misses (such as format mismatch or number segment mismatch). The report can also be exported.

[0049] Step S203: Based on the valid call restriction rules and the existing call restriction rules in the preset rule base, a conflict determination is made to obtain a list of conflicting rules.

[0050] The preset rule base can be understood as a database that stores all existing call restriction rules in the communication network. Specifically, it can include information such as the initial matching rules, operation type, and priority of the rules.

[0051] The conflict rule list can be understood as a set of existing rules that conflict with valid call restriction rules. Specifically, it may include information such as rule identifier, matching rule, and operation type.

[0052] Specifically, the effective call restriction rules are compared with each existing rule in the rule base in turn to obtain a list of conflicting rules.

[0053] As an example, by randomly generating 1000 test numbers covering the same number range, we determine whether the overlap of the matching results is ≥1% (matching range overlap determination); then we determine whether there is a logical contradiction between the operation types of the two (prohibition and permission, prohibition and number conversion); if both conditions are met, it is marked as a conflict rule, and finally a list of conflict rules containing detailed information is generated.

[0054] As an example, a number segment interval comparison algorithm is used to directly parse the number segment ranges of valid rules and existing rules, and calculate the proportion of the interval intersection. An operation type conflict matrix is ​​constructed to clarify the conflict relationships between various operations (e.g., there is no conflict between allow and conversion). Conflicting rules are sorted by priority, with high-priority conflicting rules displayed first, and the reasons for the conflict are marked (e.g., number segment overlap ratio of 5%, operation type prohibition and allowance contradictory).

[0055] Step S204: Perform conflict elimination processing on the rules in the conflict rule list to obtain the target call restriction rules that can be effective.

[0056] The target call restriction rule can be understood as a call restriction rule that has undergone conflict resolution and is now officially effective without any conflicts.

[0057] Specifically, after obtaining the list of conflicting rules, conflict resolution processing can be performed on the rules in the list to obtain the target call restriction rules that can be effective.

[0058] As an example, in response to the sorting operation command triggered by dragging or moving up / down buttons on the front end, the ID of the rule to be adjusted and the target position are obtained; the priority number of the rule to be adjusted is updated according to the target position, and the priority numbers of adjacent rules are adjusted simultaneously to ensure the continuity of the priority sequence; after each adjustment is completed, the conflict determination process is re-executed until the list of conflicting rules is empty, and the target call restriction rule that can be effective is obtained.

[0059] As an example, when a front-end user clicks the "One-Click Priority Upgrade" button, the priority of the valid rule is automatically set to the minimum value (highest priority) in the rule base, eliminating the need for manual dragging and dropping. A batch update method is used, incrementing the priority number of all conflicting rules by 1, and setting the priority of the valid rule to the minimum value of the original conflicting rules. The backend asynchronously performs conflict review, and the front-end displays the review progress in real time. Upon completion of the review, it automatically notifies that the conflict has been resolved, the rule is effective, and generates a priority comparison report before and after the adjustment.

[0060] In one feasible scenario, to prevent fraudulent calls, operator maintenance personnel need to add a new call restriction rule targeting the 138 number segment. The process involves accessing the configuration interface after authorization, entering the initial matching rule, and inputting multiple fraudulent numbers as verification targets. After compiling the matcher, each number is verified; if all numbers are matched, the rule is deemed valid. Subsequently, this valid rule is compared with existing rules in the rule base for conflict determination. It is found to overlap with a rule allowing VIP users of the 138 number segment to call, and the operation is contradictory, generating a list of conflicting rules. The maintenance personnel use drag-and-drop to prioritize the new rule, simultaneously updating the priorities of other rules and re-checking. After confirming the conflict is resolved, the rule is marked as the target call restriction rule, written to the rule storage module, and officially taken effect. Subsequent call execution prioritizes matching the higher-priority blocking rule, intercepting fraudulent numbers without affecting the normal calling permissions of VIP users.

[0061] The method for determining call restriction rules provided by this invention obtains the entered call restriction rules and the number to be verified, and performs matching verification on the initial matching rules based on the number to be verified to obtain valid call restriction rules. This ensures the accuracy of the matching logic in the early stage of rule configuration and avoids anomalies caused by rule errors. Then, the valid call restriction rules are compared with the existing call restriction rules in the preset rule library to obtain a list of conflicting rules, realizing automatic identification of conflict situations and overcoming the defects of easy omission and misjudgment in manual comparison. Finally, the rules in the list of conflicting rules are processed to eliminate conflicts and obtain the target call restriction rules that can take effect, ensuring that there are no conflicts between the rules and that the execution logic is reliable. This effectively solves the problems of inaccurate conflict judgment and low reliability of call restriction rule configuration in related technologies.

[0062] Based on step S202 of this embodiment, which involves matching and verifying the initial matching rules based on the number to be verified, the effective call restriction rules are obtained as follows: Figure 3 The implementation of steps S3021 to S3023 is as follows: Step S3021: Compile the initial matching rules into a regular expression matcher.

[0063] A regular expression matcher can be understood as an executable program unit generated by converting text format regular expression rules in the background, enabling the regular expression matcher to perform batch number comparison, format validation, and range hit judgment.

[0064] Specifically, the backend rule verification module reads the initial matching rules of the text format entered by the frontend, performs legality verification on the regular expression syntax, removes content with syntax errors, and compiles and encapsulates the compliant regular expression statements into a regular expression matcher that the system can directly call and run.

[0065] Step S3022: Use a regular expression matcher to match the number to be verified and obtain the matching result.

[0066] The backend sequentially feeds the split array of numbers to be verified into the regular expression matcher, iterates through and compares each number in the array, outputs the matching status of each number, and summarizes them to form the overall matching result set.

[0067] In one possible implementation, a multi-threaded parallel matching method is used to synchronously send the array of numbers to be verified into the matcher in groups, and complete the matching of multiple numbers in batches, thereby improving the verification efficiency of a large number of numbers.

[0068] Step S3023: If the matching result indicates that the number to be verified is matched by the regular expression matcher, then the call restriction rule is determined to be a valid call restriction rule.

[0069] When all numbers to be verified are successfully matched by the matcher, the current entry rule is officially determined to be a valid call restriction rule; if any number is not matched, the rule verification is directly determined to be a failure, and the specific number information of the failed match is pushed out.

[0070] In one implementation scenario, communication network maintenance personnel enter initial regular expression matching rules for blocking harassing number segments in the background visual configuration interface, and simultaneously enter multiple real harassing communication numbers as numbers to be verified. The system automatically compiles the entered regular expression statements into a dedicated regular expression matcher, and performs matching verification on all entered harassing numbers one by one. When all harassing numbers can be accurately matched by the matcher, meeting the 100% matching pass standard, the harassing number blocking and call restriction rule is officially determined as a valid rule and smoothly enters the subsequent automatic rule conflict detection process. If some numbers cannot be matched, the system directly pushes abnormal numbers, reminding maintenance personnel to correct the regular expression matching rules until all verifications pass.

[0071] The method for determining call restriction rules provided by this invention compiles the initial matching rules into a regular expression matcher, and uses the regular expression matcher to match the number to be verified to obtain the matching result. When the number to be verified is matched, the call restriction rule is determined to be a valid call restriction rule. This method can accurately verify the matching validity of the rules during the configuration stage, thereby improving the accuracy and reliability of call restriction rule determination.

[0072] Based on step S203 of this embodiment, which involves determining the conflict between the valid call restriction rules and the existing call restriction rules in the preset rule base, a list of conflicting rules is obtained as follows: Figure 4 The implementation of steps S4031 to S4034 in the above steps: Step S4031: Detect whether the matching ranges of the valid call restriction rules and the existing call restriction rules overlap.

[0073] The existing call restriction rules can be understood as historical call restriction rules that have been pre-stored in the rule storage module and have been deployed and are in operation.

[0074] The matching range can be understood as the overall range of all communication number segments that a single call restriction rule can cover through matching logic.

[0075] Specifically, the background conflict detection module compiles the matching logic of the effective call restriction rules and the existing call restriction rules into independent matching units, and calculates the degree of overlap of the number coverage range of the two rules according to a unified judgment standard, thereby determining whether there is an overlap in the matching range of the two rules.

[0076] As an example, we compile regular expression matchers for two rules respectively, randomly generate one thousand test numbers that can fully cover the range of numbers from both sides, and perform bidirectional matching statistics. When the intersection of the bidirectional matching results is greater than or equal to one percent, the matching range is determined to be overlapping.

[0077] Step S4032: Check whether there is a logical contradiction between the rule operation type and the operation type of the existing call restriction rule.

[0078] The rule operation type can be understood as the control action that the call restriction rule performs on the hit number, which can be divided into calling ban, calling allow, number change, etc.

[0079] Specifically, the preset operation types of the effective call restriction rules and the set operation types of the existing call restriction rules are retrieved and compared and verified according to the established mutual exclusion relationship standard to determine whether there is a logical conflict at the execution level between the operation types of the rules and the operation types of the existing call restriction rules.

[0080] For example, based on the determination of conflict relationships, only the combinations of "call ban" and "call allow", and "call ban" and "number change" are considered to have logical contradictions, while the other types of combinations are considered to have no contradictions.

[0081] Step S4033: If the matching range of the effective call restriction rule and the existing call restriction rule overlaps, and the operation type of the rule and the operation type of the existing call restriction rule are logically contradictory, the conflicting rule is determined based on the effective call restriction rule.

[0082] If the matching scope of the effective call restriction rule and the existing call restriction rule overlaps, and there is a logical contradiction between the operation type of the rule and the operation type of the existing call restriction rule, then the effective call restriction rule is considered a conflicting rule.

[0083] Step S4034: Based on the conflict rules, construct a list of conflict rules.

[0084] Specifically, after traversing and screening all existing call restriction rules, all identified conflicting rules are collected and organized, and relevant fields such as rule number, matching content, and operation type are entered to generate a complete and viewable list of conflicting rules.

[0085] In one possible scenario, after the operator's voice operation and maintenance platform completes the verification of the newly added number blocking and call restriction rules, it automatically retrieves all existing call restriction rules in the rule library; it then performs a number segment coverage overlap detection on each existing rule in turn, and compares the call control operation types of the newly added rule and the existing rule; when it detects that the number segment overlap between the newly added call prohibition rule and the existing call allowance rule reaches the standard, and the operation types of the two form mutually exclusive logic, the existing rule is determined to be a conflicting rule; after all comparison work is completed, all conflicting rule information is summarized to generate a conflicting rule list and pushed to the front-end interface.

[0086] The method for determining call restriction rules provided by this invention detects whether the matching range of valid call restriction rules and existing call restriction rules overlaps, detects whether there is a logical contradiction between the operation type of the rule and the operation type of the existing call restriction rules, and determines conflicting rules and constructs a list of conflicting rules when the matching ranges overlap and the operation types have logical contradictions. This method can accurately identify conflicts between call restriction rules and improve the accuracy and reliability of conflict detection.

[0087] Based on the conflict elimination process performed on the rules in the conflict rule list in step S204 of this embodiment, the effective target call restriction rules are obtained as follows: Figure 5 The implementation of steps S5041 to S5044 in the above steps: Step S5041: Obtain the rule priority of the conflicting rules in the conflicting rule list; wherein, the rule priority is stored in a priority field of positive integer type, and the smaller the number of the field, the higher the priority.

[0088] Rule priority can be understood as the sorting criteria used to determine the order in which multiple call restriction rules are executed.

[0089] Rule priorities are stored in a priority field of positive integer type; the smaller the number in the field, the higher the priority.

[0090] Specifically, the background dynamic sorting module retrieves the generated list of conflict rules and reads the priority field value stored inside each conflict rule from the rule storage module; it then determines the priority according to a preset definition, that is, the smaller the positive integer value, the higher the execution priority of the corresponding call restriction rule, and it will be called and executed first when matching business needs.

[0091] Step S5042: Respond to the sorting operation instruction for rule priority and obtain the rule identifier and target location of the rule to be adjusted.

[0092] Sorting operation instructions can be understood as operation instructions generated by the target object through keystrokes, mouse clicks, or screen taps.

[0093] A rule identifier can be understood as a number used to uniquely distinguish each call restriction rule.

[0094] The target position can be understood as the final ranking position of the rules to be adjusted as set by the front-end operation.

[0095] Specifically, it listens for priority sorting operation commands issued by the front-end page, identifies the operation object corresponding to the command, accurately extracts the unique rule identifier corresponding to the rule to be adjusted whose order needs to be changed, and reads the rule arrangement target position information specified in this sorting operation.

[0096] In one possible example, the sorting operation instruction is triggered by a front-end drag operation, or by a front-end move up or move down button click operation.

[0097] Step S5043: Update the priority field of the rule to be adjusted according to the target location, and simultaneously adjust the priority fields of the adjacent rules of the rule to be adjusted to obtain the target priority field list.

[0098] Based on the priority value corresponding to the target location, modify the priority field content of the rule to be adjusted; simultaneously, adjust the priority field values ​​of all adjacent rules between the original location and the target location. For example, determine that the priority of the original location is 4 and the priority of the target location is 2. The adjacent rules between them are: rule Y with a priority of 2 and rule Z with a priority of 3. Shift the priority values ​​2 and 3 in the interval one position to the right: rule Y's priority changes from 2 to 3, and rule Z's priority changes from 3 to 4. Change the priority of rule M to the target value 2 directly. The adjusted target priority field list includes rule X (1), rule M (2), rule Y (3), rule Z (4), and rule N (5).

[0099] Step S5044: Based on the target priority field list, repeatedly execute the step of determining the conflict between the valid call restriction rule and the existing call restriction rule in the preset rule base to obtain the conflict rule list, until the conflict rule list is empty, and obtain the target call restriction rule that can be effective.

[0100] Specifically, based on the newly adjusted priority arrangement data, the conflict determination process is automatically invoked again to re-conduct a full-scale rule conflict detection; the priority adjustment and conflict re-inspection process is continuously executed in a loop until the conflict rule list output by the system is empty. After confirming that there are no rule logic conflicts, the currently valid call restriction rule is determined as the target call restriction rule that can be officially launched and operated.

[0101] The method for determining call restriction rules provided by this invention defines the priority of rules through a positive integer priority field, obtains the corresponding rule identifier and target position in response to sorting operation instructions, updates and synchronously adjusts the priority fields of adjacent rules based on the target position to form a target priority field list, and repeatedly performs conflict determination until no conflict exists. This method can conveniently complete the orderly adjustment of rule priorities, efficiently eliminate rule conflicts, and ensure that the finally determined call restriction rules can be stably and normally effective.

[0102] In addition, priority adjustment commands can be flexibly and conveniently issued by dragging and dropping on the front end or clicking the up and down buttons, which simplifies the rule sorting process and improves the convenience and operability of priority adjustment operations.

[0103] Based on step S201 of this embodiment, the method for obtaining the entered call restriction rules and the number to be verified is as follows: Figure 6 The implementation of steps S6011 to S6014 in the above steps is as follows: Step S6011: Perform permission verification on the target object currently performing the configuration operation to obtain the permission verification result.

[0104] The permission verification result can be understood as the judgment result output after the permission verification is completed, which can be divided into two categories: permission compliance and insufficient permission.

[0105] Specifically, when an operator initiates a call restriction rule configuration request, the corresponding permission data of the operator is retrieved, compared and verified against the preset operation permission standards, and finally a clear permission verification result of permission approval or permission rejection is generated.

[0106] The preset operation permissions can be divided into administrator roles: the highest level of permission, which can perform all operations, including core operations such as rule import, global rule configuration, rule deletion, and batch configuration, without any operation scope restrictions.

[0107] Regular Operator Role: Basic permission level. Can only perform rule addition / modification operations in the area under their personal responsibility. Has no permission to delete rules, import in batches, or configure global rules. And the operation results must be approved by the admin role before they take effect.

[0108] View Role: Only allows viewing rule base data; no configuration operation permissions are available.

[0109] Step S6012: If the permission verification result indicates that the permissions of the target object meet the preset permissions, the visual configuration interface is displayed.

[0110] If the permission verification result indicates that the target object's permissions meet the preset permissions, the front-end page will automatically load and display the dedicated visual configuration interface for call restriction rules; if the permissions do not meet the requirements, access to the configuration page will be denied and a permission deficiency prompt will pop up, prohibiting subsequent data entry operations.

[0111] Step S6013: In response to the input operation for the visual configuration interface, obtain the call restriction rules.

[0112] The system monitors all input and selection operations within the visual configuration interface, collects all configuration content such as the initial matching rules and selected rule operation types filled in by the operators, and integrates and summarizes them to form complete call restriction rule data.

[0113] Step S6014: Receive at least one number to be verified by the user; wherein multiple numbers to be verified are separated by a separator.

[0114] The configuration interface receives the verification number entered by the operator in the number input area. It supports single number input and batch input of multiple numbers. Multiple numbers are separated by a specified separator to complete the unified collection of number data.

[0115] In a feasible example, the operator's backend operation and maintenance platform receives a request from an operations and maintenance personnel to configure new harassing call blocking rules. First, the platform verifies the permissions of the operations and maintenance personnel's account to confirm that they have the preset operation permissions for entering and configuring call restriction rules. Then, a visual rule configuration interface automatically pops up on the page. The operations and maintenance personnel fill in the initial matching rules for matching harassing number segments in the interface and select the corresponding call blocking operation type to complete the entry of call restriction rule information. Subsequently, multiple actual harassing communication numbers are entered in the number entry area, with the numbers separated by commas to complete the batch entry.

[0116] The method for determining call restriction rules provided by this invention performs permission verification on the configured operation object. After the permission meets the requirements, a visual configuration interface is displayed. Then, the call restriction rules are entered and obtained based on the interface, and multiple numbers to be verified are received, separated by a separator. This method can standardize the configuration of operation permissions and conveniently complete the unified entry and collection of rules and verification numbers.

[0117] In some embodiments, the call restriction rule determination device of the present invention can be implemented in a combination of hardware and software. As an example, the call restriction rule determination device of the present invention can be a processor in the form of a hardware decoding processor, which is programmed to execute the call restriction rule determination method of the present invention. For example, the processor in the form of a hardware decoding processor can be one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), or other electronic components.

[0118] The modules described in the embodiments of this invention can be implemented in software or hardware. The names of the modules are not, in some cases, limiting the scope of the module itself.

[0119] An electronic device according to an embodiment of the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements any of the above-mentioned methods for determining call restriction rules. That is, an electronic device according to an embodiment of the present invention may include, but is not limited to: a processor and a memory; the memory is used to store the computer program; the processor is used to execute the method for determining call restriction rules shown in any embodiment of the present invention by calling the computer program.

[0120] In one alternative embodiment, an electronic device is provided, such as Figure 7 As shown, Figure 7 The illustrated electronic device 7000 includes a processor 7001 and a memory 7003. The processor 7001 and the memory 7003 are connected, for example, via a bus 7002. Optionally, the electronic device 7000 may further include a transceiver 7004, which can be used for data interaction between the electronic device and other electronic devices, such as sending and / or receiving data. It should be noted that in practical applications, the transceiver 7004 is not limited to one type, and the structure of the electronic device 7000 does not constitute a limitation on the embodiments of the present invention.

[0121] Processor 7001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this invention. Processor 7001 may also be a combination that implements computing functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.

[0122] Bus 7002 may include a path for transmitting information between the aforementioned components. Bus 7002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. Bus 7002 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 7 The bus 7002 is represented by only one thick line, but this does not mean that there is only one bus or one type of bus.

[0123] The memory 7003 may be ROM (Read Only Memory) or other types of static storage devices capable of storing static information and instructions, RAM (Random Access Memory) or other types of dynamic storage devices capable of storing information and instructions, or EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto.

[0124] The memory 7003 stores application code (computer program) for executing the present invention, and its execution is controlled by the processor 7001. The processor 7001 executes the application code stored in the memory 7003 to implement the content shown in the foregoing method embodiments.

[0125] Among them, electronic devices can also be terminal devices. Terminal devices can be any devices that can install applications, including at least two of the following: smartphones, tablets, laptops, desktop computers, smart speakers, smartwatches, smart TVs, and smart in-vehicle devices.

[0126] It should be noted that, Figure 7 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.

[0127] An embodiment of the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the method for determining any of the above-mentioned call restriction rules.

[0128] Alternatively, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, a floppy disk, and an optical data storage device, etc.

[0129] In an exemplary embodiment, a computer program product or computer program is also provided, which includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform the aforementioned method for determining call restriction rules.

[0130] Computer program code for performing the operations of this invention can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0131] It should be understood that the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of methods and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0132] The computer-readable storage medium provided in this invention can be, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EEPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0133] The aforementioned computer-readable storage medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the method shown in the above embodiments.

[0134] The above description is merely a preferred embodiment of the present invention and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of disclosure in this invention is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-disclosed concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features with similar functions disclosed in this invention.

[0135] It should be noted that the terms "first," "second," etc., used in the specification and claims of this invention are used to distinguish similar objects and represent a limitation on a specific order or sequence. Where appropriate, the order of use for similar objects can be interchanged so that the embodiments of the invention described herein can be implemented in an order other than that shown or described.

[0136] Those skilled in the art will recognize that this invention can be implemented as a system, method, or computer program product. Therefore, this invention can be specifically implemented in the following forms: it can be entirely hardware, entirely software (including firmware, resident software, microcode, etc.), or a combination of hardware and software, generally referred to herein as a circuit, module, or system. Furthermore, in some embodiments, this invention can also be implemented as a computer program product contained in one or more computer-readable media, which includes computer-readable program code.

[0137] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.

Claims

1. A method for determining call restriction rules, characterized in that, The method includes: Obtain the entered call restriction rules and the numbers to be verified; wherein, the call restriction rules include the initial matching rules; Based on the number to be verified, the initial matching rule is matched and verified to obtain a valid call restriction rule; Based on the conflict determination between the effective call restriction rules and the existing call restriction rules in the preset rule base, a list of conflicting rules is obtained; The rules in the conflict rule list are subjected to conflict resolution processing to obtain the target call restriction rules that can be effective.

2. The method for determining call restriction rules according to claim 1, characterized in that, The process of matching and verifying the initial matching rule based on the number to be verified to obtain a valid call restriction rule includes: The initial matching rules are compiled into a regular expression matcher; The regular expression matcher is used to match the number to be verified to obtain the matching result; If the matching result indicates that the number to be verified is matched by the regular expression matcher, then the call restriction rule is determined to be a valid call restriction rule.

3. The method for determining call restriction rules according to claim 1, characterized in that, The call restriction rules also include rule operation types; the conflict determination based on the effective call restriction rules and the existing call restriction rules in the preset rule base to obtain a conflict rule list includes: Detect whether the matching ranges of the effective call restriction rule and the existing call restriction rule overlap; Detect whether there is a logical contradiction between the operation type of the rule and the operation type of the existing call restriction rule; If the matching ranges of the effective call restriction rule and the existing call restriction rule overlap, and there is a logical contradiction between the operation type of the rule and the operation type of the existing call restriction rule, a conflicting rule is determined based on the effective call restriction rule. Based on the conflict rules, the conflict rule list is constructed.

4. The method for determining call restriction rules according to claim 1, characterized in that, The process of resolving conflicts in the rules of the conflict rule list to obtain effective target call restriction rules includes: Obtain the rule priority of the conflicting rules in the conflicting rule list; wherein, the rule priority is stored in a priority field of positive integer type, and the smaller the number of the field, the higher the priority; In response to the sorting operation command for the rule priority, obtain the rule identifier and target position of the rule to be adjusted; Update the priority field of the rule to be adjusted according to the target location, and simultaneously adjust the priority fields of the adjacent rules of the rule to be adjusted to obtain a target priority field list; Based on the target priority field list, the step of determining the conflict between the effective call restriction rule and the existing call restriction rules in the preset rule base is repeated until the conflict rule list is empty, thus obtaining the target call restriction rule that can be effective.

5. The method for determining call restriction rules according to claim 4, characterized in that, The sorting operation command is triggered by a front-end drag operation, or by clicking the front-end move up or move down button.

6. The method for determining the call restriction rule according to any one of claims 1-5, characterized in that, The process of obtaining the entered call restriction rules and the numbers to be verified includes: Perform permission verification on the target object currently performing the configuration operation, and obtain the permission verification result; If the permission verification result indicates that the target object's permissions meet the preset permissions, a visual configuration interface is displayed. In response to an input operation on the visual configuration interface, the call restriction rule is obtained; Receive at least one number to be verified from user input; multiple numbers to be verified are separated by a separator.

7. A device for determining call restriction rules, characterized in that, The device includes: The acquisition module is used to acquire the entered call restriction rules and the numbers to be verified; wherein, the call restriction rules include the initial matching rules; The matching and verification module is used to perform matching and verification on the initial matching rule based on the number to be verified, so as to obtain a valid call restriction rule; The conflict determination module is used to determine the conflict between the effective call restriction rule and the existing call restriction rules in the preset rule base, and obtain a list of conflict rules. The conflict resolution processing module is used to perform conflict resolution processing on the rules in the conflict rule list to obtain the target call restriction rules that can be effective.

8. An electronic device, characterized in that, include: A processor and a memory connected to the processor; wherein the memory stores instructions executable by the processor, the instructions being executed by the processor to cause the processor to perform the method for determining call restriction rules as described in any one of claims 1-6.

9. A non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the method for determining the call restriction rule according to any one of claims 1-6.

10. A computer program product comprising a computer program that, when executed by a processor, implements the steps of the method for determining call restriction rules according to any one of claims 1-6.