Cache-based private number XB-AXB mode number selection method and system

By introducing a cache-based privacy number XB-AXB mode number selection method in the privacy number AXB mode number selection technology, using Redis's lua script and score registration mechanism, the problems of response delay and insufficient functions in the existing technology are solved, and efficient privacy number selection and multi-level priority policy support are achieved.

CN119544869AActive Publication Date: 2025-02-28GUANGXI DONGXIN YITONG TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411552656.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-01
Publication Date
2025-02-28
Estimated Expiration
2044-11-01

AI Technical Summary

Technical Problem

The existing privacy number AXB model number selection technology has shortcomings in performance and business functions, and cannot meet the rapidly growing privacy number needs, with obvious response delays, and cannot support the priority arrangement combination strategy number selection and random number selection in cities, provinces, and nationwide.

Method used

The cache-based privacy number XB-AXB mode number selection method is adopted, and the ZRANGE command is executed through Redis's lua script, select the X number from the city, province and national number pool, and score registration and number selection is carried out according to the XB binding relationship and number binding number, supporting the priority arrangement and combination strategy selection of cities, provinces, and nationwide.

Benefits of technology

It improves the response speed and user experience of privacy number selection, supports priority arrangement and combination policy selection in cities, provinces and nationwide, and sorting and selection of numbers according to cumulative binding quantities, avoids high-frequency calls, and realizes incoming and callback functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119544869A_ABST
    Figure CN119544869A_ABST
Patent Text Reader

Abstract

The invention discloses a cache-based private number XB-AXB mode number selection method, and relates to a communication service, which comprises the following steps: initiating a private number XB binding request, judging whether a selected X number has an XB binding relationship or not, if so, marking that the X number has XB binding, querying the number of AXB binding, and if the number is greater than 0, marking the score of the X number as a first score, and then sending the XB binding relationship to the XB binding relationship; returning the X number to the client, and if the number is less than or equal to 0, marking the score of the X number as a second score, and returning the X number to the client; and if the X number has the XB binding relationship, returning prompt information of insufficient code number resources. The invention further discloses a private number XB-AXB mode number selection system based on the cache. According to the method, the number selection performance is greatly improved, priority permutation and combination strategy number selection of three customer code number pools of cities, provinces and the whole country and sorting number selection according to accumulated binding quantity are supported, high-frequency calls are avoided, and incoming call and callback call functions are realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to communication services, and more specifically, to a cache-based privacy number XB-AXB mode number selection method and system. Background Art

[0002] In the privacy number AXB mode, number A represents the customer's real number, number B represents the salesperson's real number, and number X represents the privacy number. The following are some of the main problems with the current privacy number AXB mode number selection technology:

[0003] (1) In terms of performance, the current privacy account AXB mode number selection technology is implemented using a relational database, which is far from meeting the rapidly growing demand for privacy accounts. Customers will notice obvious response delays, and the user experience is poor.

[0004] (2) In terms of business functions, it is unable to support the priority combination strategy of city, province, and country, and does not support random number selection or number selection sorted by binding quantity.

[0005] (3) In the current privacy number AXB model, in most cases, it is unclear or difficult to control and guide customers to use the pre-bound AXB number to make calls. For example, in a sales scenario, only the salesperson's number is known at the beginning, and the customer's A number is only known when the customer calls the privacy number to the salesperson. Therefore, the original AXB model cannot meet this common sales business scenario. Summary of the invention

[0006] The technical problem to be solved by the present invention is to provide a cache-based privacy number XB-AXB mode number selection method and system in view of the shortcomings of the prior art.

[0007] The present invention discloses a method for selecting a privacy number in an XB-AXB mode based on cache, which initiates a privacy number XB binding request, then selects an X number from a city number pool, and determines 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, the X number selected from the city number pool is marked as having an XB binding, and the number of existing AXB bindings is queried. If the number of AXB bindings is greater than 0, the score of the city number pool of the X number is marked as a first score, and the X number is returned to the client. If the number of AXB bindings is less than or equal to 0, the score of the city number pool of the X number is marked as a second score, and the X number is returned to the client. If the number of AXB bindings is less than or equal to 0, the score of the city number pool of the X number is marked as a second score, and the X number is returned to the client. If the X number selected from the city number pool has an XB binding relationship, a prompt message indicating that the number resources are insufficient is returned.

