Communication method, cloud device, terminal device, electronic device and storage medium
By determining the target geographical area in the communication system and selecting the real communication signal code of the target user, the problem of difficulty in reusing the transit number is solved, and the cross-geographical area reuse of the transit number is realized, which reduces the cost and improves communication efficiency.
Patent Information
- Application Number
- CN202111177144.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-09
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2041-10-09
AI Technical Summary
In the prior art, transit numbers cannot be reused, resulting in the need to rent and maintain a large number of transit numbers, which increases costs.
Determine the target geographical area by the calling number and the target transfer number carried in the number search request. Select the real pass signal code of the target user located in the target geographical area from the real pass signal code bound by the target transfer number, and return the number, supporting the same Transfer numbers are reused across geographic regions.
This greatly reduces the number of transit numbers required to be rented and maintained, reduces costs, and avoids damage to the user's communication experience.
Smart Images

Figure CN114205465B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of communication technology, and in particular, to a communication method, a cloud device, a terminal device, an electronic device, and a storage medium. Background Art
[0002] With the development of social civilization, privacy protection has received more and more attention from the public. In the field of communications, the protection of user privacy is usually achieved through the AXN mode. Among them, A is the user's real communication number, X is the transfer number (also called a small number or a privacy number), and N is an arbitrary number. In the AXN mode, any number can be transferred to the A number by dialing the X number.
[0003] In the prior art, each transit number can only be bound to one real communication number, and the same transit number cannot be reused. Therefore, a large number of transit numbers need to be rented and maintained, resulting in high costs. Summary of the invention
[0004] The embodiments of the present application propose a communication method, a cloud device, a terminal device, an electronic device and a computer-readable medium to reduce the amount of renting and maintenance of privacy numbers, thereby reducing costs.
[0005] In a first aspect, an embodiment of the present application provides a communication method, comprising: receiving a directory inquiry request, the directory inquiry request including a calling number and a target transit number; determining a target geographical area based on the calling number and / or the target transit number; selecting a real communication number of a target user located in the target geographical area from the real communication numbers bound to the target transit number, and returning the selected real communication number.
[0006] In the second aspect, an embodiment of the present application provides a cloud device, comprising: a receiving unit, configured to receive a directory inquiry request, the directory inquiry request including a calling number and a target transit number; a determining unit, configured to determine a target geographical area based on the calling number and / or the target transit number; a selecting unit, configured to select a real communication number of a target user located in the target geographical area from the real communication numbers bound to the target transit number, and return the selected real communication number.
[0007] In the third aspect, an embodiment of the present application also provides a terminal device, which includes: a sending unit, configured to send a directory inquiry request, the directory inquiry request including a calling number and a target transit number; a receiving unit, configured to receive a real communication number of a target user who is bound to the target transit number and located in a target geographical area, and the target geographical area is determined based on the calling number and / or the target transit number.
[0008] In a fourth aspect, an embodiment of the present application further provides an electronic device, comprising: a processor; and a memory, on which executable code is stored, and when the executable code is executed, the processor executes the communication method as described in one or more of the embodiments of the present application.
[0009] In a fifth aspect, the embodiments of the present application further provide one or more machine-readable media on which executable codes are stored. When the executable codes are executed, the processor executes the communication method as described in one or more of the embodiments of the present application.
[0010] Compared with the prior art, the embodiments of the present application have the following advantages:
[0011] In the embodiment of the present application, the target geographical area is determined by the calling number and / or target transfer number carried in the number query request, and then the real communication number of the target user located in the target geographical area is selected from the real communication number bound to the target transfer number, and the real communication number is returned, so that when the same transfer number has a binding relationship with the real communication numbers of multiple users located in different geographical areas, the target user to be transferred can be accurately determined by determining the target geographical area. In this way, the same transfer number can be reused across geographical areas at the same time, which greatly reduces the number of transfer numbers that need to be rented and maintained, thereby reducing costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
[0013] Figure 1A A schematic diagram of an application scenario of the communication method of the present application;
[0014] Figure 1B is a flow chart of an embodiment of the communication method of the present application;
[0015] Figure 2 is a flow chart of another embodiment of the communication method of the present application;
[0016] Figure 3 is a schematic diagram of the structure of an embodiment of a cloud device of the present application;
[0017] Figure 4 is a schematic structural diagram of an embodiment of a terminal device of the present application;
[0018] Figure 5 It is a schematic diagram of the structure of a device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0019] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It should also be noted that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.
[0020] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0021] The embodiments of the present application can be applied to communication scenarios, such as communication scenarios between delivery personnel (such as couriers, delivery personnel, etc.) and users in logistics delivery links such as express delivery and take-out delivery, as well as communication scenarios between various intermediaries and users. In these communication scenarios, in order to protect user privacy, communication can be carried out through the AXN mode. Among them, A is the user's real communication number, X is the transit number (also called a small number or privacy number), and N is any communication number (such as the communication number of couriers, delivery personnel, intermediaries, etc.). Any communication number can be transferred to the A number by dialing the X number.
[0022] In the AXN mode, it is difficult to reuse the X number. For example, suppose there are two sets of binding relationships at the same time: A1XN and A2XN. When the B number (one of the N numbers) calls the X number, it is unclear whether it should be transferred to the A1 number or the A2 number, so the same X number cannot be bound to multiple A numbers at the same time. Since the transit numbers in AXN cannot be reused, a large number of number resources are required to support communication needs when the AXN mode is used in actual applications, which consumes a high cost. In addition, although the transit number can be expanded through the extension number, for example, the transit number can be expanded to 13700001234-0001, 13700001234-0002, etc., to achieve the reuse of the transit number, this method requires the user to first dial the transit number and then dial the extension number when requesting communication, which is inconvenient in operation and still requires the maintenance of a large number of extension numbers.
[0023] The embodiment of the present application uses the geographical area where the user is located as a parameter for the multiplexing of the transit number, so that the same transit number can be reused in different geographical areas, thereby greatly reducing the number of transit numbers that need to be rented and maintained, and reducing costs. At the same time, when the calling user dials the transit number, the target geographical area can be automatically identified to lock the target user, without the calling user having to enter the extension number, thus avoiding damage to the user's communication experience.
[0024] See also Figure 1A . Figure 1AThis is a schematic diagram of an application scenario of the communication method of the present application, which is a courier delivery scenario. In this scenario, the execution subject of the communication method may be a number management server. The number management server may be used to store and manage communication numbers and transit numbers. The number management server may be connected to a basic communication server to receive and respond to a number query request sent by the basic communication server. The basic communication server may be a server of a communication operator, which may call the communication number according to the communication request.
[0025] The number management server can record the real communication numbers of users in each city and the transit numbers bound to the real communication numbers. The same transit number can be bound to the real communication numbers of users in different geographical areas (such as municipalities, prefecture-level cities, etc.), and the same transit number can only be bound to the real communication number of one user in each geographical area. Figure 1A As shown, a transit number managed by the number management server is "1167***", which can be simultaneously bound to the real communication number "135********" of recipient A located in Hangzhou, the real communication number "138********" of recipient B located in Jiaxing, and the real communication number of a recipient located in Chengdu, etc.
[0026] The number management server can also record the communication numbers of couriers located in various cities. Figure 1A As shown, the communication numbers of courier 1 and courier 2 located in Hangzhou, and the communication numbers of courier 3 and courier 4 located in Jiaxing, etc. can be recorded.
[0027] exist Figure 1A In the scenario shown, the basic communication server may send a directory query request carrying a calling number (such as the communication number "151********" of courier 1 located in Hangzhou) and a target transit number (such as the above-mentioned "1167***") to the number management server. After receiving the directory query request sent by the basic communication server, the number management server may determine that the target geographical area is Hangzhou based on the calling number (such as the communication number "151********" of courier 1 located in Hangzhou) and the target transit number (such as the above-mentioned "1167***") carried in the directory query request. Afterwards, the real communication number of the target user located in Hangzhou (i.e., the real communication number "135********" of recipient A located in Hangzhou, the real communication number "138********" of recipient B located in Jiaxing, etc.) may be selected from the real communication numbers bound to the target transit number (such as the above-mentioned "1167***"), thereby returning the real communication number to the basic communication server.
[0028] Therefore, the embodiment of the present application can accurately determine the target user to be transferred by determining the target geographical area when the same transit number is bound to the real communication numbers of multiple users in different geographical areas. It supports the reuse of the same transit number across geographical areas at the same time, greatly reducing the number of transit numbers that need to be rented and maintained, thereby reducing costs. In addition, when the calling user dials the transit number, the target geographical area can be automatically identified to lock the target user, without the calling user having to enter the extension number, thus avoiding damage to the user's communication experience.
[0029] Please continue to see Figure 1B . Figure 1B This is a flow chart of an embodiment of the communication method of the present application. The specific processing process includes the following steps:
[0030] Step 101: receiving a directory inquiry request, wherein the directory inquiry request includes a calling number and a target transfer number.
[0031] In this embodiment, the execution subject of the communication method (such as Figure 1A The number management server shown in FIG. 1 may receive the number query request. The number query request may be sent by other servers (such as Figure 1A The basic communication server shown) is sent when a communication request is received.
[0032] The above-mentioned directory inquiry request may include but is not limited to the calling number and the target transit number. The above-mentioned directory inquiry request can be used to request to query the real communication number bound to the target transit number. The above-mentioned communication request is used to request the calling number to establish communication with the target transit number.
[0033] Taking the express delivery scenario as an example, a courier's communication number is "151********". When he dials a recipient's transit number (i.e., privacy number) "1167***" through a calling device (such as a mobile terminal such as a mobile phone), the calling device sends a communication request with the transit number "1167***" to the basic communication server. At this time, the courier's communication number "151********" can be used as the calling number, and the recipient's transit number "1167***" can be used as the target transit number. After receiving the communication request, the basic communication server can send a directory query request carrying the calling number "151********" and the target transit number "1167***" to the above-mentioned execution entity.
[0034] Step 102, determining a target geographic area based on the calling number and / or the target transit number.
[0035] In this embodiment, the execution subject may determine the target geographical area based on the geographical area corresponding to the calling number, may determine the target geographical area based on the target transit number when the target transit number carries geographical area information, or may determine the target geographical area by combining the calling number and the target transit number at the same time. The geographical area here may refer to a municipality directly under the Central Government, a prefecture-level city, etc.
[0036] In some optional implementations of this embodiment, a large number of communication numbers may be recorded in the above-mentioned execution entity, and the geographical area corresponding to each communication number may be noted. If the target transit number is a mobile phone number, the above-mentioned execution entity may check whether there is a record of the calling number in the local database. If the calling number is queried, the noted geographical area of the calling number may be further queried, and the noted geographical area may be determined as the target geographical area. It should be noted that if the target transit number is a landline number, the target geographical area may also be determined in the same manner, which is not limited here.
[0037] Taking the express delivery field as an example, a number pool can be maintained in the above-mentioned execution entity. The number pool can store a large number of couriers' communication numbers, and the geographical area corresponding to each communication number is noted. The above-mentioned execution entity can query the noted geographical area of the calling number, and determine the noted geographical area as the target geographical area. If the noted geographical area of the calling number is Hangzhou, the target geographical area is Hangzhou. It should be noted that in addition to the stored courier's communication number, the number pool can also store the recipient's real communication number, and note the geographical area corresponding to each real communication number, and can also record the transit number bound to the real communication number.
[0038] In some optional implementations of this embodiment, when the target transfer number is a landline number, since the landline number usually contains an area code, the above-mentioned execution entity can determine the target geographical area only based on the target transfer number. Specifically, the geographical area corresponding to the area code in the target transfer number can be queried, and the geographical area can be determined as the target geographical area. For example, if the area code in the target transfer number is 010, the target geographical area is Beijing. If the area code in the target transfer number is 028, the target geographical area is Chengdu.
[0039] In some optional implementations of this embodiment, the execution subject may first query the real communication number bound to the target transit number, and determine the geographical area noted by each of the queried real communication numbers. If at least two real communication numbers are found to be bound to the target transit number, the noted geographical area of the calling number may be queried, and the noted geographical area of the calling number may be determined as the target geographical area.
[0040] Step 103, selecting the real communication number of the target user located in the target geographical area from the real communication numbers bound to the target transit number, and returning the selected real communication number.
[0041] In this embodiment, the same transit number can be bound to the real communication number of users in different geographical areas (such as municipalities, prefecture-level cities, etc.), so the same transit number can be bound to one or more real communication numbers. Compared with the method of binding each transit number to a real communication number in the prior art, the binding method in the embodiment of the present application can support the reuse of the same transit number across geographical areas, greatly reducing the number of transit numbers required to be rented and maintained, thereby reducing costs.
[0042] In addition, in this embodiment, the same transit number can only be bound to the real communication number of one user in each geographical area, that is, the real communication numbers of two users in the same geographical area will not be bound to the same transit number. This ensures normal communication with the user's real communication number. At the same time, there is no need for the calling user to enter the extension number, which avoids damage to the user's communication experience.
[0043] In this embodiment, after the target geographical area is queried, the above-mentioned execution subject can query the real communication number bound to the target transit number. Each real communication number queried can correspond to a user in a geographical area, and the above-mentioned execution subject can take the user located in the target geographical area as the target user and obtain the real communication number of the target user. Here, the target user is the called user who requests communication from the calling user. For example, the calling user is a courier, and the target transit number is bound to the real communication number of the recipient Zhang in Beijing, the real communication number of the recipient Wang in Chengdu, the real communication number of the recipient Sun in Hangzhou, and the real communication number of the recipient Zhao in Jiaxing. If the target geographical area is Hangzhou, the target user is the recipient Sun in Hangzhou, and the bound real communication number of Sun can be obtained.
[0044] After obtaining the real communication number of the target user, the execution subject may return the real communication number to the basic communication server, so that the basic communication server can transfer the call to the real communication number, thereby realizing the communication between the calling user and the target user.
[0045] In some optional implementations of this embodiment, the target transfer number is bound to the original communication number of the target user in advance through the following sub-steps:
[0046] Sub-step S11, querying the target geographical area where the target user is located.
[0047] Here, the target geographical area where the target user is located can be queried in a variety of ways.
[0048] As an example, the target geographical area where the target user is located may be queried by positioning.
[0049] As another example, the logistics order information of the target user may be first obtained; and then, based on the delivery address in the logistics order information, the target geographical area where the target user is located may be determined.
[0050] Sub-step S12, taking the transfer numbers that are not bound to any user in the target geographical area as candidate transfer numbers, and selecting a target transfer number from the candidate transfer numbers.
[0051] Here, the target geographical area where the target user is located can be queried in a variety of ways.
[0052] As an example, a transfer number may be randomly selected from the candidate transfer numbers as the target transfer number.
[0053] As another example, the duration of the unbinding state of each candidate transit number can be obtained first. The duration of the unbinding state is the length of time since the candidate transit number was last unbound. Taking the express delivery scenario as an example, for a certain transit number, if a real communication number with a binding relationship has not been dialed through the transit number for a certain period of time (such as one month), the transit number can be unbound from the real communication number. Afterwards, the candidate transit numbers can be sorted according to the duration of the unbinding state. Finally, based on the sorting results, the target transit number (such as the transit number with the longest duration of the unbinding state) is selected from the candidate transit numbers. As a result, transit numbers that have not been bound to real communication numbers for a long time can be used preferentially to avoid the calling user (such as a courier) from being transferred to the wrong user when calling the transit number.
[0054] As another example, the above-mentioned execution entity can also determine the target logistics company based on the logistics order information of the target user. Afterwards, for each candidate transit number, the user corresponding to the real communication number that the candidate transit number was last bound to is taken as the historical user, and the historical logistics company corresponding to the candidate transit number is determined based on the historical logistics order information of the historical user. Finally, according to the duration of the unbinding state, the candidate transit numbers whose historical logistics companies are different from the target logistics company are sorted, and the target transit number (such as the transit number with the longest duration of the unbinding state) is selected based on the sorting result. In this way, it can be ensured that the selected target transit number corresponds to a different logistics company when it was last bound and when it is bound this time, which can greatly avoid causing trouble to the calling user (such as a courier) and the target user.
[0055] Sub-step S13, binding the target transfer number with the real communication number of the target user. Here, binding is the process of establishing a corresponding relationship. The target transfer number and the real communication number of the target user can be bound in a key-value pairing form, which is not specifically limited here.
[0056] The method provided by the above-mentioned embodiment of the present application determines the target geographical area through the calling number and / or target transfer number carried in the number query request, and then selects the real communication number of the target user located in the target geographical area from the real communication number bound to the target transfer number, and returns the real communication number, so that when the same transfer number has a binding relationship with the real communication numbers of multiple users located in different geographical areas, the target user to be transferred can be accurately determined by determining the target geographical area. In this way, the same transfer number can be reused across geographical areas at the same time, which greatly reduces the number of transfer numbers that need to be rented and maintained, thereby reducing costs.
[0057] Continue to refer Figure 2 , shows a flow chart of an embodiment of the communication method of the present application. The flow of the communication method includes the following steps:
[0058] Step 201: receiving a directory inquiry request, wherein the directory inquiry request includes a calling number and a target transfer number.
[0059] In this embodiment, the execution subject of the communication method (such as Figure 1A The number management server shown in FIG. 1 may receive the number query request. The number query request may be sent by other servers (such as Figure 1A The basic communication server shown in FIG. 10A ) sends the communication request upon receiving the communication request. The above-mentioned directory inquiry request may include but is not limited to the calling number and the target transfer number.
[0060] Step 202: Determine a target geographic area based on the calling number and / or the target transit number.
[0061] In this embodiment, the execution entity may determine the target geographical area based on the calling number and / or the target transit number carried in the directory inquiry request.
[0062] In some optional implementations of this embodiment, the above-mentioned execution entity can determine the target geographical area based on the calling number. Specifically, a large number of calling numbers can be recorded in the above-mentioned execution entity, and the geographical areas corresponding to each calling number can be noted. If the target transit number is a mobile phone number, the above-mentioned execution entity can query the noted geographical area of the calling number, and determine the noted geographical area as the target geographical area. It should be noted that if the target transit number is a landline number, the target geographical area can also be determined in the same way, which is not limited here.
[0063] In some optional implementations of this embodiment, when the target transfer number is a landline number, the execution subject may determine the target geographical area based only on the target transfer number. Specifically, the landline number usually includes an area code. The execution subject may determine the target geographical area based on the area code in the target transfer number.
[0064] In some optional implementations of this embodiment, the execution subject may first query the real communication number bound to the target transit number, and determine the geographical area noted by each of the queried real communication numbers. If at least two real communication numbers are found to be bound to the target transit number, the noted geographical area of the calling number may be queried, and the noted geographical area of the calling number may be determined as the target geographical area.
[0065] Step 203, selecting the real communication number of the target user located in the target geographical area from the real communication numbers bound to the target transit number, and returning the selected real communication number.
[0066] In this embodiment, the same transit number can be bound to the real communication number of users located in different geographical areas (such as municipalities, prefecture-level cities, etc.), so the same transit number can be bound to one or more real communication numbers. Compared with the method in the prior art that each transit number is bound to a real communication number, the binding method in the embodiment of the present application can support the reuse of the same transit number across geographical areas, greatly reducing the number of transit numbers required to be rented and maintained, thereby reducing costs. In addition, in this embodiment, the same transit number can only be bound to the real communication number of one user in each geographical area, that is, the real communication numbers of two users in the same geographical area will not be bound to the same transit number. Thereby, normal communication with the user's real communication number is guaranteed. At the same time, there is no need for the calling user to enter the extension number, which avoids damage to the user's communication experience.
[0067] In some optional implementations of this embodiment, the target transfer number is bound to the original communication number of the target user in advance through the following steps: First, the target geographical area where the target user is located is queried. Then, the transfer numbers that are not bound to any user in the target geographical area are used as candidate transfer numbers, and the target transfer number is selected from the candidate transfer numbers. Finally, the target transfer number is bound to the real communication number of the target user.
[0068] In some optional implementations of this embodiment, the target geographical area where the target user is located can be queried through the following steps: first, the logistics order information of the target user is obtained; then, based on the delivery address in the logistics order information, the target geographical area where the target user is located is determined.
[0069] In some optional implementations of the present embodiment, the target geographical area where the target user is located can be queried through the following steps: First, obtain the duration of the unbinding state of each candidate transit number. The duration of the unbinding state is the length of time since the candidate transit number was last unbound. Afterwards, the candidate transit numbers can be sorted according to the duration of the unbinding state. Finally, based on the sorting result, the target transit number (such as the transit number with the longest duration of the unbinding state) is selected from the candidate transit numbers. Thus, transit numbers that have not been bound to real communication numbers for a long time can be used preferentially to avoid the calling user (such as a courier) from being transferred to the wrong user when calling the transit number.
[0070] In some optional implementations of the present embodiment, the target geographical area where the target user is located can be queried through the following steps: First, based on the logistics order information of the target user, the target logistics company is determined. Afterwards, for each candidate transit number, the user corresponding to the real communication number to which the candidate transit number was last bound is taken as a historical user, and based on the historical logistics order information of the historical user, the historical logistics company corresponding to the candidate transit number is determined. Finally, according to the duration of the unbinding state, the candidate transit numbers whose historical logistics companies are different from the target logistics company are sorted, so that the target transit number (such as the transit number with the longest duration of the unbinding state) is selected based on the sorting result. In this way, it can be ensured that the selected target transit number corresponds to a different logistics company when it was last bound and when it is bound this time, which can greatly avoid causing trouble to the calling user (such as a courier) and the target user.
[0071] Step 204, in response to the target geographical area not being determined, returning a logistics order number acquisition instruction to acquire a target logistics order number.
[0072] In this embodiment, taking the express delivery field as an example, if the target geographical area is not queried, the above-mentioned execution entity can return the logistics order number acquisition instruction to obtain the target logistics order number.
[0073] As an example, when the target transit number is a mobile phone number and the above-mentioned execution entity has not recorded the remarked geographical area of the calling number, the above-mentioned execution entity may return the logistics order number acquisition instruction to the basic communication server. After receiving the logistics order number acquisition instruction, the basic communication server may output a prompt voice message "Cannot find the city, please enter the last 4 digits of the express order number" to the calling device (i.e., the communication device used by the calling user, such as the mobile phone used by the courier) . After the courier enters the express order number according to the prompt voice message, the basic communication server can transmit the content entered by the courier to the above-mentioned execution entity.
[0074] Step 205, query the target logistics order corresponding to the target logistics order number.
[0075] In this embodiment, the execution subject can query the target logistics order corresponding to the target logistics order number. If the target logistics order is still not found based on the target logistics order number, the execution subject can send the logistics order number acquisition instruction to the basic communication server again, so that the logistics order number acquisition instruction re-outputs the prompt voice, such as "The order number cannot be found, please confirm that the last 4 digits of the express order number are entered correctly", or "The waybill number does not exist or the contactable time has exceeded, please confirm the number", etc. This process can be repeated for a preset number of times (such as 3 times) so that the number can still be queried when the calling user enters an error.
[0076] Step 206, obtaining the real communication number of the target user from the target logistics order, and returning the obtained real communication number.
[0077] In this embodiment, the above-mentioned execution entity can obtain the real communication number of the target user from the target logistics order, and return the obtained real communication number.
[0078] Furthermore, the above-mentioned execution entity can also determine the target geographical area where the target user (i.e., the called user, such as the recipient) is located based on the delivery address in the target logistics order, and use the target geographical area as the remark geographical area of the calling number, and annotate the calling number to achieve real-time updating of the number pool.
[0079] The method provided by the above-mentioned embodiments of the present application can determine the target user and his / her real communication number through the logistics order number when the target geographical area is not determined based on the calling number and / or the target transit number. This can reduce the cost required for renting and maintaining the transit number while improving the success rate of obtaining the real communication number.
[0080] It should be noted that, for the method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present application are not limited by the described order of actions, because according to the embodiments of the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present application.
[0081] Further references Figure 3 Based on the above embodiments, the present application provides an embodiment of a cloud device.
[0082] like Figure 3As shown, the cloud device 300 of this embodiment includes: a receiving unit 301, configured to receive a directory inquiry request, wherein the directory inquiry request includes a calling number and a target transit number; a determining unit 302, configured to determine a target geographical area based on the calling number and / or the target transit number; a selecting unit 303, configured to select a real communication number of a target user located in the target geographical area from the real communication numbers bound to the target transit number, and return the selected real communication number.
[0083] In some optional implementations of the present embodiment, the target transit number is bound to the original communication number of the target user through the following steps: querying the target geographical area where the target user is located; taking the transit numbers that are not bound to any user in the target geographical area as candidate transit numbers, and selecting the target transit number from the candidate transit numbers; binding the target transit number to the real communication number of the target user.
[0084] In some optional implementations of this embodiment, the querying of the target geographical area where the target user is located includes: obtaining the logistics order information of the target user; and determining the target geographical area where the target user is located based on the delivery address in the logistics order information.
[0085] In some optional implementations of the present embodiment, the selecting the target transit number from the candidate transit numbers includes: obtaining the duration of the unbinding state of each candidate transit number; sorting the candidate transit numbers according to the duration of the unbinding state; and selecting the target transit number from the candidate transit numbers based on the sorting result.
[0086] In some optional implementations of the present embodiment, selecting the target transit number from the candidate transit numbers includes: determining the target logistics company based on the logistics order information; for each candidate transit number, taking the user corresponding to the real communication number to which the candidate transit number was last bound as a historical user, and determining the historical logistics company corresponding to the candidate transit number based on the historical logistics order information of the historical user; sorting the candidate transit numbers of the historical logistics companies that are different from the target logistics company according to the duration of the unbinding state, and selecting the target transit number based on the sorting result.
[0087] In some optional implementations of this embodiment, the determination unit 302 is further configured to: in response to the target transit number being a mobile phone number, query the remarked geographical area of the calling number, and determine the remarked geographical area as the target geographical area; in response to the target transit number being a landline number, determine the target geographical area based on the area code of the target transit number.
[0088] In some optional implementations of this embodiment, the device also includes: an acquisition unit, configured to return a logistics order number acquisition instruction in response to the target geographical area not being determined, so as to obtain a target logistics order number; a query unit, configured to query a target logistics order corresponding to the target logistics order number; a return unit, configured to obtain a real communication number of the target user from the target logistics order, and return the obtained real communication number.
[0089] The device provided by the above-mentioned embodiment of the present application determines the target geographical area through the calling number and / or target transfer number carried in the number query request, and then selects the real communication number of the target user located in the target geographical area from the real communication number bound to the target transfer number, and returns the real communication number, so that when the same transfer number has a binding relationship with the real communication numbers of multiple users located in different geographical areas, the target user to be transferred can be accurately determined by determining the target geographical area. In this way, the same transfer number can be reused across geographical areas, which greatly reduces the number of transfer numbers that need to be rented and maintained, thereby reducing costs.
[0090] Further references Figure 4 Based on the above embodiments, the present application provides an embodiment of a terminal device, which can be applied to various electronic devices with telephone communication functions. The above electronic devices can include but are not limited to mobile phones, landlines, wearable devices, etc.
[0091] like Figure 4 As shown, the terminal device 400 of this embodiment includes: a sending unit 401, configured to send a directory inquiry request, wherein the directory inquiry request includes a calling number and a target transit number; a receiving unit 402, configured to receive a real communication number of a target user who is bound to the target transit number and located in a target geographical area, wherein the target geographical area is determined based on the calling number and / or the target transit number.
[0092] In this embodiment, the directory inquiry request can be sent to the cloud device. After receiving the directory inquiry request, the cloud device can first determine the target geographical area based on the calling number and / or the target transit number, and then select the real communication number of the target user located in the target geographical area from the real communication numbers bound to the target transit number, and then return the selected real communication number to the terminal device.
[0093] The method provided by the above-mentioned embodiment of the present application, by sending a number query request carrying the caller number and the target transit number, can obtain the real communication number of the target user who is bound to the target transit number and is located in the target geographical area when the same transit number is bound to the real communication numbers of multiple users located in different geographical areas. This supports the reuse of the same transit number across geographical areas, greatly reduces the number of transit numbers that need to be rented and maintained, and thus reduces costs.
[0094] The embodiment of the present application also provides a non-volatile readable storage medium, which stores one or more modules (programs). When the one or more modules are applied to a device, the device can execute instructions (instructions) of each method step in the embodiment of the present application.
[0095] The present application embodiment provides one or more machine-readable media on which instructions are stored, and when executed by one or more processors, an electronic device executes one or more of the methods described in the above embodiments. In the present application embodiment, the electronic device includes various types of devices such as terminal devices and servers (clusters).
[0096] The embodiments of the present application may be implemented as a device that uses any appropriate hardware, firmware, software, or any combination thereof to perform the desired configuration, and the device may include electronic devices such as terminal devices and servers (clusters). Figure 5 An exemplary apparatus 500 that can be used to implement various embodiments described in this application is schematically shown.
[0097] For one embodiment, Figure 5 An exemplary apparatus 500 is shown having one or more processors 502, a control module (chip set) 504 coupled to at least one of the processor(s) 502, a memory 506 coupled to the control module 504, a non-volatile memory (NVM) / storage device 508 coupled to the control module 504, one or more input / output devices 510 coupled to the control module 504, and a network interface 512 coupled to the control module 504.
[0098] The processor 502 may include one or more single-core or multi-core processors, and the processor 502 may include any combination of general-purpose processors or special-purpose processors (such as graphics processors, application processors, baseband processors, etc.). In some embodiments, the device 500 can be used as a terminal device, server (cluster), etc. described in the embodiments of the present application.
[0099] In some embodiments, the apparatus 500 may include one or more computer-readable media (e.g., memory 506 or NVM / storage device 508) having instructions 514 and one or more processors 502 configured in conjunction with the one or more computer-readable media to execute the instructions 514 to implement a module to perform the actions described in the present disclosure.
[0100] For one embodiment, control module 504 may include any suitable interface controller to provide any suitable interface to at least one of processor(s) 502 and / or any suitable device or component in communication with control module 504 .
[0101] The control module 504 may include a memory controller module to provide an interface to the memory 506. The memory controller module may be a hardware module, a software module, and / or a firmware module.
[0102] The memory 506 may be used, for example, to load and store data and / or instructions 514 for the device 500. For one embodiment, the memory 506 may include any suitable volatile memory, such as a suitable DRAM. In some embodiments, the memory 506 may include double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).
[0103] For one embodiment, control module 504 may include one or more input / output controllers to provide an interface to NVM / storage device 508 and input / output device(s) 510 .
[0104] For example, NVM / storage 508 may be used to store data and / or instructions 514. NVM / storage 508 may include any suitable non-volatile memory (e.g., flash memory) and / or may include any suitable non-volatile storage device(s) (e.g., one or more hard disk drives (HDDs), one or more compact disk (CD) drives, and / or one or more digital versatile disk (DVD) drives).
[0105] NVM / storage device 508 may include storage resources that are physically part of the device on which apparatus 500 is installed, or it may be accessible to the device without being part of the device. For example, NVM / storage device 508 may be accessed via input / output device(s) 510 over a network.
[0106] (One or more) input / output devices 510 may provide an interface for the apparatus 500 to communicate with any other appropriate device, and the input / output device 510 may include a communication component, an audio component, a sensor component, etc. The network interface 512 may provide an interface for the apparatus 500 to communicate through one or more networks, and the apparatus 500 may wirelessly communicate with one or more components of a wireless network according to any of one or more wireless network standards and / or protocols, for example, accessing a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, etc., or a combination thereof for wireless communication.
[0107] For one embodiment, at least one of the processor(s) 502 may be packaged together with the logic of one or more controllers (e.g., a memory controller module) of the control module 504. For one embodiment, at least one of the processor(s) 502 may be packaged together with the logic of one or more controllers of the control module 504 to form a system-in-package (SiP). For one embodiment, at least one of the processor(s) 502 may be integrated on the same die with the logic of one or more controllers of the control module 504. For one embodiment, at least one of the processor(s) 502 may be integrated on the same die with the logic of one or more controllers of the control module 504 to form a system-on-chip (SoC).
[0108] In various embodiments, the apparatus 500 may be, but is not limited to, a terminal device such as a server, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.). In various embodiments, the apparatus 500 may have more or fewer components and / or a different architecture. For example, in some embodiments, the apparatus 500 includes one or more cameras, a keyboard, a liquid crystal display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an application-specific integrated circuit (ASIC), and a speaker.
[0109] Among them, the main control chip can be used as a processor or control module in the device, sensor data, location information, etc. are stored in a memory or NVM / storage device, the sensor group can be used as an input / output device, and the communication interface may include a network interface.
[0110] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0111] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0112] The present application embodiment is described with reference to the flowchart and / or block diagram of the method, terminal device (system) and computer program product according to the embodiment of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, and the combination of the process and / or box in the flowchart and / or block diagram can be realized by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing terminal device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device produce a device for realizing the function specified in one process or multiple processes in the flowchart and / or one box or multiple boxes in the block diagram.
[0113] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0114] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce computer-implemented processing, so that the instructions executed on the computer or other programmable terminal device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0115] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0116] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0117] The communication method, cloud device, terminal device, electronic device and storage medium provided by the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A communication method, characterized in that: The method comprises: Receiving a directory inquiry request, wherein the directory inquiry request includes a calling number and a target transfer number; Determining a target geographic area based on the calling number and / or the target transit number; Selecting a real communication number of a target user located in the target geographical area from the real communication numbers bound to the target transit number, and returning the selected real communication number; The target transfer number is bound to the original communication number of the target user through the following steps: Query the target geographical area where the target user is located; taking a transit number that is not bound to any user in the target geographical area as a candidate transit number, and selecting the target transit number from the candidate transit numbers; Binding the target transfer number with the real communication number of the target user; The step of querying the target geographical area where the target user is located includes: Obtaining the logistics order information of the target user; Determine the target geographical area where the target user is located based on the delivery address in the logistics order information; The step of selecting the target transfer number from the candidate transfer numbers includes: Determine a target logistics company based on the logistics order information; For each candidate transit number, the user corresponding to the real communication number that the candidate transit number was last bound to is taken as a historical user, and based on the historical logistics order information of the historical user, the historical logistics company corresponding to the candidate transit number is determined; According to the duration of the unbinding state, the candidate transit numbers of the historical logistics companies that are different from the target logistics company are sorted, and the target transit number is selected based on the sorting result.
2. The method according to claim 1, characterized in that: The step of selecting the target transfer number from the candidate transfer numbers includes: Get the duration of the unbinding state of each candidate transfer number; Sort the candidate transfer numbers according to the duration of the unbinding state; Based on the sorting result, the target transfer number is selected from the candidate transfer numbers.
3. The method according to claim 1, characterized in that The determining of the target geographical area based on the calling number and / or the target transit number includes: If the target transfer number is a mobile phone number, query the remarked geographical area of the calling number, and determine the remarked geographical area as the target geographical area; If the target transit number is a landline number, the target geographic area is determined based on the area code of the target transit number.
4. The method according to claim 1, characterized in that: The method further comprises: In response to failure to determine the target geographical area, returning a logistics order number acquisition instruction to acquire a target logistics order number; Query the target logistics order corresponding to the target logistics order number; The real communication number of the target user is obtained from the target logistics order, and the obtained real communication number is returned.
5. A cloud device, characterized in that: The device comprises: A receiving unit, configured to receive a directory inquiry request, wherein the directory inquiry request includes a calling number and a target transfer number; a determination unit configured to determine a target geographical area based on the calling number and / or the target transit number; A selection unit is configured to select a real communication number of a target user located in the target geographical area from the real communication numbers bound to the target transit number, and return the selected real communication number; The target transfer number is bound to the original communication number of the target user through the following steps: Query the target geographical area where the target user is located; taking a transit number that is not bound to any user in the target geographical area as a candidate transit number, and selecting the target transit number from the candidate transit numbers; Binding the target transfer number with the real communication number of the target user; The step of selecting the target transfer number from the candidate transfer numbers includes: Obtaining the logistics order information of the target user; Determine a target logistics company based on the logistics order information; For each candidate transit number, the user corresponding to the real communication number that the candidate transit number was last bound to is taken as a historical user, and based on the historical logistics order information of the historical user, the historical logistics company corresponding to the candidate transit number is determined; According to the duration of the unbinding state, the candidate transit numbers of the historical logistics companies that are different from the target logistics company are sorted, and the target transit number is selected based on the sorting result.
6. A terminal device, characterized in that: The device comprises: A sending unit, configured to send a directory inquiry request, wherein the directory inquiry request includes a calling number and a target transfer number; A receiving unit, configured to receive a real communication number of a target user bound to the target transit number and located in a target geographical area, wherein the target geographical area is determined based on the calling number and / or the target transit number; The target transfer number is bound to the original communication number of the target user through the following steps: Query the target geographical area where the target user is located; taking a transit number that is not bound to any user in the target geographical area as a candidate transit number, and selecting the target transit number from the candidate transit numbers; Binding the target transfer number with the real communication number of the target user; The step of selecting the target transfer number from the candidate transfer numbers includes: Obtaining the logistics order information of the target user; Determine a target logistics company based on the logistics order information; For each candidate transit number, the user corresponding to the real communication number that the candidate transit number was last bound to is taken as a historical user, and based on the historical logistics order information of the historical user, the historical logistics company corresponding to the candidate transit number is determined; According to the duration of the unbinding state, the candidate transit numbers of the historical logistics companies that are different from the target logistics company are sorted, and the target transit number is selected based on the sorting result.
7. An electronic device, characterized in that: include: processor; as well as A memory having executable codes stored thereon, which, when executed, cause the processor to perform the method according to one or more of claims 1-4.
8. One or more machine-readable media having executable codes stored thereon, which, when executed, cause a processor to perform the method according to one or more of claims 1-4.
Citation Information
Patent Citations
Method and apparatus for distributing communication information, apparatus and medium
CN109426935A
Mobile phone number virtual outbound method, device and equipment and storage medium
CN110233942A
Communication method, communication device and storage medium
CN111953851A
