CN111836249B - Method and equipment for determining attribution of telephone number for electronic terminal - Google Patents

Method and equipment for determining attribution of telephone number for electronic terminal Download PDF

Info

Publication number
CN111836249B
CN111836249B CN202010608229.9A CN202010608229A CN111836249B CN 111836249 B CN111836249 B CN 111836249B CN 202010608229 A CN202010608229 A CN 202010608229A CN 111836249 B CN111836249 B CN 111836249B
Authority
CN
China
Prior art keywords
telephone number
electronic terminal
country
determining
determined
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010608229.9A
Other languages
Chinese (zh)
Other versions
CN111836249A (en
Inventor
曾庆辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Samsung Guangzhou Mobile R&D Center
Samsung Electronics Co Ltd
Original Assignee
Samsung Guangzhou Mobile R&D Center
Samsung Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Samsung Guangzhou Mobile R&D Center, Samsung Electronics Co Ltd filed Critical Samsung Guangzhou Mobile R&D Center
Priority to CN202010608229.9A priority Critical patent/CN111836249B/en
Publication of CN111836249A publication Critical patent/CN111836249A/en
Application granted granted Critical
Publication of CN111836249B publication Critical patent/CN111836249B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/02Processing of mobility data, e.g. registration information at HLR [Home Location Register] or VLR [Visitor Location Register]; Transfer of mobility data, e.g. between HLR, VLR or external networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/26Network addressing or numbering for mobility support

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A method and apparatus for determining a home location of a phone number for an electronic terminal are provided. The method comprises the following steps: when the attribution of the first telephone number needs to be determined, determining whether the first telephone number comprises an international area code; when the first telephone number does not include the international area code, the attribution of the first telephone number is determined based on the characteristic information of the first telephone number and/or the characteristic information of the electronic terminal. According to the method and the device, the attribution of the telephone number can be accurately determined under the condition that the telephone number does not comprise the international area code, so that the user experience is improved.

Description

Method and equipment for determining attribution of telephone number for electronic terminal
Technical Field
The present invention relates generally to the field of electronic terminals, and more particularly, to a method and apparatus for determining the home location of a telephone number for an electronic terminal.
Background
Typically, a complete telephone number consists of the following parts: the international area code + number, if a fixed telephone number, further includes a city area code.
The telephone number of any country needs to query the attribution (for example, the city to which the telephone number belongs) by using the number query database of the country to obtain an accurate query result, if the telephone number of other countries is queried by using the number query database of other countries, an incorrect query result, for example, the telephone number of the country A, if the telephone number of the country B is queried by using the number query database of the country, the obtained query result may be city information of the country B.
If a telephone number includes an international area code, the home country of the telephone number can be distinguished by the international area code and then the number query database of the home country is used to query the home location of the telephone number, but if the telephone number does not include the international area code, the number query database of the issuing country of the current electronic terminal is used by default for the home location query, and this tends to be prone to erroneous query results.
Disclosure of Invention
Exemplary embodiments of the present invention are directed to providing a method and apparatus for determining a home location of a phone number for an electronic terminal, which are capable of accurately determining a home location of a phone number in case that the phone number does not include an international area code.
According to an exemplary embodiment of the present invention, there is provided a method for determining a home location of a phone number of an electronic terminal, wherein the method includes: when the attribution of the first telephone number needs to be determined, determining whether the first telephone number comprises an international area code; when the first telephone number does not include the international area code, the attribution of the first telephone number is determined based on the characteristic information of the first telephone number and/or the characteristic information of the electronic terminal.
Optionally, the step of determining the attribution of the first phone number based on the characteristic information of the first phone number and/or the characteristic information of the electronic terminal comprises: and determining the country to which the first telephone number belongs based on the characteristic information of the first telephone number and/or the characteristic information of the electronic terminal, and inquiring the attribution of the first telephone number based on the determined country.
Optionally, the feature information of the electronic terminal includes: and the position characteristic information of the electronic terminal. Optionally, the characteristic information of the first phone number includes at least one of: the number of digits of the first telephone number, the number at a particular location of the first telephone number.
Optionally, the method further comprises: outputting the determined attribution of the first telephone number.
Optionally, the method further comprises: whether the attribution of the first telephone number needs to be determined is determined, wherein the attribution of the first telephone number needs to be determined when a call request initiated using the first telephone number or a user operation for displaying a call record regarding the first telephone number is received.
Optionally, the step of querying the home location of the first telephone number based on the determined country comprises: the home location of the first telephone number is queried using a number query database corresponding to the determined country.
Optionally, the location characteristic information of the electronic terminal includes at least one of the following: the issuing country of the electronic terminal, the country in which the electronic terminal is currently located, and whether the electronic terminal is in an international roaming state.
Optionally, the method further comprises: when there is no number query database corresponding to the determined country, no query is made for the home location of the first telephone number and/or the home location of the first telephone number is not output.
Optionally, the country of release of the electronic terminal is determined by: and determining the issuing country of the electronic terminal based on the model information of the electronic terminal.
Optionally, when the attribution of the first phone number needs to be determined due to receiving a call request initiated using the first phone number, the step of determining the country to which the first phone number belongs based on the feature information of the first phone number and/or the feature information of the electronic terminal includes:
when the electronic terminal is in a non-international roaming state and is not in the issuing country of the electronic terminal, determining the country in which the electronic terminal is currently located as the country to which the first telephone number belongs;
and/or determining the issuing country of the electronic terminal as the country to which the first telephone number belongs when one of the following conditions is satisfied: the characteristic information of the first telephone number meets the specific requirements of the issuing country of the electronic terminal on the telephone number; the electronic terminal is in a non-international roaming state and in the issuing country of the electronic terminal;
and/or determining whether the characteristic information of the first telephone number meets the specific requirement of the issuing country of the electronic terminal on the telephone number, wherein when the specific requirement is determined to be met, the issuing country of the electronic terminal is determined to be the country to which the first telephone number belongs; and when the specific requirement is not met, determining whether the electronic terminal is in an international roaming state, and when the electronic terminal is in a non-international roaming state, determining the country in which the electronic terminal is currently located as the country to which the first telephone number belongs.
Optionally, when it is necessary to determine the attribution of the first phone number due to receiving a user operation for displaying a call record regarding the first phone number, the step of determining the country to which the first phone number belongs based on the characteristic information of the first phone number and/or the characteristic information of the electronic terminal includes:
when the electronic terminal generates the call record and is in a non-international roaming state and is not in the issuing country of the electronic terminal, determining the country in which the electronic terminal generates the call record as the country to which the first telephone number belongs;
and/or determining the issuing country of the electronic terminal as the country to which the first telephone number belongs when one of the following conditions is satisfied: the characteristic information of the first telephone number meets the specific requirements of the issuing country of the electronic terminal on the telephone number; the electronic terminal is currently in an international roaming state; the electronic terminal is in a non-international roaming state and in the issuing country of the electronic terminal when the call record is generated;
and/or determining whether the characteristic information of the first telephone number meets the specific requirement of the issuing country of the electronic terminal on the telephone number, wherein when the specific requirement is determined to be met, the issuing country of the electronic terminal is determined to be the country to which the first telephone number belongs; when the specific requirement is not met, determining whether the electronic terminal generates the call record in an international roaming state or not, and determining the country in which the electronic terminal generates the call record as the country to which the first telephone number belongs when the electronic terminal generates the call record in a non-international roaming state.
Optionally, the specific requirement includes at least one of: the number of digits of the telephone number is a specific number of digits, and the digits at a specific location of the telephone number are within a corresponding specific range.
According to another exemplary embodiment of the present invention, there is provided an apparatus for determining a home location of a phone number of an electronic terminal, wherein the apparatus includes: an international area code determining unit that determines whether the first telephone number includes an international area code when it is necessary to determine a home location of the first telephone number; and a home location determining unit that determines a home location of the first telephone number based on the characteristic information of the first telephone number and/or the characteristic information of the electronic terminal when the first telephone number does not include the international area code.
Optionally, the attribution determining unit determines a country to which the first phone number belongs based on the feature information of the first phone number and/or the feature information of the electronic terminal, and queries the attribution of the first phone number based on the determined country.
Optionally, the feature information of the electronic terminal includes: and the position characteristic information of the electronic terminal.
Optionally, the characteristic information of the first phone number includes at least one of: the number of digits of the first telephone number, the number at a particular location of the first telephone number.
Optionally, the apparatus further comprises: and an output unit outputting the determined attribution of the first telephone number.
Optionally, the apparatus further comprises: and a judging unit judging whether or not the attribution of the first telephone number needs to be determined, wherein when a call request initiated using the first telephone number or a user operation for displaying a call record concerning the first telephone number is received, it is judged that the attribution of the first telephone number needs to be determined.
Alternatively, the home location determination unit queries the home location of the first telephone number using a number query database corresponding to the determined country.
Optionally, the location characteristic information of the electronic terminal includes at least one of the following: the issuing country of the electronic terminal, the country in which the electronic terminal is currently located, and whether the electronic terminal is in an international roaming state.
Alternatively, when there is no number query database corresponding to the determined country, the home location determination unit does not query the home location of the first telephone number and/or the output unit does not output the home location of the first telephone number.
Optionally, the country of release of the electronic terminal is determined by: and determining the issuing country of the electronic terminal based on the model information of the electronic terminal.
Optionally, when it is desired to determine the home location of the first telephone number due to receipt of a call request initiated using the first telephone number,
the attribution determining unit determines a country in which the electronic terminal is currently located as a country to which the first telephone number belongs when the electronic terminal is in a non-international roaming state and is not in a country of issuance of the electronic terminal;
and/or, when one of the following conditions is satisfied, the attribution determining unit determines the issuing country of the electronic terminal as the country to which the first telephone number belongs: the characteristic information of the first telephone number meets the specific requirements of the issuing country of the electronic terminal on the telephone number; the electronic terminal is in a non-international roaming state and in the issuing country of the electronic terminal;
and/or the attribution determining unit determines whether the characteristic information of the first telephone number meets a specific requirement of the issuing country of the electronic terminal on the telephone number, wherein when the specific requirement is determined to be met, the issuing country of the electronic terminal is determined to be the country to which the first telephone number belongs; and when the specific requirement is not met, determining whether the electronic terminal is in an international roaming state, and when the electronic terminal is in a non-international roaming state, determining the country in which the electronic terminal is currently located as the country to which the first telephone number belongs.
Alternatively, when it is necessary to determine the home location of the first telephone number due to the reception of a user operation for displaying a call record concerning the first telephone number,
the attribution determining unit determines a country in which the electronic terminal generates the call record as a country to which the first telephone number belongs when the electronic terminal is in a non-international roaming state when the electronic terminal generates the call record and is not in a country in which the electronic terminal is issued;
and/or, when one of the following conditions is satisfied, the attribution determining unit determines the issuing country of the electronic terminal as the country to which the first telephone number belongs: the characteristic information of the first telephone number meets the specific requirements of the issuing country of the electronic terminal on the telephone number; the electronic terminal is currently in an international roaming state; the electronic terminal is in a non-international roaming state and in the issuing country of the electronic terminal when the call record is generated;
and/or the attribution determining unit determines whether the characteristic information of the first telephone number meets a specific requirement of the issuing country of the electronic terminal on the telephone number, wherein when the specific requirement is determined to be met, the issuing country of the electronic terminal is determined to be the country to which the first telephone number belongs; when the specific requirement is not met, determining whether the electronic terminal generates the call record in an international roaming state or not, and determining the country in which the electronic terminal generates the call record as the country to which the first telephone number belongs when the electronic terminal generates the call record in a non-international roaming state.
Optionally, the specific requirement includes at least one of: the number of digits of the telephone number is a specific number of digits, and the digits at a specific location of the telephone number are within a corresponding specific range.
According to another exemplary embodiment of the present invention, a computer readable storage medium storing a computer program is provided, wherein the computer program, when executed by a processor, implements a method for determining a home location of a telephone number for an electronic terminal as described above.
According to another exemplary embodiment of the present invention, there is provided an electronic terminal, wherein the electronic terminal includes: a processor; a memory storing a computer program which, when executed by a processor, implements a method for determining the home location of a telephone number for an electronic terminal as described in the claims.
In the method and the device for determining the attribution of the telephone number of the electronic terminal according to the exemplary embodiment of the invention, when the telephone number does not comprise the international area code, the attribution of the telephone number is determined according to the characteristic information of the telephone number and/or the characteristic information of the current electronic terminal, so that the attribution of the telephone number can be accurately determined under the condition that the telephone number does not comprise the international area code, and the user experience is improved.
Additional aspects and/or advantages of the present general inventive concept will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the general inventive concept.
Drawings
The foregoing and other objects and features of exemplary embodiments of the invention will become more apparent from the following description taken in conjunction with the accompanying drawings which illustrate exemplary embodiments in which:
fig. 1 illustrates a flowchart of a method for determining a home location of a phone number of an electronic terminal according to an exemplary embodiment of the present invention;
fig. 2 shows a block diagram of an apparatus for determining a home location of a phone number of an electronic terminal according to an exemplary embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the like elements throughout. The embodiments will be described below in order to explain the present invention by referring to the figures.
Fig. 1 illustrates a flowchart of a method for determining a home location of a phone number of an electronic terminal according to an exemplary embodiment of the present invention. The method may be implemented by a computer program. For example, the method may be performed by a dialing application installed in the electronic terminal, or by a functional program implemented in an operating system of the electronic terminal. As an example, the electronic terminal may be a mobile communication terminal (e.g., a smart phone), a smart wearable device (e.g., a smart watch), or the like, capable of receiving a call request.
Referring to fig. 1, in step S10, when it is required to determine the home location of the first telephone number, it is determined whether the first telephone number includes an international area code.
When the first phone number does not include the international area code, a home location of the first phone number is determined based on the characteristic information of the first phone number and/or the characteristic information of the electronic terminal at step S20.
As an example, the characteristic information of the electronic terminal may include: and the position characteristic information of the electronic terminal.
As an example, the location characteristic information of the electronic terminal may include at least one of: the country in which the electronic terminal is issued (i.e., the country in which the electronic terminal is issued), the country in which the electronic terminal is currently located, and whether the electronic terminal is in an international roaming state.
As an example, the country of release of the electronic terminal may be determined by: and determining the issuing country of the electronic terminal based on the model information of the electronic terminal. It will be appreciated that the country of release of the electronic terminal may also be determined in other suitable ways.
As an example, the country in which the electronic terminal is currently located may be determined in various suitable manners, for example, by an LBS base station positioning manner and/or a GPS positioning manner.
As an example, whether the electronic terminal is in an international roaming state may be determined in various suitable manners, for example, whether the electronic terminal is in an international roaming state may be determined based on whether the country to which the SIM card of the electronic terminal belongs is consistent with the country in which the electronic terminal is currently located; alternatively, it may be determined whether the electronic terminal is in an international roaming state based on notification information about international roaming received by the electronic terminal.
As an example, the feature information of the first phone number may include at least one of: the number of digits of the first telephone number, the number at a particular location of the first telephone number.
As an example, a country to which the first phone number belongs (i.e., a country to which the first phone number belongs) may be determined based on the feature information of the first phone number and/or the feature information of the electronic terminal, and the home location of the first phone number may be queried based on the determined country. Further, as an example, the home location of the first telephone number may be queried using a number query database corresponding to the determined country.
As an example, the method for determining a home location of a phone number of an electronic terminal according to an exemplary embodiment of the present invention may further include: whether the attribution of the first telephone number needs to be determined is determined, wherein the attribution of the first telephone number needs to be determined when a call request initiated using the first telephone number or a user operation for displaying a call record regarding the first telephone number is received.
As an example, the method for determining a home location of a phone number of an electronic terminal according to an exemplary embodiment of the present invention may further include: outputting the determined attribution of the first telephone number.
As an example, the method for determining a home location of a phone number of an electronic terminal according to an exemplary embodiment of the present invention may further include: when there is no number query database corresponding to the determined country, no query is made for the home location of the first telephone number and/or the home location of the first telephone number is not output.
In one embodiment, when it is necessary to determine the home location of the first phone number due to receiving a call request initiated using the first phone number, the step of determining the country to which the first phone number belongs based on the feature information of the first phone number and/or the feature information of the electronic terminal may include at least one of steps S101, S102, S103:
in step S101, when the electronic terminal is in a non-international roaming state and is not in a country of release of the electronic terminal, a country in which the electronic terminal is currently located is determined as a country to which the first telephone number belongs.
In the prior art, when a mobile phone issued in china uses a korean local SIM card in a foreign country (e.g., korea), when a call request initiated by a korean local phone number is received, since the SIM card local incoming call number does not have an international area code, the home location of the korean phone number is queried using a mobile phone-issued chinese number query database, resulting in an erroneous query result, for example, query of the home location of korean phone number 010 using a chinese number query database, and the query result is beijing. According to the embodiment of the invention, the problem that the attribution of the local incoming call number cannot be accurately identified in the non-electronic terminal issuing country by using the local SIM card in the prior art can be solved.
In step S102, the country of release of the electronic terminal is determined as the country to which the first telephone number belongs when one of the following conditions is satisfied: the characteristic information of the first telephone number meets the specific requirements of the issuing country of the electronic terminal on the telephone number; the electronic terminal is in a non-international roaming state and in a country of release of the electronic terminal.
As an example, the specific requirements may include at least one of the following: the number of digits of the telephone number is a specific number of digits, and the digits at a specific location of the telephone number are within a corresponding specific range. For example, the specific requirements of china on mobile phone numbers may be: the number of digits is 11, and the range of the first two digits is 13-19.
In step S103, determining whether the feature information of the first telephone number meets a specific requirement of the issuing country of the electronic terminal on the telephone number, wherein when the specific requirement is determined to be met, the issuing country of the electronic terminal is determined to be the country to which the first telephone number belongs; and when the specific requirement is not met, determining whether the electronic terminal is in an international roaming state, and when the electronic terminal is in a non-international roaming state, determining the country in which the electronic terminal is currently located as the country to which the first telephone number belongs.
In another embodiment, when it is necessary to determine the home location of the first phone number due to receiving a user operation for displaying a call record regarding the first phone number, the step of determining the country to which the first phone number belongs based on the feature information of the first phone number and/or the feature information of the electronic terminal may include at least one of steps S201, S202, S203:
in step S201, when the electronic terminal is in a non-international roaming state when the call record is generated and is not in the issuing country of the electronic terminal, the country in which the electronic terminal is generating the call record is determined as the country to which the first phone number belongs.
In step S202, the country of release of the electronic terminal is determined as the country to which the first telephone number belongs when one of the following conditions is satisfied: the characteristic information of the first telephone number meets the specific requirements of the issuing country of the electronic terminal on the telephone number; the electronic terminal is currently in an international roaming state; the electronic terminal is in a non-international roaming state and in the issuing country of the electronic terminal when the call record is generated.
In step S203, it is determined whether the characteristic information of the first telephone number meets a specific requirement of the issuing country of the electronic terminal for the telephone number, wherein when it is determined that the specific requirement is met, the issuing country of the electronic terminal is determined as the country to which the first telephone number belongs; when the specific requirement is not met, determining whether the electronic terminal generates the call record in an international roaming state or not, and determining the country in which the electronic terminal generates the call record as the country to which the first telephone number belongs when the electronic terminal generates the call record in a non-international roaming state.
According to the embodiment of the invention, the probability of error display of the call records before the call records are in other countries can be effectively reduced. For example, the following problems can be avoided: when the call records of the Chinese telephone numbers generated by the mobile phone in China are displayed after foreign countries, if the call records are queried by using a number query database of the country where the mobile phone is currently located, an error query result can be obtained.
Fig. 2 shows a block diagram of an apparatus for determining a home location of a phone number of an electronic terminal according to an exemplary embodiment of the present invention.
As shown in fig. 2, an apparatus for determining a home location of a phone number of an electronic terminal according to an exemplary embodiment of the present invention includes: an international area code determining unit 10 and a home location determining unit 20.
Specifically, the international area code determining unit 10 is configured to determine whether the first telephone number includes an international area code when it is necessary to determine the home location of the first telephone number.
The home location determining unit 20 is configured to determine a home location of the first phone number based on the characteristic information of the first phone number and/or the characteristic information of the electronic terminal when the first phone number does not include the international area code.
As an example, the characteristic information of the electronic terminal may include: and the position characteristic information of the electronic terminal.
As an example, the location characteristic information of the electronic terminal may include at least one of: the country in which the electronic terminal is issued (i.e., the country in which the electronic terminal is issued), the country in which the electronic terminal is currently located, and whether the electronic terminal is in an international roaming state.
As an example, the country of release of the electronic terminal may be determined by: and determining the issuing country of the electronic terminal based on the model information of the electronic terminal. It will be appreciated that the country of release of the electronic terminal may also be determined in other suitable ways.
As an example, the country in which the electronic terminal is currently located may be determined in various suitable manners, for example, by an LBS base station positioning manner and/or a GPS positioning manner.
As an example, whether the electronic terminal is in an international roaming state may be determined in various suitable manners, for example, whether the electronic terminal is in an international roaming state may be determined based on whether the country to which the SIM card of the electronic terminal belongs is consistent with the country in which the electronic terminal is currently located; alternatively, it may be determined whether the electronic terminal is in an international roaming state based on notification information about international roaming received by the electronic terminal.
As an example, the feature information of the first phone number may include at least one of: the number of digits of the first telephone number, the number at a particular location of the first telephone number.
As an example, the home location determining unit 20 may determine a country to which the first phone number belongs (i.e., the country to which the first phone number belongs) based on the characteristic information of the first phone number and/or the characteristic information of the electronic terminal, and inquire about the home location of the first phone number based on the determined country. Further, as an example, the home location determination unit 20 may query the home location of the first phone number using a number query database corresponding to the determined country.
As an example, the apparatus for determining a home location of a phone number of an electronic terminal according to an exemplary embodiment of the present invention may further include: a judging unit (not shown) for judging whether or not the home location of the first telephone number needs to be determined, wherein when a call request initiated using the first telephone number or a user operation for displaying a call record concerning the first telephone number is received, it is judged that the home location of the first telephone number needs to be determined.
As an example, the apparatus for determining a home location of a phone number of an electronic terminal according to an exemplary embodiment of the present invention may further include: and an output unit (not shown) for outputting the determined home location of the first telephone number.
As an example, when there is no number query database corresponding to the determined country, the home location determination unit 20 does not query the home location of the first telephone number and/or the output unit does not output the home location of the first telephone number.
In one embodiment, when it is necessary to determine the home of the first telephone number due to receiving a call request initiated using the first telephone number, the home determination unit 20 may perform at least one of the following operations:
the home location determination unit 20 determines a country in which the electronic terminal is currently located as a country to which the first telephone number belongs when the electronic terminal is in a non-international roaming state and is not in a country of release of the electronic terminal;
the home location determination unit 20 determines the country of release of the electronic terminal as the country to which the first telephone number belongs when one of the following conditions is satisfied: the characteristic information of the first telephone number meets the specific requirements of the issuing country of the electronic terminal on the telephone number; the electronic terminal is in a non-international roaming state and in the issuing country of the electronic terminal;
the attribution determining unit 20 determines whether or not characteristic information of the first telephone number satisfies a specific requirement of an issuing country of the electronic terminal for the telephone number, wherein when it is determined that the specific requirement is satisfied, the issuing country of the electronic terminal is determined as the country to which the first telephone number belongs; and when the specific requirement is not met, determining whether the electronic terminal is in an international roaming state, and when the electronic terminal is in a non-international roaming state, determining the country in which the electronic terminal is currently located as the country to which the first telephone number belongs.
In another embodiment, when it is necessary to determine the home location of the first telephone number due to receiving a user operation for displaying a call record regarding the first telephone number, the home location determination unit 20 may perform at least one of the following operations:
the attribution determining unit 20 determines, when the electronic terminal is in a non-international roaming state and not in a country of release of the electronic terminal when the call record is generated, a country in which the electronic terminal is in when the call record is generated as a country to which the first telephone number belongs;
the home location determination unit 20 determines the country of release of the electronic terminal as the country to which the first telephone number belongs when one of the following conditions is satisfied: the characteristic information of the first telephone number meets the specific requirements of the issuing country of the electronic terminal on the telephone number; the electronic terminal is currently in an international roaming state; the electronic terminal is in a non-international roaming state and in the issuing country of the electronic terminal when the call record is generated;
the attribution determining unit 20 determines whether or not characteristic information of the first telephone number satisfies a specific requirement of an issuing country of the electronic terminal for the telephone number, wherein when it is determined that the specific requirement is satisfied, the issuing country of the electronic terminal is determined as the country to which the first telephone number belongs; when the specific requirement is not met, determining whether the electronic terminal generates the call record in an international roaming state or not, and determining the country in which the electronic terminal generates the call record as the country to which the first telephone number belongs when the electronic terminal generates the call record in a non-international roaming state.
It should be appreciated that the specific process performed by the apparatus for determining the home location of a phone number for an electronic terminal according to an exemplary embodiment of the present invention has been described in detail with reference to fig. 1, and the related details will not be repeated here.
Furthermore, it should be understood that various units in the apparatus for determining the home location of a phone number of an electronic terminal according to an exemplary embodiment of the present invention may be implemented as hardware components and/or software components. The individual units may be implemented, for example, using a Field Programmable Gate Array (FPGA) or an Application Specific Integrated Circuit (ASIC), depending on the processing performed by the individual units as defined.
A computer-readable storage medium according to an exemplary embodiment of the present invention stores a computer program that, when executed by a processor, causes the processor to perform the method for determining a home location of a telephone number for an electronic terminal of the above-described exemplary embodiment. The computer readable storage medium is any data storage device that can store data which can be read by a computer system. Examples of the computer readable storage medium include: read-only memory, random access memory, compact disc read-only, magnetic tape, floppy disk, optical data storage device, and carrier waves (such as data transmission through the internet via wired or wireless transmission paths).
The electronic terminal according to an exemplary embodiment of the present invention includes: a processor (not shown) and a memory (not shown), wherein the memory stores a computer program which, when executed by the processor, implements a method for determining the home location of a telephone number for an electronic terminal as in the above-described exemplary embodiments.
Although a few exemplary embodiments of the present invention have been shown and described, it would be appreciated by those skilled in the art that changes may be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the claims and their equivalents.

Claims (16)

1. A method for determining a home location of a telephone number for an electronic terminal, wherein the method comprises:
when the attribution of the first telephone number needs to be determined, determining whether the first telephone number comprises an international area code;
when the first telephone number does not include the international area code, a country to which the first telephone number belongs is determined based on the characteristic information of the first telephone number and/or the characteristic information of the electronic terminal, and the attribution of the first telephone number is queried based on the determined country.
2. The method of claim 1, wherein the characteristic information of the electronic terminal comprises: the position characteristic information of the electronic terminal;
and/or, the characteristic information of the first telephone number includes at least one of the following: the number of digits of the first telephone number, the digits at a particular location of the first telephone number;
and/or, the method further comprises: outputting the determined attribution of the first telephone number;
and/or, the method further comprises: whether the attribution of the first telephone number needs to be determined is determined, wherein the attribution of the first telephone number needs to be determined when a call request initiated using the first telephone number or a user operation for displaying a call record regarding the first telephone number is received.
3. The method of claim 2, wherein querying the home location of the first telephone number based on the determined country comprises: querying a home location of the first telephone number using a number query database corresponding to the determined country;
and/or, the location characteristic information of the electronic terminal comprises at least one of the following items: the issuing country of the electronic terminal, the country in which the electronic terminal is currently located, and whether the electronic terminal is in an international roaming state.
4. A method as claimed in claim 3, wherein the method further comprises: when the number query database corresponding to the determined country is not available, the attribution of the first telephone number is not queried and/or the attribution of the first telephone number is not output;
and/or determining the issuing country of the electronic terminal by: and determining the issuing country of the electronic terminal based on the model information of the electronic terminal.
5. A method according to claim 3, wherein when it is necessary to determine the home location of the first telephone number due to receipt of a call request initiated using the first telephone number, the step of determining the country to which the first telephone number belongs based on the characteristic information of the first telephone number and/or the characteristic information of the electronic terminal comprises:
when the electronic terminal is in a non-international roaming state and is not in the issuing country of the electronic terminal, determining the country in which the electronic terminal is currently located as the country to which the first telephone number belongs;
and/or determining the issuing country of the electronic terminal as the country to which the first telephone number belongs when one of the following conditions is satisfied: the characteristic information of the first telephone number meets the specific requirements of the issuing country of the electronic terminal on the telephone number; the electronic terminal is in a non-international roaming state and in the issuing country of the electronic terminal;
and/or determining whether the characteristic information of the first telephone number meets the specific requirement of the issuing country of the electronic terminal on the telephone number, wherein when the specific requirement is determined to be met, the issuing country of the electronic terminal is determined to be the country to which the first telephone number belongs; and when the specific requirement is not met, determining whether the electronic terminal is in an international roaming state, and when the electronic terminal is in a non-international roaming state, determining the country in which the electronic terminal is currently located as the country to which the first telephone number belongs.
6. A method according to claim 3, wherein when it is necessary to determine the home location of the first telephone number due to receiving a user operation for displaying a call record regarding the first telephone number, the step of determining the country to which the first telephone number belongs based on the characteristic information of the first telephone number and/or the characteristic information of the electronic terminal comprises:
when the electronic terminal generates the call record and is in a non-international roaming state and is not in the issuing country of the electronic terminal, determining the country in which the electronic terminal generates the call record as the country to which the first telephone number belongs;
and/or determining the issuing country of the electronic terminal as the country to which the first telephone number belongs when one of the following conditions is satisfied: the characteristic information of the first telephone number meets the specific requirements of the issuing country of the electronic terminal on the telephone number; the electronic terminal is currently in an international roaming state; the electronic terminal is in a non-international roaming state and in the issuing country of the electronic terminal when the call record is generated;
and/or determining whether the characteristic information of the first telephone number meets the specific requirement of the issuing country of the electronic terminal on the telephone number, wherein when the specific requirement is determined to be met, the issuing country of the electronic terminal is determined to be the country to which the first telephone number belongs; when the specific requirement is not met, determining whether the electronic terminal generates the call record in an international roaming state or not, and determining the country in which the electronic terminal generates the call record as the country to which the first telephone number belongs when the electronic terminal generates the call record in a non-international roaming state.
7. The method of claim 5 or 6, wherein the specific requirements include at least one of: the number of digits of the telephone number is a specific number of digits, and the digits at a specific location of the telephone number are within a corresponding specific range.
8. An apparatus for determining a home location of a telephone number for an electronic terminal, wherein the apparatus comprises:
an international area code determining unit that determines whether the first telephone number includes an international area code when it is necessary to determine a home location of the first telephone number;
and a home location determining unit that determines a country to which the first telephone number belongs based on the characteristic information of the first telephone number and/or the characteristic information of the electronic terminal when the first telephone number does not include the international area code, and inquires of the home location of the first telephone number based on the determined country.
9. The apparatus of claim 8, wherein the characteristic information of the electronic terminal comprises: the position characteristic information of the electronic terminal;
and/or, the characteristic information of the first telephone number includes at least one of the following: the number of digits of the first telephone number, the digits at a particular location of the first telephone number;
and/or the device further comprises: an output unit that outputs the determined attribution of the first telephone number;
and/or the device further comprises: and a judging unit judging whether or not the attribution of the first telephone number needs to be determined, wherein when a call request initiated using the first telephone number or a user operation for displaying a call record concerning the first telephone number is received, it is judged that the attribution of the first telephone number needs to be determined.
10. The apparatus of claim 9, wherein the home location determining unit queries a home location of the first phone number using a number query database corresponding to the determined country;
and/or, the location characteristic information of the electronic terminal comprises at least one of the following items: the issuing country of the electronic terminal, the country in which the electronic terminal is currently located, and whether the electronic terminal is in an international roaming state.
11. The apparatus of claim 10, wherein the home location determining unit does not query the home location of the first telephone number and/or the outputting unit does not output the home location of the first telephone number when there is no number query database corresponding to the determined country;
and/or determining the issuing country of the electronic terminal by: and determining the issuing country of the electronic terminal based on the model information of the electronic terminal.
12. The apparatus of claim 10, wherein when a determination of the home location of the first telephone number is required due to receipt of a call request initiated using the first telephone number,
the attribution determining unit determines a country in which the electronic terminal is currently located as a country to which the first telephone number belongs when the electronic terminal is in a non-international roaming state and is not in a country of issuance of the electronic terminal;
and/or, when one of the following conditions is satisfied, the attribution determining unit determines the issuing country of the electronic terminal as the country to which the first telephone number belongs: the characteristic information of the first telephone number meets the specific requirements of the issuing country of the electronic terminal on the telephone number; the electronic terminal is in a non-international roaming state and in the issuing country of the electronic terminal;
and/or the attribution determining unit determines whether the characteristic information of the first telephone number meets a specific requirement of the issuing country of the electronic terminal on the telephone number, wherein when the specific requirement is determined to be met, the issuing country of the electronic terminal is determined to be the country to which the first telephone number belongs; and when the specific requirement is not met, determining whether the electronic terminal is in an international roaming state, and when the electronic terminal is in a non-international roaming state, determining the country in which the electronic terminal is currently located as the country to which the first telephone number belongs.
13. The apparatus of claim 10, wherein when it is necessary to determine the home location of the first telephone number due to the reception of a user operation for displaying a call record regarding the first telephone number,
the attribution determining unit determines a country in which the electronic terminal generates the call record as a country to which the first telephone number belongs when the electronic terminal is in a non-international roaming state when the electronic terminal generates the call record and is not in a country in which the electronic terminal is issued;
and/or, when one of the following conditions is satisfied, the attribution determining unit determines the issuing country of the electronic terminal as the country to which the first telephone number belongs: the characteristic information of the first telephone number meets the specific requirements of the issuing country of the electronic terminal on the telephone number; the electronic terminal is currently in an international roaming state; the electronic terminal is in a non-international roaming state and in the issuing country of the electronic terminal when the call record is generated;
and/or the attribution determining unit determines whether the characteristic information of the first telephone number meets a specific requirement of the issuing country of the electronic terminal on the telephone number, wherein when the specific requirement is determined to be met, the issuing country of the electronic terminal is determined to be the country to which the first telephone number belongs; when the specific requirement is not met, determining whether the electronic terminal generates the call record in an international roaming state or not, and determining the country in which the electronic terminal generates the call record as the country to which the first telephone number belongs when the electronic terminal generates the call record in a non-international roaming state.
14. The apparatus of claim 12 or 13, wherein the specific requirements include at least one of: the number of digits of the telephone number is a specific number of digits, and the digits at a specific location of the telephone number are within a corresponding specific range.
15. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the method for determining the home location of a telephone number for an electronic terminal as claimed in any one of claims 1 to 7.
16. An electronic terminal, wherein the electronic terminal comprises:
a processor;
memory storing a computer program which, when executed by a processor, implements a method for determining the home location of a telephone number for an electronic terminal according to any of claims 1 to 7.
CN202010608229.9A 2020-06-29 2020-06-29 Method and equipment for determining attribution of telephone number for electronic terminal Active CN111836249B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010608229.9A CN111836249B (en) 2020-06-29 2020-06-29 Method and equipment for determining attribution of telephone number for electronic terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010608229.9A CN111836249B (en) 2020-06-29 2020-06-29 Method and equipment for determining attribution of telephone number for electronic terminal

Publications (2)

Publication Number Publication Date
CN111836249A CN111836249A (en) 2020-10-27
CN111836249B true CN111836249B (en) 2023-04-21

Family

ID=72899562

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010608229.9A Active CN111836249B (en) 2020-06-29 2020-06-29 Method and equipment for determining attribution of telephone number for electronic terminal

Country Status (1)

Country Link
CN (1) CN111836249B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101365244A (en) * 2008-05-21 2009-02-11 德信无线通讯科技(北京)有限公司 Method for displaying homing address of calling number
CN101808161A (en) * 2010-03-24 2010-08-18 深圳市五巨科技有限公司 Method and device for inquiring area to which phone number is attributed and type of SIM card for phone number
EP2456180A1 (en) * 2009-08-18 2012-05-23 ZTE Corporation Intelligent dialing method and intelligent dialing terminal
CN104935716A (en) * 2015-06-25 2015-09-23 中通服公众信息产业股份有限公司 Method and device for displaying Uigur-Kazaksatan-Khalkas language of mobile phone call area
CN106507320A (en) * 2016-10-31 2017-03-15 维沃移动通信有限公司 A kind of determination method of destination number and mobile terminal
CN106506777A (en) * 2016-12-06 2017-03-15 北京奇虎科技有限公司 Intelligent terminal and system communication record telephone number processing method and processing device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8081992B2 (en) * 2008-02-01 2011-12-20 Research In Motion Limited System and method for displaying the geographic location associated with a phone call received on a phone-equipped mobile device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101365244A (en) * 2008-05-21 2009-02-11 德信无线通讯科技(北京)有限公司 Method for displaying homing address of calling number
EP2456180A1 (en) * 2009-08-18 2012-05-23 ZTE Corporation Intelligent dialing method and intelligent dialing terminal
CN101808161A (en) * 2010-03-24 2010-08-18 深圳市五巨科技有限公司 Method and device for inquiring area to which phone number is attributed and type of SIM card for phone number
CN104935716A (en) * 2015-06-25 2015-09-23 中通服公众信息产业股份有限公司 Method and device for displaying Uigur-Kazaksatan-Khalkas language of mobile phone call area
CN106507320A (en) * 2016-10-31 2017-03-15 维沃移动通信有限公司 A kind of determination method of destination number and mobile terminal
CN106506777A (en) * 2016-12-06 2017-03-15 北京奇虎科技有限公司 Intelligent terminal and system communication record telephone number processing method and processing device

Also Published As

Publication number Publication date
CN111836249A (en) 2020-10-27

Similar Documents

Publication Publication Date Title
CN103037062A (en) Method and terminal and server used for intercepting crank calls
US9160827B2 (en) Automatically adjusting country and area codes when doing a business card or telephone number exchange
CN111787075A (en) Equipment positioning method and device
EP3968663A1 (en) Message reminding method and apparatus, control device, and storage medium
CN106507320B (en) A kind of the determination method and mobile terminal of destination number
CN111836249B (en) Method and equipment for determining attribution of telephone number for electronic terminal
CN111954300B (en) Offline positioning method, device, equipment and storage medium
KR100416161B1 (en) Portable terminal
CN113301203A (en) Method and device for updating historical information data based on address book
CN111402620B (en) Arrival reminding method, device, terminal and storage medium
CN111405126A (en) Method, system, device, equipment and storage medium for dialing in dispatching link
CN114554393A (en) Positioning method, positioning device, terminal, storage medium and program product
CN110456398B (en) Geographic position determining method, device, storage medium and equipment
CN111767451B (en) Searching method, electronic device and computer readable storage medium
CN108377547B (en) Positioning method, device and equipment
CN107147774B (en) Method, terminal and storage device for recording and inquiring multi-time-zone communication information
CN111885708A (en) Positioning method, positioning device, user equipment and computer readable storage medium
CN105589903A (en) Street lamp location information collection, storage and query method and system
CN114816211B (en) Information interaction method and related device
CN113810992B (en) Data processing method and device
CN110708739B (en) Network connection method, device and system
CN109561166B (en) Method and device for positioning target object and electronic equipment
CN112995900B (en) SIM card distribution method, device, server and computer readable storage medium
CN115022845B (en) User contact person identification method, operator platform, device and system
US8601033B2 (en) Information terminal, authentication condition check method thereof, and authentication condition check program

Legal Events

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