Number segment configuration methods, devices, electronic equipment, and storage media
By automating the acquisition and import of verification result files, the accuracy problem caused by manual verification of number segments was solved, enabling efficient and accurate configuration of number segments in the 5GC billing system and reducing labor costs.
Patent Information
- Application Number
- CN202211633683.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-19
- Publication Date
- 2025-12-02
- Estimated Expiration
- 2042-12-19
AI Technical Summary
In existing technologies, manual verification of number segments cannot guarantee the accuracy of the number segments configured in each 5GC billing system, resulting in a large amount of labor costs and difficulty in ensuring accuracy.
By obtaining the latest full-scale planned number segment files and configured number segment files from various operators, a verification result file is generated, and a number segment bureau data script corresponding to each 5GC billing system is automatically generated. The verification result file is then imported into the system to avoid manual processing.
It improves the accuracy of number segment configuration in the 5GC billing system, reduces the need for manual processing, and lowers labor costs.
Smart Images

Figure CN116017334B_ABST
Abstract
Description
Technical Field
[0001] This application relates to number segment technology, and more particularly to a number segment configuration method, apparatus, electronic device and storage medium. Background Technology
[0002] Number segments are unique identifiers that distinguish mobile operators and mobile phone regions. The first three digits are assigned by the operator, and the last four digits are assigned by the region. The location of a mobile phone number can be determined through its number segment. The operator's core network 5GC billing system requires the configuration of number segments, which involves identifying the user's province based on the national number segment table and placing the call detail records (CDRs) into the corresponding provincial code directory. When the marketing department distributes each batch of numbers, it needs to verify the number segments to ensure the correct attribution of billing data to each province.
[0003] Currently, the number segment configuration method involves manually organizing the latest planned number segment table into a 7-digit number segment format. Based on the latest full-scale planned number segments from each operator, manual matching is used to identify number segment data with incorrect location configurations and data that is already planned but not yet configured. Finally, based on the verification results, a script is created to modify and add configured number segment data in multiple 5GC billing systems of the operator, thereby ensuring that the number segments configured in each 5GC billing system are consistent with the latest full-scale planned number segments of each operator.
[0004] However, the three operators have at least 500,000 number segments. Organizing and verifying these number segments, as well as creating scripts, consumes a lot of labor costs. Moreover, the manual processing makes it difficult to guarantee the accuracy of the number segments configured in each 5GC billing system. Summary of the Invention
[0005] This application provides a number segment configuration method, apparatus, electronic device, and storage medium to solve the technical problem in the prior art that manual verification of number segments makes it difficult to guarantee the accuracy of number segment configuration for each 5GC billing system.
[0006] In a first aspect, this application provides a number segment configuration method, applied to electronic devices of a first operator, wherein the first operator simultaneously uses multiple 5GC billing systems to bill number segments; the method includes:
[0007] Obtain the latest full-scale planned number segment files from each operator, and obtain the configured number segment files from each of the aforementioned 5GC billing systems;
[0008] Based on the latest full-scale planned number segment files of each of the aforementioned operators, the files of each of the configured number segments are checked to obtain each check result file. The check result file contains the missing number segments and / or incorrectly configured number segments in the files of the configured number segments.
[0009] Generate the number segment bureau data scripts corresponding to each of the 5GC billing systems;
[0010] The verification result files of each number segment are imported into the respective 5GC billing systems using the respective number segment data scripts.
[0011] In one embodiment, each line of data in the file of the latest full-scale planned number segments of any of the operators includes a province, a city, and at least one planned number segment possessed by the city in that province; the step of verifying the files of each of the configured number segments based on the files of the latest full-scale planned number segments of each of the operators to obtain each verification result file includes:
[0012] Each line of data in the latest full-scale planned number segment file of each of the aforementioned operators is transformed so that each line of data after transformation includes the province, city, and a planned number segment corresponding to the city in that province;
[0013] Once all the data in each line of the latest full-scale planned number segment file of each of the aforementioned operators has been converted, the standard file of the latest full-scale planned number segment of each of the aforementioned operators is obtained.
[0014] Based on the standard documents of each of the full-scale planned number segments, the documents of each configured number segment are checked to obtain the check result documents.
[0015] In one embodiment, the step of verifying the files of each configured number segment based on the standard files of each of the full-scale planned number segments to obtain each verification result file includes:
[0016] Compare the files of each configured number segment with the standard files of each full-scale planned number segment;
[0017] If it is determined that at least one configured number segment in the file of each configured number segment and the corresponding planned number segment in the standard file of the corresponding full-scale planned number segment are the same number segment, but the provinces are different, then at least one configured number segment in the file of each configured number segment is determined to be a number segment configured incorrectly in the file of each configured number segment.
[0018] If it is determined that at least one configured number segment in the file of each configured number segment does not belong to any planned number segment in the standard file of each full-scale planned number segment, then at least one configured number segment in the file of each configured number segment is determined to be a missing number segment in the file of each configured number segment.
[0019] The incorrectly configured number segments and missing number segments in each configured number segment file are identified as the verification result files.
[0020] In one embodiment, each line of data in the verification result file includes the province and the missing or misconfigured number segments in that province; before generating the number segment bureau data scripts corresponding to each of the 5GC billing systems, the following is also included:
[0021] Each line of data in each of the verification result files is transformed so that each line of data includes the province and the compressed number segment of that province; the compressed number segment of that province is the common part of multiple consecutive number segments belonging to that province in the verification result file;
[0022] Once all the data in each line of the verification result file has been converted, each compressed verification result file is obtained.
[0023] In one embodiment, the script for generating the number segment data corresponding to each of the 5GC billing systems includes:
[0024] Add the corresponding initial script template of the 5GC billing system to each province in the compressed verification result file to obtain the number segment bureau data script corresponding to each 5GC billing system.
[0025] Secondly, this application provides a number segment configuration device, applied to the electronic equipment of a first operator, wherein the first operator simultaneously uses multiple 5GC billing systems to bill number segments; the device includes:
[0026] The number segment file acquisition module is used to acquire the latest full-scale planned number segment files of each operator, and to acquire the configured number segment files from each of the 5GC billing systems.
[0027] The verification file acquisition module is used to verify the files of each configured number segment based on the latest full-scale planned number segment files of each operator, and obtain each verification result file. The verification result file contains the missing number segments and / or incorrectly configured number segments in the files of the configured number segments.
[0028] The data script acquisition module is used to generate the number segment data scripts corresponding to each of the 5GC billing systems.
[0029] The number segment data update module is used to import the verification result files of each number segment into the respective 5GC billing system through the bureau data scripts of each number segment.
[0030] Thirdly, this application provides an electronic device, including: a processor, and a memory communicatively connected to the processor;
[0031] The memory stores computer-executed instructions;
[0032] The processor executes computer execution instructions stored in the memory to implement the method as described in the first aspect.
[0033] Fourthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the method described in the first aspect.
[0034] The number segment configuration method, apparatus, electronic device, and storage medium provided in this application obtain the latest full-scale planned number segment files from each operator and obtain the configured number segment files from each of the 5GC billing systems. Based on the latest full-scale planned number segment files from each operator, the configured number segment files are checked to obtain verification result files, which contain missing number segments and / or incorrectly configured number segments in the configured number segment files. Number segment office data scripts corresponding to each of the 5GC billing systems are generated. The verification result files are then imported into each of the 5GC billing systems using the number segment office data scripts. Since the processes of obtaining the verification result files, the number segment office data scripts of each 5GC billing system, and importing the verification result files into each 5GC billing system are performed by the electronic device of the first operator, no manual processing is required. Therefore, problems caused by manual processing can be avoided, and the accuracy of number segment configuration in each 5GC billing system can be improved. Furthermore, based on the characteristics of each equipment manufacturer's 5GC billing system, the system automatically generates number segment data scripts corresponding to each equipment manufacturer's 5GC billing system, eliminating the need for manual creation of number segment data scripts. Attached Figure Description
[0035] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0036] Figure 1 This is an application scenario diagram illustrating the number segment configuration method of this application embodiment;
[0037] Figure 2 This is a flowchart illustrating an embodiment of the number segment configuration method of this application;
[0038] Figure 3 This is a flowchart illustrating another embodiment of the number segment configuration method of this application;
[0039] Figure 4 This is a schematic diagram illustrating the structure of the number segment configuration method implemented in this application;
[0040] Figure 5 This is a schematic diagram of the electronic device used to implement the number segment configuration method.
[0041] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0042] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0043] To clearly understand the technical solution of this application, the solutions of the prior art will be described in detail first.
[0044] Number segments are unique identifiers that distinguish mobile operators and mobile regions. The first three digits are assigned by the operator, and the last four digits are assigned by the region. The location of a mobile number can be determined through its number segment. The operator's core network 5GC billing system needs to configure number segments, identify them based on the national number segment table, determine the user's province, and then place the call detail records (CDRs) in the corresponding provincial code directory. Before issuing each batch of numbers, the marketing department needs to determine the province to which the number segments belong to ensure the correct assignment of billing data to each province.
[0045] Traditionally, number segment configuration involves manually organizing the latest planned number segments into a 7-digit format. Based on each operator's latest full-scale planned number segments, manual matching is used to identify number segments with incorrect location configurations and those already planned but not yet configured. Finally, scripts are created based on the verification results to modify and add configured number segment data in multiple 5GC billing systems of the operator, ensuring consistency between the number segments configured in each 5GC billing system and the operator's latest full-scale planned number segments. However, with at least 500,000 number segments across the three operators, the process of organizing and verifying number segments, along with script creation, consumes significant manual resources. Furthermore, the manual processing makes it difficult to guarantee the accuracy of number segment configurations in each 5GC billing system.
[0046] Therefore, when faced with the technical problems of existing technologies, the inventors of the first operator, through creative research, discovered a solution to reduce manual processing steps and improve the accuracy of number segment configuration in each 5GC billing system. This solution involves obtaining the latest full-scale planned number segment files from each operator, as well as the files of configured number segments in each 5GC billing system, through the first operator's electronic equipment. The latest full-scale planned number segment files from each operator are then compared with the files of each configured number segment to identify missing and / or incorrectly configured number segments. Finally, the generated number segment local data scripts corresponding to each 5GC billing system are used to import the verification files into each 5GC billing system, ensuring that the number segments configured in each 5GC billing system are consistent with the latest full-scale planned number segments from each operator. Since the processes of obtaining the verification result files, the number segment local data scripts for each 5GC billing system, and importing the verification result files into each 5GC billing system are all performed by the first operator's electronic equipment, eliminating the need for manual processing, problems caused by manual processing are avoided, and the accuracy of number segment configuration in each 5GC billing system is improved.
[0047] like Figure 1 As shown in the embodiment of this application, the application scenario of the number segment configuration method includes a first operator's electronic equipment 10 and multiple second operator's electronic equipment 20 in the corresponding network architecture. Figure 1 Only two secondary operator electronic devices 20 are shown. The primary operator's electronic device 10 communicates with multiple secondary operator electronic devices 20. Before configuring number segments for the primary operator's multiple 5GC billing systems, the primary operator's electronic device 10 first sends a request signal to obtain planned number segments. This request retrieves the latest full-scale planned number segment files from each secondary operator's electronic device 20, and also retrieves the configured number segment files and its own latest full-scale planned number segment files from each of its own 5GC billing systems. Based on the latest full-scale planned number segment files from each operator, the files of each configured number segment are verified to obtain verification result files. Number segment bureau data scripts corresponding to each 5GC billing system are generated. Each verification result file is imported into each 5GC billing system through the number segment bureau data scripts, ensuring that the number segments configured in each 5GC billing system are consistent with the latest full-scale planned number segments of each operator.
[0048] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0049] Figure 2 This application provides a method for configuring number segments according to an embodiment, such as... Figure 2 As shown, the execution subject of the number segment configuration method provided in this embodiment is the electronic equipment of the first operator. Therefore, the number segment configuration method provided in this embodiment includes the following steps:
[0050] Step 101: Obtain the latest full-scale planned number segment files from each operator, and obtain the configured number segment files from each of the 5GC billing systems.
[0051] The multiple 5GC billing systems are manufactured by different equipment manufacturers and provided to the primary operator, running on the operator's electronic equipment. To prevent omissions and / or mismatches in the number segments within these systems compared to the planned number segments of each operator, which could lead to inaccurate billing, the primary operator's electronic equipment updates the number segments in the multiple 5GC billing systems during the configuration of the planned number segments. This ensures that the number segments in the multiple 5GC billing systems are consistent with the planned number segments of each operator.
[0052] Each operator includes the primary operator and multiple secondary operators. The latest full-scale planned number segment document for each operator refers to the document containing all planned number segments at the latest time. For example, if the primary operator's latest full-scale planned number segments include planned number segments 130 and 131, then the primary operator's latest full-scale planned number segment document refers to the documents for number segments 130 and 131. The latest full-scale planned number segment of an operator refers to the operator's full-scale planned number segments at the latest moment. The full-scale planned number segment includes all planned number segments, including historical and current planned number segments. Historical planned number segments are those already allocated to users. Current planned number segments are those under planning and will be available to users after verification.
[0053] The file containing the number segments already configured in the 5GC billing system includes the number segments already configured in the 5GC billing system. These configured number segments are those that were already configured in the 5GC billing system before each operator determined the latest full-scale planned number segments, and belong to the historical planned number segments.
[0054] Specifically, when updating the number segments of multiple 5GC billing systems, the latest full-scale planned number segment files of each operator are first obtained from the electronic equipment of each operator, and the configured number segment files are obtained from multiple 5GC billing systems.
[0055] Step 102: Based on the latest full-scale planned number segment files of each operator, check the files of each configured number segment to obtain each check result file. The check result file contains the missing number segments and / or incorrectly configured number segments in the files of the configured number segments.
[0056] This process involves verifying the configured number segments in each 5GC billing system based on the latest full-scale planned number segment files from each operator. The aim is to identify missing and / or incorrectly configured number segments in these files, and to compile the verification results into files. Missing number segments include those omitted from the original configuration and / or the latest planned number segments. Incorrectly configured number segments are due to errors made during the initial manual configuration.
[0057] Step 103: Generate the number segment data script corresponding to each of the 5GC billing systems.
[0058] The number segment data script is a script used by the 5GC billing system to configure number segment data. It is used to transmit the verification result file to the 5GC billing system in a specific data format. Since each 5GC billing system is provided by a different equipment manufacturer, the formats for importing, arranging and outputting number segments are different. Therefore, it is necessary to generate a number segment data script corresponding to each 5GC billing system.
[0059] When the verification result files of each 5GC billing system are obtained, the corresponding number segment bureau data scripts for each 5GC billing system can be automatically generated.
[0060] Step 104: Import the verification result files of each number segment into the respective 5GC billing system using the data scripts of each number segment.
[0061] After generating the corresponding number segment data scripts for each 5GC billing system, the verification result files are imported into each of the 5GC billing systems through these scripts. This updates the number segments configured in each 5GC billing system, correcting previously misconfigured number segments and supplementing missing ones, thus ensuring consistency with the latest fully planned number segments of each operator. For example, by using the number segment data scripts from the 5GC billing system provided by equipment manufacturer A, the corresponding verification result files are imported into the 5GC billing system provided by equipment manufacturer A, ensuring that the updated number segments in the 5GC billing system provided by equipment manufacturer A are consistent with the latest fully planned number segments of each operator.
[0062] In this application, the latest full-scale planned number segment files of each operator are obtained, and the configured number segment files are obtained from each of the 5GC billing systems. Based on the latest full-scale planned number segment files of each operator, the configured number segment files are verified to obtain verification result files, which contain missing and / or incorrectly configured number segments in the configured number segment files. Number segment office data scripts corresponding to each of the 5GC billing systems are generated. The verification result files are then imported into each of the 5GC billing systems using the number segment office data scripts. Since the processes of obtaining the verification result files, the number segment office data scripts for each 5GC billing system, and importing the verification result files into each 5GC billing system are performed by the first operator's electronic equipment, no manual processing is required. Therefore, problems caused by manual processing can be avoided, and the accuracy of number segment configuration in each 5GC billing system can be improved. Furthermore, based on the characteristics of each equipment manufacturer's 5GC billing system, number segment office data scripts corresponding to each equipment manufacturer's 5GC billing system are automatically generated, eliminating the need for manual creation of number segment office data scripts.
[0063] As an alternative implementation method, such as Figure 3 As shown, in this embodiment, step 102 includes the following steps:
[0064] Step 201: Convert each line of data in the latest full-scale planned number segment file of each operator so that each converted line of data includes the province, city, and a planned number segment corresponding to the city in that province.
[0065] The latest full-scale planned number segments of each operator can be stored in Excel format. Each row in any operator's latest full-scale planned number segment file includes the province, city, and at least one planned number segment belonging to that city within that province. Table 1 shows the Excel file for planned number segment 130 of the first operator. The Excel table contains the province, city, long-distance area code, and number segment. Different number segments are separated by commas, and consecutive number segments within the same city are separated by "-", displaying only the starting number segment. Files for other number segments of the first operator besides 130, as well as files for the latest full-scale planned number segments of multiple second operators, are stored in a similar manner.
[0066] Table 1
[0067]
[0068] As shown in the table, each line of data in the 130 segment file includes the province, city, and multiple planning number segments.
[0069] Since each line in the latest full-scale planned number segment files of each operator contains multiple number segments, while each line in the configured number segment files of each 5GC billing system contains only one number segment, in order to facilitate the verification process in step S102, the latest full-scale planned number segment files of each operator are standardized. This standardizes the files so that, while maintaining the correspondence between number segments and provinces, cities, etc., each line of the latest full-scale planned number segment files of each operator is transformed into a single line of number segments. Specifically, each line of data in the latest full-scale planned number segment files of each operator is transformed so that each transformed line includes the province, city, and the planned number segment corresponding to that city within that province.
[0070] Step 202: When all the data in each line of the latest full-scale planned number segment file of each operator has been converted, the standard file of the latest full-scale planned number segment of each operator is obtained.
[0071] The latest standard file for the operator's full-scale planned number segments is the file obtained after all the data in each row of the operator's latest full-scale planned number segment file has been converted. As shown in Table 2, the first row of data in the standard file for the full-scale planned number segments includes the province - Xinjiang, the city - Shihezi, and the corresponding number segment 1999979.
[0072] Table 2
[0073]
[0074] Step 203: Based on the standard files of each of the full-scale planned number segments, verify the files of each configured number segment to obtain each verification result file.
[0075] When verifying the files of each configured number segment, the verification is based on the standard files of each full-scale planned number segment.
[0076] In this embodiment, each line of data in the latest full-scale planned number segment files of each operator is transformed so that each transformed line of data includes the province, city, and a planned number segment corresponding to the city in that province. Once all lines of data in the latest full-scale planned number segment files of each operator have been transformed, a standard file for the latest full-scale planned number segments of each operator is obtained. Based on the standard files of the full-scale planned number segments, the files of each configured number segment are checked to obtain each check result file. Because the files of the latest full-scale planned number segments of each operator are standardized before checking the files of each configured number segment, the check is made more convenient.
[0077] As an optional implementation, in this embodiment, step 203 includes the following steps:
[0078] Step 301: Compare the files of each configured number segment with the standard files of each full-scale planned number segment.
[0079] Step 302: If it is determined that at least one configured number segment in the file of each configured number segment and the corresponding planned number segment in the standard file of each full-scale planned number segment are the same number segment, but the provinces are different, then it is determined that at least one configured number segment in the file of each configured number segment is a number segment configured incorrectly in the file of each configured number segment.
[0080] The process involves comparing the files of each configured number segment with the standard files of each full-scale planned number segment. One purpose is to identify incorrectly configured number segments in the configured number segment files. Specifically, at least one configured number segment in the configured number segment files that corresponds to the same planned number segment as the one in the standard files of each full-scale planned number segment, but belongs to a different province, is identified as an incorrectly configured number segment.
[0081] Step 303: If it is determined that at least one configured number segment in the file of each configured number segment does not belong to any planned number segment in the standard file of the corresponding full-scale planned number segment, then at least one configured number segment in the file of each configured number segment is determined to be a missing number segment in the file of each configured number segment.
[0082] One aspect of this process is comparing the files of each configured number segment with the standard files of each full-scale planned number segment. Another is to identify missing number segments in the files of each configured number segment. As mentioned earlier, missing number segments include those not configured during the initial configuration and those currently awaiting configuration. Specifically, at least one configured number segment in the files of configured number segments that does not belong to any planned number segment in the standard files of each full-scale planned number segment can be identified as a missing number segment in the files of configured number segments.
[0083] Step 304: Identify the incorrectly configured number segments and missing number segments in the files of each configured number segment as the verification result files.
[0084] That is, all misconfigured and missing number segments in the files of each configured number segment are summarized to obtain the corresponding verification result files.
[0085] In this embodiment, the files of each configured number segment are compared with the standard files of each full-scale planned number segment. If it is determined that at least one configured number segment in each configured number segment file and the corresponding planned number segment in the standard file of the full-scale planned number segment are the same number segment, but the provinces are different, then at least one configured number segment in each configured number segment file is determined to be a misconfigured number segment in each configured number segment file. If it is determined that at least one configured number segment in each configured number segment file does not belong to any planned number segment in the standard file of the full-scale planned number segment, then at least one configured number segment in each configured number segment file is determined to be a missing number segment in each configured number segment file. The misconfigured number segments and missing number segments in each configured number segment file are determined as the verification result files. Since each verification result file is obtained by comparing with the standard files of each full-scale planned number segment to determine the misconfigured number segments and missing number segments, the accuracy of each verification result file can be improved.
[0086] As an optional implementation, in this embodiment, each line of data in the verification result file includes the province and the missing or incorrectly configured number segments for that province; before step 103, the following steps are also included:
[0087] Step 301: Convert each line of data in each of the verification result files so that each converted line of data includes the province and the compressed number segment of that province.
[0088] The compressed number segment for a given province refers to the shared segment of multiple consecutive number segments belonging to that province in the verification results file. For example, the number segment data configured by the billing system will compress number segments: if 1341340-1341349 all belong to the same province, the billing system will compress it into 134134. Similarly, if 1341300-1341399 all belong to the same province, the billing system will compress this range of number segments into 13413, and this range of data will be configured into the system as a single entry.
[0089] Step 302: When all the data in each line of each verification result file has been converted, each compressed verification result file is obtained.
[0090] In this embodiment, each line of data in each of the verification result files is transformed so that each transformed line of data includes the province and the compressed number segment of that province; the compressed number segment of that province is the common part of multiple consecutive number segments belonging to that province in the verification result files; when all lines of data in each of the verification result files have been transformed, each compressed verification result file is obtained. Since the verification result files are compressed before generating the number segment bureau data script corresponding to each 5GC billing system, the amount of data can be reduced.
[0091] Furthermore, the compression process before generating the data script for each number segment is also automated, which can handle a large amount of newly added number segment data. It eliminates the need for manual compression of large amounts of newly added number segment data, thereby improving compression efficiency and ensuring data accuracy.
[0092] As an optional implementation, in this embodiment, step 103 includes: adding the corresponding initial script template of the 5GC billing system to each province in each of the compressed verification result files, and obtaining the number segment bureau data script corresponding to each of the 5GC billing systems.
[0093] The initial script template for the 5GC billing system is used to transfer row data from Excel to the 5GC billing system.
[0094] The initial script template for the 5GC billing system is a pre-configured initial script template provided by the equipment manufacturer that produces the 5GC billing system. By adding the corresponding 5GC billing system's initial script template to each line of the compressed verification result files, the number segment bureau data script corresponding to each 5GC billing system can be obtained. Alternatively, it can be understood as using Python's merge function to match the ID of the corresponding province based on its province of origin, filling in the corresponding manufacturer's script template, and generating the number segment bureau data script.
[0095] As shown in Table 3, the rightmost column contains the scripts for the various number segments obtained by a 5GC billing system.
[0096] Table 3
[0097]
[0098] In this context, ADD GPSISEG specifies which database to add to, and PRIMARYOCSID is the corresponding province code. To add the number segment 146505, enter ADD GPSISEG: SEGSTART=86146505, SEGEND=86146505, PRIMARYOCSID="112".
[0099] As shown in Table 4, the rightmost column contains the data scripts for each number segment obtained by another 5GC billing system. The initial script template of this 5GC billing system is different from the initial script template of the 5GC billing system shown in Table 3.
[0100] Table 4
[0101]
[0102] In this embodiment, the initial script template of the corresponding 5GC billing system is added to each province in each of the compressed verification result files to obtain the number segment bureau data script corresponding to each of the 5GC billing systems, thus making the number segment bureau data script of each 5GC billing system more accurate.
[0103] As an optional implementation, in this embodiment, step 103 includes the following steps:
[0104] Step 401: If it is determined that the user has applied to transfer a number belonging to the second operator to the first operator, then the number segment corresponding to the number belonging to the second operator is determined.
[0105] Number portability refers to a user's mobile number remaining unchanged, but only the billing operator for that number changing. When a user applies for number portability, if the first operator's electronic equipment determines that the user is applying to port a number belonging to the second operator to the first operator, it will determine the number segment corresponding to the number belonging to the second operator.
[0106] Step 402: Based on the number segment corresponding to the number, determine the province to which the number belonging to the second operator belongs.
[0107] As can be seen from the foregoing embodiments, each 5GC billing system has supplemented and / or corrected the number segments through the verification result files, and has obtained the latest full-scale planned number segments of each operator. Therefore, by searching in any 5GC billing system based on the number segment corresponding to the number, the province to which the number belonging to the second operator belongs can be determined.
[0108] Step 403: The 5GC billing system, which undertakes the user's service, performs billing for the call detail records (CDRs) generated by the number belonging to the second operator, so that the billing is settled to the province to which the number belonging to the second operator belongs.
[0109] While all 5GC billing systems store the same number ranges, only one of them is responsible for handling the user's service. Therefore, after determining the province to which the number belonging to the second operator is registered, the call detail records (CDRs) generated for that number are settled through the 5GC billing system responsible for the user's service, ensuring that the charges are settled to the province to which the number belongs.
[0110] In this embodiment, if it is determined that a user applies to transfer a number belonging to a second operator to the first operator, the number segment corresponding to the number belonging to the second operator is determined; based on the number segment, the province to which the number belonging to the second operator belongs is determined; and the call detail records (CDRs) generated by the number belonging to the second operator are billed through the 5GC billing system that handles the user's services, so that the billing is settled to the province to which the number belonging to the second operator belongs. Since the number segments of each 5GC billing system have been configured in advance before the user's number transfers, the billing for the user's number belonging to the second operator can be correctly performed when the user's number transfers.
[0111] Figure 4 This is a schematic diagram of the structure of a number segment configuration device provided in an embodiment of this application, as shown below. Figure 4 As shown, the number segment configuration device 40 provided in this embodiment is located in the electronic equipment of the first operator. Therefore, the number segment configuration device 40 provided in this embodiment includes:
[0112] Number segment file acquisition module 41 is used to acquire the latest full-scale planned number segment files of each operator, and to acquire the configured number segment files from each of the 5GC billing systems.
[0113] The verification file acquisition module 42 is used to verify the files of each configured number segment based on the latest full-scale planned number segment files of each operator, and obtain each verification result file. The verification result file contains the missing number segments and / or incorrectly configured number segments in the files of the configured number segments.
[0114] The data script acquisition module 43 is used to generate the number segment data scripts corresponding to each of the 5GC billing systems.
[0115] Number segment data update module 44 is used to import the verification result files of each number segment into the 5GC billing system through the bureau data script of each number segment.
[0116] Optionally, each line of data in the latest full-scale planned number segment file of any of the operators includes a province, a city, and at least one planned number segment possessed by the city in that province; the verification file acquisition module 42 is used to: convert each line of data in the latest full-scale planned number segment file of each of the operators, so that each converted line of data includes a province, a city, and a planned number segment corresponding to the city in that province; when all lines of data in the latest full-scale planned number segment file of each of the operators have been converted, obtain a standard file of the latest full-scale planned number segment of each operator; and verify the files of each configured number segment based on the standard file of each full-scale planned number segment to obtain each verification result file.
[0117] Optionally, the verification file acquisition module 42, when verifying the files of each configured number segment based on the standard files of each full-scale planned number segment to obtain each verification result file, specifically performs the following: comparing the files of each configured number segment with the standard files of each full-scale planned number segment; if it is determined that at least one configured number segment in the files of each configured number segment and the corresponding planned number segment in the standard file of the corresponding full-scale planned number segment are the same number segment, but the provinces are different, then at least one configured number segment in the files of each configured number segment is determined to be a misconfigured number segment in the files of each configured number segment; if it is determined that at least one configured number segment in the files of each configured number segment does not belong to any planned number segment in the standard file of each full-scale planned number segment, then at least one configured number segment in the files of each configured number segment is determined to be a missing number segment in the files of each configured number segment; and determining the misconfigured number segment and the missing number segment in the files of each configured number segment as each verification result file.
[0118] Optionally, before generating the number segment configuration device 40 for each of the 5GC billing systems, the device further performs the following steps: converting each line of data in each of the verification result files so that each converted line of data includes the province and the compressed number segment of that province; the compressed number segment of that province is the common part of multiple consecutive number segments belonging to that province in the verification result file; and obtaining each compressed verification result file when all lines of data in each of the verification result files have been converted.
[0119] Optionally, the data script acquisition module 43 is specifically used to: add the corresponding initial script template of the 5GC billing system to each province in each of the compressed verification result files, and obtain the number segment bureau data script corresponding to each of the 5GC billing systems.
[0120] Optionally, after the number segment configuration device 40, it is further configured to: if it is determined that a user applies to transfer a number belonging to the second operator to the first operator, then determine the number segment corresponding to the number belonging to the second operator; based on the number segment corresponding to the number, determine the province to which the number belonging to the second operator belongs; and through the 5GC billing system that undertakes the user's business, perform billing for the call detail records (CDRs) generated by the number belonging to the second operator, so that the billing is settled to the province to which the number belonging to the second operator belongs.
[0121] Figure 5 This is a block diagram illustrating an electronic device of a first operator according to an exemplary embodiment, the device being as follows: Figure 5As shown, the electronic equipment of the first operator includes: a memory 51 and a processor 52; the memory 51 is a memory for storing processor-executable instructions; the processor 52 is used to run computer programs or instructions to implement the number segment configuration method provided in any of the above embodiments.
[0122] The memory 51 is used to store programs. Specifically, the program may include program code, which includes computer operation instructions. The memory 51 may include high-speed RAM, and may also include non-volatile memory, such as at least one disk storage device.
[0123] The processor 52 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this disclosure.
[0124] Optionally, in specific implementations, if the memory 51 and processor 52 are implemented independently, then the memory 51 and processor 52 can be interconnected via bus 53 to complete mutual communication. Bus 53 can be an Industry Standard Architecture (ISA) bus 53, a Peripheral Component Interconnect (PCI) bus 53, or an Extended Industry Standard Architecture (EISA) bus 53, etc. Bus 53 can be divided into address bus 53, data bus 53, control bus 53, etc. For ease of representation, Figure 5 The bus 53 is represented by a single thick line, but this does not mean that there is only one bus 53 or only one type of bus 53.
[0125] Optionally, in a specific implementation, if the memory 51 and the processor 52 are integrated on a single chip, the memory 51 and the processor 52 can communicate with each other through an internal interface.
[0126] A non-transitory computer-readable storage medium, wherein when the instructions in the storage medium are executed by a processor of a first operator's electronic device, the first operator's electronic device is able to execute the aforementioned number segment configuration method of the first operator's electronic device.
[0127] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.
[0128] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A method for configuring phone number segments, characterized in that, An electronic device applied to a first operator, wherein the first operator simultaneously uses multiple 5GC billing systems to bill number segments; the method includes: Obtain the latest full-scale planned number segment files from each operator, and obtain the configured number segment files from each of the aforementioned 5GC billing systems; Based on the latest full-scale planned number segment files of each of the aforementioned operators, the files of each of the configured number segments are checked to obtain each check result file. The check result file contains the missing number segments and / or incorrectly configured number segments in the files of the configured number segments. Each line of data in each of the verification result files is transformed so that each line of data includes the province and the compressed number segment of that province; the compressed number segment of that province is the common part of multiple consecutive number segments belonging to that province in the verification result file; Once all the data in each line of the verification result file has been converted, each compressed verification result file is obtained. Add the corresponding initial script template of the 5GC billing system to each province in the compressed verification result file to obtain the number segment bureau data script corresponding to each 5GC billing system; different 5GC billing systems generate different script formats; The verification result files of each number segment are imported into the respective 5GC billing systems using the respective number segment data scripts.
2. The method according to claim 1, characterized in that, Each line of data in the latest full-scale planned number segment file of any of the aforementioned operators includes the province, city, and at least one planned number segment possessed by the city in that province; The process involves verifying the files of each configured number segment based on the latest full-scale planned number segments of each operator, and obtaining each verification result file, including: Each line of data in the latest full-scale planned number segment file of each of the aforementioned operators is transformed so that each line of data after transformation includes the province, city, and a planned number segment corresponding to the city in that province; Once all the data in each line of the latest full-scale planned number segment file of each of the aforementioned operators has been converted, the standard file of the latest full-scale planned number segment of each of the aforementioned operators is obtained. Based on the standard documents of each of the full-scale planned number segments, the documents of each configured number segment are checked to obtain the check result documents.
3. The method according to claim 2, characterized in that, The standard file for each of the full-scale planned number segments is used to verify the files of each configured number segment, and the verification result files are obtained, including: Compare the files of each configured number segment with the standard files of each full-scale planned number segment; If it is determined that at least one configured number segment in the file of each configured number segment and the corresponding planned number segment in the standard file of the corresponding full-scale planned number segment are the same number segment, but the provinces are different, then at least one configured number segment in the file of each configured number segment is determined to be a number segment configured incorrectly in the file of each configured number segment. If it is determined that at least one configured number segment in the file of each configured number segment does not belong to any planned number segment in the standard file of each full-scale planned number segment, then at least one configured number segment in the file of each configured number segment is determined to be a missing number segment in the file of each configured number segment. The incorrectly configured number segments and missing number segments in each configured number segment file are identified as the verification result files.
4. The method according to claim 1, characterized in that, After importing the verification result files into the 5GC billing system through the data scripts of each of the number segments, the process further includes: If it is determined that a user applies to transfer a number belonging to the second operator to the first operator, then the number segment corresponding to the number belonging to the second operator is determined. Based on the number segment corresponding to the number, determine the province to which the number belonging to the second operator belongs; The 5GC billing system, which handles the user's business, performs billing for the call detail records (CDRs) generated by the number belonging to the second operator, so that the billing is settled to the province to which the number belonging to the second operator is located.
5. A number segment configuration device, characterized in that, An electronic device applied to a first operator, which simultaneously uses multiple 5GC billing systems to bill number segments; the device includes: The number segment file acquisition module is used to acquire the latest full-scale planned number segment files of each operator, and to acquire the configured number segment files from each of the 5GC billing systems. The verification file acquisition module is used to verify the files of each configured number segment based on the latest full-scale planned number segment files of each operator, and obtain each verification result file. The verification result file contains the missing number segments and / or incorrectly configured number segments in the files of the configured number segments. The data script acquisition module is used to generate the number segment data scripts corresponding to each of the 5GC billing systems. The number segment data update module is used to import the verification result files of each number segment into the 5GC billing system through the bureau data scripts of each number segment. Before generating the number segment data script corresponding to each of the 5GC billing systems, the number segment configuration device converts each line of data in each of the verification result files so that each converted line of data includes the province and the compressed number segment of that province; the compressed number segment of that province is the common part of multiple consecutive number segments belonging to that province in the verification result file; when all the lines of data in each of the verification result files have been converted, each compressed verification result file is obtained; The data script acquisition module is specifically used to add the corresponding initial script template of the 5GC billing system to each province in each of the compressed verification result files, and obtain the number segment bureau data script corresponding to each of the 5GC billing systems; different 5GC billing systems generate different script formats.
6. The apparatus according to claim 5, characterized in that, Each line of data in the latest full-scale planned number segment file of any of the aforementioned operators includes a province, a city, and at least one planned number segment possessed by the city in that province; the verification file acquisition module is used to: convert each line of data in the latest full-scale planned number segment file of each of the aforementioned operators so that each converted line of data includes a province, a city, and a planned number segment corresponding to the city in that province; when all lines of data in the latest full-scale planned number segment file of each of the aforementioned operators have been converted, a standard file of the latest full-scale planned number segment of each of the aforementioned operators is obtained; Based on the standard documents of each of the full-scale planned number segments, the documents of each configured number segment are checked to obtain the check result documents.
7. An electronic device, comprising: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the method as described in any one of claims 1-4.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-4.
Citation Information
Patent Citations
Office data checking and manufacture method
CN101308495A