[0008] The client uses the A number to call the X number, checks whether the A number or the B number has been bound with the X number by XB or AXB, and if not, returns no binding, and if so, marks that both the A number and the B number have been bound by AXB; checks whether the A number or the B number has an XB binding, and if not, registers the X number by score, and then transfers the A number to the B number to complete the call, and if so, removes the XB binding mark, and after registering the X number by score, transfers the A number to the B number to complete the call.

[0009] As a further improvement, if the X number has an XB binding relationship, the following steps are performed in sequence:

[0010] Step 1: Select the X number with the smallest score in the preset first score interval from the provincial number pool, and then determine whether the X number selected from the provincial number pool has an XB binding relationship. If not, mark the X number as having an XB binding, and execute the query of the AXB binding quantity and the judgment process of the AXB binding quantity and the AXB binding quantity and 0; if so, execute the next step;

[0011] Step 2: Select the X number with the smallest score within the preset first score interval from the national number pool, and then determine whether the X number selected from the national number pool has an XB binding relationship. If not, mark the X number as having an XB binding, and execute the query of the AXB binding quantity and the judgment process of the AXB binding quantity and the AXB binding quantity and 0; if so, execute the next step;

[0012] Step 3: Select the X number with the smallest score within the preset second score interval from the provincial number pool, and then determine whether the X number selected from the provincial number pool has an XB binding relationship. If not, mark the X number as having an XB binding, and execute the query of the AXB binding quantity and the judgment process of the AXB binding quantity and ...

[0013] Step 4: Select the X number with the smallest score within the preset second score interval from the national number pool, and then determine whether the X number selected from the national number pool has an XB binding relationship. If not, mark the X number as having an XB binding, and execute the query of the AXB binding quantity and the judgment process of the size between the AXB binding quantity and 0; if it exists, return a prompt message of insufficient code number resources.

[0014] Furthermore, the first score interval is smaller than the second score interval.

[0015] As a further improvement, when initiating the XB binding request, the B number and the area code of the designated privacy number are passed in.

[0016] As a further improvement, the ZRANGE command is executed through the Redis lua script to select the X number from the number pool.

[0017] As a further improvement, when the A number or the B number does not have an XB binding, the way to register the X number by score is: mark the score of the city number pool, provincial number pool, and national number pool of the X number as a preset first reference value + the current binding number.

[0018] As a further improvement, when the A number or the B number has an XB binding, after removing the XB binding mark, continue to check whether the X number has an XB binding relationship with other B numbers. If so, mark the score of the city number pool, provincial number pool, and national number pool of the X number as the preset second reference value + the current binding number. Otherwise, mark the score of the city number pool, provincial number pool, and national number pool of the X number as the preset first reference value + the current binding number.

[0019] A cache-based privacy number XB-AXB mode number selection system includes a client, a number selection platform and a salesperson's mobile terminal; when the client initiates a privacy number XB binding request to the number selection platform or uses an A number to call an X number, the number selection platform applies the privacy number XB-AXB mode number selection method to implement the privacy number XB binding request or the call between the client and the salesperson's mobile terminal.

[0020] Beneficial Effects

[0021] The advantages of the present invention are: it supports the priority combination strategy selection of three customer number pools of city, province and country, and the number selection sorted by cumulative binding quantity, so as to avoid high-frequency calls; and the number selection system is associated with the calling method. In this mode, the salesperson's number can be bound to the privacy number first, and when the customer calls in, the binding of the customer and the salesperson's number is completed to realize the incoming and call-back call functions. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 This is a schematic diagram of the privacy number import process of the present invention;

[0023] Figure 2 This is a flowchart of the steps of binding the privacy number XB of the present invention;

[0024] Figure 3 This is a flowchart of the steps for binding the privacy number AXB of the present invention. DETAILED DESCRIPTION

[0025] The present invention will be further described below in conjunction with the embodiments, but it does not constitute any limitation to the present invention. Any limited number of modifications made by anyone within the scope of the claims of the present invention are still within the scope of the claims of the present invention.

[0026] See also Figure 1-Figure 3 The present invention provides a method for selecting a number in a private number XB-AXB mode based on cache, which includes a private number XB binding step and a private number AXB binding step when a customer's real A number calls an X number. Hereinafter, the private number XB binding is referred to as XB binding; the private number AXB binding is referred to as AXB binding.

[0027] Among them, the steps for binding the privacy number XB are as follows:

[0028] S101. The customer initiates an XB binding request, inputting the real number B and the area code of the designated privacy number.

