CN109005301B - Intermediate number management and control method and intermediate number management and control device - Google Patents

Intermediate number management and control method and intermediate number management and control device Download PDF

Info

Publication number
CN109005301B
CN109005301B CN201811043167.0A CN201811043167A CN109005301B CN 109005301 B CN109005301 B CN 109005301B CN 201811043167 A CN201811043167 A CN 201811043167A CN 109005301 B CN109005301 B CN 109005301B
Authority
CN
China
Prior art keywords
binding
mode
request information
intermediate number
determined
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811043167.0A
Other languages
Chinese (zh)
Other versions
CN109005301A (en
Inventor
李丰
徐克勤
杨凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Duodian Life Chengdu Technology Co ltd
Original Assignee
Duodian Life Chengdu Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Duodian Life Chengdu Technology Co ltd filed Critical Duodian Life Chengdu Technology Co ltd
Priority to CN201811043167.0A priority Critical patent/CN109005301B/en
Publication of CN109005301A publication Critical patent/CN109005301A/en
Application granted granted Critical
Publication of CN109005301B publication Critical patent/CN109005301B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/42Systems providing special services or facilities to subscribers
    • H04M3/42008Systems for anonymous communication between parties, e.g. by use of disposal contact identifiers

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention provides a middle number management and control method and a middle number management and control device, and relates to the technical field of communication. The intermediate number management and control method comprises the following steps: determining a required binding mode based on the received binding request information; acquiring an intermediate number from a number pool, and judging whether the intermediate number can establish a binding relationship with the telephone number corresponding to the binding request information based on the determined binding mode; and if the intermediate number can establish a binding relationship with the telephone number corresponding to the binding request information based on the determined binding mode, establishing the binding relationship between the intermediate number and the telephone number corresponding to the binding request information according to the determined binding mode. By the method, the problem of unstable binding relation in the existing intermediate number technology can be solved.

Description

Intermediate number management and control method and intermediate number management and control device
Technical Field
The invention relates to the technical field of communication, in particular to an intermediate number management and control method and an intermediate number management and control device.
Background
With the continuous development of communication technology, the application field of communication technology is also continuously expanded. On one hand, information interaction can be facilitated, but on the other hand, the problem of serious disclosure of personal privacy is caused. In view of the above problems, a unnumbered technique is provided in the prior art to solve the problem. That is, an intermediate number is preset, and a telephone number to be protected is bound with the intermediate number, so as to communicate with a corresponding telephone number based on the intermediate number.
The inventor researches and discovers that in the existing intermediate number technology, the binding relationship of the intermediate number is easily covered due to poor management and control effects in the distribution and use processes of the intermediate number, so that the problem of unstable binding relationship is caused, and the problem of effective communication through the intermediate number is difficult to realize.
Disclosure of Invention
In view of the above, the present invention provides an intermediary number management and control method and an intermediary number management and control apparatus, so as to solve the problem of unstable binding relationship existing in the existing intermediary number technology.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
an intermediate number management and control method comprises the following steps:
determining a required binding mode based on the received binding request information, wherein the binding mode comprises a one-to-one mode and a one-to-many mode;
acquiring an intermediate number from a number pool, and judging whether the intermediate number can establish a binding relationship with the telephone number corresponding to the binding request information based on the determined binding mode;
and if the intermediate number can establish a binding relationship with the telephone number corresponding to the binding request information based on the determined binding mode, establishing the binding relationship between the intermediate number and the telephone number corresponding to the binding request information according to the determined binding mode.
In a preferred option of the embodiment of the present invention, in the above method for managing and controlling an intermediate number, when the determined binding mode is a one-to-one mode, the step of determining whether the intermediate number can establish a binding relationship with the phone number corresponding to the binding request information based on the determined binding mode includes:
judging whether the intermediate number has a binding relationship established with any telephone number based on the one-to-one multi-mode and whether any telephone number corresponding to the binding request information has a binding relationship established based on the one-to-one multi-mode;
and if the intermediate number is not based on a binding relationship between the one-to-many mode and any telephone number and not based on the one-to-one mode and is not based on any telephone number corresponding to the binding request information, judging that the intermediate number can be based on the determined binding mode and is based on the telephone number corresponding to the binding request information to establish the binding relationship.
In a preferred option of the embodiment of the present invention, in the above method for managing and controlling an intermediate number, when the determined binding mode is a one-to-many mode, the step of determining whether the intermediate number can establish a binding relationship with the phone number corresponding to the binding request information based on the determined binding mode includes:
judging whether the intermediate number has a binding relation with any telephone number;
and if the intermediate number is not in a binding relationship with any telephone number, judging that the intermediate number can establish a binding relationship with the telephone number corresponding to the binding request information based on the determined binding mode.
In a preferred option of the embodiment of the present invention, in the above method for managing and controlling an intermediate number, when the determined binding mode is a one-to-many mode, after the step of establishing a binding relationship between the intermediate number and the phone number corresponding to the binding request information according to the determined binding mode is executed, the method further includes:
acquiring a first telephone number for communicating to a telephone number corresponding to the binding request information based on the intermediate number;
and establishing a binding relation between the telephone number corresponding to the first telephone number and the binding request information and the intermediate number according to a one-to-one mode.
In a preferred option of the embodiment of the present invention, in the above method for managing and controlling an intermediate number, the step of obtaining an intermediate number from a number pool, and determining whether the intermediate number can establish a binding relationship with a phone number corresponding to the binding request information based on a determined binding mode includes:
acquiring an intermediate number from a number pool, and acquiring the current use times of the intermediate number;
judging whether the intermediate number can establish a binding relationship with the telephone number corresponding to the binding request information based on the determined binding mode;
if the intermediate number can establish a binding relationship with the telephone number corresponding to the binding request information based on the determined binding mode, the step of establishing the binding relationship between the intermediate number and the telephone number corresponding to the binding request information according to the determined binding mode includes:
if the intermediate number can establish a binding relationship with the telephone number corresponding to the binding request information based on the determined binding mode, acquiring the current use times of the intermediate number again;
and when the current use times obtained twice are equal, establishing a binding relationship between the intermediate number and the telephone number corresponding to the binding request information according to a determined binding mode, and updating the current use times of the intermediate number.
In a preferred option of the embodiment of the present invention, in the above-mentioned method for managing and controlling an intermediate number, when the current number of times of use obtained twice is not equal, if the intermediate number can establish a binding relationship with the phone number corresponding to the binding request information based on the determined binding mode, the step of establishing a binding relationship between the intermediate number and the phone number corresponding to the binding request information according to the determined binding mode further includes:
step a, obtaining the current use times of the intermediate number again, and judging whether the intermediate number can establish a binding relationship with the telephone number corresponding to the binding request information based on the determined binding mode;
step c, if the intermediate number can establish a binding relationship with the telephone number corresponding to the binding request information based on the determined binding mode, acquiring the current use times of the intermediate number again;
and repeating the step a and the step c at least once to enable the current use times obtained in the step a and the step c to be equal, and when the current use times obtained in the step a and the step c are equal, establishing a binding relationship between the intermediate number and the telephone number corresponding to the binding request information according to the determined binding mode, and updating the current use times of the intermediate number.
The embodiment of the present invention further provides a device for managing and controlling a middle number, including:
a binding mode determination module for determining a required binding mode based on the received binding request information, wherein the binding mode includes a one-to-one mode and a one-to-many mode;
the binding relation judging module is used for acquiring an intermediate number from the number pool and judging whether the intermediate number can establish a binding relation with the telephone number corresponding to the binding request information based on the determined binding mode;
and the binding relation establishing module is used for establishing the binding relation between the intermediate number and the telephone number corresponding to the binding request information according to the determined binding mode if the intermediate number can establish the binding relation between the intermediate number and the telephone number corresponding to the binding request information based on the determined binding mode.
In a preferred option of the embodiment of the present invention, in the above-mentioned middle number management and control device, when the determined binding mode is a one-to-one mode, the binding relationship determining module includes:
a first binding relation judgment sub-module, configured to judge whether a binding relation is established between the intermediate number and any telephone number based on the one-to-one multi-mode, and whether a binding relation is established between the intermediate number and any telephone number corresponding to the binding request information based on the one-to-one multi-mode;
and the first binding relation judgment sub-module is used for judging that the intermediate number can establish the binding relation with the telephone number corresponding to the binding request information based on the determined binding mode when the intermediate number does not establish the binding relation with any telephone number based on the one-to-many mode and does not establish the binding relation with any telephone number corresponding to the binding request information based on the one-to-one mode.
In a preferred option of the embodiment of the present invention, in the above middle number management and control device, when the determined binding mode is a one-to-many mode, the binding relationship determining module further includes:
the second binding relation judgment submodule is used for judging whether the intermediate number has a binding relation with any telephone number;
and the second binding relation judgment submodule is used for judging that the intermediate number can establish the binding relation with the telephone number corresponding to the binding request information based on the determined binding mode when the intermediate number does not establish the binding relation with any telephone number.
In a preferred option of the embodiment of the present invention, in the above-mentioned middle number management and control device, when the determined binding mode is one-to-many mode, the device further includes:
the telephone number acquisition module is used for acquiring a first telephone number for communicating with the telephone number corresponding to the binding request information based on the intermediate number;
and the binding relationship changing module is used for establishing a binding relationship between the telephone number corresponding to the first telephone number and the binding request information and the intermediate number according to a one-to-one mode.
According to the intermediate number management and control method and the intermediate number management and control device, the required binding mode is determined when the binding request information is received, and whether the acquired intermediate number can be used for establishing the binding relationship is determined based on the binding mode, so that the problem that the binding relationship of the intermediate number is easily covered due to poor management and control effects in the processes of intermediate number distribution and use in the prior art is effectively solved, the problem that the binding relationship is unstable in the prior art is solved, the intermediate number with the binding relationship is ensured to be effectively communicated, and the reliability of the use of the intermediate number is greatly improved.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
Fig. 1 is an application block diagram of a server according to an embodiment of the present invention.
Fig. 2 is a flowchart illustrating an intermediary number management and control method according to an embodiment of the present invention.
Fig. 3 is a schematic flowchart of step S130 in fig. 2.
Fig. 4 is another flowchart of step S130 in fig. 2.
Fig. 5 is another flowchart illustrating an intermediary number management and control method according to an embodiment of the present invention.
Fig. 6 is a schematic flowchart of step S150 in fig. 2.
Fig. 7 is another flowchart illustrating an intermediary number management and control method according to an embodiment of the present invention.
Fig. 8 is another schematic circuit diagram of an intermediary number management and control apparatus according to an embodiment of the present invention.
Fig. 9 is a block diagram of an intermediary number management and control apparatus according to an embodiment of the present invention.
Fig. 10 is another structural block diagram of the binding relationship determining module according to the embodiment of the present invention.
Fig. 11 is another structural block diagram of the intermediary number managing and controlling device according to the embodiment of the present invention.
Icon: 10-a server; 12-a memory; 14-a processor; 20-a first terminal; 30-a second terminal; 100-intermediate number management and control device; 110-a binding mode determination module; 130-a binding relationship judgment module; 131-a first binding relation judgment submodule; 132-a first binding relationship determination submodule; 133-a second binding relation judgment submodule; 134-a second binding relation determination submodule; 150-a binding relationship establishing module; 170-phone number acquisition module; 190-binding relationship change module.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. In the description of the present invention, the terms "first," "second," "third," "fourth," and the like are used merely to distinguish one description from another, and are not to be construed as merely or implying relative importance.
In the description of the present invention, unless otherwise expressly specified or limited, the terms "disposed," "connected," and "connected" are to be construed broadly, e.g., as meaning fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
As shown in fig. 1, an embodiment of the present invention provides a server 10, and the server 10 may be communicatively connected with terminal devices, for example, a first terminal 20 and a second terminal 30.
The server 10 may include a memory 12, a processor 14, and an intermediary number management apparatus 100. The memory 12 and the processor 14 are electrically connected, directly or indirectly, to enable the transfer or interaction of data. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The middle number management and control device 100 includes at least one software function module which can be stored in the memory 12 in the form of software or firmware (firmware). The processor 14 is configured to execute executable computer programs stored in the memory 12, such as software functional modules and computer programs included in the middle number management apparatus 100, so as to implement the middle number management method.
The Memory 12 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. Wherein the memory 12 is used for storing a program, and the processor 14 executes the program after receiving the execution instruction.
The processor 14 may be an integrated circuit chip having signal processing capabilities. The Processor 14 may be a general-purpose Processor including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be appreciated that the configuration shown in fig. 1 is merely illustrative, and that the server 10 may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1, and may also include a communication unit for communicating with terminal devices, for example. Also, the components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
Alternatively, the specific type of the server 10 is not limited, and may be, for example, but not limited to, a web server, a data server, a computer, a Mobile Internet Device (MID), and other devices having a processing function.
With reference to fig. 2, an embodiment of the present invention further provides an intermediary number management and control method applicable to the server 10. Wherein the method steps defined by the method related flow may be implemented by the processor 14. The specific process shown in fig. 2 will be described in detail below.
Step S110, determining a required binding mode based on the received binding request information.
In this embodiment, the first terminal 20 may send a binding request message to the server 10, where the binding request message may include only one phone number, such as a first phone number corresponding to the first terminal 20, or may include two phone numbers, such as a first phone number corresponding to the first terminal 20 and a second phone number corresponding to the second terminal 30.
And, when only one phone number (e.g., the first phone number) is included in the binding request message, it may be determined that the required binding mode is one-to-many mode. That is, an intermediate number needs to be bound to the telephone number so that any other terminal device (e.g., the second terminal 30) can establish communication with the first terminal 20 based on the intermediate number, e.g., when the second telephone number calls the first intermediate number, the operator can forward the call to the first telephone number.
When two phone numbers (e.g., a first phone number and a second phone number) are included in the binding request message, it may be determined that the required binding mode is a one-to-one mode. That is, an intermediate number needs to be bound to the two telephone numbers so that the first terminal 20 can establish communication with the second terminal 30 based on the intermediate number or the second terminal 30 can establish communication with the first terminal 20 based on the intermediate number, for example, when the first telephone number calls the first intermediate number, the operator can transfer the call to the second telephone number.
That is, in the present embodiment, the binding mode may include a one-to-one mode and a one-to-many mode.
Step S130, obtaining an intermediate number from the number pool, and determining whether the intermediate number can establish a binding relationship with the phone number corresponding to the binding request information based on the determined binding mode.
In this embodiment, an intermediate number can be used multiple times, but there is also a problem that it can be used only once in some cases, for example, it cannot be reused between different binding modes. Therefore, whether the acquired intermediate number can be used for establishing the binding relationship can be judged based on the determined binding mode, so as to avoid the problem that the previously established binding relationship may be covered by the later established binding relationship.
For example, if a binding relationship exists between the second phone number and the first intermediate number, the first intermediate number is obtained again, and the binding relationship between the second phone number, the first intermediate number and the first phone number is established. Then, the binding relationship between the second phone number and the first intermediate number is changed to the second phone number, the first intermediate number and the third intermediate number based on a certain policy (e.g., factors such as convenience in implementing call back), so that when the second phone number calls the first intermediate number, the operator cannot determine to transfer the call to the first phone number or the third phone number.
The number pool may be a database, and a series of intermediate numbers may be generated and stored in the database based on actual application requirements. The number of digits of the intermediate number is not limited, and can be set according to the actual application requirements, for example, the number of digits can be 11 digits, which is the same as the number of digits of a mobile phone.
Step S150, if the intermediate number can establish a binding relationship with the phone number corresponding to the binding request information based on the determined binding mode, establishing a binding relationship between the intermediate number and the phone number corresponding to the binding request information according to the determined binding mode.
In this embodiment, when it is determined that the obtained intermediate number can be used for establishing a binding relationship, a corresponding binding relationship may be established according to the determined binding mode. And the established binding relationship can be sent to the operator for storage, so that the operator can carry out call forwarding of the telephone based on the binding relationship.
For example, when the binding relationship is established as first phone number-first intermediate number-second phone number, if the operator receives a request for the first phone number to call the first intermediate number, the call may be forwarded to the second phone number.
It should be understood that the binding relationship established as described above may not be sent to the operator, but the operator should have the capability of identifying the intermediate number. In detail, when the established binding relationship is the first phone number, the first intermediate number, and the second phone number, and when the operator receives a request that the first phone number calls the first intermediate number and recognizes that the first intermediate number is the intermediate number, the first phone number and the first intermediate number may be sent to the server 10, so that the server 10 may find the second phone number based on the first phone number and the first intermediate number and send the second phone number to the operator, so that the operator may transfer the call to the second phone number.
Further, it is considered that the manner of executing step S130 to determine whether the acquired intermediary numbers can be used to establish the binding relationship may be variously selected when the binding modes determined by executing step S110 are different. In an example, in conjunction with fig. 3, when the determined binding mode is a one-to-one mode, step S130 may include step S131 and step S132.
Step S131, judging whether the intermediate number has a binding relationship established with any telephone number based on the one-to-many mode or not and whether the intermediate number has a binding relationship established with any telephone number corresponding to the binding request information based on the one-to-one mode or not.
Step S132, if the intermediate number does not have a binding relationship with any phone number based on the one-to-many mode and does not have a binding relationship with any phone number corresponding to the binding request information based on the one-to-one mode, determining that the intermediate number can have a binding relationship with a phone number corresponding to the binding request information based on the determined binding mode.
In the present embodiment, it is considered that there may be a case where the intermediate number is reused in the one-to-one mode, but it is limited only that both the two telephone numbers in the binding relationship of the one-to-one mode that the intermediate number has already been established are different from both the two telephone numbers in the binding request information. Therefore, when step S131 is executed, it is necessary to determine whether the acquired intermediate number has a binding relationship with any telephone number based on the one-to-one multi-mode and whether a binding relationship with any telephone number corresponding to the binding request information based on the one-to-one mode.
That is, when the obtained intermediate number has a binding relationship with any telephone number based on the one-to-many mode, or has a binding relationship with any telephone number corresponding to the binding request information based on the one-to-one mode, the intermediate number cannot be used again for establishing the binding relationship of the request.
For example, if the acquired intermediate number is the first intermediate number, and the first intermediate number has been established to have a binding relationship with the third phone number based on the one-to-many mode. At this time, if the binding relationship between the first phone number and the first intermediate number and the second phone number is established, when the first phone number calls the first intermediate number, the operator cannot determine to transfer the call to the second phone number or the third phone number.
For another example, if the acquired intermediate number is the first intermediate number, and the first intermediate number has already established a binding relationship of the second phone number-the first intermediate number-the third phone number based on the one-to-one mode. At this time, if the binding relationship between the first phone number, the first intermediate number and the second phone number is established again, when the second phone number calls the first intermediate number, the operator cannot determine to transfer the call to the first phone number or the third phone number.
For another example, if the acquired intermediate number is the first intermediate number, and the first intermediate number has already established a binding relationship of the third phone number, the first intermediate number, and the fourth phone number based on the one-to-one mode. At this time, if the binding relationship between the first phone number, the first intermediate number and the second phone number is re-established, when any one of the first phone number, the second phone number, the third phone number and the fourth phone number calls the first intermediate number, a unique phone number for call forwarding can be determined. That is, there may be an intermediate number multiplexing situation in this mode.
The number of times of reusing the intermediate number is not limited, and may be set according to actual application requirements, for example, the number of times of reusing may be less than or equal to 80 on the basis of ensuring higher call quality.
In another example, in conjunction with fig. 4, when the determined mode is a one-to-many mode, step S130 may include step S133 and step S134.
Step S133, determining whether the intermediate number has a binding relationship with any telephone number.
Step S134, if the intermediate number does not establish a binding relationship with any telephone number, determining that the intermediate number can establish a binding relationship with a telephone number corresponding to the binding request information based on the determined binding mode.
In this embodiment, considering that, in the one-to-many mode, as long as the obtained intermediate number has already been established with any telephone number, the problem that the call cannot be effectively determined as the one-to-many mode binding relationship established by reusing the intermediate number exists, it can be determined that the intermediate number can be established with the telephone number corresponding to the binding request information based on the one-to-many mode only when it is determined that the obtained intermediate number does not have the binding relationship with any telephone number.
Further, considering that there may be a case where a plurality of terminal devices simultaneously transmit the binding request information to the server 10, for example, the first terminal 20 and the second terminal 30 simultaneously transmit the binding request information to the server 10. In this case, there may be a problem that the same intermediate number is bound to the first telephone number and the second telephone number, respectively, and further, the binding relationship is difficult to be effectively utilized. To avoid this problem, in the present embodiment, in conjunction with fig. 5, step S130 may include step S135 and step S136, and step S150 may include step S151 and step S152.
Step S135, an intermediate number is obtained from the number pool, and the current number of times of use of the intermediate number is obtained.
Step S136, determining whether the intermediate number can establish a binding relationship with the phone number corresponding to the binding request information based on the determined binding mode.
Step S151, if the intermediate number can establish a binding relationship with the phone number corresponding to the binding request information based on the determined binding mode, obtaining the current number of times of use of the intermediate number again.
Step S152, when the current use times obtained twice are equal, establishing a binding relationship between the intermediate number and the phone number corresponding to the binding request information according to the determined binding mode, and updating the current use times of the intermediate number.
In this embodiment, since the first terminal 20 and the second terminal 30 simultaneously send the binding request information to the server 10, after the same intermediate number is obtained in step S135, the intermediate number and the intermediate number do not affect each other in step S136, as long as the binding relationship established by the intermediate number does not affect the binding relationship that needs to be established by the intermediate number before step S136 is executed.
When the intermediate number can establish a binding relationship with the phone number corresponding to the binding request information based on the determined binding mode, if the binding relationship is established directly, the problem that the simultaneous request of the first terminal 20 and the second terminal 30 has a risk is caused. For example, if a one-to-many mode binding relationship is established between a first telephone number and a first intermediate number, and a one-to-many mode binding relationship is established between a second telephone number and the first intermediate number, it is difficult to determine whether to transfer to the first number or the second number when any other telephone number calls the first intermediate number.
Therefore, in the present embodiment, the above technical problem can be solved by adopting an optimistic lock technology. For example, in performing step S135, the current number of times of use of the first intermediary number may be acquired at the same time as the first intermediary number is acquired. Specifically, the current usage number acquired by the step S135 executed with respect to the request of the first terminal 20 is the same as the current usage number acquired by the step S135 executed with respect to the request of the second terminal 30, and may be 0, for example.
Since the server 10 has a mechanism when establishing the binding relationship, only one binding relationship can be established at a time based on the mechanism, and it is assumed that the binding relationship corresponding to the first terminal 20 is processed first, and then the binding relationship corresponding to the second terminal 30 is processed. Therefore, in executing step S151, it may be acquired that the current usage number of the first intermediate number is still 0 with respect to the request of the first terminal 20, and then, step S152 may be executed to bind the first phone number with the first intermediate number and update the current usage number of the first intermediate number, with the update result being 1. For the request of the second terminal 30, the current usage number of times that the first intermediate number is acquired is 1, which is different from the number of times that the step S135 is executed, and at this time, to ensure the stability of the binding relationship, the binding of the second telephone number and the first intermediate number may be abandoned.
Further, in order to ensure that the request of the second terminal 30 can be executed, that is, to ensure that the second phone number can be effectively bound with an intermediate number, in the present embodiment, in conjunction with fig. 6, step S150 may further include step S153 and step S154.
Step S153, obtaining the current number of times of use of the intermediate number again, and determining whether the intermediate number can establish a binding relationship with the phone number corresponding to the binding request information based on the determined binding mode.
Step S154, if the intermediate number can establish a binding relationship with the phone number corresponding to the binding request information based on the determined binding mode, obtaining the current number of times of use of the intermediate number again.
In this embodiment, step S153 may be performed to acquire the current number of times of use of the first intermediary number again for the request of the second terminal 30, which may be 1, for example. And, when the first intermediate number can establish a binding relationship with the second phone number based on the binding mode requested by the second terminal 30, step S154 may be performed to acquire the current number of uses of the first intermediate number again. If the current number of usage times is 1, the second phone number and the first intermediate number may be bound, and the current number of usage times of the first intermediate number may be updated to 2.
Considering that in some cases, the current usage number obtained by executing step S154 may not be equal to the current usage number obtained by executing step S153, so step 153 and step 154 may be repeatedly executed to make the current usage number obtained by executing step 153 and step 154 the last time equal, and when the current usage numbers obtained twice are equal, the intermediate number and the telephone number corresponding to the binding request information are bound according to the determined binding mode, and the current usage number of the intermediate number is updated.
Further, it is considered that in the one-to-many mode, for example, after the first phone number is bound to the first intermediate number, any other phone number calls the first intermediate number and is transferred to the first phone number, thereby completing the call to the first phone number. However, after the call is completed, the first phone number cannot actively call the other phone number, and can only passively wait for the call of the other phone number. In order to avoid the above problem, in this embodiment, with reference to fig. 7, the intermediary number management and control method may further include step S170 and step S190.
Step S170, acquiring a first phone number for communicating to the phone number corresponding to the binding request information based on the intermediate number.
Step S190, establishing a binding relationship between the first phone number and the phone number corresponding to the binding request information and the intermediate number according to a one-to-one mode.
In this embodiment, for the one-to-many mode, a binding relationship of the first phone number and the first intermediate number is established, and at this time, the second phone number may implement a call to the first phone number by calling the first intermediate number. And, after the call is completed, the second phone number may be acquired. And establishing a binding relationship of the first telephone number, the first intermediate number and the second telephone number, so that the first telephone number can realize calling to the second telephone number by calling the first intermediate number.
In order to avoid the interference caused by the binding relationship between the first phone number and the first intermediate number, which is established before, to the newly established binding relationship between the first phone number and the first intermediate number and the second phone number, in this embodiment, after the binding relationship between the first phone number and the first intermediate number and the second phone number is established, the binding relationship between the first phone number and the first intermediate number, which is established before, needs to be released. That is, under the current binding relationship, only the second phone number calls the first intermediate number to perform the call forwarding process.
With reference to fig. 8, an embodiment of the present invention further provides an intermediary number management apparatus 100 applicable to the server 10. The intermediary number management and control apparatus 100 may include a binding mode determining module 110, a binding relationship determining module 130, and a binding relationship establishing module 150.
The binding mode determining module 110 is configured to determine a required binding mode based on the received binding request information, where the binding mode includes a one-to-one mode and a one-to-many mode. In this embodiment, the binding mode determining module 110 may be configured to execute step S110 shown in fig. 2, and the foregoing description of step S110 may be referred to for the specific description of the binding mode determining module 110.
The binding relationship determining module 130 is configured to obtain an intermediate number from the number pool, and determine whether the intermediate number can establish a binding relationship with the phone number corresponding to the binding request information based on the determined binding mode. In this embodiment, the binding relation determining module 130 may be configured to execute step S130 shown in fig. 2, and the foregoing description of step S130 may be referred to for the specific description of the binding relation determining module 130.
The binding relationship establishing module 150 is configured to establish a binding relationship between the intermediate number and the phone number corresponding to the binding request information according to the determined binding mode if the intermediate number can establish a binding relationship between the intermediate number and the phone number corresponding to the binding request information based on the determined binding mode. In this embodiment, the binding relationship establishing module 150 may be configured to execute step S150 shown in fig. 2, and the foregoing description of step S150 may be referred to for the detailed description of the binding relationship establishing module 150.
With reference to fig. 9, in this embodiment, when the determined binding mode is a one-to-one mode, the binding relationship determining module 130 may include a first binding relationship determining sub-module 131 and a first binding relationship determining sub-module 132.
The first binding relationship determining sub-module 131 is configured to determine whether a binding relationship is established between the intermediate number and any telephone number based on the one-to-many mode, or whether a binding relationship is established between the intermediate number and any telephone number corresponding to the binding request information based on the one-to-one mode. In this embodiment, the first binding relation determining sub-module 131 may be configured to perform step S131 shown in fig. 3, and the detailed description about the first binding relation determining sub-module 131 may refer to the description about step S131.
The first binding relationship determining sub-module 132 is configured to determine that the intermediate number is capable of establishing a binding relationship with the phone number corresponding to the binding request information based on the determined binding mode when the intermediate number is not established with a binding relationship with any phone number based on the one-to-many mode and is not established with a binding relationship with any phone number corresponding to the binding request information based on the one-to-one mode. In this embodiment, the first binding relation determining submodule 132 may be configured to execute step S132 shown in fig. 3, and the detailed description about the first binding relation determining submodule 132 may refer to the description about step S132.
Referring to fig. 10, when the determined binding mode is a one-to-many mode, the binding relationship determining module 130 may further include a second binding relationship determining sub-module 133 and a second binding relationship determining sub-module 134.
The second binding relationship determining submodule 133 is configured to determine whether a binding relationship is established between the intermediate number and any telephone number. In this embodiment, the second binding relation determining submodule 133 can be configured to execute step S133 shown in fig. 4, and the detailed description about the second binding relation determining submodule 133 can refer to the description about step S133.
The second binding relationship determining sub-module 134 is configured to determine, when the intermediate number does not have a binding relationship with any telephone number, that the intermediate number can establish a binding relationship with a telephone number corresponding to the binding request information based on the determined binding mode. In this embodiment, the second binding relation determining submodule 134 may be configured to execute step S134 shown in fig. 4, and the detailed description about the second binding relation determining submodule 134 may refer to the description about step S134.
Referring to fig. 11, when the determined binding mode is a one-to-many mode, the intermediary number managing and controlling apparatus 100 may further include a phone number obtaining module 170 and a binding relationship changing module 190.
The phone number obtaining module 170 is configured to obtain a first phone number for performing communication to the phone number corresponding to the binding request information based on the intermediate number. In this embodiment, the phone number obtaining module 170 may be configured to perform step S170 shown in fig. 7, and the detailed description about the phone number obtaining module 170 may refer to the foregoing description about step S170.
The binding relationship changing module 190 establishes a binding relationship between the telephone number corresponding to the first telephone number and the binding request information and the intermediate number according to a one-to-one mode. In this embodiment, the binding relationship changing module 190 may be configured to execute step S190 shown in fig. 7, and the foregoing description of step S190 may be referred to for specific description of the binding relationship changing module 190.
In summary, the intermediate number management and control method and the intermediate number management and control apparatus 100 provided by the present invention determine the required binding mode when receiving the binding request information, and determine whether the acquired intermediate number can be used for establishing the binding relationship based on the binding mode, thereby effectively avoiding the problem in the prior art that the binding relationship of the intermediate number is easily covered due to poor management and control effects in the processes of intermediate number allocation and use, improving the problem in the prior art that the binding relationship is unstable, further ensuring that the intermediate number with the binding relationship can be effectively communicated, and greatly improving the reliability of the use of the intermediate number.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus and method embodiments described above are illustrative only, as the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, an electronic device, or a network device) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A method for managing and controlling an intermediate number is characterized by comprising the following steps:
determining a binding mode required based on the received binding request information, wherein the binding mode includes a one-to-one mode for binding an intermediate number with two phone numbers and a one-to-many mode for binding an intermediate number with one phone number;
acquiring an intermediate number from a number pool, and judging whether the intermediate number can establish a binding relationship with the telephone number corresponding to the binding request information based on the determined binding mode;
if the intermediate number can establish a binding relationship with the telephone number corresponding to the binding request information based on the determined binding mode, establishing a binding relationship between the intermediate number and the telephone number corresponding to the binding request information according to the determined binding mode;
when the determined binding mode is a one-to-one mode, the step of judging whether the intermediate number can establish a binding relationship with the telephone number corresponding to the binding request information based on the determined binding mode includes:
judging whether the intermediate number has a binding relationship established with any telephone number based on the one-to-one multi-mode and whether any telephone number corresponding to the binding request information has a binding relationship established based on the one-to-one multi-mode;
and if the intermediate number is not based on a binding relationship between the one-to-many mode and any telephone number and not based on the one-to-one mode and is not based on any telephone number corresponding to the binding request information, judging that the intermediate number can be based on the determined binding mode and is based on the telephone number corresponding to the binding request information to establish the binding relationship.
2. The method according to claim 1, wherein, when the determined binding mode is one-to-many mode, the step of determining whether the intermediate number can establish a binding relationship with the phone number corresponding to the binding request information based on the determined binding mode includes:
judging whether the intermediate number has a binding relation with any telephone number;
and if the intermediate number is not in a binding relationship with any telephone number, judging that the intermediate number can establish a binding relationship with the telephone number corresponding to the binding request information based on the determined binding mode.
3. The intermediary number management and control method according to claim 1 or 2, wherein when the determined binding mode is one-to-many mode, after the step of establishing the binding relationship between the intermediary number and the phone number corresponding to the binding request information according to the determined binding mode is performed, the method further comprises:
acquiring a first telephone number for communicating to a telephone number corresponding to the binding request information based on the intermediate number;
and establishing a binding relation between the telephone number corresponding to the first telephone number and the binding request information and the intermediate number according to a one-to-one mode.
4. The intermediary number management and control method according to claim 1 or 2, wherein the step of obtaining an intermediary number from a number pool and determining whether the intermediary number can establish a binding relationship with the phone number corresponding to the binding request information based on the determined binding mode includes:
acquiring an intermediate number from a number pool, and acquiring the current use times of the intermediate number;
judging whether the intermediate number can establish a binding relationship with the telephone number corresponding to the binding request information based on the determined binding mode;
if the intermediate number can establish a binding relationship with the telephone number corresponding to the binding request information based on the determined binding mode, the step of establishing the binding relationship between the intermediate number and the telephone number corresponding to the binding request information according to the determined binding mode includes:
if the intermediate number can establish a binding relationship with the telephone number corresponding to the binding request information based on the determined binding mode, acquiring the current use times of the intermediate number again;
and when the current use times obtained twice are equal, establishing a binding relationship between the intermediate number and the telephone number corresponding to the binding request information according to a determined binding mode, and updating the current use times of the intermediate number.
5. The method according to claim 4, wherein when the number of times of current use obtained twice is not equal, if the intermediate number is capable of establishing a binding relationship with the phone number corresponding to the binding request information based on the determined binding mode, the step of establishing a binding relationship between the intermediate number and the phone number corresponding to the binding request information according to the determined binding mode further includes:
step a, obtaining the current use times of the intermediate number again, and judging whether the intermediate number can establish a binding relationship with the telephone number corresponding to the binding request information based on the determined binding mode;
step c, if the intermediate number can establish a binding relationship with the telephone number corresponding to the binding request information based on the determined binding mode, acquiring the current use times of the intermediate number again;
and repeating the step a and the step c at least once to enable the current use times obtained in the step a and the step c to be equal, and when the current use times obtained in the step a and the step c are equal, establishing a binding relationship between the intermediate number and the telephone number corresponding to the binding request information according to the determined binding mode, and updating the current use times of the intermediate number.
6. The utility model provides an intermediary management and control device which characterized in that includes:
a binding mode determining module, configured to determine a required binding mode based on the received binding request information, where the binding mode includes a one-to-one mode and a one-to-many mode, the one-to-one mode is used for binding an intermediate number with two phone numbers, and the one-to-many mode is used for binding the intermediate number with one phone number;
the binding relation judging module is used for acquiring an intermediate number from the number pool and judging whether the intermediate number can establish a binding relation with the telephone number corresponding to the binding request information based on the determined binding mode;
a binding relationship establishing module, configured to establish a binding relationship between the intermediate number and the phone number corresponding to the binding request information according to the determined binding mode if the intermediate number can establish the binding relationship based on the determined binding mode and the phone number corresponding to the binding request information;
wherein, when the determined binding mode is a one-to-one mode, the binding relationship determining module includes:
a first binding relation judgment sub-module, configured to judge whether a binding relation is established between the intermediate number and any telephone number based on the one-to-one multi-mode, and whether a binding relation is established between the intermediate number and any telephone number corresponding to the binding request information based on the one-to-one multi-mode;
and the first binding relation judgment sub-module is used for judging that the intermediate number can establish the binding relation with the telephone number corresponding to the binding request information based on the determined binding mode when the intermediate number does not establish the binding relation with any telephone number based on the one-to-many mode and does not establish the binding relation with any telephone number corresponding to the binding request information based on the one-to-one mode.
7. The intermediary number management and control device according to claim 6, wherein when the determined binding mode is one-to-many, the binding relationship determining module further comprises:
the second binding relation judgment submodule is used for judging whether the intermediate number has a binding relation with any telephone number;
and the second binding relation judgment submodule is used for judging that the intermediate number can establish the binding relation with the telephone number corresponding to the binding request information based on the determined binding mode when the intermediate number does not establish the binding relation with any telephone number.
8. The intermediary number management and control device according to claim 6 or 7, wherein when the determined binding mode is a one-to-many mode, the device further comprises:
the telephone number acquisition module is used for acquiring a first telephone number for communicating with the telephone number corresponding to the binding request information based on the intermediate number;
and the binding relationship changing module is used for establishing a binding relationship between the telephone number corresponding to the first telephone number and the binding request information and the intermediate number according to a one-to-one mode.
CN201811043167.0A 2018-09-07 2018-09-07 Intermediate number management and control method and intermediate number management and control device Active CN109005301B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811043167.0A CN109005301B (en) 2018-09-07 2018-09-07 Intermediate number management and control method and intermediate number management and control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811043167.0A CN109005301B (en) 2018-09-07 2018-09-07 Intermediate number management and control method and intermediate number management and control device

