Disclosure of Invention
Aiming at the problems in the prior art, the embodiment of the invention provides a method and a server for controlling a call in real time.
In a first aspect, an embodiment of the present invention provides a method for controlling a call in real time, where the method includes:
receiving a call query request forwarded by an operator platform, wherein the call query request carries a calling number and a called virtual number;
acquiring a called number corresponding to the called virtual number according to a preset mapping relation, wherein the preset mapping relation is the corresponding relation among a pre-stored calling number, a pre-stored called virtual number and a pre-stored called number;
respectively analyzing the calling number and the called number to respectively acquire calling user information and called user information;
generating a control strategy for the call according to the calling user information, the called user information and a preset rule;
and sending a feedback message aiming at the call query request, wherein the feedback message carries the control strategy, so that the operator platform controls the call according to the control strategy.
In a second aspect, an embodiment of the present invention provides a server for controlling a call in real time, where the server includes:
the system comprises a receiving module, a calling module and a calling module, wherein the receiving module is used for receiving a calling inquiry request forwarded by an operator platform, and the calling inquiry request carries a calling number and a called virtual number;
the acquiring module is used for acquiring the called number corresponding to the called virtual number according to a preset mapping relation, wherein the preset mapping relation is the corresponding relation among a pre-stored calling number, a pre-stored called virtual number and a pre-stored called number;
the analysis module is used for respectively analyzing the calling number and the called number so as to respectively acquire calling user information and called user information;
the generating module is used for generating a control strategy for the call according to the calling user information, the called user information and a preset rule;
a sending module, configured to send a feedback message for the call query request, where the feedback message carries the control policy, so that the operator platform controls the call according to the control policy.
In a third aspect, an embodiment of the present invention provides another server for performing real-time control on a call, where the server includes: a processor, a memory, and a bus, wherein,
the processor and the memory are communicated with each other through the bus;
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform a method comprising:
receiving a call query request forwarded by an operator platform, wherein the call query request carries a calling number and a called virtual number;
acquiring a called number corresponding to the called virtual number according to a preset mapping relation, wherein the preset mapping relation is the corresponding relation among a pre-stored calling number, a pre-stored called virtual number and a pre-stored called number;
respectively analyzing the calling number and the called number to respectively acquire calling user information and called user information;
generating a control strategy for the call according to the calling user information, the called user information and a preset rule;
and sending a feedback message aiming at the call query request, wherein the feedback message carries the control strategy, so that the operator platform controls the call according to the control strategy.
In a fourth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium, including:
the non-transitory computer readable storage medium stores computer instructions that cause the computer to perform a method comprising:
receiving a call query request forwarded by an operator platform, wherein the call query request carries a calling number and a called virtual number;
acquiring a called number corresponding to the called virtual number according to a preset mapping relation, wherein the preset mapping relation is the corresponding relation among a pre-stored calling number, a pre-stored called virtual number and a pre-stored called number;
respectively analyzing the calling number and the called number to respectively acquire calling user information and called user information;
generating a control strategy for the call according to the calling user information, the called user information and a preset rule;
and sending a feedback message aiming at the call query request, wherein the feedback message carries the control strategy, so that the operator platform controls the call according to the control strategy.
The method and the server for controlling the call in real time provided by the embodiment of the invention can reasonably control the call in real time by generating the control strategy corresponding to the user information in real time at the time of the user call.
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 some, but not all, embodiments of the present 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.
Fig. 1 is a schematic flowchart of a method for controlling a call in real time according to an embodiment of the present invention, and as shown in fig. 1, the method for controlling a call in real time according to the embodiment of the present invention includes the following steps:
s1: receiving a call query request forwarded by an operator platform, wherein the call query request carries a calling number and a called virtual number.
Specifically, the server receives a call query request forwarded by the operator platform, where the call query request carries a calling number and a called virtual number. The server may be a traffic platform deployed by an enterprise and used for managing call records of users and the like, the operator platform may be a call management server of a communication operator, the call query request may be a query request that the operator platform forwards to the server and that the calling number queries a called number (real called number) corresponding to the called virtual number, and what needs to be described is that: the query of the called number corresponding to the called virtual number by the calling number may include the following cases:
(1) the calling number is a called number corresponding to a called virtual number of a first user type (which can comprise a house broker and the like) and inquires a called virtual number of a second user type (which can comprise a house owner and the like).
(2) The calling number is a called number corresponding to a called virtual number of a second user type (which can comprise a house property owner and the like) for inquiring a called virtual number of a first user type (which can comprise a house property broker and the like).
It should be noted that: the called virtual number is not a real called number, but a called number which is virtualized for the purpose of protecting the personal privacy of the called user and the like.
S2: and acquiring the called number corresponding to the called virtual number according to a preset mapping relation, wherein the preset mapping relation is the corresponding relation among a pre-stored calling number, a pre-stored called virtual number and a pre-stored called number.
Specifically, the server obtains the called number corresponding to the called virtual number according to a preset mapping relationship, wherein the preset mapping relationship is a corresponding relationship among a pre-stored calling number, a pre-stored called virtual number and a pre-stored called number. It should be noted that: the preset mapping relation is pre-established and stored in the server, and reflects the one-to-one correspondence relation among pre-stored calling numbers, pre-stored called virtual numbers and pre-stored called numbers.
S3: and respectively analyzing the calling number and the called number to respectively acquire the information of the calling user and the information of the called user.
Specifically, the server analyzes the calling number and the called number respectively to obtain the information of the calling party and the information of the called party respectively. It should be noted that: the caller information may include the caller identity type (which may be a property broker, a property owner, etc.); the called user information includes the called user identity type (which may be a property broker, a property owner, etc.).
S4: and generating a control strategy for the call according to the calling user information, the called user information and a preset rule.
Specifically, the server generates a control strategy for the call according to the calling user information, the called user information and a preset rule. Specifically, the following cases may be included:
(1) if the identity type of the calling user is a first identity type (can be a house broker), analyzing a pre-stored called number corresponding to the called number to acquire the user identity type corresponding to the pre-stored called number;
if the user identity type corresponding to the pre-stored called number is the second identity type (which may be a home owner) and is consistent with the called identity type (i.e., the called user information analyzed in step S3), a first control policy for calling the called number is generated, and the called virtual number may be displayed on a display screen of the called user terminal (which may be a mobile phone). The application scene is as follows: the real called number of the house property owner can not be seen by the house property broker on one hand, and personal privacy information of the house property owner is protected; on the other hand, the real number of the property broker is not visible to the property owner, but can be reached by calling back the virtual number later.
(2) If the identity type of the calling user is a first identity type (can be a house broker), analyzing a pre-stored called number corresponding to the called number to acquire the user identity type corresponding to the pre-stored called number;
if the user identity type corresponding to the pre-stored called number is the second identity type (which may be a house owner) and is not consistent with the called identity type (i.e., the called user information analyzed in step S3), a second control policy for prompting the calling user is generated, and the specific prompt may be: and sending a prompt voice of ' the user dialed by you is not the owner ' to the calling user ' and the like. The application scene is as follows: the method comprises the steps that a real estate agent calls a virtual number of a real estate owner, a telephone traffic platform compares the identity type of a current called user with a pre-stored user identity type, if the identity type of the current called user is inconsistent with the identity type of the pre-stored user, the real called number of the real estate owner cannot be called by the real estate agent, prompt voice of 'the user who calls the real estate agent is not an owner user' and the like is received, on one hand, the pre-stored information of the real estate owner is not real (possibly false information), and a person impersonates the real estate agent, so that business information is prevented from being obtained from the real estate agent; on the other hand, the working efficiency of the house broker is also improved.
(3) And if the identity type of the calling user is the second identity type (which can be a house property owner), identifying the validity of the information of the called user. Identifying the validity of the called user information may include the called user information being valid if the real estate agent is still working at the company; if the house broker is not working at the company, the called user information is invalid.
And generating a control strategy for the call according to the identification result of the validity. Here, the following cases can also be classified:
(3-1): if the identification result of the validity is valid, a first control strategy for calling the called number is generated, and the called virtual number can be displayed on a display screen of the called user terminal (which can be a mobile phone). The application scene is as follows: and if the house property owner dials the called virtual number of the house property broker, the telephone traffic platform identifies that the house property broker is still at work, so that the house property owner calls the real called number of the house property broker and displays the called virtual number on a mobile phone of the house property broker. On one hand, the real called number of the house broker cannot be seen by the house owner, so that the personal privacy information of the house broker is protected; alternatively, the property broker may contact the property owner by calling back the called virtual number at a later time.
(3-2): if the identification result of the validity is invalid, another called number is allocated, a third control strategy for calling another called number is generated, and a called virtual number can be displayed on a display screen of the called user terminal (which can be a mobile phone). The application scene is as follows: and if the traffic platform identifies that the real estate agent is not at work, another real estate agent at work is allocated, so that the real estate owner can communicate with the other real estate agent at work, and the called virtual number is displayed on a mobile phone of the real estate agent. On one hand, the company can not lose business opportunity due to the departure of the original real estate agent; on the other hand, another real estate agent on the job can contact the real estate owner by calling back the called virtual number later.
S5: and sending a feedback message aiming at the call query request, wherein the feedback message carries the control strategy, so that the operator platform controls the call according to the control strategy.
Specifically, the server sends a feedback message for the call query request, where the feedback message carries the control policy, so that the operator platform controls the call according to the control policy. The call control according to the control policy may refer to the above embodiments, and will not be described again.
It should be noted that: a property broker may check a called virtual number of a property owner through a business platform, and contact the property owner by dialing the called virtual number, fig. 2 is a flowchart of a method for controlling a call in real time by using the property broker as a caller according to an embodiment of the present invention, as shown in fig. 2: if the service platform can not find the called virtual number of the house property owner, a called virtual number inquiry request initiated by the service platform can be sent to the traffic platform, the called virtual number inquiry request carries the number A of the house property broker and the real number B of the house property owner of the service platform, and the traffic platform returns the called virtual number x so that the house property broker A can contact the house property owner by dialing the called virtual number.
It should be noted that the method is not limited to calling, and may also include short messages and the like.
The method for controlling the call in real time provided by the embodiment of the invention can reasonably control the call in real time by generating the control strategy corresponding to the user information in real time at the time of the user call.
The following will briefly describe the method for real-time controlling a call according to the embodiment of the present invention:
with continued reference to FIG. 2: the property broker A calls a called virtual number x of a property owner B, and sends a query to an operator platform to inquire the property owner (property owner in FIG. 3) B (property owner B corresponds to the called number) corresponding to the property broker (i.e. broker in FIG. 2) A (property broker A corresponds to the calling number) and the called virtual number x; the operator platform transmits a query request (carrying the calling number of the house broker A and the virtual called number x of the house owner B) to the traffic platform; the telephone traffic platform analyzes the house property owner information in real time, if the house property owner information is the same as the pre-stored house property owner information, the calling number of the house property broker A, the virtual called number x of the house property owner B and the real called number of the house property owner B are returned to the operator platform, so that the operator platform enables the house property broker A to call the real called number of the house property owner B through an operator network, and the called virtual number x is displayed on a mobile phone of the house property owner B. If the method flow is different from the pre-stored house owner information, the method flow is the same as the above, and the description is omitted.
Fig. 3 is a flowchart of a method for real-time controlling a call by a property owner as a caller according to an embodiment of the present invention, as shown in fig. 3: the property owner B calls a called virtual number x of the property broker A, and sends a query to the operator platform to inquire the property broker A (the property broker A corresponds to the called number) corresponding to the property owner B (the property owner B corresponds to the calling number) and the called virtual number x; the operator platform transmits a query request (a calling number of a house property owner B and a virtual called number x of a house property broker A) to the telephone traffic platform; the traffic platform analyzes the information of the house property broker A in real time, if the information is effective, the calling number of the house property owner B, the virtual called number x of the house property broker A and the real called number of the house property broker A are returned to the operator platform, so that the operator platform enables the house property owner B to call the real called number of the house property broker A through an operator network, and the called virtual number x is displayed on a mobile phone of the house property broker A. The telephone traffic platform analyzes the house broker A information in real time, and if the house broker A information is invalid, the method flow is the same as the above, and the description is omitted.
On the basis of the above embodiment, the calling subscriber information includes a calling subscriber identity type, and the called subscriber information includes a called subscriber identity type, correspondingly; the generating a control strategy for the call according to the calling user information, the called user information and a preset rule comprises:
if the calling user identity type is the first identity type, analyzing the pre-stored called number corresponding to the called number to acquire the user identity type of the corresponding pre-stored called number.
Specifically, if the server judges that the identity type of the calling user is the first identity type, the server analyzes the pre-stored called number corresponding to the called number to acquire the user identity type corresponding to the pre-stored called number. Reference may be made to the above embodiments, which are not described in detail.
And if the user identity type of the corresponding pre-stored called number is the second identity type and is consistent with the called identity type, generating a first control strategy for calling the called number.
Specifically, if the server judges that the user identity type corresponding to the pre-stored called number is the second identity type and is consistent with the called identity type, a first control strategy for calling the called number is generated. Reference may be made to the above embodiments, which are not described in detail.
The method for controlling the call in real time provided by the embodiment of the invention can further control the call reasonably in real time by generating the first control strategy corresponding to the identity type of the user in real time at the time of calling the user.
On the basis of the above embodiment, the method further includes:
and if the user identity type corresponding to the pre-stored called number is a second identity type and is inconsistent with the called identity type, generating a second control strategy for prompting the calling user.
Specifically, if the server judges that the user identity type corresponding to the pre-stored called number is the second identity type and is inconsistent with the called identity type, a second control strategy for prompting the calling user is generated. Reference may be made to the above embodiments, which are not described in detail.
The method for controlling the call in real time provided by the embodiment of the invention can further control the call reasonably in real time by generating the second control strategy corresponding to the identity type of the user in real time at the time of the call of the user.
On the basis of the above embodiment, the calling subscriber information includes the identity type of the calling subscriber, correspondingly; the generating a control strategy for the call according to the calling user information, the called user information and a preset rule comprises:
and if the identity type of the calling user is a second identity type, identifying the validity of the called user information.
Specifically, if the server judges that the identity type of the calling user is the second identity type, the validity of the called user information is identified. Reference may be made to the above embodiments, which are not described in detail.
And generating a control strategy for the call according to the identification result of the validity.
Specifically, the server generates a control strategy for the call if judging and acquiring the identification result according to the validity. Reference may be made to the above embodiments, which are not described in detail.
The method for controlling the call in real time provided by the embodiment of the invention can further control the call reasonably in real time by identifying the validity of the information of the called user at the time of calling the user and further generating a corresponding control strategy.
On the basis of the above embodiment, the generating a control policy for the call according to the identification result of the validity includes:
and if the identification result of the validity is valid, generating a first control strategy for calling the called number.
Specifically, if the server judges that the identification result of the validity is valid, a first control strategy for calling the called number is generated. Reference may be made to the above embodiments, which are not described in detail.
Or the like, or, alternatively,
and if the identification result of the validity is invalid, allocating another called number and generating a third control strategy for calling the other called number.
Specifically, if the server judges that the identification result of the validity is invalid, another called number is allocated, and a third control strategy for calling the another called number is generated. Reference may be made to the above embodiments, which are not described in detail.
The method for controlling the call in real time provided by the embodiment of the invention can further control the call reasonably in real time by generating different control strategies according to the validity of the information of the called user at the time of calling the user.
On the basis of the above embodiment, the method further includes:
and replacing the pre-stored called number corresponding to the called number with the other called number so as to update the preset mapping relation.
Specifically, the server replaces the pre-stored called number corresponding to the called number with the other called number to update the preset mapping relationship. The called number of the user who has left the job can be replaced with the called number of the user who is on the job in real time.
The method for controlling the call in real time provided by the embodiment of the invention further optimizes the process of controlling the call by updating the preset mapping relation in real time.
On the basis of the above embodiment, the method further includes:
and displaying the called virtual number at the called user terminal.
Specifically, the server displays the called virtual number at the called user terminal. The called virtual number may be displayed on a display screen of the called user terminal (which may be a cell phone).
The method for controlling the call in real time provided by the embodiment of the invention displays the called virtual number at the called user terminal, thereby effectively ensuring the safety of the privacy information of the user and facilitating the subsequent contact between the calling user and the called user.
Fig. 4 is a schematic structural diagram of a server for controlling a call in real time according to an embodiment of the present invention, and as shown in fig. 4, an embodiment of the present invention provides a server for controlling a call in real time, which includes a receiving module 1, an obtaining module 2, an analyzing module 3, a generating module 4, and a sending module 5, where:
the receiving module 1 is used for receiving a call query request forwarded by an operator platform, wherein the call query request carries a calling number and a called virtual number; the obtaining module 2 is configured to obtain a called number corresponding to the called virtual number according to a preset mapping relationship, where the preset mapping relationship is a correspondence relationship between a pre-stored calling number, a pre-stored called virtual number, and a pre-stored called number; the analysis module 3 is used for respectively analyzing the calling number and the called number so as to respectively acquire calling user information and called user information; the generating module 4 is configured to generate a control policy for the call according to the calling user information, the called user information, and a preset rule; the sending module 5 is configured to send a feedback message for the call query request, where the feedback message carries the control policy, so that the operator platform controls the call according to the control policy.
Specifically, the receiving module 1 is configured to receive a call query request forwarded by an operator platform, where the call query request carries a calling number and a called virtual number; the obtaining module 2 is configured to obtain a called number corresponding to the called virtual number according to a preset mapping relationship, where the preset mapping relationship is a correspondence relationship between a pre-stored calling number, a pre-stored called virtual number, and a pre-stored called number; the analysis module 3 is used for respectively analyzing the calling number and the called number so as to respectively acquire calling user information and called user information; the generating module 4 is configured to generate a control policy for the call according to the calling user information, the called user information, and a preset rule; the sending module 5 is configured to send a feedback message for the call query request, where the feedback message carries the control policy, so that the operator platform controls the call according to the control policy.
The server for controlling the call in real time provided by the embodiment of the invention can reasonably control the call in real time by generating the control strategy corresponding to the user information in real time at the time of the user call.
The server for controlling a call in real time provided in the embodiment of the present invention may be specifically configured to execute the processing flows of the above method embodiments, and the functions of the server are not described herein again, and refer to the detailed description of the above method embodiments.
Fig. 5 is a schematic structural diagram of a server entity provided in an embodiment of the present invention, and as shown in fig. 5, the server includes: a processor (processor)501, a memory (memory)502, and a bus 503;
the processor 501 and the memory 502 complete communication with each other through a bus 503;
the processor 501 is configured to call program instructions in the memory 502 to perform the methods provided by the above-mentioned method embodiments, for example, including: receiving a call query request forwarded by an operator platform, wherein the call query request carries a calling number and a called virtual number; acquiring a called number corresponding to the called virtual number according to a preset mapping relation, wherein the preset mapping relation is the corresponding relation among a pre-stored calling number, a pre-stored called virtual number and a pre-stored called number; respectively analyzing the calling number and the called number to respectively acquire calling user information and called user information; generating a control strategy for the call according to the calling user information, the called user information and a preset rule; and sending a feedback message aiming at the call query request, wherein the feedback message carries the control strategy, so that the operator platform controls the call according to the control strategy.
The present embodiment discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the method provided by the above-mentioned method embodiments, for example, comprising: receiving a call query request forwarded by an operator platform, wherein the call query request carries a calling number and a called virtual number; acquiring a called number corresponding to the called virtual number according to a preset mapping relation, wherein the preset mapping relation is the corresponding relation among a pre-stored calling number, a pre-stored called virtual number and a pre-stored called number; respectively analyzing the calling number and the called number to respectively acquire calling user information and called user information; generating a control strategy for the call according to the calling user information, the called user information and a preset rule; and sending a feedback message aiming at the call query request, wherein the feedback message carries the control strategy, so that the operator platform controls the call according to the control strategy.
The present embodiments provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the methods provided by the above method embodiments, for example, including: receiving a call query request forwarded by an operator platform, wherein the call query request carries a calling number and a called virtual number; acquiring a called number corresponding to the called virtual number according to a preset mapping relation, wherein the preset mapping relation is the corresponding relation among a pre-stored calling number, a pre-stored called virtual number and a pre-stored called number; respectively analyzing the calling number and the called number to respectively acquire calling user information and called user information; generating a control strategy for the call according to the calling user information, the called user information and a preset rule; and sending a feedback message aiming at the call query request, wherein the feedback message carries the control strategy, so that the operator platform controls the call according to the control strategy.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The above-described embodiments of the server and the like are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the embodiments of the present invention, and are not limited thereto; although embodiments of the present invention have been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.