[0029] S102. Execute the ZRANGE command through the Redis lua script to select the X number with the smallest score in the [0,10000000000) city number pool, and determine whether the X number has an XB binding relationship. If not, execute step S103; if so, execute step S106.

[0030] In this step, the score [0,10000000000) is involved, which is used to mark the privacy number. The specific description is as follows:

[0031] The score range of privacy numbers without XB binding and AXB binding is [0,10000000000), the score range of privacy numbers without XB binding but with AXB binding is [10000000000,20000000000), the score range of privacy numbers with XB binding but not AXB binding is [20000000000,30000000000), the score range of privacy numbers with XB binding and AXB binding is greater than or equal to 30000000000.

[0032] S103, mark the X number as an existing private number XB binding, and check whether the number of existing AXB binding identifiers is greater than 0. If greater than 0, execute step S105; if less than or equal to 0, execute step S104.

[0033] S104. Mark the score of the city number pool of the X number as the second score, that is, 20000000000+current binding times, and then execute step S111.

[0034] S105. Mark the score of the city number pool of the X number as the first score, i.e., 30000000000+current binding times, and then execute step S111.

[0035] S106. Execute the ZRANGE command through the Redis Lua script to select the first score interval, that is, the X number with the smallest score in [0,10000000000) from the provincial number pool, and determine whether the X number has an XB binding relationship. If not, execute step S103; if so, execute step S107.

[0036] S107. Execute the ZRANGE command through the Redis lua script to select the X number with the smallest score in [0,10000000000) from the national number pool, and determine whether the X number has an XB binding relationship. If not, execute step S103; if so, execute step S108.

[0037] S108. Execute the ZRANGE command through the Redis Lua script to select the X number with the smallest score in the second score interval [0,20000000000) from the provincial number pool, and determine whether the X number has an XB binding relationship. If not, execute step S103; if so, execute step S109.

[0038] S109, execute the ZRANGE command through the Redis lua script, select the X number with the smallest score [0,20000000000) from the national number pool, and determine whether the X number has an XB binding relationship. If not, execute step S103; if so, execute step S110.

[0039] S110. The number selection system returns to the customer that the number pool resources are insufficient.

[0040] S111. The number selection system returns the selected X number to the customer.

[0041] The specific steps of AXB binding when the customer's real number A calls number X are as follows:

[0042] S201. The customer's real number A calls number X.

[0043] S202, check whether telA (ie, A number) or telB (ie, B number) has been bound to number X through XB or AXB. If no binding exists, execute step S203; if yes, execute step S204.

[0044] S203: Return to "no binding", and the call will not be connected.

[0045] S204: Mark that telA and telB have been bound by AXB.

[0046] S205, check whether XB binding exists, if not, execute step S208; if yes, execute step S206.

[0047] S206, remove the XB binding mark, and check whether the X number has the XB binding mark of other B numbers. If yes, execute step S207; if no, execute step S208.

[0048] S207. Mark the score of the city, province, and national number pool of this X number as: the second reference value + the current binding times, that is, 30000000000 + the current binding times, and then execute step S209.

[0049] S208. Mark the score of the city, province, and national number pool of this X number as: the first reference value + the current binding times, that is, 10000000000 + the current binding times, and then execute step S209.

[0050] S209. Finally, the customer's real number A is transferred to the salesperson's real number B via the privacy number to complete the call.

[0051] The present invention discloses a cache-based privacy number XB-AXB mode number selection system, which includes a client, a number selection platform and a salesperson mobile terminal.

[0052] In the number selection platform, the customer's private number is divided into city number pool, province number pool, and national number pool. The private number is stored in the Redis sorted set data structure, and the initial score is 0. Regarding the private number in the Redis sorted set data structure, the city number pool: the key is the customer ID_area code, the value is the private number, and the score is 0; the province number pool: the key is the customer ID_province code, the value is the private number, and the score is 0; the national number pool: the key is the customer ID, the value is the private number, and the score is 0.

[0053] When the client initiates a privacy number XB binding request to the number selection platform or uses A number to call X number, 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 salesperson's mobile terminal. In this way, the system supports the priority arrangement and combination strategy selection of three customer code number pools of city, province, and country, as well as the selection of numbers sorted by cumulative binding volume to avoid high-frequency calls; and the number selection system is associated with the calling method. In this mode, the salesperson's number can be bound to the privacy number first, and when the customer calls in, the customer and the salesperson's number are bound to realize the incoming and call-back call functions.

[0054] The above is only a preferred embodiment of the present invention. 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 invention, which will not affect the effect of the implementation of the present invention and the practicality of the patent.