Publications (2)

Publication Number Publication Date
CN109005301A CN109005301A (en) 2018-12-14
CN109005301B true CN109005301B (en) 2020-10-13

Family

ID=64592018

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811043167.0A Active CN109005301B (en) 2018-09-07 2018-09-07 Intermediate number management and control method and intermediate number management and control device

Country Status (1)

Country Link
CN (1) CN109005301B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111371958A (en) * 2020-03-11 2020-07-03 兰州飞天网景信息产业有限公司 Number privacy protection method based on call center technology
CN111432078B (en) * 2020-03-27 2021-09-10 中国—东盟信息港股份有限公司 System for judging code number abnormity

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1863250A (en) * 2005-05-23 2006-11-15 华为技术有限公司 Number binding method and method for calling thereby
CN101052064A (en) * 2007-04-06 2007-10-10 中兴通讯股份有限公司 Virtual main call number business realizing system and method
CN101159778A (en) * 2007-09-10 2008-04-09 汤淼 System for multimedia communication based on virtual number
CN101562661A (en) * 2008-04-16 2009-10-21 株式会社Ntt都科摩 Communication control method, communication system and communication controller
WO2012093379A1 (en) * 2011-01-07 2012-07-12 Ari Kahn Networking between voip -and pstn- calls
CN104093136A (en) * 2014-07-21 2014-10-08 中国电信股份有限公司 Method and system for obtaining virtual numbers and virtual number service platform

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1863250A (en) * 2005-05-23 2006-11-15 华为技术有限公司 Number binding method and method for calling thereby
CN101052064A (en) * 2007-04-06 2007-10-10 中兴通讯股份有限公司 Virtual main call number business realizing system and method
CN101159778A (en) * 2007-09-10 2008-04-09 汤淼 System for multimedia communication based on virtual number
CN101562661A (en) * 2008-04-16 2009-10-21 株式会社Ntt都科摩 Communication control method, communication system and communication controller
WO2012093379A1 (en) * 2011-01-07 2012-07-12 Ari Kahn Networking between voip -and pstn- calls
CN104093136A (en) * 2014-07-21 2014-10-08 中国电信股份有限公司 Method and system for obtaining virtual numbers and virtual number service platform

