CN113347311A - Abnormal number call processing method and device and electronic equipment - Google Patents

Abnormal number call processing method and device and electronic equipment Download PDF

Info

Publication number
CN113347311A
CN113347311A CN202110595369.1A CN202110595369A CN113347311A CN 113347311 A CN113347311 A CN 113347311A CN 202110595369 A CN202110595369 A CN 202110595369A CN 113347311 A CN113347311 A CN 113347311A
Authority
CN
China
Prior art keywords
telephone number
target
type
telephone
server
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.)
Granted
Application number
CN202110595369.1A
Other languages
Chinese (zh)
Other versions
CN113347311B (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.)
Wuba Co Ltd
Original Assignee
Wuba 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 Wuba Co Ltd filed Critical Wuba Co Ltd
Priority to CN202110595369.1A priority Critical patent/CN113347311B/en
Publication of CN113347311A publication Critical patent/CN113347311A/en
Application granted granted Critical
Publication of CN113347311B publication Critical patent/CN113347311B/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/42025Calling or Called party identification service
    • H04M3/42034Calling party identification service
    • H04M3/42059Making use of the calling party identifier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/42Systems providing special services or facilities to subscribers
    • H04M3/436Arrangements for screening incoming calls, i.e. evaluating the characteristics of a call before deciding whether to answer it

Landscapes

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

Abstract

The embodiment of the invention provides a call processing method and a device of an abnormal number and electronic equipment, wherein the method is applied to a target application server and comprises the following steps: receiving a call request sent by terminal equipment, wherein the call request carries a calling telephone number; under the condition that the calling telephone number is an abnormal number, sending a number request to a target server; receiving a target telephone number returned by the target server, wherein a user corresponding to the target telephone number is different from a user corresponding to a called telephone number, and the called telephone number is a telephone number determined by the target application server according to the call request; and sending the target telephone number to the terminal equipment so that the terminal equipment initiates a call to the target telephone number. The embodiment of the invention can intercept the abnormal number and simultaneously avoid the calling terminal from sensing that the call is intercepted, thereby fundamentally solving the problem of harassing call.

Description

