[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN111836249A - Method and device for determining the attribution of a telephone number for an electronic terminal - Google Patents

Method and device for determining the attribution of a telephone number for an electronic terminal Download PDF

Info

Publication number
CN111836249A
CN111836249A CN202010608229.9A CN202010608229A CN111836249A CN 111836249 A CN111836249 A CN 111836249A CN 202010608229 A CN202010608229 A CN 202010608229A CN 111836249 A CN111836249 A CN 111836249A
Authority
CN
China
Prior art keywords
electronic terminal
country
telephone number
phone number
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.)
Granted
Application number
CN202010608229.9A
Other languages
Chinese (zh)
Other versions
CN111836249B (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

提供一种用于电子终端的确定电话号码的归属地的方法及设备。所述方法包括:当需要确定第一电话号码的归属地时,确定第一电话号码是否包括国际区号;当第一电话号码不包括国际区号时,基于第一电话号码的特征信息和/或所述电子终端的特征信息来确定第一电话号码的归属地。根据所述方法及设备,在电话号码不包括国际区号的情况下,也能够准确地确定电话号码的归属地,提升了用户体验。

Figure 202010608229

Provided are a method and device for determining the attribution of a telephone number for an electronic terminal. The method includes: when it is necessary to determine the attribution of the first telephone number, determining whether the first telephone number includes an international area code; when the first telephone number does not include an international area code, based on the characteristic information and/or all information of the first telephone number. The characteristic information of the electronic terminal is used to determine the attribution of the first telephone number. According to the method and device, even if the phone number does not include the international area code, the attribution of the phone number can be accurately determined, which improves the user experience.

Figure 202010608229

Description

用于电子终端的确定电话号码的归属地的方法及设备Method and device for determining the attribution of a telephone number for an electronic terminal

技术领域technical field

本发明总体说来涉及电子终端领域,更具体地讲,涉及一种用于电子终端的确定电话号码的归属地的方法及设备。The present invention generally relates to the field of electronic terminals, and more particularly, to a method and device for determining the attribution of a telephone number for an electronic terminal.

背景技术Background technique

一般地,完整的电话号码由以下部分组成:国际区号+号码,如果是固定电话号码,还进一步包括城市区号。Generally, a complete telephone number consists of the following parts: the international area code + the number, and if it is a landline number, it further includes the city area code.

任一国家的电话号码需要使用该国的号码查询数据库进行归属地(例如,电话号码所属的城市)查询才能得到准确的查询结果,如果使用其他国家的号码查询数据库进行查询将会得到错误的查询结果,例如,A国的电话号码,如果使用B国的号码查询数据库进行归属地查询,得到的查询结果可能是B国的城市信息。The phone number of any country needs to use the country's number query database for attribution (for example, the city to which the phone number belongs) to obtain accurate query results. If you use other countries' number query database to query, you will get wrong query As a result, for example, for the telephone number of country A, if the attribution query is performed using the number query database of country B, the query result obtained may be the city information of country B.

如果一电话号码包括国际区号,则可通过国际区号来区分该电话号码的归属国进而使用归属国的号码查询数据库来查询电话号码归属地,但如果该电话号码不包括国际区号,则默认使用当前电子终端的发行国的号码查询数据库进行归属地查询,而这往往容易出现错误的查询结果。If a phone number includes an international area code, the home country of the phone number can be distinguished by the international area code, and then the number query database of the home country can be used to query the attribution of the phone number, but if the phone number does not include an international area code, the default use of the current The number query database of the issuing country of the electronic terminal is used for attribution query, which is often prone to wrong query results.

发明内容SUMMARY OF THE INVENTION

本发明的示例性实施例在于提供一种用于电子终端的确定电话号码的归属地的方法及设备,其能够在电话号码不包括国际区号的情况下,准确地确定电话号码的归属地。Exemplary embodiments of the present invention provide a method and device for determining the attribution of a telephone number for an electronic terminal, which can accurately determine the attribution of a telephone number when the telephone number does not include an international area code.

根据本发明的示例性实施例,提供一种用于电子终端的确定电话号码的归属地的方法,其中,所述方法包括:当需要确定第一电话号码的归属地时,确定第一电话号码是否包括国际区号;当第一电话号码不包括国际区号时,基于第一电话号码的特征信息和/或所述电子终端的特征信息来确定第一电话号码的归属地。According to an exemplary embodiment of the present invention, there is provided a method for determining the attribution of a phone number for an electronic terminal, wherein the method includes: when the attribution of the first phone number needs to be determined, determining the first phone number Whether the international area code is included; 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 feature information of the first phone number and/or the feature information of the electronic terminal includes: based on the feature information of the first phone number and/or the electronic terminal to determine the country to which the first telephone number belongs, and based on the determined country, the attribution of the first telephone number is inquired.

可选地,所述电子终端的特征信息包括:所述电子终端的位置特征信息。可选地,第一电话号码的特征信息包括以下项之中的至少一项:第一电话号码的位数、第一电话号码的特定位置处的数字。Optionally, the feature information of the electronic terminal includes: location feature information of the electronic terminal. Optionally, the characteristic information of the first phone number includes at least one of the following items: digits of the first phone number, digits at a specific position of the first phone number.

可选地,所述方法还包括:输出确定的第一电话号码的归属地。Optionally, the method further includes: outputting the determined attribution of the first phone number.

可选地,所述方法还包括:判断是否需要确定第一电话号码的归属地,其中,当接收到使用第一电话号码发起的呼叫请求或用于显示关于第一电话号码的通话记录的用户操作时,判断为需要确定第一电话号码的归属地。Optionally, the method further includes: judging whether it is necessary to determine the attribution of the first phone number, wherein when receiving a call request initiated by using the first phone number or a user for displaying call records about the first phone number During operation, it is determined that the attribution of the first telephone number needs to be determined.

可选地,基于确定的国家来查询第一电话号码的归属地的步骤包括:使用与确定的国家对应的号码查询数据库来查询第一电话号码的归属地。Optionally, the step of querying the attribution of the first telephone number based on the determined country includes: using a number query database corresponding to the determined country to query the attribution of the first telephone number.

可选地,所述电子终端的位置特征信息包括以下项之中的至少一项:所述电子终端的发行国家、所述电子终端当前所处的国家、所述电子终端是否处于国际漫游状态。Optionally, the location feature information of the electronic terminal includes at least one of the following items: the issuing country of the electronic terminal, the country where the electronic terminal is currently located, and whether the electronic terminal is in an international roaming state.

可选地,所述方法还包括:当不具有与确定的国家对应的号码查询数据库时,不对第一电话号码的归属地进行查询和/或不输出第一电话号码的归属地。Optionally, the method further includes: when there is no number query database corresponding to the determined country, not querying the attribution of the first phone number and/or not outputting the attribution of the first phone number.

可选地,通过下述方式确定所述电子终端的发行国家:基于所述电子终端的型号信息确定所述电子终端的发行国家。Optionally, the issuing country of the electronic terminal is determined by: 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 by using the first phone number, the first phone number is determined based on the feature information of the first phone number and/or the feature information of the electronic terminal. The steps for the country a phone number belongs to include:

当所述电子终端处于非国际漫游状态且不处于所述电子终端的发行国家时,将所述电子终端当前所处的国家确定为第一电话号码所属的国家;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 where the electronic terminal is currently located as the country to which the first phone number belongs;

和/或,当满足以下条件之一时,将所述电子终端的发行国家确定为第一电话号码所属的国家:第一电话号码的特征信息满足所述电子终端的发行国家对电话号码的特定要求;所述电子终端处于非国际漫游状态且处于所述电子终端的发行国家;And/or, when one of the following conditions is met, the issuing country of the electronic terminal is determined as the country to which the first telephone number belongs: the characteristic information of the first telephone number satisfies the specific requirements for the telephone number of the issuing country of the electronic terminal ; the electronic terminal is in a non-international roaming state and is in the country of issuance of the electronic terminal;

和/或,确定第一电话号码的特征信息是否满足所述电子终端的发行国家对电话号码的特定要求,其中,当确定满足所述特定要求时,将所述电子终端的发行国家确定为第一电话号码所属的国家;当确定不满足所述特定要求时,确定所述电子终端是否处于国际漫游状态,并当所述电子终端处于非国际漫游状态时,将所述电子终端当前所处的国家确定为第一电话号码所属的国家。And/or, determine whether the feature information of the first phone number satisfies the specific requirements of the issuing country of the electronic terminal for the phone number, wherein, when it is determined that the specific requirements are met, the issuing country of the electronic terminal is determined as the first. A country to which the phone number belongs; when it is determined that the specific requirement is not met, determine whether the electronic terminal is in an international roaming state, and when the electronic terminal is in a non-international roaming state, change the current location of the electronic terminal to the The country is determined as the country to which the first telephone number belongs.

可选地,当由于接收到用于显示关于第一电话号码的通话记录的用户操作而需要确定第一电话号码的归属地时,基于第一电话号码的特征信息和/或所述电子终端的特征信息来确定第一电话号码所属的国家的步骤包括:Optionally, when the attribution of the first phone number needs to be determined due to receiving a user operation for displaying a call record about the first phone number, based on the feature information of the first phone number and/or the characteristics of the electronic terminal. The step of determining the country to which the first phone number belongs based on the characteristic information includes:

当所述电子终端产生所述通话记录时处于非国际漫游状态且不处于所述电子终端的发行国家时,将所述电子终端产生所述通话记录时所处的国家确定为第一电话号码所属的国家;When the electronic terminal is in a non-international roaming state and is not in the issuing country of the electronic terminal when the call record is generated, the country where the electronic terminal is located when the call record is generated is determined as the country to which the first phone number belongs s country;

和/或,当满足以下条件之一时,将所述电子终端的发行国家确定为第一电话号码所属的国家:第一电话号码的特征信息满足所述电子终端的发行国家对电话号码的特定要求;所述电子终端当前处于国际漫游状态;所述电子终端产生所述通话记录时处于非国际漫游状态且处于所述电子终端的发行国家;And/or, when one of the following conditions is met, the issuing country of the electronic terminal is determined as the country to which the first telephone number belongs: the characteristic information of the first telephone number satisfies the specific requirements for the telephone number of the issuing country of the electronic terminal ; The electronic terminal is currently in an international roaming state; the electronic terminal is in a non-international roaming state and is in the issuing country of the electronic terminal when the call record is generated;

和/或,确定第一电话号码的特征信息是否满足所述电子终端的发行国家对电话号码的特定要求,其中,当确定满足所述特定要求时,将所述电子终端的发行国家确定为第一电话号码所属的国家;当确定不满足所述特定要求时,确定所述电子终端产生所述通话记录时是否处于国际漫游状态,并当所述电子终端产生所述通话记录时处于非国际漫游状态时,将所述电子终端产生所述通话记录时所处的国家确定为第一电话号码所属的国家。And/or, determine whether the feature information of the first phone number satisfies the specific requirements of the issuing country of the electronic terminal for the phone number, wherein, when it is determined that the specific requirements are met, the issuing country of the electronic terminal is determined as the first. A country to which the phone number belongs; when it is determined that the specific requirement is not met, determine whether the electronic terminal is in an international roaming state when the call record is generated, and is in non-international roaming when the electronic terminal generates the call record In the state, the country where the electronic terminal is located when the call record is generated is determined as the country to which the first phone number belongs.

可选地,所述特定要求包括以下项之中的至少一项:电话号码的位数为特定位数、电话号码的特定位置处的数字在对应的特定范围内。Optionally, the specific requirement includes at least one of the following items: the number of digits of the phone number is a specific number, and the digits at a specific position of the phone number are within a corresponding specific range.

根据本发明的另一示例性实施例,提供一种用于电子终端的确定电话号码的归属地的设备,其中,所述设备包括:国际区号确定单元,当需要确定第一电话号码的归属地时,确定第一电话号码是否包括国际区号;归属地确定单元,当第一电话号码不包括国际区号时,基于第一电话号码的特征信息和/或所述电子终端的特征信息来确定第一电话号码的归属地。According to another exemplary embodiment of the present invention, there is provided a device for determining the home of a phone number for an electronic terminal, wherein the device includes: an international area code determining unit, when it is necessary to determine the home of the first phone number when the first phone number includes an international area code; the attribution determination unit, when the first phone number does not include an international area code, determines the first phone number based on the feature information of the first phone number and/or the feature information of the electronic terminal The home of the phone number.

可选地,归属地确定单元基于第一电话号码的特征信息和/或所述电子终端的特征信息来确定第一电话号码所属的国家,并基于确定的国家来查询第一电话号码的归属地。Optionally, the attribution determination unit determines 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 queries the attribution of the first telephone number based on the determined country. .

可选地,所述电子终端的特征信息包括:所述电子终端的位置特征信息。Optionally, the feature information of the electronic terminal includes: location feature information of the electronic terminal.

可选地,第一电话号码的特征信息包括以下项之中的至少一项:第一电话号码的位数、第一电话号码的特定位置处的数字。Optionally, the characteristic information of the first phone number includes at least one of the following items: digits of the first phone number, digits at a specific position of the first phone number.

可选地,所述设备还包括:输出单元,输出确定的第一电话号码的归属地。Optionally, the device further includes: an output unit that outputs the determined attribution of the first phone number.

可选地,所述设备还包括:判断单元,判断是否需要确定第一电话号码的归属地,其中,当接收到使用第一电话号码发起的呼叫请求或用于显示关于第一电话号码的通话记录的用户操作时,判断为需要确定第一电话号码的归属地。Optionally, the device further includes: a judging unit for judging whether it is necessary to determine the attribution of the first phone number, wherein when receiving a call request initiated by using the first phone number or for displaying a call about the first phone number When the recorded user operation is performed, it is determined that the attribution of the first telephone number needs to be determined.

可选地,归属地确定单元使用与确定的国家对应的号码查询数据库来查询第一电话号码的归属地。Optionally, the attribution determination unit uses a number query database corresponding to the determined country to query the attribution of the first telephone number.

可选地,所述电子终端的位置特征信息包括以下项之中的至少一项:所述电子终端的发行国家、所述电子终端当前所处的国家、所述电子终端是否处于国际漫游状态。Optionally, the location feature information of the electronic terminal includes at least one of the following items: the issuing country of the electronic terminal, the country where the electronic terminal is currently located, and whether the electronic terminal is in an international roaming state.

可选地,当不具有与确定的国家对应的号码查询数据库时,归属地确定单元不对第一电话号码的归属地进行查询和/或输出单元不输出第一电话号码的归属地。Optionally, when there is no number query database corresponding to the determined country, the attribution determination unit does not query the attribution of the first phone number and/or the output unit does not output the attribution of the first phone number.

可选地,通过下述方式确定所述电子终端的发行国家:基于所述电子终端的型号信息确定所述电子终端的发行国家。Optionally, the issuing country of the electronic terminal is determined by: 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 by using the first phone number,

归属地确定单元当所述电子终端处于非国际漫游状态且不处于所述电子终端的发行国家时,将所述电子终端当前所处的国家确定为第一电话号码所属的国家;When the electronic terminal is in a non-international roaming state and is not in the issuing country of the electronic terminal, the attribution determining unit determines the country where the electronic terminal is currently located as the country to which the first phone number belongs;

和/或,当满足以下条件之一时,归属地确定单元将所述电子终端的发行国家确定为第一电话号码所属的国家:第一电话号码的特征信息满足所述电子终端的发行国家对电话号码的特定要求;所述电子终端处于非国际漫游状态且处于所述电子终端的发行国家;And/or, when one of the following conditions is satisfied, the attribution determination 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 satisfies the issuing country of the electronic terminal to the telephone number. specific requirements for numbers; the electronic terminal is in a non-international roaming state and in the country of issue of the electronic terminal;

和/或,归属地确定单元确定第一电话号码的特征信息是否满足所述电子终端的发行国家对电话号码的特定要求,其中,当确定满足所述特定要求时,将所述电子终端的发行国家确定为第一电话号码所属的国家;当确定不满足所述特定要求时,确定所述电子终端是否处于国际漫游状态,并当所述电子终端处于非国际漫游状态时,将所述电子终端当前所处的国家确定为第一电话号码所属的国家。And/or, the attribution determination unit determines whether the characteristic information of the first telephone number satisfies the specific requirements for the telephone number of the issuing country of the electronic terminal, wherein, when it is determined that the specific requirements are satisfied, the issuing country of the electronic terminal The country is determined as the country to which the first phone number belongs; when it is determined that the specific requirement is not met, determine whether the electronic terminal is in an international roaming state, and when the electronic terminal is in a non-international roaming state, the electronic terminal is in a non-international roaming state. The current country is determined as the country to which the first phone number belongs.

可选地,当由于接收到用于显示关于第一电话号码的通话记录的用户操作而需要确定第一电话号码的归属地时,Optionally, when the attribution of the first phone number needs to be determined due to receiving a user operation for displaying a call record about the first phone number,

归属地确定单元当所述电子终端产生所述通话记录时处于非国际漫游状态且不处于所述电子终端的发行国家时,将所述电子终端产生所述通话记录时所处的国家确定为第一电话号码所属的国家;When the electronic terminal is in a non-international roaming state and is not in the issuing country of the electronic terminal when the electronic terminal generates the call record, the attribution determination unit determines the country where the electronic terminal is located when the call record is generated as the first country. the country to which the telephone number belongs;

和/或,当满足以下条件之一时,归属地确定单元将所述电子终端的发行国家确定为第一电话号码所属的国家:第一电话号码的特征信息满足所述电子终端的发行国家对电话号码的特定要求;所述电子终端当前处于国际漫游状态;所述电子终端产生所述通话记录时处于非国际漫游状态且处于所述电子终端的发行国家;And/or, when one of the following conditions is satisfied, the attribution determination 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 satisfies the issuing country of the electronic terminal to the telephone number. The specific requirements of the number; the electronic terminal is currently in an international roaming state; the electronic terminal is in a non-international roaming state and is in the issuing country of the electronic terminal when the call record is generated;

和/或,归属地确定单元确定第一电话号码的特征信息是否满足所述电子终端的发行国家对电话号码的特定要求,其中,当确定满足所述特定要求时,将所述电子终端的发行国家确定为第一电话号码所属的国家;当确定不满足所述特定要求时,确定所述电子终端产生所述通话记录时是否处于国际漫游状态,并当所述电子终端产生所述通话记录时处于非国际漫游状态时,将所述电子终端产生所述通话记录时所处的国家确定为第一电话号码所属的国家。And/or, the attribution determination unit determines whether the characteristic information of the first telephone number satisfies the specific requirements for the telephone number of the issuing country of the electronic terminal, wherein, when it is determined that the specific requirements are satisfied, the issuing country of the electronic terminal The country is determined as the country to which the first phone number belongs; when it is determined that the specific requirements are not met, determine whether the electronic terminal is in an international roaming state when the electronic terminal generates the call record, and when the electronic terminal generates the call record When in a non-international roaming state, the country where the electronic terminal generates the call record is determined as the country to which the first phone number belongs.

可选地,所述特定要求包括以下项之中的至少一项:电话号码的位数为特定位数、电话号码的特定位置处的数字在对应的特定范围内。Optionally, the specific requirement includes at least one of the following items: the number of digits of the phone number is a specific number, and the digits at a specific position of the phone number are within a corresponding specific range.

根据本发明的另一示例性实施例,提供一种存储有计算机程序的计算机可读存储介质,其中,当所述计算机程序被处理器执行时实现如上所述的用于电子终端的确定电话号码的归属地的方法。According to another exemplary embodiment of the present invention, there is provided a computer-readable storage medium storing a computer program, wherein, when the computer program is executed by a processor, the determination of a telephone number for an electronic terminal as described above is realized method of attribution.

根据本发明的另一示例性实施例,提供一种电子终端,其中,所述电子终端包括:处理器;存储器,存储有计算机程序,当所述计算机程序被处理器执行时,实现如权上所述的用于电子终端的确定电话号码的归属地的方法。According to another exemplary embodiment of the present invention, an electronic terminal is provided, wherein the electronic terminal comprises: a processor; a memory storing a computer program, when the computer program is executed by the processor, the above-mentioned The described method for determining the attribution of a telephone number for an electronic terminal.

在根据本发明示例性实施例的用于电子终端的确定电话号码的归属地的方法及设备中,当电话号码不包括国际区号时,根据电话号码的特征信息和/或当前电子终端的特征信息来确定电话号码的归属地,从而在电话号码不包括国际区号的情况下,也能够准确地确定电话号码的归属地,提升了用户体验。In the method and device for determining the attribution of a phone number for an electronic terminal according to an exemplary embodiment of the present invention, when the phone number does not include an international area code, the feature information of the phone number and/or the feature information of the current electronic terminal to determine the attribution of the phone number, so that even if the phone number does not include the international area code, the attribution of the phone number can also be accurately determined, which improves user experience.

将在接下来的描述中部分阐述本发明总体构思另外的方面和/或优点,还有一部分通过描述将是清楚的,或者可以经过本发明总体构思的实施而得知。Additional aspects and/or advantages of the present general inventive concept will be set forth in part in the ensuing description, and in part will be apparent from the description, or may be learned by practice of the present general inventive concept.

附图说明Description of drawings

通过下面结合示例性地示出实施例的附图进行的描述,本发明示例性实施例的上述和其他目的和特点将会变得更加清楚,其中:The above and other objects and features of the exemplary embodiments of the present invention will become more apparent from the following description in conjunction with the accompanying drawings that exemplarily illustrate the embodiments, in which:

图1示出根据本发明示例性实施例的用于电子终端的确定电话号码的归属地的方法的流程图;1 shows a flowchart of a method for determining the attribution of a phone number for an electronic terminal according to an exemplary embodiment of the present invention;

图2示出根据本发明示例性实施例的用于电子终端的确定电话号码的归属地的设备的框图。FIG. 2 shows a block diagram of an apparatus for determining the attribution of a phone number for an electronic terminal according to an exemplary embodiment of the present invention.

具体实施方式Detailed ways

现将详细参照本发明的实施例,所述实施例的示例在附图中示出,其中,相同的标号始终指的是相同的部件。以下将通过参照附图来说明所述实施例,以便解释本发明。Reference will now be made in detail to the embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to like parts throughout. The embodiments will be described below in order to explain the present invention by referring to the figures.

图1示出根据本发明示例性实施例的用于电子终端的确定电话号码的归属地的方法的流程图。所述方法可通过计算机程序来实现。例如,所述方法可通过安装在电子终端中的拨号应用来执行,或者通过电子终端的操作系统中实现的功能程序来执行。作为示例,所述电子终端可以是移动通信终端(例如,智能手机)、智能可穿戴设备(例如,智能手表)等能够接收呼叫请求的电子终端。FIG. 1 shows a flowchart of a method for determining the attribution of a phone number for an electronic terminal according to an exemplary embodiment of the present invention. The method can be implemented by a computer program. For example, the method may be performed by a dial-up 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 an electronic terminal capable of receiving a call request, such as a mobile communication terminal (eg, a smart phone), a smart wearable device (eg, a smart watch).

参照图1,在步骤S10,当需要确定第一电话号码的归属地时,确定第一电话号码是否包括国际区号。Referring to FIG. 1, in step S10, when it is necessary to determine the attribution of the first telephone number, it is determined whether the first telephone number includes an international area code.

在步骤S20,当第一电话号码不包括国际区号时,基于第一电话号码的特征信息和/或所述电子终端的特征信息来确定第一电话号码的归属地。In step S20, when the first phone number does not include the international area code, the attribution of the first phone number is determined based on the feature information of the first phone number and/or the feature information of the electronic terminal.

作为示例,所述电子终端的特征信息可包括:所述电子终端的位置特征信息。As an example, the feature information of the electronic terminal may include: location feature information of the electronic terminal.

作为示例,所述电子终端的位置特征信息可包括以下项之中的至少一项:所述电子终端的发行国家(即,所述电子终端被发行到的国家)、所述电子终端当前所处的国家、所述电子终端是否处于国际漫游状态。As an example, the location feature information of the electronic terminal may include at least one of the following items: the issuing country of the electronic terminal (that is, the country to which the electronic terminal is issued), the current location of the electronic terminal country, and whether the electronic terminal is in an international roaming state.

作为示例,可通过下述方式确定所述电子终端的发行国家:基于所述电子终端的型号信息确定所述电子终端的发行国家。应该理解,也可通过其他适当的方式确定所述电子终端的发行国家。As an example, the issuing country of the electronic terminal may be determined by: determining the issuing country of the electronic terminal based on the model information of the electronic terminal. It should be understood that the issuing country of the electronic terminal may also be determined in other appropriate ways.

作为示例,可通过各种适当的方式确定所述电子终端当前所处的国家,例如,可通过LBS基站定位方式和/或GPS定位方式。As an example, the country where the electronic terminal is currently located may be determined through various appropriate methods, for example, the LBS base station positioning method and/or the GPS positioning method may be used.

作为示例,可通过各种适当的方式确定所述电子终端是否处于国际漫游状态,例如,可基于所述电子终端的SIM卡的所属国与所述电子终端当前所处的国家是否一致,来判断所述电子终端是否处于国际漫游状态;或者,可基于所述电子终端接收到的关于国际漫游的通知信息,来判断所述电子终端是否处于国际漫游状态。As an example, whether the electronic terminal is in an international roaming state can be determined in various appropriate ways. For example, it can be determined based on whether the country to which the SIM card of the electronic terminal belongs is the same as the country where the electronic terminal is currently located. Whether the electronic terminal is in an international roaming state; or, it can 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 characteristic information of the first phone number may include at least one of the following items: digits of the first phone number, digits at a specific position of the first phone number.

作为示例,可基于第一电话号码的特征信息和/或所述电子终端的特征信息来确定第一电话号码所属的国家(即,第一电话号码的所属国),并基于确定的国家来查询第一电话号码的归属地。进一步地,作为示例,可使用与确定的国家对应的号码查询数据库来查询第一电话号码的归属地。As an example, the country to which the first phone number belongs (ie, the 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 query is made based on the determined country The home of the first phone number. Further, as an example, a number query database corresponding to the determined country may be used to query the attribution of the first telephone number.

作为示例,根据本发明示例性实施例的用于电子终端的确定电话号码的归属地的方法还可包括:判断是否需要确定第一电话号码的归属地,其中,当接收到使用第一电话号码发起的呼叫请求或用于显示关于第一电话号码的通话记录的用户操作时,判断为需要确定第一电话号码的归属地。As an example, the method for determining the attribution of a phone number for an electronic terminal according to an exemplary embodiment of the present invention may further include: judging whether it is necessary to determine the attribution of the first phone number, wherein when receiving the use of the first phone number When a call request is initiated or a user operation is used to display a call record about the first phone number, it is determined that the attribution of the first phone number needs to be determined.

作为示例,根据本发明示例性实施例的用于电子终端的确定电话号码的归属地的方法还可包括:输出确定的第一电话号码的归属地。As an example, the method for determining the attribution of a phone number for an electronic terminal according to an exemplary embodiment of the present invention may further include: outputting the determined attribution of the first phone number.

作为示例,根据本发明示例性实施例的用于电子终端的确定电话号码的归属地的方法还可包括:当不具有与确定的国家对应的号码查询数据库时,不对第一电话号码的归属地进行查询和/或不输出第一电话号码的归属地。As an example, the method for determining the attribution of a phone number for an electronic terminal according to an exemplary embodiment of the present invention may further include: when there is no number corresponding to the determined country inquired into the database, not the attribution of the first phone number An inquiry is made and/or the attribution of the first telephone number is not output.

在一个实施例中,当由于接收到使用第一电话号码发起的呼叫请求而需要确定第一电话号码的归属地时,基于第一电话号码的特征信息和/或所述电子终端的特征信息来确定第一电话号码所属的国家的步骤可包括步骤S101、S102、S103之中的至少一项:In one embodiment, when the attribution of the first phone number needs to be determined due to receiving a call request initiated by using the first phone number, based on the feature information of the first phone number and/or the feature information of the electronic terminal The step of determining the country to which the first phone number belongs may include at least one of steps S101, S102, and S103:

在步骤S101,当所述电子终端处于非国际漫游状态且不处于所述电子终端的发行国家时,将所述电子终端当前所处的国家确定为第一电话号码所属的国家。In step S101, when the electronic terminal is in a non-international roaming state and is not in the issuing country of the electronic terminal, the country where the electronic terminal is currently located is determined as the country to which the first phone number belongs.

在现有技术中,当在中国发行的手机在外国(例如,韩国)使用韩国当地的SIM卡时,当接收到韩国当地的电话号码发起的呼叫请求时,由于SIM卡本地的来电号码不带有国际区号,将会使用手机发行国中国的号码查询数据库来查询该韩国电话号码的归属地,而导致错误的查询结果,例如,使用中国的号码查询数据库查询韩国电话号码010********的归属地,查询结果为北京市。而根据本发明的实施例,能够解决现有技术中存在的在非电子终端发行国,使用当地的SIM卡,当地的来电号码的归属地无法准确识别的问题。In the prior art, when a mobile phone issued in China uses a local Korean SIM card in a foreign country (for example, South Korea), when a call request initiated by a local Korean phone number is received, the local caller number of the SIM card does not carry If there is an international area code, the phone number search database in China, the country where the mobile phone is issued, will be used to query the attribution of the Korean phone number, which will result in wrong query results. ***'s attribution, the query result is Beijing. However, according to the embodiments of the present invention, the problem existing in the prior art that the local SIM card is used in a country other than the issuing country of the electronic terminal cannot be accurately identified.

在步骤S102,当满足以下条件之一时,将所述电子终端的发行国家确定为第一电话号码所属的国家:第一电话号码的特征信息满足所述电子终端的发行国家对电话号码的特定要求;所述电子终端处于非国际漫游状态且处于所述电子终端的发行国家。In step S102, when one of the following conditions is met, the country of issuance of the electronic terminal is determined as the country to which the first phone number belongs: the feature information of the first phone number satisfies the specific requirements for the phone number of the country of issuance of the electronic terminal ; the electronic terminal is in a non-international roaming state and is in the issuing country of the electronic terminal.

作为示例,所述特定要求可包括以下项之中的至少一项:电话号码的位数为特定位数、电话号码的特定位置处的数字在对应的特定范围内。例如,中国对手机号码的特定要求可为:位数为11位,前两位数字的范围应在13~19之间。As an example, the specific requirement may include at least one of the following items: the number of digits of the phone number is a specific number, and the digits at a specific position of the phone number are within a corresponding specific range. For example, China's specific requirements for mobile phone numbers can be as follows: the number of digits is 11, and the range of the first two digits should be between 13 and 19.

在步骤S103,确定第一电话号码的特征信息是否满足所述电子终端的发行国家对电话号码的特定要求,其中,当确定满足所述特定要求时,将所述电子终端的发行国家确定为第一电话号码所属的国家;当确定不满足所述特定要求时,确定所述电子终端是否处于国际漫游状态,并当所述电子终端处于非国际漫游状态时,将所述电子终端当前所处的国家确定为第一电话号码所属的国家。In step S103, it is determined whether the characteristic information of the first telephone number satisfies the specific requirement for the telephone number of the issuing country of the electronic terminal, wherein, when it is determined that the specific requirement is satisfied, the issuing country of the electronic terminal is determined to be the first telephone number. A country to which the phone number belongs; when it is determined that the specific requirement is not met, determine whether the electronic terminal is in an international roaming state, and when the electronic terminal is in a non-international roaming state, change the current location of the electronic terminal to the The country is determined as the country to which the first telephone number belongs.

在另一实施例中,当由于接收到用于显示关于第一电话号码的通话记录的用户操作而需要确定第一电话号码的归属地时,基于第一电话号码的特征信息和/或所述电子终端的特征信息来确定第一电话号码所属的国家的步骤可包括步骤S201、S202、S203之中的至少一项:In another embodiment, when the attribution of the first phone number needs to be determined due to receiving a user operation for displaying a call record related to the first phone number, based on the feature information of the first phone number and/or the The step of determining the country to which the first phone number belongs by using the feature information of the electronic terminal may include at least one of steps S201, S202, and S203:

在步骤S201,当所述电子终端产生所述通话记录时处于非国际漫游状态且不处于所述电子终端的发行国家时,将所述电子终端产生所述通话记录时所处的国家确定为第一电话号码所属的国家。In step S201, when the electronic terminal is in a non-international roaming state and is not in the issuing country of the electronic terminal when the call record is generated, the country where the electronic terminal is when the call record is generated is determined as the first country The country to which a phone number belongs.

在步骤S202,当满足以下条件之一时,将所述电子终端的发行国家确定为第一电话号码所属的国家:第一电话号码的特征信息满足所述电子终端的发行国家对电话号码的特定要求;所述电子终端当前处于国际漫游状态;所述电子终端产生所述通话记录时处于非国际漫游状态且处于所述电子终端的发行国家。In step S202, the issuing country 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 satisfies the specific requirements of the issuing country of the electronic terminal for the telephone number ; the electronic terminal is currently in an international roaming state; the electronic terminal is in a non-international roaming state when the call record is generated and is in the issuing country of the electronic terminal.

在步骤S203,确定第一电话号码的特征信息是否满足所述电子终端的发行国家对电话号码的特定要求,其中,当确定满足所述特定要求时,将所述电子终端的发行国家确定为第一电话号码所属的国家;当确定不满足所述特定要求时,确定所述电子终端产生所述通话记录时是否处于国际漫游状态,并当所述电子终端产生所述通话记录时处于非国际漫游状态时,将所述电子终端产生所述通话记录时所处的国家确定为第一电话号码所属的国家。In step S203, it is determined whether the characteristic information of the first telephone number satisfies the specific requirement of the 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 to be the first telephone number. A country to which the phone number belongs; when it is determined that the specific requirement is not met, determine whether the electronic terminal is in an international roaming state when the call record is generated, and is in non-international roaming when the electronic terminal generates the call record In the state, the country where the electronic terminal is located when the call record is generated is determined as the country to which the first phone number belongs.

根据本发明的示例性实施例,能够有效降低到其他国家后之前的通话记录显示错误的概率。例如,能够避免如下问题:手机在中国时产生的关于中国电话号码的通话记录,到国外后再显示该通话记录时如果使用手机当前所处的国家的号码查询数据库进行查询则会得到错误的查询结果。According to the exemplary embodiment of the present invention, it is possible to effectively reduce the probability that the previous call records show errors after going to other countries. For example, the following problems can be avoided: the call records about Chinese phone numbers generated when the mobile phone is in China, and when the call records are displayed after going abroad, if you use the number query database of the country where the mobile phone is currently located, you will get an incorrect query. result.

图2示出根据本发明示例性实施例的用于电子终端的确定电话号码的归属地的设备的框图。FIG. 2 shows a block diagram of an apparatus for determining the attribution of a phone number for an electronic terminal according to an exemplary embodiment of the present invention.

如图2所示,根据本发明示例性实施例的用于电子终端的确定电话号码的归属地的设备包括:国际区号确定单元10和归属地确定单元20。As shown in FIG. 2 , the apparatus for determining the attribution of a telephone number of an electronic terminal according to an exemplary embodiment of the present invention includes: an international area code determination unit 10 and an attribution determination unit 20 .

具体说来,国际区号确定单元10用于当需要确定第一电话号码的归属地时,确定第一电话号码是否包括国际区号。Specifically, the international area code determining unit 10 is configured to determine whether the first telephone number includes the international area code when the attribution of the first telephone number needs to be determined.

归属地确定单元20用于当第一电话号码不包括国际区号时,基于第一电话号码的特征信息和/或所述电子终端的特征信息来确定第一电话号码的归属地。The attribution determination unit 20 is configured to determine the attribution of the first telephone number based on characteristic information of the first telephone number and/or characteristic information of the electronic terminal when the first telephone number does not include an international area code.

作为示例,所述电子终端的特征信息可包括:所述电子终端的位置特征信息。As an example, the feature information of the electronic terminal may include: location feature information of the electronic terminal.

作为示例,所述电子终端的位置特征信息可包括以下项之中的至少一项:所述电子终端的发行国家(即,所述电子终端被发行到的国家)、所述电子终端当前所处的国家、所述电子终端是否处于国际漫游状态。As an example, the location feature information of the electronic terminal may include at least one of the following items: the issuing country of the electronic terminal (that is, the country to which the electronic terminal is issued), the current location of the electronic terminal country, and whether the electronic terminal is in an international roaming state.

作为示例,可通过下述方式确定所述电子终端的发行国家:基于所述电子终端的型号信息确定所述电子终端的发行国家。应该理解,也可通过其他适当的方式确定所述电子终端的发行国家。As an example, the issuing country of the electronic terminal may be determined by: determining the issuing country of the electronic terminal based on the model information of the electronic terminal. It should be understood that the issuing country of the electronic terminal may also be determined in other appropriate ways.

作为示例,可通过各种适当的方式确定所述电子终端当前所处的国家,例如,可通过LBS基站定位方式和/或GPS定位方式。As an example, the country where the electronic terminal is currently located may be determined through various appropriate methods, for example, the LBS base station positioning method and/or the GPS positioning method may be used.

作为示例,可通过各种适当的方式确定所述电子终端是否处于国际漫游状态,例如,可基于所述电子终端的SIM卡的所属国与所述电子终端当前所处的国家是否一致,来判断所述电子终端是否处于国际漫游状态;或者,可基于所述电子终端接收到的关于国际漫游的通知信息,来判断所述电子终端是否处于国际漫游状态。As an example, whether the electronic terminal is in an international roaming state can be determined in various appropriate ways. For example, it can be determined based on whether the country to which the SIM card of the electronic terminal belongs is the same as the country where the electronic terminal is currently located. Whether the electronic terminal is in an international roaming state; or, it can 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 characteristic information of the first phone number may include at least one of the following items: digits of the first phone number, digits at a specific position of the first phone number.

作为示例,归属地确定单元20可基于第一电话号码的特征信息和/或所述电子终端的特征信息来确定第一电话号码所属的国家(即,第一电话号码的所属国),并基于确定的国家来查询第一电话号码的归属地。进一步地,作为示例,归属地确定单元20可使用与确定的国家对应的号码查询数据库来查询第一电话号码的归属地。As an example, the home determination unit 20 may determine the country to which the first phone number belongs (ie, 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, and based on the feature information of the first phone number and/or the feature information of the electronic terminal Determine the country to query the attribution of the first phone number. Further, as an example, the attribution determination unit 20 may use a number query database corresponding to the determined country to query the attribution of the first phone number.

作为示例,根据本发明示例性实施例的用于电子终端的确定电话号码的归属地的设备还可包括:判断单元(未示出),判断单元用于判断是否需要确定第一电话号码的归属地,其中,当接收到使用第一电话号码发起的呼叫请求或用于显示关于第一电话号码的通话记录的用户操作时,判断为需要确定第一电话号码的归属地。As an example, the device for determining the attribution of a phone number for an electronic terminal according to an exemplary embodiment of the present invention may further include: a judging unit (not shown) for judging whether it is necessary to determine the attribution of the first phone number wherein, when a call request initiated by using the first phone number or a user operation for displaying a call record about the first phone number is received, it is determined that the attribution of the first phone number needs to be determined.

作为示例,根据本发明示例性实施例的用于电子终端的确定电话号码的归属地的设备还可包括:输出单元(未示出),输出单元用于输出确定的第一电话号码的归属地。As an example, the apparatus for determining the attribution of a phone number for an electronic terminal according to an exemplary embodiment of the present invention may further include: an output unit (not shown) configured to output the determined attribution of the first phone number .

作为示例,当不具有与确定的国家对应的号码查询数据库时,归属地确定单元20不对第一电话号码的归属地进行查询和/或输出单元不输出第一电话号码的归属地。As an example, when there is no number query database corresponding to the determined country, the attribution determination unit 20 does not query the attribution of the first telephone number and/or the output unit does not output the attribution of the first telephone number.

在一个实施例中,当由于接收到使用第一电话号码发起的呼叫请求而需要确定第一电话号码的归属地时,归属地确定单元20可执行以下操作之中的至少一项:In one embodiment, when the attribution of the first telephone number needs to be determined due to the receipt of a call request initiated by using the first telephone number, the attribution determination unit 20 may perform at least one of the following operations:

归属地确定单元20当所述电子终端处于非国际漫游状态且不处于所述电子终端的发行国家时,将所述电子终端当前所处的国家确定为第一电话号码所属的国家;When the electronic terminal is in a non-international roaming state and is not in the issuing country of the electronic terminal, the attribution determination unit 20 determines the country where the electronic terminal is currently located as the country to which the first phone number belongs;

当满足以下条件之一时,归属地确定单元20将所述电子终端的发行国家确定为第一电话号码所属的国家:第一电话号码的特征信息满足所述电子终端的发行国家对电话号码的特定要求;所述电子终端处于非国际漫游状态且处于所述电子终端的发行国家;When one of the following conditions is satisfied, the attribution determination unit 20 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 satisfies the specificity of the issuing country of the electronic terminal on the telephone number requirements; the electronic terminal is in a non-international roaming state and is in the country of issuance of the electronic terminal;

归属地确定单元20确定第一电话号码的特征信息是否满足所述电子终端的发行国家对电话号码的特定要求,其中,当确定满足所述特定要求时,将所述电子终端的发行国家确定为第一电话号码所属的国家;当确定不满足所述特定要求时,确定所述电子终端是否处于国际漫游状态,并当所述电子终端处于非国际漫游状态时,将所述电子终端当前所处的国家确定为第一电话号码所属的国家。The attribution determination unit 20 determines whether the characteristic information of the first telephone number satisfies the specific requirements of the issuing country of the electronic terminal for the telephone number, wherein, when it is determined that the specific requirements are satisfied, the issuing country of the electronic terminal is determined as The country to which the first phone number belongs; when it is determined that the specific requirement is not met, determine whether the electronic terminal is in an international roaming state, and when the electronic terminal is in a non-international roaming state, determine the current location of the electronic terminal The country is determined as the country to which the first phone number belongs.

在另一实施例中,当由于接收到用于显示关于第一电话号码的通话记录的用户操作而需要确定第一电话号码的归属地时,归属地确定单元20可执行以下操作之中的至少一项:In another embodiment, when the attribution of the first phone number needs to be determined due to the reception of a user operation for displaying a call log about the first phone number, the attribution determination unit 20 may perform at least one of the following operations One:

归属地确定单元20当所述电子终端产生所述通话记录时处于非国际漫游状态且不处于所述电子终端的发行国家时,将所述电子终端产生所述通话记录时所处的国家确定为第一电话号码所属的国家;When the electronic terminal is in a non-international roaming state and is not in the issuing country of the electronic terminal when the call record is generated, the attribution determination unit 20 determines the country where the electronic terminal is located when the call record is generated as: the country to which the first telephone number belongs;

当满足以下条件之一时,归属地确定单元20将所述电子终端的发行国家确定为第一电话号码所属的国家:第一电话号码的特征信息满足所述电子终端的发行国家对电话号码的特定要求;所述电子终端当前处于国际漫游状态;所述电子终端产生所述通话记录时处于非国际漫游状态且处于所述电子终端的发行国家;When one of the following conditions is satisfied, the attribution determination unit 20 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 satisfies the specificity of the issuing country of the electronic terminal on the telephone number requirements; the electronic terminal is currently in an international roaming state; the electronic terminal is in a non-international roaming state when the call record is generated and is in the issuing country of the electronic terminal;

归属地确定单元20确定第一电话号码的特征信息是否满足所述电子终端的发行国家对电话号码的特定要求,其中,当确定满足所述特定要求时,将所述电子终端的发行国家确定为第一电话号码所属的国家;当确定不满足所述特定要求时,确定所述电子终端产生所述通话记录时是否处于国际漫游状态,并当所述电子终端产生所述通话记录时处于非国际漫游状态时,将所述电子终端产生所述通话记录时所处的国家确定为第一电话号码所属的国家。The attribution determination unit 20 determines whether the characteristic information of the first telephone number satisfies the specific requirements of the issuing country of the electronic terminal for the telephone number, wherein, when it is determined that the specific requirements are satisfied, the issuing country of the electronic terminal is determined as The country to which the first phone number belongs; when it is determined that the specific requirement is not met, determine whether the electronic terminal is in an international roaming state when the call record is generated, and is in a non-international state when the electronic terminal generates the call record In the roaming state, the country where the electronic terminal is located when the call record is generated is determined as the country to which the first phone number belongs.

应该理解,根据本发明示例性实施例的用于电子终端的确定电话号码的归属地的设备所执行的具体处理已经参照图1进行了详细描述,这里将不再赘述相关细节。It should be understood that the specific processing performed by the device for determining the attribution of a phone number of an electronic terminal according to an exemplary embodiment of the present invention has been described in detail with reference to FIG. 1 , and the relevant details will not be repeated here.

此外,应该理解,根据本发明示例性实施例的用于电子终端的确定电话号码的归属地的设备中的各个单元可被实现硬件组件和/或软件组件。本领域技术人员根据限定的各个单元所执行的处理,可以例如使用现场可编程门阵列(FPGA)或专用集成电路(ASIC)来实现各个单元。In addition, it should be understood that each unit in the apparatus for determining the attribution of a phone number for an electronic terminal according to an exemplary embodiment of the present invention may be implemented as hardware components and/or software components. Those skilled in the art can implement each unit by using, for example, a Field Programmable Gate Array (FPGA) or an Application Specific Integrated Circuit (ASIC) according to the defined processing performed by each unit.

根据本发明的示例性实施例的计算机可读存储介质,存储有当被处理器执行时使得处理器执行上述示例性实施例的用于电子终端的确定电话号码的归属地的方法的计算机程序。该计算机可读存储介质是可存储由计算机系统读出的数据的任意数据存储装置。计算机可读存储介质的示例包括:只读存储器、随机存取存储器、只读光盘、磁带、软盘、光数据存储装置和载波(诸如经有线或无线传输路径通过互联网的数据传输)。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 above-described method for determining the attribution of a phone number for an electronic terminal. The computer-readable storage medium is any data storage device that can store data read by a computer system. Examples of computer-readable storage media include read-only memory, random-access memory, optical disks, magnetic tapes, floppy disks, optical data storage devices, and carrier waves (such as data transmission over the Internet via wired or wireless transmission paths).

根据本发明的示例性实施例的电子终端包括:处理器(未示出)和存储器(未示出),其中,存储器存储有计算机程序,当所述计算机程序被处理器执行时,实现如上述示例性实施例的用于电子终端的确定电话号码的归属地的方法。An 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, and when the computer program is executed by the processor, realizes the above-mentioned A method of determining the attribution of a phone number for an electronic terminal of an exemplary embodiment.

虽然已表示和描述了本发明的一些示例性实施例,但本领域技术人员应该理解,在不脱离由权利要求及其等同物限定其范围的本发明的原理和精神的情况下,可以对这些实施例进行修改。While a few exemplary embodiments of this invention have been shown and described, those skilled in the art will appreciate that these Examples are modified.

Claims (16)

1. A method for an electronic terminal to determine a home location of a phone number, 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 phone number does not include the international area code, determining a home of the first phone number based on the feature information of the first phone number and/or the feature information of the electronic terminal.
2. The method of claim 1, wherein the determining the home 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: determining 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, and inquiring a home location of the first telephone number based on the determined country;
and/or the characteristic information of the electronic terminal comprises: the position characteristic information of the electronic terminal;
and/or the feature information of the first phone number comprises at least one of the following items: the number of digits of the first telephone number, the number at a particular location of the first telephone number;
and/or, the method further comprises: outputting the determined home location of the first telephone number;
and/or, the method further comprises: and judging whether the attribution of the first telephone number needs to be determined, wherein when a call request initiated by using the first telephone number or a user operation for displaying a call record related to the first telephone number is received, the attribution of the first telephone number needs to be determined.
3. The method of claim 2, wherein querying the home of the first phone number based on the determined country comprises: querying a home location of the first phone number using a number query database corresponding to the determined country;
and/or the position characteristic information of the electronic terminal comprises at least one of the following items: the issuing country of the electronic terminal, the current country of the electronic terminal, and whether the electronic terminal is in an international roaming state.
4. The method of claim 3, wherein the method further comprises: when the number inquiry database corresponding to the determined country is not available, not inquiring the attribution of the first telephone number and/or not outputting the attribution of the first telephone number;
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. The method of claim 3, wherein when it is necessary to determine a home of the first phone number due to receipt of 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 comprises:
when the electronic terminal is in a non-international roaming state and is not in an issuing country of the electronic terminal, determining a country in which the electronic terminal is currently located as a country to which a first telephone number belongs;
and/or, when one of the following conditions is satisfied, determining 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 requirement of the issuing country of the electronic terminal on the telephone number; the electronic terminal is in a non-international roaming state and in an 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 as the country to which the first telephone number belongs; and when the specific requirement is determined not to be 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. The method of claim 3, wherein when it is necessary to determine the home of the first phone number due to receiving a user operation for displaying a call record with respect to 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 comprises:
when the electronic terminal is in a non-international roaming state and is not in the issuing country of the electronic terminal when generating the call record, determining the country in which the electronic terminal generates the call record as the country to which the first telephone number belongs;
and/or, when one of the following conditions is satisfied, determining 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 requirement 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 generating the call record;
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 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 when the call record is generated, and when the electronic terminal is in a non-international roaming state when the call record is generated, determining the country in which the electronic terminal generates the call record as the country to which the first telephone number belongs.
7. The method of claim 5 or 6, wherein the specific requirements comprise at least one of: the number of digits of the telephone number is a specific number of digits, and the number at a specific position of the telephone number is within a corresponding specific range.
8. An apparatus for determining a home of a phone 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 which determines a home location of the first phone number based on the feature information of the first phone number and/or the feature information of the electronic terminal when the first phone number does not include the international area code.
9. The apparatus according to claim 8, wherein the home location determining unit determines a 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 inquires the home location of the first phone number based on the determined country;
and/or the characteristic information of the electronic terminal comprises: the position characteristic information of the electronic terminal;
and/or the feature information of the first phone number comprises at least one of the following items: the number of digits of the first telephone number, the number at a particular location of the first telephone number;
and/or, the apparatus further comprises: an output unit that outputs the determined attribution of the first phone number;
and/or, the apparatus further comprises: and a judging unit which judges whether or not the attribution of the first telephone number needs to be determined, wherein when a call request initiated by using the first telephone number or a user operation for displaying a call record related to the first telephone number is received, the attribution of the first telephone number needs to be determined.
10. The apparatus of claim 9, wherein the home determination unit queries a home of the first phone number using a number query database corresponding to the determined country;
and/or the position characteristic information of the electronic terminal comprises at least one of the following items: the issuing country of the electronic terminal, the current country of the electronic terminal, 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 phone number and/or the outputting unit does not output the home location of the first phone 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 it is desired to determine the home of the first phone number due to receipt of a call request initiated using the first phone number,
the attribution determining unit determines the country where the electronic terminal is currently located as the country to which the first telephone number belongs when the electronic terminal is in a non-international roaming state and is not in the issuing country of the electronic terminal;
and/or, the attribution determination unit determines 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 requirement of the issuing country of the electronic terminal on the telephone number; the electronic terminal is in a non-international roaming state and in an issuing country of the electronic terminal;
and/or, the attribution determining unit determines whether the feature information of the first telephone number satisfies 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 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 determined not to be 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 of the first phone number due to receiving a user operation for displaying a call record with respect to the first phone number,
the attribution determining unit determines the country where the electronic terminal generates the call record as the country to which the first telephone number belongs when the electronic terminal is in a non-international roaming state and is not in the issuing country of the electronic terminal when the call record is generated;
and/or, the attribution determination unit determines 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 requirement 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 generating the call record;
and/or, the attribution determining unit determines whether the feature information of the first telephone number satisfies 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 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 when the call record is generated, and when the electronic terminal is in a non-international roaming state when the call record is generated, determining the country in which the electronic terminal generates the call record as the country to which the first telephone number belongs.
14. The apparatus of claim 12 or 13, wherein the specific requirements comprise at least one of: the number of digits of the telephone number is a specific number of digits, and the number at a specific position of the telephone number is within a corresponding specific range.
15. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out a method for determining a home of a telephone number for an electronic terminal according to 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 the processor, implements a method for determining a home location of a telephone number for an electronic terminal according to any one of claims 1 to 7.
CN202010608229.9A 2020-06-29 2020-06-29 Method and device for determining the attribution of a telephone number for an 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 device for determining the attribution of a telephone number for an 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 device for determining the attribution of a telephone number for an electronic terminal

Publications (2)

Publication Number Publication Date
CN111836249A true CN111836249A (en) 2020-10-27
CN111836249B 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 device for determining the attribution of a telephone number for an electronic terminal

Country Status (1)

Country Link
CN (1) CN111836249B (en)

Citations (7)

* 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
US20090197621A1 (en) * 2008-02-01 2009-08-06 Research In Motion Limited System and method for displaying the geographic location associated with a phone call received on a phone-equipped mobile device
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 method for determining a target number and a mobile terminal
CN106506777A (en) * 2016-12-06 2017-03-15 北京奇虎科技有限公司 Intelligent terminal and system address book telephone number processing method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090197621A1 (en) * 2008-02-01 2009-08-06 Research In Motion Limited System and method for displaying the geographic location associated with a phone call received on a phone-equipped mobile device
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 method for determining a target number and a mobile terminal
CN106506777A (en) * 2016-12-06 2017-03-15 北京奇虎科技有限公司 Intelligent terminal and system address book telephone number processing method and device

Also Published As

Publication number Publication date
CN111836249B (en) 2023-04-21

Similar Documents

Publication Publication Date Title
US7454192B1 (en) Postal address validation using mobile telephone location information
CN101639359B (en) Method for navigation through mobile terminal and mobile terminal
CN111797073B (en) Database management method, electronic device, and computer-readable storage medium
JP2006501713A (en) Inquiries and delivery methods for information related to mobile stations
US20040203956A1 (en) Method and apparatus for providing wireless messaging
US9495384B2 (en) Making address book a source of latitude and longitude coordinates
EP3079085B1 (en) Information search dependent on the position and direction of a portable electronic device
US12063194B2 (en) Message reminding method, apparatus, control device and storage medium
CN104883457A (en) Telephone call method and device
WO2019100853A1 (en) Page query method, device, and electronic apparatus
CN113301203A (en) Method and device for updating historical information data based on address book
JP4421397B2 (en) COMMUNICATION SYSTEM, PORTABLE TERMINAL, AND COMMUNICATION METHOD
CN106507320B (en) A method for determining a target number and a mobile terminal
US9429641B2 (en) Location services
US20120179686A1 (en) Method for sorting and displaying data on a portable electronic device
CN111836249B (en) Method and device for determining the attribution of a telephone number for an electronic terminal
CN111954300B (en) Offline positioning method, device, equipment and storage medium
KR20050043148A (en) Method for searching telephone number according to the position in mobile communication terminal
CN107743151B (en) Content push method, device, mobile terminal and server
CN114143286B (en) Method and device for positioning target object and electronic equipment
CN114663179A (en) Delivery address confirmation method, device, terminal device and readable storage medium
CN110364160B (en) Method and device for executing voice command for electronic terminal
CN101605170B (en) Data searching method for mobile communication terminal, system and mobile communication terminal
CN107147774B (en) Method, terminal and storage device for recording and inquiring multi-time-zone communication information
CA2711038C (en) Making address book a source of latitude and longitude coordinates

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