Claims

1. A cache-based XB-AXB mode number selection method for privacy numbers, characterized in that: Initiate a privacy number XB binding request, then select an X number from the city number pool, and determine 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, mark the X number selected from the city number pool as having an XB binding, and query the existing AXB binding number. If the AXB binding number is greater than 0, mark the score of the city number pool of the X number as a first score, and return the X number to the client. If the AXB binding number is less than or equal to 0, mark the score of the city number pool of the X number as a second score, and return the X number to the client. If the X number selected from the city number pool has an XB binding relationship, return a prompt message of insufficient code number resources; The client uses the A number to call the X number, checks whether the A number or the B number has been bound with the X number by XB or AXB, and if not, returns no binding, and if so, marks that both the A number and the B number have been bound by AXB; checks whether the A number or the B number has an XB binding, and if not, registers the X number by score, and then transfers the A number to the B number to complete the call, and if so, removes the XB binding mark, and after registering the X number by score, transfers the A number to the B number to complete the call.

2. According to claim 1, a cache-based privacy number XB-AXB mode number selection method is characterized in that: If the X number has an XB binding relationship, perform the following steps in sequence: Step 1: Select the X number with the smallest score within the preset first score interval from the province number pool, and then determine whether the X number selected from the province number pool has an XB binding relationship. If not, mark the X number as having an XB binding, and execute the query of the AXB binding quantity and the size determination process between it and 0; If it exists, proceed to the next step; Step 2: Select the X number with the smallest score within the preset first score interval from the national number pool, and then determine whether the X number selected from the national number pool has an XB binding relationship. If not, mark the X number as having an XB binding, and execute the query of the AXB binding quantity and the determination process of the AXB binding quantity and the AXB binding quantity with 0; If it exists, proceed to the next step; Step 3: Select the X number with the smallest score within the preset second score interval from the province number pool, and then determine whether the X number selected from the province number pool has an XB binding relationship. If not, mark the X number as having an XB binding, and execute the query of the AXB binding quantity and the size determination process between it and 0; If it exists, proceed to the next step; Step 4: Select the X number with the smallest score within the preset second score interval from the national number pool, and then determine whether the X number selected from the national number pool has an XB binding relationship. If not, mark the X number as having an XB binding, and execute the query of the AXB binding quantity and the judgment process of the size between the AXB binding quantity and 0; if it exists, return a prompt message of insufficient code number resources.

3. According to claim 2, a cache-based privacy number XB-AXB mode number selection method is characterized in that: The first score interval is smaller than the second score interval.

4. According to claim 1, a cache-based privacy number XB-AXB mode number selection method is characterized in that: When initiating the XB binding request, the B number and the area code of the designated privacy number are passed in.

5. A cache-based privacy number XB-AXB mode number selection method according to claim 1 or 2, characterized in that: The ZRANGE command is executed through the Redis lua script to select the X number from the number pool.

6. According to claim 1, a cache-based privacy number XB-AXB mode number selection method is characterized in that: When the A number or the B number does not have an XB binding, the method of performing score registration for the X number is: marking the scores of the city number pool, the provincial number pool, and the national number pool of the X number as a preset first reference value + the current binding times.

7. According to claim 1, a cache-based privacy number XB-AXB mode number selection method is characterized in that: When the A number or the B number has an XB binding, after removing the XB binding mark, continue to check whether the X number has an XB binding relationship with other B numbers. If so, mark the score of the city number pool, provincial number pool, and national number pool of the X number as the preset second reference value + the current binding number. Otherwise, mark the score of the city number pool, provincial number pool, and national number pool of the X number as the preset first reference value + the current binding number.

8. A cache-based XB-AXB mode number selection system, characterized in that: It includes a client, a number selection platform and a salesperson's mobile terminal; when the client initiates a privacy number XB binding request to the number selection platform or uses an A number to call an X number, the number selection platform applies the privacy number XB-AXB mode number selection method as described in any one of claims 1-7 to implement the privacy number XB binding request or the call between the client and the salesperson's mobile terminal.

Citation Information

Patent Citations

  • Many-to-many privacy number voice communication method, system, device and medium

    CN115277949A

  • Private number AXB mode number selection method, system and device and storage medium

    CN116016775A

  • Private number AX mode number selection method, system and device and storage medium

    CN116347431A

  • Private number selection method and device and electronic equipment

    CN118250380A

  • Private number distribution method and device and computing equipment

    CN118450048A