Also Published As

Publication number Publication date
CN109005301A (en) 2018-12-14

Similar Documents

Publication Publication Date Title
CN109995877B (en) Information pushing method and device
CN111163130B (en) Network service system and data transmission method thereof
US20150079961A1 (en) Techniques for phone number and data management
CN109005301B (en) Intermediate number management and control method and intermediate number management and control device
CN110601977A (en) Configuration method and device of routing strategy and storage medium
CN111654399B (en) Networking method, device, equipment and storage medium based on SD-WAN
CN109600769B (en) Communication method and device
CN110430590A (en) Network is sliced matching process and device
CN110808948A (en) Remote procedure calling method, device and system
US20160321597A1 (en) Device, System, and Method for Team Formation
CN114785685A (en) Software differential upgrading method and device, electronic equipment and readable storage medium
CN105933271B (en) Data processing method and device based on encryption machine
CN104468764A (en) Method, device and system for strategy scheduling
CN109981697B (en) File unloading method, system, server and storage medium
CN112364005A (en) Data synchronization method and device, computer equipment and storage medium
CN105592482A (en) Updating method and device of multi-mode base station and network management system
CN106503511B (en) A kind of method and device improving mobile phone removal of home cryptographic check safety
CN107294724B (en) Short message uplink verification method and device
CN112685613B (en) Resource package query method and device and information processing system
CN104753938A (en) Information processing method and electronic equipment
CN111815339B (en) Marketing information pushing method and device
US10681509B2 (en) Service processing method and terminal
CN115687223A (en) Method and device for serial port communication of embedded equipment, embedded equipment and storage medium
CN107508882A (en) A kind of method of data transfer, relevant apparatus and storage medium
CN113572701A (en) Service interface flow control method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant