A cache-based privacy number XB-AXB mode number selection method and system
By using a cache-based privacy number XB-AXB mode number selection method, the problems of slow number selection speed and insufficient functionality in existing technologies are solved, realizing fast and effective number selection and calling functions. It supports priority combination strategies for cities, provinces, and the whole country, as well as number selection sorted by cumulative binding volume.
Patent Information
- Application Number
- CN202411552656.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-01
- Publication Date
- 2025-12-19
- Estimated Expiration
- 2044-11-01
AI Technical Summary
The existing privacy number AXB mode selection technology has shortcomings in performance and business functions, and cannot meet the rapidly growing demand. It has a delayed response time and cannot support priority combination strategies for city, province, or national selection. Furthermore, it cannot effectively manage the usage scenarios of AXB numbers.
The method adopts a cache-based privacy number XB-AXB mode selection method. It uses a Redis Lua script to execute the ZRANGE command to select X numbers from city, province, and national number pools, and performs priority arrangement and combination according to XB binding relationship and score strategy. It supports number selection by priority arrangement and combination strategy of city, province, and national number pools, as well as number selection by sorting by cumulative binding amount.
It enables a fast and efficient number selection process, supports priority combination strategies for cities, provinces, and the whole country, and sorts numbers by cumulative binding volume, avoids high-frequency calls, and enables inbound and callback functions.
Smart Images

Figure CN119544869B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to communication services, more particularly, it relates to a cache-based privacy number XB-AXB mode number selection method and system. BACKGROUND
[0002] In the privacy number AXB mode, the A number represents the customer's real number, the B number represents the salesperson's real number, and the X number represents the privacy number. For the current privacy number AXB mode number selection technology, there are still some problems:
[0003] (1) In terms of performance, the current privacy number AXB mode number selection technology uses a relational database to implement, which cannot meet the demand of rapid growth of privacy numbers, and the response delay is obvious, and the user experience is poor.
[0004] (2) In terms of business functions, it cannot support the priority arrangement combination strategy number selection of cities, provinces and the whole country, and does not support random number selection and number selection according to the binding amount.
[0005] (3) In the current privacy number AXB mode, it is not clear or difficult to guide customers to use pre-bound AXB numbers to dial. For example, in a sales scenario, only the salesperson's number is known at the beginning, and the customer's A number is known only when the customer dials the privacy number to the salesperson. Therefore, the original AXB mode cannot meet this common sales business scenario. SUMMARY
[0006] The technical problem to be solved by the present application is to provide a cache-based privacy number XB-AXB mode number selection method and system to solve the problems of the prior art.
[0007] The cache-based privacy number XB-AXB mode number selection method comprises the following steps: initiating a privacy number XB binding request, then selecting an X number from a city number pool, and judging whether the X number selected from the city number pool has an XB binding relationship, if the X number selected from the city number pool does not have an XB binding relationship, marking the X number selected from the city number pool as having an XB binding, and querying the existing AXB binding quantity, if the AXB binding quantity is greater than 0, marking the score of the city number pool of the X number as a first score, and then returning the X number to the client, if the AXB binding quantity is less than or equal to 0, marking the score of the city number pool of the X number as a second score, and then returning the X number to the client; if the X number selected from the city number pool has an XB binding relationship, return a prompt information of insufficient code number resources.
[0008] The client uses the A number to call the X number, checks whether the A number or the B number has XB or AXB binding with the X number, if not, returns no binding, if yes, marks that the A number and the B number both have AXB binding; checks whether the A number or the B number has XB binding, if not, performs fractional registration on the X number, then transfers the A number to the B number to complete the call, if yes, removes the XB binding mark, performs fractional registration on the X number, then transfers the A number to the B number to complete the call.
[0009] Further improvement, if the X number has XB binding relationship, the following steps are sequentially executed:
[0010] The first step is to select the X number with the minimum score in the preset first score interval from the province number pool, then judge whether the selected X number from the province number pool has XB binding relationship, if not, mark that the X number has XB binding, and execute the AXB binding number query and its size judgment with 0; if yes, execute the next step;
[0011] The second step is to select the X number with the minimum score in the preset first score interval from the nationwide number pool, then judge whether the selected X number from the nationwide number pool has XB binding relationship, if not, mark that the X number has XB binding, and execute the AXB binding number query and its size judgment with 0; if yes, execute the next step;
[0012] The third step is to select the X number with the minimum score in the preset second score interval from the province number pool, then judge whether the selected X number from the province number pool has XB binding relationship, if not, mark that the X number has XB binding, and execute the AXB binding number query and its size judgment with 0; if yes, execute the next step;
[0013] The fourth step is to select the X number with the minimum score in the preset second score interval from the nationwide number pool, then judge whether the selected X number from the nationwide number pool has XB binding relationship, if not, mark that the X number has XB binding, and execute the AXB binding number query and its size judgment with 0; if yes, return the prompt information of insufficient code number resource.
[0014] Further, the first score interval is smaller than the second score interval.
[0015] Further improvement, when initiating the XB binding request, the B number and the area code of the specified privacy number are transmitted.
[0016] Further improvement, the ZRANGE command is executed through the Redis lua script, and the X number is selected from the number pool.
[0017] Further improvement, when the A number or the B number does not exist XB binding, the score registration mode of the X number is that the scores of the city number pool, the province number pool and the national number pool of the X number are marked as the preset first reference value + the current binding times.
[0018] Further improvement, when the A number or the B number exists XB binding, after the XB binding mark is removed, whether the X number exists XB binding relationship with other B numbers is continued to be verified, if yes, the scores of the city number pool, the province number pool and the national number pool of the X number are marked as the preset second reference value + the current binding times, otherwise, the scores of the city number pool, the province number pool and the national number pool of the X number are marked as the preset first reference value + the current binding times.
[0019] A cache-based privacy number XB-AXB mode number selection system, comprising a client, a number selection platform and a salesperson mobile terminal; when the client initiates a privacy number XB binding request or calls the X number using the A number to the number selection platform, the number selection platform applies the privacy number XB-AXB mode number selection method to realize the privacy number XB binding request or the call between the client and the salesperson mobile terminal.
[0020] Advantages
[0021] The application has the advantages that the priority arrangement and combination strategy of the city, province and national three customer code number pools are supported, and the number selection is sorted according to the cumulative binding amount, so that the high-frequency call is avoided; and the number selection system and the call mode are associated, in this mode, the number of the salesperson can be bound with the privacy number first, and when the client calls in, the binding between the client and the salesperson number is completed, and the incoming call and callback call functions are realized. BRIEF DESCRIPTION OF DRAWINGS
[0022] Fig. 1 The privacy number number import process schematic diagram of the application;
[0023] Fig. 2 The privacy number XB binding step flowchart of the application;
[0024] Fig. 3 The privacy number XB binding step flowchart of the application. DETAILED DESCRIPTION
[0025] The application will be further described in connection with the following examples, which do not limit the application in any way, and any modification made within the scope of the application claims is to be within the scope of the application.
[0026] Referring to Figs. 1-3 The application is a cache-based privacy number XB-AXB mode number selection method, which includes a privacy number XB binding step and a privacy number XB binding step when a customer calls a number X with a real number A. Hereinafter, the privacy number XB binding is referred to as XB binding, and the privacy number XB binding is referred to as XB binding.
[0027] The privacy number XB binding step is as follows:
[0028] S101, the customer initiates an XB binding request, and the real number B number and the specified privacy number area code are transmitted.
[0029] S102, execute ZRANGE command through Redis's lua script, select the X number with the smallest score in the city number pool [0, 10000000000), and judge whether the X number exists XB binding relationship. If not, execute step S103; if yes, execute step S106.
[0030] In this step, the score of [0, 10000000000) is used to mark the privacy number, which is explained as follows:
[0031] The privacy number score interval without XB binding and without XB binding is [0, 10000000000), the privacy number score interval without XB binding and with XB binding is [10000000000, 20000000000), the privacy number score interval with XB binding and without XB binding is [20000000000, 30000000000), and the privacy number score interval with XB binding and with XB binding is greater than or equal to 30000000000.
[0032] S103, mark the X number as having privacy number XB binding, and query whether the number of existing XB binding identifiers is greater than 0. If yes, execute step S105; if less than or equal to 0, execute step S104.
[0033] S104, mark the score of the city number pool of this X number as the second score, i.e. 20000000000+current binding times, and then execute step S111.
[0034] S105, mark the score of the city number pool of this X number as the first score, i.e. 30000000000+current binding times, and then execute step S111.
[0035] S106, execute ZRANGE command through Redis's lua script to select the first score interval, i.e. the X number with the smallest score in the interval [0, 10000000000) from the province number pool, and determine whether the X number exists XB binding relationship. If not, execute step S103; if yes, execute step S107.
[0036] S107, execute ZRANGE command through Redis's lua script to select the X number with the smallest score in the interval [0, 10000000000) from the national number pool, and determine whether the X number exists XB binding relationship. If not, execute step S103; if yes, execute step S108.
[0037] S108, execute ZRANGE command through Redis's lua script to select the second score interval, i.e. the X number with the smallest score in the interval [0, 20000000000) from the province number pool, and determine whether the X number exists XB binding relationship. If not, execute step S103; if yes, execute step S109.
[0038] S109, execute ZRANGE command through Redis's lua script to select the X number with the smallest score in the interval [0, 20000000000) from the national number pool, and determine whether the X number exists XB binding relationship. If not, execute step S103; if yes, execute step S110.
[0039] S110, the number selection system returns the number pool resource shortage to the customer.
[0040] S111, the number selection system returns the selected X number to the customer.
[0041] The AXB binding steps when the customer calls the X number with the real A number are as follows:
[0042] S201, the customer calls the X number with the real A number.
[0043] S202, check whether telA (i.e. A number) or telB (i.e. B number) has performed XB or AXB binding with the X number. If not, execute step S203; if yes, execute step S204.
[0044] S203, return no binding, and the call is not connected.
[0045] S204, mark that telA and telB have performed AXB binding.
[0046] S205, check whether XB binding exists, if not, execute step S208; if yes, execute step S206.
[0047] S206, remove the XB binding mark, check whether the X number exists other XB binding marks of B number. If exists, execute step S207; if not, execute step S208.
[0048] S207, mark the score of the X number city, province, national number pool as: second reference value + current binding times, that is, 30000000000 + current binding times, and then execute step S209.
[0049] S208, mark the score of the X number city, province, national number pool as: first reference value + current binding times, that is, 10000000000 + current binding times, and then execute step S209.
[0050] S209, finally, the customer real A number is transferred to the sales staff real B number through the privacy number to complete the call.
[0051] The XB-AXB mode number selection system based on cache in the application comprises a client, a number selection platform and a sales staff mobile terminal.
[0052] In the number selection platform, the privacy number of the customer is divided into a city number pool, a province number pool and a national number pool. The privacy number is stored in the sorted set data structure of Redis, and the initial score is 0. Regarding the privacy number in the sorted set data structure of Redis, the city number pool: the key is the customer identifier_area number, the value is the privacy number, and the score is 0; the province number pool: the key is the customer identifier_province number, the value is the privacy number, and the score is 0; the national number pool: the key is the customer identifier, the value is the privacy number, and the score is 0.
[0053] When the client initiates a privacy number XB binding request or calls the X number using the A number to the number selection platform, the number selection platform applies the above-mentioned privacy number XB-AXB mode number selection method to realize the privacy number XB binding request or the call between the client and the sales staff mobile terminal. In this way, the system supports the priority arrangement and combination strategy number selection of the city, province and national three customer code number pools and the cumulative binding quantity sorting number selection, thereby avoiding high-frequency calls; moreover, the number selection system and the call mode are associated, and in this mode, the number of the sales staff can be bound with the privacy number first, and when the customer calls in, the binding between the customer and the number of the sales staff is completed, thereby realizing the incoming call and callback call functions.
[0054] The above merely describes the preferred embodiments of the present application, and it should be pointed out that for those skilled in the art, several modifications and improvements can be made without departing from the structure of the present application, and these will not affect the effect of the present application and the practicality of the patent.
Claims
1. A cache-based privacy number (XB-AXB) mode number selection method, characterized by, The method comprises the following steps: initiating a privacy number XB binding request, then selecting an X number from a city number pool, and judging whether the X number selected from the city number pool has XB binding relationship, if the X number selected from the city number pool has no XB binding relationship, marking that the X number selected from the city number pool has XB binding, and querying the existing AXB binding quantity, if the AXB binding quantity is greater than 0, marking the score of the city number pool of the X number as a first score, then returning the X number to the client, if the AXB binding quantity is less than or equal to 0, marking the score of the city number pool of the X number as a second score, then returning the X number to the client; if the X number selected from the city number pool has XB binding relationship, returning prompt information of insufficient code number resource. The client uses an A number to call an X number, checks whether the A number or the B number has XB or AXB binding with the X number, if not, returns no binding, if yes, marks that the A number and the B number have AXB binding; checks whether the A number or the B number has XB binding, if not, registers the score of the X number, then transfers the A number to the B number to complete the call, if yes, removes the XB binding mark, registers the score of the X number, then transfers the A number to the B number to complete the call. If the X number has XB binding relationship, the following steps are executed in sequence: First step, selecting an X number with the minimum score in a preset first score interval from a province number pool, then judging whether the X number selected from the province number pool has XB binding relationship, if not, marking that the X number has XB binding, and executing the query of the AXB binding quantity and the size judgment of the AXB binding quantity and 0; If yes, the next step is executed; Second step, selecting an X number with the minimum score in a preset first score interval from a nationwide number pool, then judging whether the X number selected from the nationwide number pool has XB binding relationship, if not, marking that the X number has XB binding, and executing the query of the AXB binding quantity and the size judgment of the AXB binding quantity and 0; If yes, the next step is executed; Third step, selecting an X number with the minimum score in a preset second score interval from a province number pool, then judging whether the X number selected from the province number pool has XB binding relationship, if not, marking that the X number has XB binding, and executing the query of the AXB binding quantity and the size judgment of the AXB binding quantity and 0; If yes, the next step is executed; Fourth step, selecting an X number with the minimum score in a preset second score interval from a nationwide number pool, then judging whether the X number selected from the nationwide number pool has XB binding relationship, if not, marking that the X number has XB binding, and executing the query of the AXB binding quantity and the size judgment of the AXB binding quantity and 0; if yes, returning prompt information of insufficient code number resource.
2. The XB-AXB mode number selection method based on cache privacy according to claim 1, characterized in that, The first score interval is smaller than the second score interval.
3. The XB-AXB mode number selection method based on cache privacy according to claim 1, characterized in that, When initiating the XB binding request, the B number and the area code of the specified privacy number are transmitted.
4. The XB-AXB mode number selection method based on cache privacy according to claim 1, characterized in that, ZRANGE command is executed by Redis lua script to select the X number from the number pool.
5. The XB-AXB mode number selection method based on cache privacy according to claim 1, characterized in that, When the A number or the B number does not exist XB binding, the score registration mode of the X number is that the scores of the city number pool, the province number pool and the nationwide number pool of the X number are marked as the preset first reference value + the current binding times.
6. The XB-AXB mode number selection method based on cache privacy according to claim 1, characterized in that, When the A number or the B number exists XB binding, after removing the XB binding mark, it is continued to verify whether the X number exists XB binding relationship with other B numbers, if yes, the scores of the city number pool, the province number pool and the nationwide number pool of the X number are marked as the preset second reference value + the current binding times, otherwise, the scores of the city number pool, the province number pool and the nationwide number pool of the X number are marked as the preset first reference value + the current binding times.
7. A cache-based privacy number (XB- AXB) mode number selection system, characterized by, The client, the number selection platform and the sales personnel mobile terminal are included; when the client initiates the privacy number XB binding request or calls the X number using the A number to the number selection platform, the number selection platform applies the privacy number XB-AXB mode number selection method of any one of claims 1-6 to realize the privacy number XB binding request or the call between the client and the sales personnel mobile terminal.
Citation Information
Patent Citations
Private number AX mode number selection method, system and device and storage medium
CN116347431A
Private number selection method and device and electronic equipment
CN118250380A