Abnormal number call processing method and device and electronic equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for processing a call of an abnormal number, and an electronic device.
Background
Harassing calls are common in the lives of people, do not have any benefit to people and only bring trouble to people. Therefore, the harassing call is always not very troublesome.
At present, one way to process a harassing call is to intercept the call at the called end, that is, if the telephone number of the calling end is detected to be an abnormal number (for example, black intermediary), the call is directly intercepted, so that the user at the called end is prevented from sensing the abnormal number, and thus the user at the called end is not disturbed.
However, the above interception method is too simple and rough, and although the called end user cannot perceive the crank call, the calling end user can perceive that the call is intercepted, so that the called end user is still disturbed by adopting other methods, and therefore, the problem of the crank call cannot be fundamentally solved by the above processing method.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are provided to provide a method and an apparatus for processing a call of an abnormal number, and an electronic device, which overcome the above problems or at least partially solve the above problems.
In a first aspect, an embodiment of the present invention provides a method for processing a call of an abnormal number, where the method is applied to a target application server, and the method includes:
receiving a call request sent by terminal equipment, wherein the call request carries a calling telephone number;
under the condition that the calling telephone number is an abnormal number, sending a number request to a target server;
receiving a target telephone number returned by the target server, wherein a user corresponding to the target telephone number is different from a user corresponding to a called telephone number, and the called telephone number is a telephone number determined by the target application server according to the call request;
and sending the target telephone number to the terminal equipment so that the terminal equipment initiates a call to the target telephone number.
Optionally, the sending the number request to the target server includes:
sending a number request to the first target server;
the receiving of the target telephone number returned by the target server includes:
receiving a response telephone number returned by the first target server, wherein a user corresponding to the response telephone number is different from a user corresponding to the called telephone number;
sending the response telephone number to a second target server so that the second target server selects an intermediate telephone number to be bound with the response telephone number, wherein after the intermediate telephone number is bound with the response telephone number, a call initiated to the intermediate telephone number is forwarded to the response telephone number;
and receiving the intermediate telephone number returned by the second target server, and taking the intermediate telephone number as the target telephone number.
Optionally, the response phone number includes any one of a first type phone number, a second type phone number, and a third type phone number, where the first type phone number includes a phone number corresponding to a blank number, the second type phone number includes a phone number to be verified whether a person uses the phone number, and the third type phone number includes a virtual phone number applied in advance.
Optionally, the call request further carries a target service identifier;
after sending the number request to the first target server, the method further comprises:
sending the target service identifier to the first target server so that the first target server selects any one of target type telephone numbers as the response telephone number based on the target service identifier, wherein the target type telephone numbers comprise: the first type of telephone number, the second type of telephone number, or the third type of telephone number.
In a second aspect, an embodiment of the present invention further provides a method for processing a call of an abnormal number, where the method is applied to a target server, and the method includes:
receiving a number request sent by a target application server, wherein the number request is sent by the target application server under the condition that a calling telephone number in a call request is an abnormal number, and the call request is request information received by the target application server from a terminal device;
selecting one of a plurality of prestored telephone numbers as a target telephone number based on the number request, wherein a user corresponding to the target telephone number is different from a user corresponding to a called telephone number, and the called telephone number is the telephone number determined by the target application server according to the call request;
and sending the target telephone number to the target application server so that the target application server forwards the target telephone number to the terminal equipment, and the terminal equipment initiates a call to the target telephone number.
Optionally, the target server includes a first target server and a second target server, and the receiving a number request sent by the terminal device includes:
receiving, by the first target server, the number request;
the selecting one of a plurality of pre-stored telephone numbers as a target telephone number based on the number request includes:
selecting one of a plurality of telephone numbers pre-stored by the first target server as a response telephone number based on the number request, and sending the response telephone number to the target application server;
receiving, by the second target server, the response telephone number sent by the target application server;
selecting an intermediate telephone number to be bound with the response telephone number, wherein after the intermediate telephone number is bound with the response telephone number, a call initiated to the intermediate telephone number is forwarded to the response telephone number;
and taking the intermediate telephone number as the target telephone number.
Optionally, the first target server stores at least one of a first type phone number, a second type phone number, and a third type phone number in advance, where the first type phone number includes a phone number corresponding to a blank number, the second type phone number includes a phone number to be verified whether a person uses the phone number, and the third type phone number includes: the virtual phone number is a virtual phone number that is applied in advance, and the response phone number includes any one of the first type phone number, the second type phone number, and the third type phone number.
Optionally, the call request further carries a target service identifier, and under the condition that the first target server stores a first type telephone number, a second type telephone number and a third type telephone number in advance, each type of telephone number is provided with different value intervals corresponding to different service identifiers;
after receiving the number request by the first target server, the method further comprises:
receiving, by the first target server, the target service identification;
determining a numerical value interval corresponding to each type of telephone number based on the target service identifier;
generating a random number within a target numerical range, wherein the target numerical range comprises a sum of numerical ranges corresponding to the numerical intervals;
determining a numerical value interval containing the random number in each numerical value interval as a target numerical value interval;
selecting one of a plurality of telephone numbers pre-stored by the first target server as a response telephone number based on the number request, including:
and selecting any one of the target type telephone numbers corresponding to the target numerical value interval as the response telephone number based on the number request.
In a third aspect, an embodiment of the present invention further provides a device for processing a call of an abnormal number, where the device is applied to a target application server, and the device includes:
the first receiving module is used for receiving a call request sent by terminal equipment, wherein the call request carries a calling telephone number;
the number request module is used for sending a number request to a target server under the condition that the calling telephone number is an abnormal number;
a second receiving module, configured to receive a target telephone number returned by the target server, where a user corresponding to the target telephone number is different from a user corresponding to a called telephone number, and the called telephone number is a telephone number determined by the target application server according to the call request;
and the call processing module is used for sending the target telephone number to the terminal equipment so as to enable the terminal equipment to initiate a call to the target telephone number.
Optionally, the target server includes a first target server and a second target server, and the number request module is specifically configured to send a number request to the first target server;
the second receiving module includes:
a first receiving unit, configured to receive a response telephone number returned by the first target server, where a user corresponding to the response telephone number is different from a user corresponding to the called telephone number;
a sending unit, configured to send the response telephone number to a second target server, so that the second target server selects an intermediate telephone number to bind with the response telephone number, where a call initiated to the intermediate telephone number is forwarded to the response telephone number after the intermediate telephone number is bound with the response telephone number;
and the second receiving unit is used for receiving the intermediate telephone number returned by the second target server and taking the intermediate telephone number as the target telephone number.
Optionally, the response phone number includes any one of a first type phone number, a second type phone number, and a third type phone number, where the first type phone number includes a phone number corresponding to a blank number, the second type phone number includes a phone number to be verified whether a person uses the phone number, and the third type phone number includes a virtual phone number applied in advance.
Optionally, the call request further carries a target service identifier; the device further comprises:
a service module, configured to send the target service identifier to the first target server, so that the first target server selects any one of target-type telephone numbers as the response telephone number based on the target service identifier, where the target-type telephone number includes: the first type of telephone number, the second type of telephone number, or the third type of telephone number.
In a fourth aspect, an embodiment of the present invention provides an abnormal number call processing apparatus, which is applied to a target server, and the apparatus includes:
the number receiving module is used for receiving a number request sent by a target application server, wherein the number request is sent by the target application server under the condition that a calling telephone number in a call request is an abnormal number, and the call request is request information received by the target application server from a terminal device;
a number selection module, configured to select, based on the number request, one of a plurality of pre-stored phone numbers as a target phone number, where a user corresponding to the target phone number is different from a user corresponding to a called phone number, and the called phone number is a phone number determined by the target application server according to the call request;
and the number sending module is used for sending the target telephone number to the target application server so that the target application server forwards the target telephone number to the terminal equipment, and the terminal equipment initiates a call to the target telephone number.
Optionally, the target server includes a first target server and a second target server, and the number receiving module is specifically configured to receive the number request by the first target server;
the number selection module comprises:
a first response unit, configured to select one of a plurality of phone numbers pre-stored by the first target server as a response phone number based on the number request, and send the response phone number to the target application server;
a second response unit, configured to receive, by the second target server, the response telephone number sent by the target application server;
a binding unit, configured to select an intermediate phone number to bind with the response phone number, where a call initiated to the intermediate phone number is forwarded to the response phone number after the intermediate phone number is bound with the response phone number;
and the number determining unit is used for taking the intermediate telephone number as the intermediate telephone number.
Optionally, the first target server stores at least one of a first type phone number, a second type phone number, and a third type phone number in advance, where the first type phone number includes a phone number corresponding to a blank number, the second type phone number includes a phone number to be verified whether a person uses the phone number, and the third type phone number includes: the virtual phone number is a virtual phone number that is applied in advance, and the response phone number includes any one of the first type phone number, the second type phone number, and the third type phone number.
Optionally, the call request further carries a target service identifier, and under the condition that the first target server stores a first type telephone number, a second type telephone number and a third type telephone number in advance, each type of telephone number is provided with different value intervals corresponding to different service identifiers; the device further comprises:
a service processing module, configured to receive, by the first target server, the target service identifier; determining a numerical value interval corresponding to each type of telephone number based on the target service identifier; generating a random number within a target numerical range, wherein the target numerical range comprises a sum of numerical ranges corresponding to the numerical intervals; determining a numerical value interval containing the random number in each numerical value interval as a target numerical value interval;
the first response unit is specifically configured to select, based on the number request, any one of the target type telephone numbers corresponding to the target numerical value interval as the response telephone number.
In a fifth aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor and the communication interface complete communication between the memory and the processor through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the steps of the call processing method of the abnormal number when executing the program stored in the memory.
In a sixth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the call processing method for an abnormal number as described in the first aspect or the second aspect.
In the embodiment of the present invention, a call request sent by a terminal device may be received, where the call request carries a calling telephone number. A call demand of the user is determined based on the call request. And under the condition that the calling telephone number is an abnormal number, sending a number request to a target server, and receiving a target telephone number returned by the target server, wherein a user corresponding to the target telephone number is different from a user corresponding to a called telephone number, and the called telephone number is a telephone number determined by the target application server according to the call request. Because the calling telephone number is abnormal, in order to prevent the user corresponding to the called telephone number from being disturbed, the user can not directly initiate a call to the called telephone number, but obtains a target telephone number different from the called telephone number. And then the target telephone number is sent to the terminal equipment so that the terminal equipment initiates a call to the target telephone number. In the process of initiating a call to a called terminal by a calling terminal, the embodiment of the invention adopts a target telephone number different from the called telephone number as the telephone number of the called terminal under the condition of determining that the calling telephone number of the calling terminal is an abnormal telephone number, and then initiates the call to the target telephone number, so that the real called terminal, namely a user corresponding to the called telephone number, cannot be disturbed, meanwhile, the calling terminal cannot sense that own call is intercepted, and cannot continue to disturb the real called terminal by other methods, thereby fundamentally solving the problem of telephone disturbance.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a flowchart illustrating steps of a call processing method applied to an abnormal number of a target application server according to an embodiment of the present invention;
fig. 2 is a signal flow chart of a call processing method applied to an abnormal number of a target application server in an actual application process according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating steps of a call processing method applied to an abnormal number of a target server according to an embodiment of the present invention;
fig. 4 is a schematic flow chart illustrating selection of a response phone number according to an embodiment of the present invention;
fig. 5 is a block diagram of a call processing apparatus for an abnormal number of a target application server according to an embodiment of the present invention;
fig. 6 is a block diagram of a call processing apparatus for an abnormal number applied to a target server according to an embodiment of the present invention;
fig. 7 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
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, 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.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In various embodiments of the present invention, it should be understood that the sequence numbers of the following processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Referring to fig. 1, an embodiment of the present invention provides a method for processing a call of an abnormal number, where the method is applied to a target application server, and the method may include:
step 101: and receiving a call request sent by the terminal equipment.
In this step, the terminal device may communicate with the target application server. When a user uses a terminal device, the terminal device can be triggered to send a call request to a target application server through an application program installed on the terminal device, wherein the application program can be any application program installed on the terminal device, and the target application server is a background server of the application program. Specifically, the user makes a target input on a target page on the terminal device, and the terminal device sends a call request to the target application server in response to the target input. For example, the target page installed in the first application of the terminal device contains renting information, and a target control for contacting the landlord or the intermediary through a telephone is arranged on the target page. The target input of the user on the target page is the input of the user on the target control in the target page. The terminal device may be a mobile phone, but is not limited thereto.
The call request is used to trigger a call flow to make sure that the user has a call demand. The call request carries a calling phone number, optionally, the calling phone number is a phone number of a terminal device, for example, the terminal device is a mobile phone, and the calling phone number may be a phone number of a sim (subscriber Identity module) card installed in the mobile phone, but is not limited thereto. The calling telephone number is the telephone number of the calling terminal in the calling process, and the telephone number of the calling terminal can be obtained by reading the telephone number. Of course, the called terminal is also involved in the calling process, and the telephone number of the called terminal, namely the called telephone number, is needed. Here, the call request carries an identifier indicating a called telephone number, and the target application server may determine the called telephone number corresponding to the call request according to the identifier. It is understood that the telephone number may be a telephone number of a fixed telephone (fixed telephone number) or a telephone number of a mobile telephone (mobile number) provided by each large telecommunications carrier. Of course, the telephone number of the network telephone can be used, and the details are not described here.
Step 102: and sending a number request to the target server under the condition that the calling telephone number is an abnormal number.
In this step, the abnormal number may be understood as a phone number that meets a preset condition, where the preset condition may be determined by itself according to a requirement. For example, the preset condition is that users exceeding the target number mark them as harassing calls or add them to a call blacklist, and the abnormal number can be understood as a harassing number. Specifically, a number library including a large number of telephone numbers meeting the preset conditions may be created in advance, the calling telephone number is compared with each telephone number in the number library, and if one telephone number in the number library is the same as the calling telephone number, the calling telephone number is determined to be an abnormal number. Here, the calling telephone number is sent to other electronic equipment with an abnormal number detection function, the other electronic equipment detects whether the calling telephone number is an abnormal number, and the detection result is sent to the terminal equipment, so that the terminal equipment can also determine whether the calling telephone number is an abnormal number according to the detection result. Preferably, in order to comply with laws and regulations, when detecting whether the calling phone number is an abnormal number by using other electronic devices having an abnormal number detection function, the calling phone number may be first sent to a wind control engine for monitoring whether the network information complies with laws and regulations, the calling phone number is forwarded to the other electronic devices by the wind control engine, and a detection result forwarded by the wind control engine from the other electronic devices is received.
And under the condition that the calling telephone number is not an abnormal number, determining the called telephone number according to the call request, and further sending the called telephone number to the terminal equipment so that the terminal equipment initiates a call to the called telephone number. Here, in order to ensure privacy of the called telephone number and improve security, the called telephone number may be sent to the telephone platform when the calling telephone number is not an abnormal number, so that the telephone platform selects an intermediate telephone number to bind with the called telephone number, wherein after the intermediate telephone number is bound with the called telephone number, a call initiated to the intermediate telephone number is forwarded to the called telephone number. And receiving the intermediate telephone number returned by the telephone platform, and sending the intermediate telephone number to the terminal equipment so that the terminal equipment initiates a call to the intermediate telephone number.
Step 103: and receiving the target telephone number returned by the target server.
It should be noted that the target server stores a large number of telephone numbers in advance, and after receiving the number request, the target server sends a selected telephone number as the target telephone number to the target application server. And the user corresponding to the target telephone number is different from the user corresponding to the called telephone number, and the called telephone number is the telephone number determined by the target application server according to the call request. That is, a call placed to a target telephone number cannot be forwarded to a called telephone number. Thus, the destination telephone number is a telephone number that is not related at all to the called telephone number. It will be appreciated that in some scenarios, a call initiated to a certain telephone number may be forwarded to another telephone number associated with the telephone number. For example, when a mobile phone number of a certain user is a, the mobile phone number a is bound to another mobile phone number B (for example, bound through a call forwarding service of an operator), and when another user inputs the mobile phone number B to make a dialing call, a call to the mobile phone number B is forwarded to a call to the mobile phone number a. Here, the destination phone number is not bound with the called phone number. The destination telephone number may be any telephone number that is different from the called telephone number and is not bound to the called telephone number.
Step 104: and sending the target telephone number to the terminal equipment so that the terminal equipment initiates a call to the target telephone number.
In this step, the terminal device may initiate a call to the telephone number, and then may communicate with other terminal devices. The terminal device is used as the mobile phone for explanation, after a user inputs a target in a first application on the mobile phone, if the mobile phone receives a target telephone number sent by a target application server, the interface of the mobile phone is switched to a dialing interface, and the dialing interface inputs the target telephone number. At the moment, the user clicks a control for dialing the telephone, and the call is directly initiated to the target telephone number.
In the embodiment of the invention, a call request sent by terminal equipment can be received, wherein the call request carries a calling telephone number. A call demand of the user is determined based on the call request. And under the condition that the calling telephone number is an abnormal number, sending a number request to a target server, and receiving a target telephone number returned by the target server, wherein a user corresponding to the target telephone number is different from a user corresponding to a called telephone number, and the called telephone number is a telephone number determined by the target application server according to the call request. Because the calling telephone number is abnormal, in order to prevent the user corresponding to the called telephone number from being disturbed, the user can not directly initiate a call to the called telephone number, but obtains a target telephone number different from the called telephone number. And then the target telephone number is sent to the terminal equipment so that the terminal equipment initiates a call to the target telephone number. In the process of initiating a call to a called terminal by a calling terminal, the embodiment of the invention adopts a target telephone number different from the called telephone number as the telephone number of the called terminal under the condition of determining that the calling telephone number of the calling terminal is an abnormal telephone number, and then initiates the call to the target telephone number, so that the real called terminal, namely a user corresponding to the called telephone number, cannot be disturbed, meanwhile, the calling terminal cannot sense that own call is intercepted, and cannot continue to disturb the real called terminal by other methods, thereby fundamentally solving the problem of telephone disturbance.
Optionally, the target server includes a first target server and a second target server, and sends the number request to the target server, including:
a number request is sent to the first target server.
It should be noted that the first target server has a large number of telephone numbers stored locally, and the first target server will select one of the locally stored telephone numbers to return to the target application server after receiving the number request. Here, the first destination server may select a telephone number according to a preset selection rule. For example, when the first destination server stores the telephone numbers through the list, the telephone numbers may be selected from top to bottom, that is, after one telephone number is selected last time, the position of the telephone number selected last time in the list is recorded, and when the telephone number is selected this time, the telephone number below the telephone number selected last time and adjacent to the telephone number is selected according to the recorded position. Of course, the selection rule may also be selected from bottom to top, randomly selected, and the like, which is not described herein again. It can be understood that, in order to avoid the problem that the calling end senses that the target phone number exists, the phone number in the first target server may be supervised and eliminated, that is, the phone number meeting the preset condition is deleted, where the preset condition may be determined by itself according to a requirement, for example, the preset condition may be a case of being dialed many times, but is not limited thereto.
Receiving a target telephone number returned by a target server, comprising:
and receiving a response telephone number returned by the first target server.
It should be noted that the user corresponding to the response telephone number is different from the user corresponding to the called telephone number. The response telephone number includes any one of telephone numbers stored by the first destination server.
And sending the response telephone number to the second target server so that the second target server selects an intermediate telephone number to be bound with the response telephone number.
It should be noted that after the intermediate telephone number is bound to the responding telephone number, calls originating to the intermediate telephone number will be forwarded to the responding telephone number. Therefore, only the middle telephone number needs to be exposed, and the safety and the privacy are improved. It can be understood that the binding relationship between the intermediate phone number and the response phone number has timeliness, that is, after a preset time period after the intermediate phone number is bound with the response phone number, the intermediate phone number and the response phone number are unbound, and the preset time period may be set according to a requirement, for example, may be 5 minutes, but is not limited thereto.
And receiving the intermediate telephone number returned by the second target server, and taking the intermediate telephone number as the target telephone number.
It should be noted that the risk of exposure of the responding telephone number is reduced, since calls originating to the target telephone number can be forwarded to the responding telephone number. Meanwhile, the method can be applied to the existing communication system with the intermediate number setting mechanism.
Fig. 2 is a signal flow chart of a call processing method for an abnormal number according to an embodiment of the present invention in an actual application process, where the call processing method includes a user, a service party, a wind controller, a service party, and a telephone platform. The user can understand that the first application is installed on the terminal device, the business party is a target application server, namely a background server of the first application, and the wind control is a wind control engine for monitoring whether the network information meets the laws and regulations. The server that detects whether the telephone number is an abnormal number and provides a response telephone number corresponds to the first target server in the above embodiment of the present invention. The telephone platform is used for binding an intermediate telephone number aiming at the received telephone number and returning the intermediate telephone number in an original way, and the telephone platform is equivalent to the second target server in the embodiment of the invention, wherein the call initiated to the intermediate telephone number is transferred to the telephone number bound to the intermediate number. The method specifically comprises the following steps:
step 1: the user requests a telephone number from the service party. That is, the user sends a call request to the service party, and requests the service party to return a telephone number as the called telephone number in the call process. The call request carries a calling phone number, i.e., a phone number of the terminal device, but is not limited thereto.
Step 2: and the service party sends the calling telephone number to a wind control, and the wind control supervises the network information.
And step 3: and the wind control sends the calling telephone number to the service party, and the service party detects whether the calling telephone number is an abnormal number.
And 4, step 4: and the server side sends the detection result to the wind control.
And 5: and the wind control feeds back the detection result to the service party. And the service party executes different strategies according to the detection result, namely executing an interception strategy under the condition that the calling telephone number is an abnormal number, and otherwise executing a passing strategy.
Step 6: the service party sends a number request to the service party, requesting a response telephone number.
And 7: the service party selects a telephone number based on the locally stored telephone number, and transmits the selected telephone number as a response telephone number to the service party.
And 8: the service party sends the response telephone number to the telephone platform to request an intermediate telephone number bound with the target telephone number.
And step 9: the telephone platform selects an intermediate telephone number to bind with the target telephone number, and sends the selected intermediate telephone number to the service party.
Step 10: the service party takes the intermediate telephone number as a target telephone number and returns the target telephone number to the user.
Step 11: the user initiates a call to the target telephone number.
Step 12: the telephony platform asynchronously notifies the call results. Here, the call result is used to indicate whether the call is connected or answered by a person.
The above steps 6 to 12 are signal flows under the interception policy. The signal flow through the strategy is described below. I.e. after step 5 the service party determines that the calling telephone number is not an abnormal number, the following steps 13 to 15 are performed.
Step 13: the service party sends the called telephone number to the telephone platform to request an intermediate telephone number binding the called telephone number.
Step 14: the telephone platform selects an intermediate telephone number to bind with the called telephone number, and sends the selected intermediate telephone number to the service party.
Step 15: the user initiates a call to the intermediate telephone number based on the intermediate telephone number returned by the service party.
The embodiment of the invention can be suitable for a communication system with an intermediate number setting mechanism, does not need to locally select the target telephone number in the target application server, realizes the selection of the target telephone number by virtue of the first target server and the second target server, reduces the pressure of the target application server, and simultaneously improves the processing speed and the safety of the whole processing process.
Optionally, the response telephone number includes any one of a first type telephone number, a second type telephone number and a third type telephone number, wherein the first type telephone number includes a telephone number corresponding to a blank number, the second type telephone number includes a telephone number to be verified whether a person uses the response telephone number, and the third type telephone number includes a virtual telephone number applied in advance.
It should be noted that the telephone number corresponding to the null number is a telephone number that prompts the called party that the telephone number dialed by the called party is the null number when the called party is called, that is, a telephone number that is not used by the user or has been logged out from among the telephone numbers provided by the telecommunications carrier. The phone number to be verified whether a person uses can be understood as a phone number provided by a third party with verification requirements, for example, the third party is a certain platform, a mobile phone number is filled in by a user on the platform during registration, and the third party needs to verify whether the mobile phone number is used by a person. Therefore, the mobile phone numbers of all platform users are used as the phone numbers to be verified whether the users use the phone numbers. Here, whether the mobile phone number provided by the third party is used by someone or not can be tested by using the abnormal number. The pre-applied virtual phone number can be understood as a special phone number which is applied to a telecom operator in advance, and the part of the phone number can prompt the opposite party to be in calling when being called, but can never be connected. Here, the first target server stores at least one of the first type phone number, the second type phone number, and the third type phone number. And after receiving the number request, the first target server selects one type of telephone number as a response telephone number according to a preset rule and returns the response telephone number to the target application server.
In the embodiment of the invention, one of the telephone number corresponding to the vacant number, the telephone number to be verified whether a person uses and the virtual telephone number applied in advance is used as the response telephone number, so that the calling terminal can not sense that the call is intercepted.
Optionally, the call request further carries a target service identifier;
after sending the number request to the first target server, the method further comprises:
and sending the target service identification to the first target server so that the first target server selects any one of the target type telephone numbers as a response telephone number based on the target service identification.
It should be noted that the destination type telephone number includes: a first type of telephone number, a second type of telephone number, or a third type of telephone number. It will be appreciated that the target service identity is an identity of the service that the user is involved in triggering a call request on the terminal device. Specifically, a target application program is installed on the terminal device, and when a user generates a call request through the target application program, a service identifier of a related service, that is, a target service identifier is added to the call request. For example, the target application program includes 20 pages, where the first page to the tenth page relate to a first service, and the eleventh page to the twentieth page relate to a second service, and when the user triggers a call request on the first page, a target service identifier carried in the call request is a service identifier of the first service. Here, the rule that the first target server selects the response telephone number is associated with the service identification.
In the embodiment of the invention, the call request carries the target service identifier, so that the response telephone number meeting the service requirement can be obtained based on different services.
Referring to fig. 3, an embodiment of the present invention provides a method for processing a call of an abnormal number, where the method is applied to a target server, and the method may include:
step 301: and receiving a number request sent by the target application server.
In this step, the number request is sent by the target application server when the calling phone number in the call request is an abnormal number, and the call request is request information received by the target application server from the terminal device. It can be understood that, the target application server is configured to process the call request, and a large number of called telephone numbers are stored on the target application server, and the call request carries an identifier indicating the called telephone number, and according to the identifier, the target application server may determine the called telephone number corresponding to the call request. And then the processing of the call request is realized according to the calling telephone number and the called telephone number corresponding to the call request.
Step 302: one of a plurality of telephone numbers stored in advance is selected as a target telephone number based on the number request.
In this step, the user corresponding to the target phone number is different from the user corresponding to the called phone number, and the called phone number is the phone number determined by the target application server according to the call request. The target server stores a plurality of telephone numbers in advance, and avoids storing the called telephone number in the target application server when the target server stores the telephone number. Here, the number request may be understood as a request carrying a preset identifier, and when the target server receives the request carrying the preset identifier, the request is determined as the number request, and one of a plurality of pre-stored phone numbers is selected as the target phone number.
Step 303: and sending the target telephone number to a target application server so that the target application server forwards the target telephone number to the terminal equipment, and initiating a call to the target telephone number by the terminal equipment.
In this step, the target telephone number is response data returned by the target server based on the number request sent by the target application server. After receiving the target phone number, the target application server initiates a call to the target phone number by using the terminal device, where the operation performed by the target application server may refer to the above-mentioned embodiment of the call processing method applied to the abnormal number of the target application server, and details are not described here again.
In the embodiment of the present invention, a number request sent by a target application server may be received, where the number request is sent by the target application server when a calling telephone number in a call request is an abnormal number, and the call request is request information received by the target application server from a terminal device. A call demand of the user is determined based on the call request. And under the condition that the calling telephone number is an abnormal number, the target application server sends a number request, and then the target server selects one of a plurality of prestored telephone numbers as a target telephone number based on the number request, wherein a user corresponding to the target telephone number is different from a user corresponding to a called telephone number, and the called telephone number is the telephone number determined by the target application server according to the call request. Because the calling telephone number is abnormal, in order to prevent the user corresponding to the called telephone number from being disturbed, the user can not directly initiate a call to the called telephone number, but obtains a target telephone number different from the called telephone number. And sending the target telephone number to a target application server so that the target application server forwards the target telephone number to the terminal equipment, and initiating a call to the target telephone number by the terminal equipment. In the process of initiating a call to a called terminal by a calling terminal, the embodiment of the invention adopts a target telephone number different from the called telephone number as the telephone number of the called terminal under the condition of determining that the calling telephone number of the calling terminal is an abnormal telephone number, and then initiates the call to the target telephone number, so that the real called terminal, namely a user corresponding to the called telephone number, cannot be disturbed, meanwhile, the calling terminal cannot sense that own call is intercepted, and cannot continue to disturb the real called terminal by other methods, thereby fundamentally solving the problem of telephone disturbance.
Optionally, the target server includes a first target server and a second target server, and the receiving of the number request sent by the terminal device includes:
a number request is received by a first destination server.
Selecting one of a plurality of telephone numbers stored in advance as a target telephone number based on the number request, including:
selecting one of a plurality of telephone numbers pre-stored by a first target server as a response telephone number based on the number request, and sending the response telephone number to a target application server;
in this step, the first target server selects one of the locally stored telephone numbers to return to the target application server after receiving the number request. Here, the first destination server may select a telephone number according to a preset selection rule. For example, when the first destination server stores the telephone numbers through the list, the telephone numbers may be selected from top to bottom, that is, after one telephone number is selected last time, the position of the telephone number selected last time in the list is recorded, and when the telephone number is selected this time, the telephone number below the telephone number selected last time and adjacent to the telephone number is selected according to the recorded position. Of course, the selection rule may also be selected from bottom to top, randomly selected, and the like, which is not described herein again.
And receiving the response telephone number sent by the target application server by the second target server.
In this step, after receiving the response telephone number from the first target server, the target application server directly sends the response telephone number to the second target server, and the second target server performs processing again, without using the response telephone number as the target telephone number.
An intermediate phone number is selected to bind with the response phone number.
In this step, after the intermediate phone number is bound to the response phone number, the call initiated to the intermediate phone number is forwarded to the response phone number. That is, the second destination server may bind two different phone numbers, e.g., phone number a with phone number B, so that a call originating to phone number a may be forwarded to phone number B.
The intermediate telephone number is taken as the destination telephone number.
In this step, the intermediate phone number bound to the response phone number is used as the target phone number, thereby preventing the response phone number from being directly exposed on the terminal device.
The embodiment of the invention can be suitable for a communication system with an intermediate number setting mechanism, and avoids directly exposing the response telephone number on the terminal equipment. Meanwhile, the selection of the target telephone number is realized by means of the first target server and the second target server, the pressure of the target application server is reduced, and the processing speed of the whole processing process is increased.
Optionally, the first target server stores at least one of a first type phone number, a second type phone number, and a third type phone number in advance, where the first type phone number includes a phone number corresponding to a blank number, the second type phone number includes a phone number to be verified whether a person uses the phone number, and the third type phone number includes: the pre-applied virtual phone number, the response phone number includes any one of a first type phone number, a second type phone number and a third type phone number.
It should be noted that the telephone number corresponding to the null number is a telephone number that prompts the called party that the telephone number dialed by the called party is the null number when the called party is called, that is, a telephone number that is not used by the user or has been logged out from among the telephone numbers provided by the telecommunications carrier. The phone number to be verified whether a person uses can be understood as a phone number provided by a third party with verification requirements, for example, the third party is a certain platform, a mobile phone number is filled in by a user on the platform during registration, and the third party needs to verify whether the mobile phone number is used by a person. Therefore, the mobile phone numbers of all platform users are used as the phone numbers to be verified whether the users use the phone numbers. Here, whether the mobile phone number provided by the third party is used by someone or not can be tested by using the abnormal number. The pre-applied virtual phone number can be understood as a special phone number which is applied to a telecom operator in advance, and the part of the phone number can prompt the opposite party to be in calling when being called, but can never be connected. Here, the first target server stores at least one of the first type phone number, the second type phone number, and the third type phone number. And after receiving the number request, the first target server selects one type of telephone number as a response telephone number according to a preset rule and returns the response telephone number to the target application server.
In the embodiment of the invention, one of the telephone number corresponding to the vacant number, the telephone number to be verified whether a person uses and the virtual telephone number applied in advance is used as the response telephone number, so that the calling terminal can not sense that the call is intercepted.
Optionally, the call request further carries a target service identifier, and under the condition that the first target server stores the first type telephone number, the second type telephone number, and the third type telephone number in advance, each type of telephone number is provided with different value intervals corresponding to different service identifiers.
It should be noted that different types of telephone numbers can meet the requirements of different services, and here, a response telephone number meeting the service requirement needs to be selected from a plurality of different types of telephone numbers according to the target service identifier of the indication service. Preferably, the first target server is provided with a number pool for storing a phone number corresponding to the empty number, a number pool for storing a phone number to be verified whether a person uses the phone number, and a number pool for storing a virtual phone number applied in advance, wherein each number pool is provided with different value intervals corresponding to different service identifiers. It will be appreciated that each service has a unique service identity by which different services can be distinguished. The requirements for each number pool are different under different service scenarios. For example, in a first service scenario, it is necessary to select a response telephone number as much as possible from a number pool storing telephone numbers corresponding to a blank number, in a second service scenario, it is necessary to select a response telephone number as much as possible from a number pool storing telephone numbers to be verified whether or not someone uses, and in a third service scenario, it is necessary to select a response telephone number as much as possible from a number pool storing virtual telephone numbers applied in advance. Here, each number pool is provided with different value intervals corresponding to different service identifiers, and the value range of the value interval of each number pool is taken as the weight of the number pool, so that the response telephone number is easier to select from the number pool, that is, the response telephone number is easier to select from the corresponding number pool when the value range of the value interval is larger. Specifically, in some service scenarios that it is required to preferentially verify whether a phone number used by a person is present, a response phone number should be selected as much as possible from a number pool storing the phone number used by the person to be verified, and if a target service identifier corresponding to the service scenario is a service identifier a, when a value interval corresponding to the number pool storing the phone number used by the person to be verified is set corresponding to the service identifier a, the value interval is set to a value interval with a larger range. For example, the numerical value interval of the service identifier a corresponding to the number pool storing the telephone number to be verified whether the person uses is set to [20, 80 ], the numerical value intervals of the service identifiers a corresponding to the other two number pools are [0, 20), [80, 90], and since the numerical value ranges of [0, 20 ] and [80, 90] are both smaller than the numerical value range of [20, 80 ], the probability of selecting the response telephone number from the number pool storing the telephone number to be verified whether the person uses is the largest under the condition that the target service identifier is determined to be the service identifier a.
Preferably, the numerical value intervals of the three number pools corresponding to the same service identifier are three continuous intervals within a range. For example, the respective numerical value intervals of the three number pools corresponding to the service identifier a are respectively: [0, 20), [20, 50), [50, 90 ]. The numerical value intervals of the three number pools corresponding to the service identifier B are respectively: [0, 40), [40, 80), [80, 90 ]. The numerical value intervals of the three number pools corresponding to the service identifier C are respectively: [0, 20), [20, 80), [80, 90 ].
After receiving the number request by the first target server, the method further comprises:
a target service identification is received by the first target server.
And determining a numerical value interval corresponding to each type of telephone number based on the target service identification.
In this step, since the target service identifier is already determined, the numerical value interval of each type of telephone number corresponding to the target service identifier can be determined. As above, when the target service identifier is the service identifier B, the numerical value intervals of the three telephone numbers are [0, 40 ], [40, 80 ], [80, 90], respectively.
And generating a random number in a target numerical range, wherein the target numerical range comprises the sum of the numerical ranges corresponding to the numerical intervals.
In this step, the sum of the numerical intervals is the numerical range of all the numerical values in the numerical intervals. For example, the numerical ranges of the three types of telephone numbers are: [0, 20), [20, 50), [50, 90], the target numerical range is [0, 90 ].
And determining the value interval containing the random number in each value interval as a target value interval.
In this step, since the random number is generated within the target value range, it is necessarily included in a certain value range, for example, in the above example, the value ranges of the three types of telephone numbers are: [0, 20), [20, 50), [50, 90], the random number is 30, and the target value interval is [20, 50 ].
Selecting one of a plurality of telephone numbers pre-stored by the first target server as a response telephone number based on the number request, comprising:
based on the number request, any one of the target-type telephone numbers corresponding to the target value section is selected as a response telephone number.
In this step, continuing with the above example, the numerical intervals of the first type telephone numbers are: [0, 20), the numerical intervals of the second type telephone numbers are respectively as follows: [20, 50), the numerical intervals of the third type telephone numbers are respectively: [50, 90], the random number is 30, the target value interval is [20, 50), and the target type telephone number is the second type telephone number. Alternatively, the response telephone number may be randomly selected when selected among the target type telephone numbers, but is not limited thereto.
Fig. 4 is a schematic diagram of a selective response telephone number provided by the present invention, which includes three number pools (each storing one type of telephone number), that is, a first number pool, a second number pool, and a third number pool. Assuming that, based on the target service identifier in the call request, the determined value interval corresponding to the first number pool is [0, 29], the value interval corresponding to the second number pool is [30, 59], the value interval corresponding to the third number pool is [60, 99], the target value range is [0, 99], and a random number is taken from the target value range, for example, the random number is 25, the target number pool may be determined to be the first number pool, and a telephone number is selected from the first number pool. Here, when selecting a telephone number in the first number pool, it is also possible to select randomly, i.e. to generate another random number in the range 0, 29, selecting a telephone number with an id (identity) equal to the random number. If another random number of 3 is generated, the phone number selected in the first number pool is the phone number with the corresponding id equal to 3, i.e. P3. Of course, the phone number with id equal to 3 may have been deleted, in which case, a phone number may be randomly selected again from the number pool, or the phone number P4 adjacent to P3 may be selected, and if P4 is also deleted, the selection of the adjacent phone number is continued until the phone number that has not been deleted is selected. Similarly, the manner of selecting the response telephone number in the other number pools is similar, and is not described herein again.
In the embodiment of the invention, the first target server stores three types of telephone numbers in advance, adjusts the numerical value interval corresponding to each type of telephone number according to different services, and selects the response telephone number from more appropriate target type telephone numbers in a targeted manner under the condition of determining the service according to the numerical value interval range of each type of telephone number.
Optionally, different number pools are set to store different types of telephone numbers, and in the case that any one of the telephone numbers in the number pools meets the preset target condition, the telephone number meeting the preset target condition is deleted from the number pools.
It should be noted that, in order to avoid the problem that the calling end senses that the target telephone number exists, the telephone numbers in the number pool can be supervised and eliminated, that is, the telephone numbers meeting the preset target condition are deleted, wherein the preset target condition can be determined by self according to the requirement, for example, the preset target condition can be a condition that the telephone numbers are dialed for many times, but the telephone numbers are not dialed for each time; dialed and there is a dialed-on state, but is not so limited.
In the embodiment of the invention, the telephone numbers in the number pool are monitored and eliminated, so that the calling terminal can be further prevented from sensing that own call is intercepted.
The method for processing a call of an abnormal number according to an embodiment of the present invention is described above, and a call processing apparatus for an abnormal number according to an embodiment of the present invention will be described below with reference to the accompanying drawings.
Referring to fig. 5, an embodiment of the present invention further provides a device for processing a call of an abnormal number, which is applied to a target application server, and the device includes:
a first receiving module 51, configured to receive a call request sent by a terminal device, where the call request carries a calling telephone number;
a number request module 52, configured to send a number request to a target server when a calling phone number is an abnormal number;
a second receiving module 53, configured to receive a target telephone number returned by the target server, where a user corresponding to the target telephone number is different from a user corresponding to a called telephone number, and the called telephone number is a telephone number determined by the target application server according to the call request;
and a call processing module 54, configured to send the target phone number to the terminal device, so that the terminal device initiates a call to the target phone number.
Optionally, the target server includes a first target server and a second target server, and the number request module 52 is specifically configured to send a number request to the first target server;
the second receiving module 53 includes:
the first receiving unit is used for receiving a response telephone number returned by the first target server, and a user corresponding to the response telephone number is different from a user corresponding to a called telephone number;
a sending unit, configured to send the response telephone number to a second target server, so that the second target server selects an intermediate telephone number to bind with the response telephone number, where a call initiated to the intermediate telephone number is forwarded to the response telephone number after the intermediate telephone number is bound with the response telephone number;
and the second receiving unit is used for receiving the intermediate telephone number returned by the second target server and taking the intermediate telephone number as the target telephone number.
Optionally, the response telephone number includes any one of a first type telephone number, a second type telephone number and a third type telephone number, wherein the first type telephone number includes a telephone number corresponding to a blank number, the second type telephone number includes a telephone number to be verified whether a person uses the response telephone number, and the third type telephone number includes a virtual telephone number applied in advance.
Optionally, the call request further carries a target service identifier; the device also includes:
a service module, configured to send the target service identifier to a first target server, so that the first target server selects any one of target-type telephone numbers as a response telephone number based on the target service identifier, where the target-type telephone number includes: a first type of telephone number, a second type of telephone number, or a third type of telephone number.
The call processing device for the abnormal number provided by the embodiment of the present invention can implement each process implemented by the call processing method for the abnormal number in the method embodiments of fig. 1 to fig. 2, and is not described herein again to avoid repetition.
In the embodiment of the invention, a call request sent by a terminal device can be received, wherein the call request carries a calling telephone number. A call demand of the user is determined based on the call request. And under the condition that the calling telephone number is an abnormal number, sending a number request to a target server, and receiving a target telephone number returned by the target server, wherein a user corresponding to the target telephone number is different from a user corresponding to a called telephone number, and the called telephone number is a telephone number determined by the target application server according to the call request. Because the calling telephone number is abnormal, in order to prevent the user corresponding to the called telephone number from being disturbed, the user can not directly initiate a call to the called telephone number, but obtains a target telephone number different from the called telephone number. And then the target telephone number is sent to the terminal equipment so that the terminal equipment initiates a call to the target telephone number. In the process of initiating a call to a called terminal by a calling terminal, the embodiment of the invention adopts a target telephone number different from the called telephone number as the telephone number of the called terminal under the condition of determining that the calling telephone number of the calling terminal is an abnormal telephone number, and then initiates the call to the target telephone number, so that the real called terminal, namely a user corresponding to the called telephone number, cannot be disturbed, meanwhile, the calling terminal cannot sense that own call is intercepted, and cannot continue to disturb the real called terminal by other methods, thereby fundamentally solving the problem of telephone disturbance.
Referring to fig. 6, an embodiment of the present invention further provides a device for processing a call of an abnormal number, which is applied to a target server, and the device includes:
the number receiving module 61 is configured to receive a number request sent by a target application server, where the number request is sent by the target application server when a calling telephone number in a call request is an abnormal number, and the call request is request information received by the target application server from a terminal device;
a number selection module 62, configured to select, based on the number request, one of a plurality of pre-stored telephone numbers as a target telephone number, where a user corresponding to the target telephone number is different from a user corresponding to a called telephone number, and the called telephone number is a telephone number determined by the target application server according to the call request;
and the number sending module 63 is configured to send the target telephone number to the target application server, so that the target application server forwards the target telephone number to the terminal device, and the terminal device initiates a call to the target telephone number.
Optionally, the target server includes a first target server and a second target server, and the number receiving module 61 is specifically configured to receive the number request by the first target server;
a number selection module 62, comprising:
a first response unit, configured to select one of a plurality of phone numbers pre-stored in the first target server as a response phone number based on the number request, and send the response phone number to the target application server;
the second response unit is used for receiving the response telephone number sent by the target application server by the second target server;
the binding unit is used for selecting an intermediate telephone number to bind with the response telephone number, wherein after the intermediate telephone number is bound with the response telephone number, a call initiated to the intermediate telephone number is transferred to the response telephone number;
and the number determining unit is used for taking the intermediate telephone number as the target telephone number.
Optionally, the first target server stores at least one of a first type phone number, a second type phone number, and a third type phone number in advance, where the first type phone number includes a phone number corresponding to a blank number, the second type phone number includes a phone number to be verified whether a person uses the phone number, and the third type phone number includes: the pre-applied virtual phone number, the response phone number includes any one of a first type phone number, a second type phone number and a third type phone number.
Optionally, the call request further carries a target service identifier, and under the condition that the first target server stores a first type telephone number, a second type telephone number and a third type telephone number in advance, each type of telephone number is provided with different value intervals corresponding to different service identifiers; the device also includes:
the service processing module is used for receiving the target service identifier by the first target server; determining a numerical value interval corresponding to each type of telephone number based on the target service identifier; generating a random number in a target numerical range, wherein the target numerical range comprises the sum of numerical ranges corresponding to all numerical intervals; determining a numerical value interval containing the random number in each numerical value interval as a target numerical value interval;
the first response unit is specifically configured to select any one of the target type telephone numbers corresponding to the target numerical value interval as a response telephone number based on the number request.
The call processing device for the abnormal number provided in the embodiment of the present invention can implement each process implemented by the call processing method for the abnormal number in the method embodiment of fig. 3, and is not described herein again to avoid repetition.
In the embodiment of the present invention, a number request sent by a target application server may be received, where the number request is sent by the target application server when a calling telephone number in a call request is an abnormal number, and the call request is request information received by the target application server from a terminal device. A call demand of the user is determined based on the call request. And under the condition that the calling telephone number is an abnormal number, the target application server sends a number request, and then the target server selects one of a plurality of prestored telephone numbers as a target telephone number based on the number request, wherein a user corresponding to the target telephone number is different from a user corresponding to a called telephone number, and the called telephone number is the telephone number determined by the target application server according to the call request. Because the calling telephone number is abnormal, in order to prevent the user corresponding to the called telephone number from being disturbed, the user can not directly initiate a call to the called telephone number, but obtains a target telephone number different from the called telephone number. And sending the target telephone number to a target application server so that the target application server forwards the target telephone number to the terminal equipment, and initiating a call to the target telephone number by the terminal equipment. In the process of initiating a call to a called terminal by a calling terminal, the embodiment of the invention adopts a target telephone number different from the called telephone number as the telephone number of the called terminal under the condition of determining that the calling telephone number of the calling terminal is an abnormal telephone number, and then initiates the call to the target telephone number, so that the real called terminal, namely a user corresponding to the called telephone number, cannot be disturbed, meanwhile, the calling terminal cannot sense that own call is intercepted, and cannot continue to disturb the real called terminal by other methods, thereby fundamentally solving the problem of telephone disturbance.
On the other hand, the embodiment of the invention also provides electronic equipment, which comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the steps of the call processing method of the abnormal number when executing the program stored in the memory.
For example, fig. 7 shows a schematic physical structure diagram of an electronic device.
As shown in fig. 7, the electronic device may include: a processor (processor)710, a communication Interface (Communications Interface)720, a memory (memory)730, and a communication bus 740, wherein the processor 710, the communication Interface 720, and the memory 730 communicate with each other via the communication bus 740. Processor 710 may call logic instructions in memory 730 to perform the following method:
receiving a call request sent by terminal equipment, wherein the call request carries a calling telephone number;
under the condition that the calling telephone number is an abnormal number, sending a number request to a target server;
receiving a target telephone number returned by the target server, wherein a user corresponding to the target telephone number is different from a user corresponding to a called telephone number, and the called telephone number is a telephone number determined by the target application server according to the call request;
sending the target telephone number to the terminal equipment so that the terminal equipment initiates a call to the target telephone number;
or
Receiving a number request sent by a target application server, wherein the number request is sent by the target application server under the condition that a calling telephone number in a call request is an abnormal number, and the call request is request information received by the target application server from a terminal device;
selecting one of a plurality of prestored telephone numbers as a target telephone number based on the number request, wherein a user corresponding to the target telephone number is different from a user corresponding to a called telephone number, and the called telephone number is a telephone number determined by a target application server according to the call request;
and sending the target telephone number to a target application server so that the target application server forwards the target telephone number to the terminal equipment, and initiating a call to the target telephone number by the terminal equipment.
In addition, the logic instructions in the memory 730 can be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. 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, a server, or a network device) to execute 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.
In another aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is implemented to, when executed by a processor, perform the call processing method for an abnormal number provided in the foregoing embodiments, for example, the method includes:
receiving a call request sent by terminal equipment, wherein the call request carries a calling telephone number;
under the condition that the calling telephone number is an abnormal number, sending a number request to a target server;
receiving a target telephone number returned by the target server, wherein a user corresponding to the target telephone number is different from a user corresponding to a called telephone number, and the called telephone number is a telephone number determined by the target application server according to the call request;
sending the target telephone number to the terminal equipment so that the terminal equipment initiates a call to the target telephone number;
or
Receiving a number request sent by a target application server, wherein the number request is sent by the target application server under the condition that a calling telephone number in a call request is an abnormal number, and the call request is request information received by the target application server from a terminal device;
selecting one of a plurality of prestored telephone numbers as a target telephone number based on the number request, wherein a user corresponding to the target telephone number is different from a user corresponding to a called telephone number, and the called telephone number is a telephone number determined by a target application server according to the call request;
and sending the target telephone number to a target application server so that the target application server forwards the target telephone number to the terminal equipment, and initiating a call to the target telephone number by the terminal equipment.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of 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 examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (18)

1. A call processing method of abnormal numbers is applied to a target application server, and is characterized in that the method comprises the following steps:
receiving a call request sent by terminal equipment, wherein the call request carries a calling telephone number;
under the condition that the calling telephone number is an abnormal number, sending a number request to a target server;
receiving a target telephone number returned by the target server, wherein a user corresponding to the target telephone number is different from a user corresponding to a called telephone number, and the called telephone number is a telephone number determined by the target application server according to the call request;
and sending the target telephone number to the terminal equipment so that the terminal equipment initiates a call to the target telephone number.
2. The method of claim 1, wherein the target server comprises a first target server and a second target server, and wherein sending the number request to the target server comprises:
sending a number request to the first target server;
the receiving of the target telephone number returned by the target server includes:
receiving a response telephone number returned by the first target server, wherein a user corresponding to the response telephone number is different from a user corresponding to the called telephone number;
sending the response telephone number to a second target server so that the second target server selects an intermediate telephone number to be bound with the response telephone number, wherein after the intermediate telephone number is bound with the response telephone number, a call initiated to the intermediate telephone number is forwarded to the response telephone number;
and receiving the intermediate telephone number returned by the second target server, and taking the intermediate telephone number as the target telephone number.
3. The method of claim 2, wherein the response phone number includes any one of a first type phone number, a second type phone number, and a third type phone number, wherein the first type phone number includes a phone number corresponding to a null number, the second type phone number includes a phone number to be verified whether a person is using, and the third type phone number includes a previously applied virtual phone number.
4. The method of claim 3, wherein the call request further carries a target service identifier;
after sending the number request to the first target server, the method further comprises:
sending the target service identifier to the first target server so that the first target server selects any one of target type telephone numbers as the response telephone number based on the target service identifier, wherein the target type telephone numbers comprise: the first type of telephone number, the second type of telephone number, or the third type of telephone number.
5. A call processing method of abnormal numbers is applied to a target server, and is characterized in that the method comprises the following steps:
receiving a number request sent by a target application server, wherein the number request is sent by the target application server under the condition that a calling telephone number in a call request is an abnormal number, and the call request is request information received by the target application server from a terminal device;
selecting one of a plurality of prestored telephone numbers as a target telephone number based on the number request, wherein a user corresponding to the target telephone number is different from a user corresponding to a called telephone number, and the called telephone number is the telephone number determined by the target application server according to the call request;
and sending the target telephone number to the target application server so that the target application server forwards the target telephone number to the terminal equipment, and the terminal equipment initiates a call to the target telephone number.
6. The method of claim 5, wherein the target server comprises a first target server and a second target server, and wherein the receiving the number request sent by the terminal device comprises:
receiving, by the first target server, the number request;
the selecting one of a plurality of pre-stored telephone numbers as a target telephone number based on the number request includes:
selecting one of a plurality of telephone numbers pre-stored by the first target server as a response telephone number based on the number request, and sending the response telephone number to the target application server;
receiving, by the second target server, the response telephone number sent by the target application server;
selecting an intermediate telephone number to be bound with the response telephone number, wherein after the intermediate telephone number is bound with the response telephone number, a call initiated to the intermediate telephone number is forwarded to the response telephone number;
and taking the intermediate telephone number as the target telephone number.
7. The method according to claim 6, wherein the first target server stores at least one of a first type telephone number, a second type telephone number and a third type telephone number in advance, wherein the first type telephone number includes a telephone number corresponding to a null number, the second type telephone number includes a telephone number to be verified whether a person uses the telephone number, and the third type telephone number includes: the virtual phone number is a virtual phone number that is applied in advance, and the response phone number includes any one of the first type phone number, the second type phone number, and the third type phone number.
8. The method according to claim 7, wherein the call request further carries a destination service identifier, and in a case where the first destination server stores a first type telephone number, a second type telephone number, and a third type telephone number in advance, each type telephone number has a different numerical value interval corresponding to a different service identifier;
after receiving the number request by the first target server, the method further comprises:
receiving, by the first target server, the target service identification;
determining a numerical value interval corresponding to each type of telephone number based on the target service identifier;
generating a random number within a target numerical range, wherein the target numerical range comprises a sum of numerical ranges corresponding to the numerical intervals;
determining a numerical value interval containing the random number in each numerical value interval as a target numerical value interval;
selecting one of a plurality of telephone numbers pre-stored by the first target server as a response telephone number based on the number request, including:
and selecting any one of the target type telephone numbers corresponding to the target numerical value interval as the response telephone number based on the number request.
9. An abnormal number call processing device applied to a target application server, the device comprising:
the first receiving module is used for receiving a call request sent by terminal equipment, wherein the call request carries a calling telephone number;
the number request module is used for sending a number request to a target server under the condition that the calling telephone number is an abnormal number;
a second receiving module, configured to receive a target telephone number returned by the target server, where a user corresponding to the target telephone number is different from a user corresponding to a called telephone number, and the called telephone number is a telephone number determined by the target application server according to the call request;
and the call processing module is used for sending the target telephone number to the terminal equipment so as to enable the terminal equipment to initiate a call to the target telephone number.
10. The apparatus according to claim 9, wherein the target server comprises a first target server and a second target server, and the number request module is specifically configured to send a number request to the first target server;
the second receiving module includes:
a first receiving unit, configured to receive a response telephone number returned by the first target server, where a user corresponding to the response telephone number is different from a user corresponding to the called telephone number;
a sending unit, configured to send the response telephone number to a second target server, so that the second target server selects an intermediate telephone number to bind with the response telephone number, where a call initiated to the intermediate telephone number is forwarded to the response telephone number after the intermediate telephone number is bound with the response telephone number;
and the second receiving unit is used for receiving the intermediate telephone number returned by the second target server and taking the intermediate telephone number as the target telephone number.
11. The apparatus of claim 10, wherein the response phone number comprises any one of a first type phone number, a second type phone number and a third type phone number, wherein the first type phone number comprises a phone number corresponding to a null number, the second type phone number comprises a phone number to be verified whether a person is using the phone number, and the third type phone number comprises a pre-applied virtual phone number.
12. The apparatus of claim 11, wherein the call request further carries a target service identifier; the device further comprises:
a service module, configured to send the target service identifier to the first target server, so that the first target server selects any one of target-type telephone numbers as the response telephone number based on the target service identifier, where the target-type telephone number includes: the first type of telephone number, the second type of telephone number, or the third type of telephone number.
13. An abnormal number call processing device applied to a target server, the device comprising:
the number receiving module is used for receiving a number request sent by a target application server, wherein the number request is sent by the target application server under the condition that a calling telephone number in a call request is an abnormal number, and the call request is request information received by the target application server from a terminal device;
a number selection module, configured to select, based on the number request, one of a plurality of pre-stored phone numbers as a target phone number, where a user corresponding to the target phone number is different from a user corresponding to a called phone number, and the called phone number is a phone number determined by the target application server according to the call request;
and the number sending module is used for sending the target telephone number to the target application server so that the target application server forwards the target telephone number to the terminal equipment, and the terminal equipment initiates a call to the target telephone number.
14. The apparatus according to claim 13, wherein the target server comprises a first target server and a second target server, and the number receiving module is specifically configured to receive the number request by the first target server;
the number selection module comprises:
a first response unit, configured to select one of a plurality of phone numbers pre-stored by the first target server as a response phone number based on the number request, and send the response phone number to the target application server;
a second response unit, configured to receive, by the second target server, the response telephone number sent by the target application server;
a binding unit, configured to select an intermediate phone number to bind with the response phone number, where a call initiated to the intermediate phone number is forwarded to the response phone number after the intermediate phone number is bound with the response phone number;
a number determination unit for taking the intermediate telephone number as the target telephone number.
15. The apparatus of claim 14, wherein the first target server stores at least one of a first type telephone number, a second type telephone number and a third type telephone number in advance, wherein the first type telephone number includes a telephone number corresponding to a null number, the second type telephone number includes a telephone number to be verified whether a person uses the telephone number, and the third type telephone number includes: the virtual phone number is a virtual phone number that is applied in advance, and the response phone number includes any one of the first type phone number, the second type phone number, and the third type phone number.
16. The apparatus according to claim 15, wherein the call request further carries a destination service identifier, and in a case where the first destination server stores a first type phone number, a second type phone number, and a third type phone number in advance, each type phone number has a different value range corresponding to a different service identifier; the device further comprises:
a service processing module, configured to receive, by the first target server, the target service identifier; determining a numerical value interval corresponding to each type of telephone number based on the target service identifier; generating a random number within a target numerical range, wherein the target numerical range comprises a sum of numerical ranges corresponding to the numerical intervals; determining a numerical value interval containing the random number in each numerical value interval as a target numerical value interval;
the first response unit is specifically configured to select, based on the number request, any one of the target type telephone numbers corresponding to the target numerical value interval as the response telephone number.
17. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the steps of the call processing method applied to the abnormal number of the target application server as claimed in any one of claims 1 to 4 or the call processing method applied to the abnormal number of the target server as claimed in any one of claims 5 to 8 when executing the program stored in the memory.
18. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the call processing method applied to an exceptional number of a target application server according to any one of claims 1-4 or the call processing method applied to an exceptional number of a target server according to any one of claims 5-8.
CN202110595369.1A 2021-05-28 2021-05-28 Abnormal number call processing method and device and electronic equipment Active CN113347311B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110595369.1A CN113347311B (en) 2021-05-28 2021-05-28 Abnormal number call processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110595369.1A CN113347311B (en) 2021-05-28 2021-05-28 Abnormal number call processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN113347311A true CN113347311A (en) 2021-09-03
CN113347311B CN113347311B (en) 2022-12-30

Family

ID=77472084

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110595369.1A Active CN113347311B (en) 2021-05-28 2021-05-28 Abnormal number call processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113347311B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117014553A (en) * 2023-08-08 2023-11-07 中移互联网有限公司 Calling method, calling device, electronic equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101299779A (en) * 2008-06-10 2008-11-05 深圳华为通信技术有限公司 Method for preventing telephone harassment, system and communication terminal
CN104768140A (en) * 2015-04-20 2015-07-08 中国联合网络通信集团有限公司 Call forwarding processing method, device and system
CN109698885A (en) * 2017-10-20 2019-04-30 ***通信集团公司 A kind of processing method of call request, device, network side server and computer storage medium
CN110381221A (en) * 2019-07-25 2019-10-25 北京百度网讯科技有限公司 Call processing method, device, system, equipment and computer storage medium
CN110611731A (en) * 2018-06-14 2019-12-24 ***通信集团设计院有限公司 Method and device for resisting malicious call

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101299779A (en) * 2008-06-10 2008-11-05 深圳华为通信技术有限公司 Method for preventing telephone harassment, system and communication terminal
CN104768140A (en) * 2015-04-20 2015-07-08 中国联合网络通信集团有限公司 Call forwarding processing method, device and system
CN109698885A (en) * 2017-10-20 2019-04-30 ***通信集团公司 A kind of processing method of call request, device, network side server and computer storage medium
CN110611731A (en) * 2018-06-14 2019-12-24 ***通信集团设计院有限公司 Method and device for resisting malicious call
CN110381221A (en) * 2019-07-25 2019-10-25 北京百度网讯科技有限公司 Call processing method, device, system, equipment and computer storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117014553A (en) * 2023-08-08 2023-11-07 中移互联网有限公司 Calling method, calling device, electronic equipment and medium

Also Published As

Publication number Publication date
CN113347311B (en) 2022-12-30

Similar Documents

Publication Publication Date Title
AU2006299588B2 (en) Blocking calls to destinations which are registered in a do-not-call database
JP5351787B2 (en) Communication processing system and program
US20110211682A1 (en) Telephony fraud prevention
CN107018504B (en) Communication method, blacklist configuration method and device
RU2429589C2 (en) Method of detecting fraud during roaming connections in mobile communication networks
CN110944088A (en) Method, device, storage medium and server for calling based on virtual telephone number
MXPA02005971A (en) Country to domestic call intercept process (cip).
US8009809B2 (en) Method and system for call proceeding in an intelligent network system
CN113347311B (en) Abnormal number call processing method and device and electronic equipment
KR101306074B1 (en) Method and system to prevent phishing
US10285061B2 (en) System and method for detecting fraud in telephony
KR101295442B1 (en) Apparatus for preventing voice phishing and method thereof
US20140223552A1 (en) Authentication system and method therefor
CN108632773B (en) Call interception method, intelligent network system and call interception system
CN116017452A (en) Block chain-based number privacy protection method, system, equipment and medium
KR101194998B1 (en) Service providing system and method for preventing phishing between mobile terminals
CN110392166B (en) Incoming call reminding method and device and server
MXPA02005970A (en) Country to country call intercept process (cip).
KR101478835B1 (en) The system to prevent voice phishing and its method
KR20150065017A (en) Method of blocking smishing, server performing the same and storage media storing the same
CN113810547B (en) Voice call safety protection method and device and computing equipment
CN113556741B (en) Security interception method and device
JP2004328139A (en) Communication system for carrying out caller number notice service, and default caller number selecting method thereof
WO2015150767A1 (en) Method and apparatus for detecting whether a fixed-line/landline telephone number has an active call forwarding condition
CN113992799A (en) Virtual number display method and device, electronic equipment and readable 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