Disclosure of Invention
In order to overcome the problems in the related art, embodiments of the present application provide a virtual number request and transmission method, an apparatus, and a storage medium.
A method for virtual number transmission, the method comprising:
receiving a calling request based on a virtual number sent by a calling party;
if the calling request is that the calling party calls by using a registration number, sending a first virtual number pre-allocated to the registration number to the calling party;
if the calling request is that the calling party calls by using other numbers different from the registered number, distributing a second virtual number to the other numbers, and sending the second virtual number to the calling party.
In an optional implementation, the method further includes:
and binding the second virtual number with the calling number.
In an optional implementation, the method further includes:
and when the service related to the call request is finished, releasing the binding.
A virtual number request method is applied to electronic equipment and comprises the following steps:
when the calling operation is triggered, outputting a number confirmation interface, wherein the number confirmation interface is used for prompting a user to confirm a calling number used in the calling process;
determining the calling number through the number confirmation interface;
if the calling number is a registration number pre-registered by the user, initiating a virtual number request aiming at the registration number to a server;
if the calling number is other numbers different from the registration number, initiating a virtual number request aiming at the other numbers to a server;
and receiving the virtual number returned by the server, and initiating a call to the virtual number.
In an optional implementation manner, the number confirmation interface displays one or more of the following numbers for the user to select the calling number used in the calling process:
a registration number set by the user, one or more alternative numbers set by the user, a communication number currently used by the electronic device, or a calling number used during the last call.
In an optional implementation manner, a number setting entry is displayed in the number confirmation interface;
the determining the calling number through the number confirmation interface includes:
and if the number setting inlet is triggered, acquiring a newly set number as the calling number.
A virtual number transmission apparatus, the apparatus comprising:
a call request receiving module for: receiving a calling request based on a virtual number sent by a calling party;
a number sending module, configured to: if the calling request is that the calling party calls by using a registration number, sending a first virtual number pre-allocated to the registration number to the calling party; if the calling request is that the calling party calls by using other numbers different from the registered number, distributing a second virtual number to the other numbers, and sending the second virtual number to the calling party.
In an optional implementation manner, the apparatus further includes a binding module configured to:
and binding the second virtual number with the other numbers.
In an optional implementation manner, the apparatus further includes a unbinding module configured to:
and when the service related to the call request is finished, releasing the binding.
A virtual number request device applied to an electronic device, the device comprising:
an interface output module to: when the calling operation is triggered, outputting a number confirmation interface, wherein the number confirmation interface is used for prompting a user to confirm a calling number used in the calling process;
a number determination module to: determining the calling number through the number confirmation interface;
a call request sending module, configured to: when the calling number is a registration number pre-registered by a user, initiating a virtual number request aiming at the registration number to a server; when the calling number is other numbers different from the registration number, initiating a virtual number request aiming at the other numbers to a server;
a number receiving module, configured to: and receiving the virtual number returned by the server, and initiating a call to the virtual number.
In an optional implementation manner, the number confirmation interface displays one or more of the following numbers for the user to select the calling number used in the calling process:
a registration number set by the user, one or more alternative numbers set by the user, a communication number currently used by the electronic device, or a calling number used during the last call.
In an optional implementation manner, a number setting entry is displayed in the number confirmation interface;
the number determination module is further configured to:
and if the number setting inlet is triggered, acquiring a newly set number as the calling number.
A computer storage medium having stored therein program instructions, the program instructions comprising:
receiving a calling request based on a virtual number sent by a calling party;
if the calling request is that the calling party calls by using a registration number, sending a first virtual number pre-allocated to the registration number to the calling party;
if the calling request is that the calling party calls by using other numbers different from the registered number, distributing a second virtual number to the other numbers, and sending the second virtual number to the calling party.
A computer storage medium having stored therein program instructions, the program instructions comprising:
when the calling operation is triggered, outputting a number confirmation interface, wherein the number confirmation interface is used for prompting a user to confirm a calling number used in the calling process;
determining the calling number through the number confirmation interface;
if the calling number is a registration number pre-registered by the user, initiating a virtual number request aiming at the registration number to a server;
if the calling number is other numbers different from the registration number, initiating a virtual number request aiming at the other numbers to a server;
and receiving the virtual number returned by the server, and initiating a call to the virtual number.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
according to the virtual number request and sending scheme in the embodiment of the application, when a user needs to call, the client side can output a number confirmation interface, and the user can confirm the calling number used by the user in the call through the number confirmation interface. The client determines whether the calling number is a registration number according to the user operation, and if the calling number is the registration number, a virtual number request aiming at the registration number can be initiated to the server; if so, a virtual number request for the other number may be initiated. According to the request of the client, if the registration number is aimed at, the server can send the pre-allocated first virtual number to the client, and if the registration number is aimed at other numbers, the server can reallocate a second virtual number for the user, so that the situation that the call fails due to the use of a new number by the user can be prevented.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
Fig. 1 is a schematic diagram of an application scenario of a virtual number requesting and sending method in the related art, where fig. 1 includes a plurality of communication servers as communication service parties providing virtual number services and mobile communication network services, an application server configured as an application service party using the virtual number services, a personal device a1 owned by a user a, and a personal device B1 owned by a user B. The Personal device in the embodiment of the present application may include various terminals having a mobile communication function, such as a mobile phone, a tablet Computer, or a telephone, and of course, the embodiment of the present application does not exclude an application to a PC (Personal Computer).
In practical applications, the application service party may be a network appointment application service party, a take-out application service party or a home application service party, etc. The user can install a client (APP) provided by the Application service party in the smart terminal, log in the Application server to register an account, register personal information (such as a user name, a communication address, a registration number or identity information, and the like) in the Application server, and obtain the Application service provided by the Application service party through the APP. The user may be involved in communication with another user during the process of using the application service, and the application service side may provide a virtual number service for the user in order to protect the privacy of the user.
Taking a network car booking service party as an example for explanation, the processing procedure of the related technology is as follows:
the user B initiates a network car booking order by using the APP in the personal device B1; the user A responds to the network appointment order by using the APP in the personal device A1; both the APP in personal device a1 and the APP in personal device B1 initiate service requests to the application server.
Aiming at the business processing request of the car booking order of the network, the application server processes as follows:
on one hand, it needs to obtain the relevant information (including the user identification, the registration number of the user, etc.) of the user a and the user B, and create an order service data for the user a and the user B.
On the other hand, the application server requests a virtual number from the communication service provider for the service (the registration number of user a and the registration number of user B are usually transmitted when the request is made).
After receiving the virtual number sent by the communication service party, the application server sends the order service data including the virtual number to the APP in the personal device a1 and the APP in the personal device B1. And after the APP receives the order business data, processing the order business data so as to display the order business data in an APP application interface for a user to look up. For the service, when needed, a user can initiate a call to another user through the APP, and the application server can send the pre-allocated virtual number to the APP according to the request of the APP.
In the process of applying for the virtual number, the application server uses the registration number of the user to apply for the virtual number. In practice, it is possible for the user to log in to the APP using another device, or for the user to change the communication number, or for example to use a mobile device for dual card dual standby, in which case the outgoing number used by the user at the time of the call is different from the registration number that he registered in the server in advance.
Therefore, when the APP acquires the virtual number and initiates a call to the virtual number, the communication service party finds that the binding relationship cannot be found for the call number used by the user, and therefore a call failure situation occurs.
According to the virtual number request and sending scheme provided by the embodiment of the application, when a user needs to call, the client side outputs a number confirmation interface, and the user can confirm the calling number used by the call through the number confirmation interface. The client determines whether the calling number is a registration number according to the user operation, and if the calling number is the registration number, a virtual number request aiming at the registration number can be initiated to the server; if so, a virtual number request for the other number may be initiated. According to the request of the client, if the registration number is aimed at, the server can send the pre-allocated first virtual number to the client, and if the registration number is aimed at other numbers, the server can reallocate a second virtual number for the user, so that the situation that the call fails due to the use of a new number by the user can be prevented. Next, examples of the present application will be described in detail.
The embodiment of the application provides a virtual number request scheme and a virtual number sending scheme, wherein the virtual number request scheme can be applied to an APP installed in user personal equipment, and the virtual number sending scheme can be applied to a server configured by an application server. And then, the APP terminal and the server terminal describe a virtual number request scheme and a virtual number sending scheme in an interactive angle.
As shown in fig. 2A, fig. 2A is a flowchart of a virtual number requesting method and a virtual number sending method according to an exemplary embodiment of the present application, including the following steps:
in step 201, when the calling operation is triggered, a number confirmation interface is output, where the number confirmation interface is used to prompt a user to confirm a calling number used in the current calling process.
In practical application, an application interface in the APP may show controls such as a call option or a button for the service, and a user may click the control, and it may be detected that the user triggers a call operation through the control. At this time, the APP end may output a number confirmation interface to prompt the user to confirm the calling number used in the current calling process through the number confirmation interface.
Fig. 2B is a schematic diagram of a number confirmation interface according to an exemplary embodiment of the present application, where an APP end in fig. 2B displays the number confirmation interface in a pop-up window manner. In order to facilitate the confirmation of the user, the number which is possibly used by the user can be displayed in the number confirmation interface, so that the user can conveniently select the calling number used in the calling process.
In some examples, it may be a registration number set by the user; in other examples, it is assumed that the user presets one or more other candidate numbers on the basis of setting the registration number, and the candidate numbers may be indicated in the number confirmation interface; in other examples, a communication number currently used by the electronic device may be obtained to indicate in the number confirmation interface; in other examples, the calling number used during the last call may also be indicated in the number confirmation interface. Through the mode, the number confirmation interface can display one or more numbers which are possibly used by the user in the calling process, so that the user can conveniently select the numbers.
In practical applications, it may also occur that none of the numbers displayed in the number confirmation interface is a number to be used by the user in the current calling process, and therefore, referring to fig. 2B, a number setting entry may also be displayed in the number confirmation interface, where the number setting entry is used to determine whether the user has a need to set a new calling number. When the number setting entry is triggered, the user needs to set a new calling number, and the APP can obtain the number newly set by the user as the calling number by providing functions such as an input box and the like.
In step 202, the APP determines the calling number through the number confirmation interface.
In step 203, the APP sends a call request based on the virtual number to the server. If the calling number is a registration number pre-registered by the user, initiating a virtual number request aiming at the registration number to a server; and if the calling number is other numbers different from the registration number, initiating a virtual number request aiming at the other numbers to a server.
In step 204, the server receives a virtual number-based call request sent by a calling party.
In step 205, at the server side, if the call request is that the calling party uses a registration number to make a call, a first virtual number pre-assigned to the registration number is sent to the calling party; if the calling request is that the calling party calls by using other numbers different from the registered number, distributing a second virtual number to the other numbers, and sending the second virtual number to the calling party.
As can be seen from the foregoing analysis, the server records service data and a virtual number binding relationship in advance for a service related to virtual number protection. When the call request of the APP terminal arrives, the server can acquire the service related to the call request, and the binding relationship between the relevant service data and the virtual number. Therefore, after receiving the request, the server sends the first virtual number pre-allocated to the registration number to the calling party if the calling request is that the calling party uses the registration number to call; if the call request is that the calling party calls by using other numbers different from the registered number, the pre-allocated first virtual number is unavailable, and the server can reallocate a second virtual number for the other numbers and send the reallocated second virtual number to the calling party.
In practical applications, the application server may pre-configure a communication server set, where the communication server set may include one or more communication servers providing a medium number service, and the larger the number of the communication servers, the more the communication servers are expected to meet the communication requirements of more users. When the second virtual number is reassigned, a suitable communication service party can be selected from the communication service party set for the application of the virtual number.
For the second virtual number, the communication service side records the binding relationship of the other number, the second virtual number and the called party number.
After receiving the second virtual number, the server may send the second virtual number to the client, so that the client may make a call based on the virtual number.
In step 206, the virtual number returned by the server is received, and a call is initiated to the virtual number.
Therefore, in an optional implementation manner, the server may also bind the second virtual number with the other numbers, and the virtual number may be sent to the user in time according to the recorded binding relationship when the user calls the next time.
Because the virtual number resource is limited, when the service related to the call request is finished, the server can also release the binding to release the virtual number resource, and after the binding is released, the calling party and the called party cannot communicate through the virtual number, thereby being beneficial to protecting the privacy of users.
Corresponding to the embodiments of the virtual number requesting method and the virtual number sending method, the application also provides embodiments of a virtual number requesting device and a virtual number sending device.
As shown in fig. 3, the present application is a block diagram of a virtual number transmission apparatus according to an exemplary embodiment, where the apparatus includes:
a callrequest receiving module 31, configured to: and receiving a calling request based on the virtual number sent by the calling party.
Anumber sending module 32, configured to: if the calling request is that the calling party calls by using a registration number, sending a first virtual number pre-allocated to the registration number to the calling party; if the calling request is that the calling party calls by using other numbers different from the registered number, distributing a second virtual number to the other numbers, and sending the second virtual number to the calling party.
As can be seen from the foregoing analysis, the server records service data and a virtual number binding relationship in advance for a service related to virtual number protection. When the call request of the APP terminal arrives, the server can acquire the service related to the call request, and the binding relationship between the relevant service data and the virtual number. Therefore, after receiving the request, the server sends the first virtual number pre-allocated to the registration number to the calling party if the calling request is that the calling party uses the registration number to call; if the call request is a request for other numbers, the pre-allocated first virtual number is unavailable, and the server can reallocate a second virtual number for the other numbers and send the reallocated second virtual number to the calling party.
In practical applications, the application server may pre-configure a communication server set, where the communication server set may include one or more communication servers providing a medium number service, and the larger the number of the communication servers, the more the communication servers are expected to meet the communication requirements of more users. When the second virtual number is reassigned, a suitable communication service party can be selected from the communication service party set for the application of the virtual number.
For the second virtual number which is redistributed, the communication service side records the binding relation of the other number, the second virtual number and the called party number.
After receiving the second virtual number, the server may send the second virtual number to the client, so that the client may make a call based on the virtual number.
The user may also make multiple calls during the service, and therefore, in an alternative implementation, the apparatus further includes a binding module (not shown in fig. 3) configured to:
and binding the second virtual number with the other numbers. Therefore, the second virtual number can be sent to the user in time according to the recorded binding relationship when calling next time.
Due to the limited resources of the virtual number, at the end of the service to which the call request relates, the apparatus further comprises an unbundling module (not shown in fig. 3) for:
and after the binding is released, the calling party and the called party cannot communicate through the virtual number, and the privacy of the user is protected.
Fig. 4 is a block diagram of a virtual number request apparatus according to an exemplary embodiment, where the apparatus includes:
aninterface output module 41, configured to: and when the calling operation is triggered, outputting a number confirmation interface, wherein the number confirmation interface is used for prompting a user to confirm the calling number used in the calling process.
Anumber determination module 42 for: and determining the calling number through the number confirmation interface.
A callrequest sending module 43, configured to: when the calling number is a registration number pre-registered by a user, initiating a virtual number request aiming at the registration number to a server; and when the calling number is other numbers different from the registration number, initiating a virtual number request aiming at the other numbers to a server.
Anumber receiving module 44, configured to: and receiving the virtual number returned by the server, and initiating a call to the virtual number.
In practical application, an application interface in the APP may show controls such as a call option or a button for the service, and a user may click the control, and it may be detected that the user triggers a call operation through the control. At this time, the APP end may output a number confirmation interface to prompt the user to confirm the calling number used in the current calling process through the number confirmation interface.
Fig. 2B is a schematic diagram of a number confirmation interface according to an exemplary embodiment of the present application, where an APP end in fig. 2B displays the number confirmation interface in a pop-up window manner. In order to facilitate the confirmation of the user, the number which is possibly used by the user can be displayed in the number confirmation interface, so that the user can conveniently select the calling number used in the calling process.
In some examples, the number presented in the number confirmation interface may be a registration number set by the user; in other examples, it is assumed that the user presets one or more other candidate numbers on the basis of setting the registration number, and the candidate numbers may be indicated in the number confirmation interface; in other examples, a communication number currently used by the electronic device may be obtained to indicate in the number confirmation interface; in other examples, the calling number used during the last call may also be indicated in the number confirmation interface. Through the mode, the number confirmation interface can display one or more numbers which are possibly used by the user in the calling process, so that the user can conveniently select the numbers.
In practical applications, it may also occur that none of the numbers displayed in the number confirmation interface is a number to be used by the user in the current calling process, and therefore, referring to fig. 2B, a number setting entry may also be displayed in the number confirmation interface, where the number setting entry is used to determine whether the user has a need to set a new calling number. When the number setting entry is triggered, the user needs to set a new calling number, and the APP can obtain the number newly set by the user as the calling number by providing functions such as an input box and the like.
In practical applications, it may also occur that none of the numbers displayed in the number confirmation interface is a number to be used by the user in the current calling process, and therefore, referring to fig. 2B, a number setting entry may also be displayed in the number confirmation interface; the number determination module is further configured to:
and if the number setting inlet is triggered, acquiring a newly set number as the calling number.
In this embodiment, the number setting entry is used to determine whether the user has a need to set a new outgoing number. When the number setting entry is triggered, the user needs to set a new calling number, and the APP can obtain the number newly set by the user as the calling number by providing functions such as an input box and the like.
The above-described embodiments of the apparatus are merely illustrative, wherein the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
Accordingly, an embodiment of the present application further provides a computer storage medium, where program instructions are stored in the storage medium, and the program instructions include:
receiving a calling request based on a virtual number sent by a calling party;
if the calling request is that the calling party calls by using a registration number, sending a first virtual number pre-allocated to the registration number to the calling party;
if the calling request is that the calling party calls by using other numbers different from the registered number, distributing a second virtual number to the other numbers, and sending the second virtual number to the calling party.
Accordingly, an embodiment of the present application further provides a computer storage medium, where program instructions are stored in the storage medium, and the program instructions include:
when the calling operation is triggered, outputting a number confirmation interface, wherein the number confirmation interface is used for prompting a user to confirm a calling number used in the calling process;
determining the calling number through the number confirmation interface;
if the calling number is a registration number pre-registered by the user, initiating a virtual number request aiming at the registration number to a server;
if the calling number is other numbers different from the registration number, initiating a virtual number request aiming at the other numbers to a server;
and receiving the virtual number returned by the server, and initiating a call to the virtual number.
This application may take the form of a computer program product embodied on one or more storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having program code embodied therein. Computer-usable storage media include permanent and non-permanent, removable and non-removable media, and information storage may be implemented by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of the storage medium of the computer include, but are not limited to: phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technologies, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic tape storage or other magnetic storage devices, or any other non-transmission medium, may be used to store information that may be accessed by a computing device.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.