CN106507320B - A kind of the determination method and mobile terminal of destination number - Google Patents

A kind of the determination method and mobile terminal of destination number Download PDF

Info

Publication number
CN106507320B
CN106507320B CN201610932152.4A CN201610932152A CN106507320B CN 106507320 B CN106507320 B CN 106507320B CN 201610932152 A CN201610932152 A CN 201610932152A CN 106507320 B CN106507320 B CN 106507320B
Authority
CN
China
Prior art keywords
short message
country
mobile terminal
message receiver
target
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
CN201610932152.4A
Other languages
Chinese (zh)
Other versions
CN106507320A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201610932152.4A priority Critical patent/CN106507320B/en
Publication of CN106507320A publication Critical patent/CN106507320A/en
Application granted granted Critical
Publication of CN106507320B publication Critical patent/CN106507320B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/26Devices for calling a subscriber
    • H04M1/27Devices whereby a plurality of signals may be stored simultaneously
    • H04M1/274Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc
    • H04M1/2745Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips
    • H04M1/27485Appending a prefix to or inserting a pause into a dialling sequence

Landscapes

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

Abstract

The present invention relates to mobile communication fields, provide the determination method and mobile terminal of a kind of destination number.The embodiment of the present invention, by judging the country where whether the original number of the short message addressee belongs to the ownership place of the mobile terminal number, and whether mobile terminal is in international roaming state, when the country where the ownership place for not belonging to the mobile terminal number and be in international roaming state when, then according to the relativeness between the digit of the original number of short message addressee and the regulation digit of the Mobile Directory Number of roaming place country, determine the destination number of short message addressee, so that user is in these cases, without adding the prefix of the original number of short message addressee manually, mobile terminal can intelligence automatic addition prefix, it is simple and efficient, save the operating procedure of user, it avoids adding manually cumbersome, the short message for promoting user sends experience.

Description

Target number determination method and mobile terminal
Technical Field
The invention relates to the technical field of mobile communication, in particular to a method for determining a target number and a mobile terminal thereof.
Background
Along with the social and economic development, the tourism and work opportunities are more and more, people often need to contact with domestic family or friends of the country during the tourism or work, and the short message is a common communication mode and is very convenient to operate. However, when we are abroad, if the domestic SIM card is still used, the SIM card is in an international roaming state, and is registered in a local roaming network of the country. When a user needs to send a short message to a locally registered mobile phone number, an international prefix and a country code are manually added to serve as a prefix of the number, otherwise, the sent short message is sent to a number belonging to an area to which the SIM card belongs by default, namely, the number is sent to a corresponding number in China, and therefore the short message cannot be correctly sent to a target address.
Similarly, when we want to send short messages to users in other countries or regions in China, the prefixes need to be added manually, and intelligent automatic prefix adding cannot be achieved. In many cases, however, we may not know what international prefix and country code should be used, and also need to try to make a query and manually add a prefix to the number of the recipient of the short message to make the transmission successful. The operation of the user is very complicated, the short message sending efficiency of the user is influenced, the user does not know whether the searched international prefix and the country code are correct or not and whether the short message is successfully sent to the target receiver or not, the short message using experience of the user is greatly reduced, and unnecessary trouble is brought to the user.
Disclosure of Invention
The embodiment of the invention provides a method for determining a target number, which aims to solve the problem that the number of a receiver sent by a short message in the prior art cannot intelligently and automatically add a prefix.
In a first aspect, a method for determining a destination number is provided, where the method is applied to a mobile terminal, and includes:
receiving an original number of a short message receiver input by a user;
acquiring the position information of the mobile terminal and the attribution information of the mobile terminal number;
judging whether the original number of the short message receiver belongs to the country or the region where the mobile terminal number belongs;
if the original number of the short message receiver does not belong to the country or the region where the mobile terminal number belongs, judging whether the mobile terminal is in an international roaming state or not according to the position information of the mobile terminal and the attribution information of the mobile terminal number;
and if the mobile terminal is in the international roaming state, determining the target number of the short message receiver according to the relative relation between the digits of the original number of the short message receiver and the specified digits of the mobile phone number of the country of the roaming place.
In a second aspect, there is also provided a mobile terminal, including:
the receiving module is used for receiving an original number of a short message receiver input by a user;
the acquisition module is used for acquiring the position information of the mobile terminal and the attribution information of the mobile terminal number;
the attribution judging module is used for judging whether the original number of the short message receiver belongs to the country or the region where the mobile terminal number belongs;
the roaming judging module is used for judging whether the mobile terminal is in an international roaming state or not according to the position information of the mobile terminal and the attribution information of the mobile terminal number if the original number of the short message receiver does not belong to the country or the region where the attribution of the mobile terminal number is located;
and the first determining module is used for determining the target number of the short message receiver according to the relative relation between the digits of the original number of the short message receiver and the specified digits of the mobile phone number of the roaming country if the mobile terminal is in the international roaming state.
Therefore, in the embodiment of the invention, by judging whether the original number of the short message receiver belongs to the country or the region where the mobile terminal number belongs and whether the mobile terminal is in the international roaming state, when the original number does not belong to the country or the region where the mobile terminal number belongs and is in the international roaming state, the target number of the short message receiver is determined according to the relative relationship between the digit of the original number of the short message receiver and the specified digit of the mobile phone number of the country of the roaming region, so that a user does not need to manually add the prefix of the original number of the short message receiver under the above condition, the mobile terminal can intelligently and automatically add the prefix, the operation steps of the user are saved, the complexity of manual addition is avoided, and the short message sending experience of the user is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart illustrating a method for determining a target number according to a first embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for determining a destination number according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a mobile terminal according to a first embodiment of the present invention;
fig. 4 is a second schematic structural diagram of the mobile terminal according to the first embodiment of the present invention;
fig. 5 is a schematic structural diagram of a mobile terminal according to a second embodiment of the present invention;
fig. 6 is a schematic structural diagram of a mobile terminal according to a third embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
First embodiment
Referring to fig. 1, a flowchart of a method for determining a target number according to a first embodiment of the present invention is shown, where the method is applied to a mobile terminal, and includes:
step 101: and receiving the original number of the short message receiver input by the user.
In this step, in order to ensure the correctness of prefix addition and avoid repeated addition, the original number of the short message receiver input by the received user is regarded as the mobile phone number of the user without the prefix. For the user of the mobile phone in china, there are 11 mobile phone numbers, such as "138 x".
When the user A sends the short message to the user B belonging to other countries or regions except the attribution region of the user A, the user B is a short message receiver. The prefix that needs to be added includes two parts: international prefix and country code. The method added is as follows: "country prefix" + "country code" + "original number of user B".
The international prefix is also called international access code, which is a number that is required to be added and dialed to reflect the information of the user A home location when the user A sends a short message to the user B belonging to other countries or regions except the home location. The international prefix of China is "00" or "+", the United states is "011", and hong Kong is "001". For example, when a user a who belongs to the continental china sends a short message to a user B who belongs to a country or region other than the continental china, the international prefix to be added is 00 or "+".
The country code is a number which is required to be added and represents the information of the home location of the user B when the user A sends a short message to the user B belonging to other countries or regions except the home location. The country code of china is "86", the united states is "1", japan is "81", the uk is "44", taiwan is "886", and hong kong is "852". For example, when a user a who belongs to a country or region other than the united states sends a short message to a user B who belongs to the united states, the country code to be added is "1".
As can be seen, when the chinese angelica is a user a "138 × × belonging to continental china" and sends a short message to a user B belonging to the united states, prefixes to be added are the international prefix "00" and the country code "1", that is, the finally used destination number is "001138 ×").
Step 102: and acquiring the position information of the mobile terminal and the attribution information of the mobile terminal number.
In this step, the current position information of the mobile terminal (i.e., the mobile terminal) can be obtained by using the global positioning system through the positioning function of the mobile terminal.
The home location information of the mobile terminal number (i.e. the local number) can be obtained by sending an inquiry request to the network server through the network, inquiring by the network server and returning an inquiry response, or by inquiring a database stored locally in the mobile terminal. The attribution information may include country, province, city information to which the number belongs.
Step 103: and judging whether the original number of the short message receiver belongs to the country or the region of the attribution place of the mobile terminal number.
In this step, for sending the short message, whether the original number of the short message recipient belongs to the country or the region where the mobile terminal number belongs, that is, whether the original number of the short message recipient belongs to the same country or the same region as the mobile terminal number belongs to, will affect the composition of the target number when sending the short message. If the two types of the data belong to the same country or region, the prefix is not needed; if the mobile terminal does not belong to the same country or region, an international prefix and a country code are required to be added as prefixes. Therefore, it is necessary to determine the location of the home before automatically adding a prefix to the user.
After obtaining the home information of the mobile terminal number, the specific format of the home mobile phone number, such as the specified number of digits of the home mobile phone number, the number field range, etc., can be inquired.
For example, if the location of the mobile terminal number is the continental china, the specific format of the mobile phone number in continental china can be found as follows: the specified number of bits is 11 bits, the China telecom is No. 130, No. 132, No. 155, No. 156, No. 185, No. 186, No. 176, the China Mobile is No. 134, No. 139, No. 150, No. 152, No. 157, No. 159, No. 182, No. 187, No. 188, No. 178, and the China telecom is No. 133, No. 153, No. 180, No. 181, No. 189, No. 177. If the original number of the short message receiver input by the user does not conform to the specific format of the mobile phone number of the continental China, the attribution of the original number of the short message receiver is judged to be not the continental China, namely, the attribution of the original number of the short message receiver does not belong to the same country or region as the attribution of the mobile terminal number.
Step 104: if the original number of the short message receiver does not belong to the country or the region where the mobile terminal number belongs, whether the mobile terminal is in the international roaming state or not is judged according to the position information of the mobile terminal and the attribution information of the mobile terminal number.
In this step, when the original number of the short message recipient does not belong to the country or region where the mobile terminal number belongs, that is, the original number of the short message recipient belongs to the same country or region as the mobile terminal number, different intelligent prefix adding methods can be adopted according to different situations of whether the original number of the short message recipient and the mobile terminal number belong to the same country or region.
If the country of the mobile terminal and the country of the mobile terminal number are different countries or regions according to the current position information of the mobile terminal and the attribution information of the mobile terminal number, the mobile terminal is considered to be in an international roaming state; if the country or the region is the same, the user is not in the international roaming state.
Step 105: and if the mobile terminal is in the international roaming state, determining the target number of the short message receiver according to the relative relation between the digit of the original number of the short message receiver and the specified digit of the mobile phone number of the roaming country.
In this step, when the user works or travels abroad, that is, is in an international roaming state, generally, the most likely short message sending object is a relative friend in the country or a friend in a roaming country, and the possibility of sending the short message to a third country in the country and beyond the roaming country is very small. Therefore, in order to improve the efficiency of intelligent prefix adding, simple judgment can be carried out according to the digit of the original number of the short message receiver and the specified digit of the mobile phone number of the roaming country, if the digits are equal, the short message receiver of the user can be considered as the user of the roaming country instead of the third country, and the target number of the short message receiver can be determined according to the country code of the roaming country. Although the method of judging according to the number of bits has a certain error probability and sacrifices a certain degree of accuracy in exchange for improving the efficiency, the error probability is known to be within a range acceptable by a user according to a common theory. In the specific implementation, after the short message receiver of the user is judged to be the user of the country of the roaming place, the user can be required to confirm whether the information is accurate, and after the feedback of the user is received, whether the target number of the short message receiver is determined according to the country code of the country of the roaming place is determined.
In the embodiment of the invention, by judging whether the original number of the short message receiver belongs to the country or the region where the mobile terminal number belongs and whether the mobile terminal is in the international roaming state, when the original number does not belong to the country or the region where the mobile terminal number belongs and is in the international roaming state, the target number of the short message receiver is determined according to the relative relation between the digit of the original number of the short message receiver and the specified digit of the mobile phone number of the country of the roaming region, so that a user does not need to manually add the prefix of the original number of the short message receiver under the above condition, the mobile terminal can intelligently and automatically add the prefix, the operation steps of the user are saved, the complexity of manual addition is avoided, and the short message sending experience of the user is improved.
Second embodiment
Referring to fig. 2, a flowchart of a method for determining a target number according to a second embodiment of the present invention is shown, where the method is applied to a mobile terminal, and includes:
step 201: and receiving the original number of the short message receiver input by the user.
Step 202: and acquiring the position information of the mobile terminal and the attribution information of the mobile terminal number.
Step 203: and judging whether the original number of the short message receiver belongs to the country or the region of the attribution place of the mobile terminal number.
The steps 201 to 203 are the same as the corresponding steps in the first embodiment of the method for determining a target number, and are not described herein again.
Step 204: and if the original number of the short message receiver belongs to the country or the region of the attribution place of the mobile terminal number, taking the original number of the short message receiver as the target number of the short message receiver.
In this step, when the original number of the short message recipient belongs to the country or region where the mobile terminal number belongs, that is, the original number of the short message recipient belongs to the same country or region as the mobile terminal number, the original number of the short message recipient can be directly used as the target number for sending the short message without adding an international prefix and/or a country code, that is, without adding any prefix, no matter whether the mobile terminal is in a roaming state. For example, when the user a who belongs to the continental china roams to the united states and sends a short message to the friend user B (with the mobile phone number of 13312345678) who also belongs to the continental china, the mobile phone number 13312345678 of the user B can be directly used as the target number of the recipient of the short message.
Step 205: and if the original number of the short message receiver does not belong to the country or the region where the mobile terminal number belongs, judging whether the mobile terminal is in the international roaming state or not according to the position information of the mobile terminal and the attribution information of the mobile terminal number.
This step is the same as the corresponding step in the first embodiment of the method for determining a target number, and is not described herein again.
Step 206: and if the mobile terminal is not in the international roaming state, determining the target number of the short message receiver according to the name of the target country or region to which the original number of the short message receiver belongs.
In this step, when the mobile terminal is not in the international roaming state, it can be determined that the user is sending the short message to other users in other countries or regions in the home location, and at this time, the user is required to provide the name of the target country from which the short message is sent, and the mobile terminal system automatically queries the country code of the target country to replace the manual query process of the user.
The method for determining the target number of the short message receiver according to the name of the target country or region to which the attribution of the original number of the short message receiver belongs can be specifically realized by the following steps: receiving the name of a target country or region to which the attribution of the original number of the short message receiver input by a user belongs; acquiring a database storing mapping relations between names of countries or regions and country codes thereof, and inquiring the country codes corresponding to the names of target countries or regions in the database; and acquiring an international prefix of a home location of the mobile terminal number, and generating a target number of the short message receiver by combining a country code of a target country or region as a prefix of an original number of the short message receiver.
For example, when the angelica sinensis belongs to the user a in continental china and sends a short message to the user B belonging to hong kong in continental china, according to the above steps, when the user a inputs the 8-digit hong kong mobile phone number "9876 ×" of the user B, the mobile terminal system of the user a can only determine that the home location of the user B is different from that of the user a, but cannot further determine which country or region the home location of the user B is. At this time, if the system automatically matches the mobile phone number formats of the countries only by using the 8-digit number "9876 x" in order to determine the country to which the user B belongs, the efficiency is very low, and erroneous determination may occur. Therefore, the user can be provided with an input interface of the name of the target country for short message transmission, the target country for short message transmission is directly specified by the user, and then the system uses the inquired country code of the target country for final target number generation.
Step 207: if the mobile terminal is in the international roaming state, acquiring the digit of the original number of the short message receiver and the specified digit of the mobile phone number of the roaming country, and judging whether the two digits are equal.
In this step, when the mobile terminal is in the international roaming state, it can be determined that the user is in a country or region other than the home location, and the short message is sent to the country or third country of the roaming location. In order to improve the efficiency of intelligent prefix adding, simple judgment can be carried out according to the digit of the original number of the short message receiver and the specified digit of the mobile phone number of the roaming country, if the digits are equal, the short message receiver of the user is the user of the roaming country rather than the user of the third country in a high probability, and therefore the target number of the short message receiver can be determined according to the country code of the roaming country.
Step 208: and if so, acquiring the international prefix of the home location of the mobile terminal number and the country code of the country of the roaming location, and combining the international prefix and the country code as the prefix of the original number of the short message receiver to generate the target number of the short message receiver.
In this step, for example, if the user a who belongs to continental china roams to hong kong and sends a short message to the user B who belongs to hong kong, the user a inputs the 8-digit hong kong mobile phone number "9876 x" of the user B, and the system inquires that the specified digit of the mobile phone number of hong kong in the roaming place is 8 digits, that is, the digit of the number of the user B is equal to the digit of the number of hong kong in the roaming place, and both the digits are 8 digits, it can be considered that the user a sends the short message to hong kong in a high probability, and does not send the short message to other countries or regions except continental china and hong kong. Therefore, the international prefix to be added is the international prefix "00" of the continental china where the user a is located, and the country code to be added is the country code "852" of hong kong, and the two are combined to be a prefix, so that the destination number "008529876" of the short message recipient can be generated.
Step 209: if not, determining the target number of the short message receiver according to the name of the target country or region to which the original number of the short message receiver belongs.
In this step, if the number of digits of the original number of the short message recipient is not equal to the specified number of digits of the mobile phone number of the country of the roaming place, it can be considered that the original number of the short message recipient input by the user a is not the number of the home location of the user a, not the number of the roaming place, but the number of the third country. Therefore, as in step 206, in order to improve the query efficiency, the user may be provided with an input interface of the name of the target country to which the short message is sent, that is, the user directly specifies the target country or region to which the original number of the short message recipient belongs, and then the system uses the queried country code of the target country or region for generating the final target number. Therefore, the specific implementation method of determining the target number of the short message recipient according to the name of the target country or region to which the original number of the short message recipient belongs is the same as that in step 206, and is not described herein again.
The embodiment of the invention provides a method for generating the target number of the short message receiver under various attribution conditions and roaming conditions by judging whether the original number of the short message receiver belongs to the country or the region where the mobile terminal number belongs and whether the mobile terminal is in the international roaming condition, thereby not only ensuring the accuracy of prefix addition, but also paying attention to the improvement of efficiency, eliminating the trouble of prefix addition of users under various conditions and fully realizing the intellectualization and automation of target number generation.
Third embodiment
Referring to fig. 3, which is a schematic structural diagram of a mobile terminal 100 according to a first embodiment of the present invention, the mobile terminal includes: .
The receiving module 110 is configured to receive an original number of a short message recipient input by a user.
An obtaining module 120, configured to obtain location information of a mobile terminal and home location information of a mobile terminal number;
the attribution determining module 130 is connected to the receiving module 110 and the obtaining module 120, and is configured to determine whether the original number of the short message recipient belongs to a country or a region where the mobile terminal number belongs to.
And a roaming determining module 140, connected to the attribution determining module 130 and the obtaining module 120, configured to determine whether the mobile terminal is in an international roaming state according to the location information of the mobile terminal and the attribution information of the mobile terminal number if the original number of the short message recipient does not belong to the country or region where the mobile terminal number belongs to.
The first determining module 150 is connected to the roaming determining module 140 and the obtaining module 120, and configured to determine the destination number of the short message recipient according to a relative relationship between the digits of the original number of the short message recipient and the specified digits of the mobile phone number of the country of the roaming location if the mobile terminal is in the international roaming state.
In order to ensure the correctness of prefix addition and avoid repeated addition, the original number of the short message receiver input by the received user is regarded as the mobile phone number of the user without the prefix. For the user of the mobile phone in china, there are 11 mobile phone numbers, such as "138 x".
When the user A sends the short message to the user B belonging to other countries or regions except the attribution region of the user A, the user B is a short message receiver. The prefix that needs to be added includes two parts: international prefix and country code. The method added is as follows: "country prefix" + "country code" + "original number of user B".
The international prefix is also called international access code, which is a number that is required to be added and dialed to reflect the information of the user A home location when the user A sends a short message to the user B belonging to other countries or regions except the home location. The international prefix of China is "00" or "+", the United states is "011", and hong Kong is "001". For example, when a user a who belongs to the continental china sends a short message to a user B who belongs to a country or region other than the continental china, the international prefix to be added is 00 or "+".
The country code is a number which is required to be added and represents the information of the home location of the user B when the user A sends a short message to the user B belonging to other countries or regions except the home location. The country code of china is "86", the united states is "1", japan is "81", the uk is "44", taiwan is "886", and hong kong is "852". For example, when a user a who belongs to a country or region other than the united states sends a short message to a user B who belongs to the united states, the country code to be added is "1".
As can be seen, when the chinese angelica is a user a "138 × × belonging to continental china" and sends a short message to a user B belonging to the united states, prefixes to be added are the international prefix "00" and the country code "1", that is, the finally used destination number is "001138 ×").
The current position information of the mobile terminal (i.e. the local machine) can be acquired by a positioning function of the mobile terminal by using a global positioning system.
The home location information of the mobile terminal number (i.e. the local number) can be obtained by sending an inquiry request to the network server through the network, inquiring by the network server and returning an inquiry response, or by inquiring a database stored locally in the mobile terminal. The attribution information may include country, province, city information to which the number belongs.
For sending short messages, whether the original number of the short message receiver belongs to the country or the region where the number of the mobile terminal belongs, namely whether the original number of the short message receiver belongs to the same country or the same region as the mobile terminal, will influence the formation of the target number when sending short messages. If the two types of the data belong to the same country or region, the prefix is not needed; if the mobile terminal does not belong to the same country or region, an international prefix and a country code are required to be added as prefixes. Therefore, it is necessary to determine the location of the home before automatically adding a prefix to the user.
After obtaining the home information of the mobile terminal number, the specific format of the home mobile phone number, such as the specified number of digits of the home mobile phone number, the number field range, etc., can be inquired.
For example, if the location of the mobile terminal number is the continental china, the specific format of the mobile phone number in continental china can be found as follows: the specified number of bits is 11 bits, the China telecom is No. 130, No. 132, No. 155, No. 156, No. 185, No. 186, No. 176, the China Mobile is No. 134, No. 139, No. 150, No. 152, No. 157, No. 159, No. 182, No. 187, No. 188, No. 178, and the China telecom is No. 133, No. 153, No. 180, No. 181, No. 189, No. 177. If the original number of the short message receiver input by the user does not conform to the specific format of the mobile phone number of the continental China, the attribution of the original number of the short message receiver is judged to be not the continental China, namely, the attribution of the original number of the short message receiver does not belong to the same country or region as the attribution of the mobile terminal number.
When the original number of the short message receiver does not belong to the country or the region where the mobile terminal number belongs, namely the home location of the original number of the short message receiver and the home location of the mobile terminal number do not belong to the same country or region, different intelligent prefix adding methods can be adopted according to different situations of whether the original number of the short message receiver is in an international roaming state or not.
If the country of the mobile terminal and the country of the mobile terminal number are different countries or regions according to the current position information of the mobile terminal and the attribution information of the mobile terminal number, the mobile terminal is considered to be in an international roaming state; if the country or the region is the same, the user is not in the international roaming state.
When a user works or travels abroad, i.e., is in an international roaming state, generally, the most likely short message sending object is a friend of a relative in the country or a friend of a roaming country, and the possibility of sending the short message to a third country in the country and outside the roaming country is very small. Therefore, in order to improve the efficiency of intelligent prefix adding, simple judgment can be carried out according to the digit of the original number of the short message receiver and the specified digit of the mobile phone number of the roaming country, if the digits are equal, the short message receiver of the user can be considered as the user of the roaming country instead of the third country, and the target number of the short message receiver can be determined according to the country code of the roaming country. Although the method of judging according to the number of bits has a certain error probability and sacrifices a certain degree of accuracy in exchange for improving the efficiency, the error probability is known to be within a range acceptable by a user according to a common theory. In the specific implementation, after the short message receiver of the user is judged to be the user of the country of the roaming place, the user can be required to confirm whether the information is accurate, and after the feedback of the user is received, whether the target number of the short message receiver is determined according to the country code of the country of the roaming place is determined.
In the embodiment of the invention, by judging whether the original number of the short message receiver belongs to the country or the region where the mobile terminal number belongs and whether the mobile terminal is in the international roaming state, when the original number does not belong to the country or the region where the mobile terminal number belongs and is in the international roaming state, the target number of the short message receiver is determined according to the relative relation between the digit of the original number of the short message receiver and the specified digit of the mobile phone number of the country of the roaming region, so that a user does not need to manually add the prefix of the original number of the short message receiver under the above condition, the mobile terminal can intelligently and automatically add the prefix, the operation steps of the user are saved, the complexity of manual addition is avoided, and the short message sending experience of the user is improved.
Referring to fig. 4, based on fig. 3, the mobile terminal 100 further includes: a second determining module 160, connected to the roaming determining module 140, for determining the target number of the short message recipient according to the name of the target country or region to which the original number of the short message recipient belongs if the mobile terminal is not in the international roaming state; the third determining module 170, connected to the attribution judging module 130 and the receiving module 110, is configured to use the original number of the short message recipient as the target number of the short message recipient if the original number of the short message recipient belongs to the country or region where the mobile terminal number belongs to.
The first determining module 150 of the mobile terminal 100 further includes: a digit judging unit 151, configured to, if the mobile terminal is in an international roaming state, obtain a digit of an original number of a short message recipient and a specified digit of a mobile phone number of a roaming country, and judge whether the digits are equal to each other; a first determining unit 152, connected to the length determining unit 151, configured to, if the two numbers are equal, obtain an international prefix of a home location of the mobile terminal number and a country code of a country of a roaming location, and combine the international prefix and the country code to serve as a prefix of an original number of a short message recipient to generate a target number of the short message recipient; and a second determining unit 153, connected to the length determining unit 151, configured to determine, if the two numbers are not equal, the target number of the short message recipient according to the name of the target country or region to which the original number of the short message recipient belongs.
The second determination module 160 may further include (not shown in the figure): the country input unit is used for receiving the name of a target country or region to which the attribution place of the original number of the short message receiver input by the user belongs; the query unit is connected with the country input unit and used for acquiring a database storing the mapping relation between the name of each country or region and the country code thereof and querying the country code corresponding to the name of the target country or region in the database; and the number generating unit is connected with the query unit and used for acquiring the international prefix of the attribution of the mobile terminal number, and generating the target number of the short message receiver by combining the country code of the target country or region as the prefix of the original number of the short message receiver.
The second determining unit 153 may further include (not shown in the figure): the country input subunit is used for receiving the name of a target country or region to which the attribution of the original number of the short message receiver input by the user belongs; the inquiry subunit is connected with the country input subunit and used for acquiring a database storing the mapping relation between the name of each country or region and the country code thereof and inquiring the country code corresponding to the name of the target country or region in the database; and the number generation subunit is connected with the inquiry subunit and used for acquiring the international prefix of the attribution of the mobile terminal number, and generating the target number of the short message receiver by combining the country code of the target country or region as the prefix of the original number of the short message receiver.
When the original number of the short message receiver belongs to the country or the region where the mobile terminal number belongs, namely the home location of the original number of the short message receiver and the home location of the mobile terminal number belong to the same country or region, the original number of the short message receiver can be directly used as a target number for sending the short message without adding an international prefix and/or a country code no matter whether the mobile terminal is in a roaming state or not, namely without adding any prefix. For example, when the user a who belongs to the continental china roams to the united states and sends a short message to the friend user B (with the mobile phone number of 13312345678) who also belongs to the continental china, the mobile phone number 13312345678 of the user B can be directly used as the target number of the recipient of the short message.
When the mobile terminal is not in the international roaming state, the mobile terminal can judge that the user is in the attribution area to send the short message to other users in other countries or regions, at the moment, the user is required to provide the name of the target country for sending the short message, and the mobile terminal system automatically inquires the country code of the target country to replace the manual inquiry process of the user.
For example, when the angelica sinensis belongs to the user a in continental china and sends a short message to the user B belonging to hong kong in continental china, according to the above steps, when the user a inputs the 8-digit hong kong mobile phone number "9876 ×" of the user B, the mobile terminal system of the user a can only determine that the home location of the user B is different from that of the user a, but cannot further determine which country or region the home location of the user B is. At this time, if the system automatically matches the mobile phone number formats of the countries only by using the 8-digit number "9876 x" in order to determine the country to which the user B belongs, the efficiency is very low, and erroneous determination may occur. Therefore, the user can be provided with an input interface of the name of the target country for short message transmission, the target country for short message transmission is directly specified by the user, and then the system uses the inquired country code of the target country for final target number generation.
When the mobile terminal is in the international roaming state, the user can be judged to be in a country or a region other than the home location, and the short message is sent to the country or a third country of the roaming location. In order to improve the efficiency of intelligent prefix adding, simple judgment can be carried out according to the digit of the original number of the short message receiver and the specified digit of the mobile phone number of the roaming country, if the digits are equal, the short message receiver of the user is the user of the roaming country rather than the user of the third country in a high probability, and therefore the target number of the short message receiver can be determined according to the country code of the roaming country.
For example, if a user a who belongs to continental china roams to hong kong and sends a short message to a user B who belongs to hong kong, the user a inputs an 8-digit hong kong phone number "9876 ×") of the user B, and the system inquires that the specified digit of the mobile phone number of hong kong of the roaming place is 8 digits, that is, the digits of the number of the user B are equal to the digits of the number of hong kong of the roaming place and are 8 digits, the user a can be considered to send the short message to hong kong with a high probability instead of sending the short message to other countries or regions besides mainland china and hong kong. Therefore, the international prefix to be added is the international prefix "00" of the continental china where the user a is located, and the country code to be added is the country code "852" of hong kong, and the two are combined to be a prefix, so that the destination number "008529876" of the short message recipient can be generated.
If the digits of the original number of the short message receiver are not equal to the specified digits of the mobile phone number of the country of the roaming place, the original number of the short message receiver input by the user A is considered to be the number of the third country instead of the number of the home place of the user A and the number of the roaming place. Therefore, in order to improve the query efficiency, an input interface of the name of the target country for sending the short message can be provided for the user, namely, the target country or region to which the attribution of the original number of the short message receiver belongs is directly specified by the user, and then the system uses the queried country code of the target country or region for generating the final target number.
The embodiment of the invention provides a method for generating the target number of the short message receiver under various attribution conditions and roaming conditions by judging whether the original number of the short message receiver belongs to the country or the region where the mobile terminal number belongs and whether the mobile terminal is in the international roaming condition, thereby not only ensuring the accuracy of prefix addition, but also paying attention to the improvement of efficiency, eliminating the trouble of prefix addition of users under various conditions and fully realizing the intellectualization and automation of target number generation.
Fourth embodiment
Referring to fig. 5, a schematic structural diagram of a mobile terminal 500 according to a second embodiment of the present invention is shown, where the mobile terminal includes: at least one processor 501, memory 502, at least one network interface 504, and a user interface 503. The various components in the mobile terminal 500 are coupled together by a bus system 505. It is understood that the bus system 505 is used to enable connection communications between these components. The bus system 505 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 505 in FIG. 5.
The user interface 503 may include, among other things, keys, various acceleration sensors, particularly gravity sensors and gyroscopes.
It is to be understood that the memory 502 in embodiments of the present invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile memory may be a Read-only memory (ROM), a programmable Read-only memory (PROM), an erasable programmable Read-only memory (erasabprom, EPROM), an electrically erasable programmable Read-only memory (EEPROM), or a flash memory. The volatile memory may be a Random Access Memory (RAM) which functions as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (staticiram, SRAM), dynamic random access memory (dynamic RAM, DRAM), synchronous dynamic random access memory (syncronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced synchronous SDRAM (ESDRAM), synchronous link SDRAM (SLDRAM), and direct memory bus SDRAM (DRRAM). The memory 502 of the systems and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, the memory 502 stores the following elements, the location information of the mobile terminal and the attribution information of the mobile terminal number, the name of the target country or region to which the attribution of the original number of the short message recipient belongs, a database storing the mapping relationship between the name of each country or region and its country code, an executable module or a data structure, or a subset thereof, or an extended set thereof: an operating system 5021 and application programs 5022.
The operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application 5022 includes various applications, such as a media player (MediaPlayer), a Browser (Browser), and the like, for implementing various application services. The program for implementing the method according to the embodiment of the present invention may be included in the application program 5022.
In the embodiment of the present invention, the processor 501 is configured to receive an original number of a short message recipient input by a user by calling a program or an instruction stored in the memory 502, specifically, the program or the instruction stored in the application 5022; the processor 501 is configured to obtain location information of the mobile terminal and home location information of the mobile terminal number; the processor 501 is configured to determine whether the original number of the short message recipient belongs to a country or a region where the mobile terminal number belongs; if the original number of the short message recipient does not belong to the country or region where the mobile terminal number belongs, the processor 501 is configured to determine whether the mobile terminal is in an international roaming state according to the location information of the mobile terminal and the home location information of the mobile terminal number; if the mobile terminal is in the international roaming state, the processor 501 is configured to determine the target number of the short message recipient according to a relative relationship between the digits of the original number of the short message recipient and the specified digits of the mobile phone number of the roaming country.
The method disclosed by the above-mentioned embodiments of the present invention may be applied to the processor 501, or implemented by the processor 501. The processor 501 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 501.
The processor 501 may be a general-purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502 and completes the steps of the method in combination with the hardware.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Optionally, as another embodiment, the processor 501 is further configured to: and if the mobile terminal is not in the international roaming state, determining the target number of the short message receiver according to the name of the target country or region to which the attribution of the original number of the short message receiver belongs.
Optionally, as another embodiment, the processor 501 is further configured to: if the mobile terminal is in the international roaming state, acquiring the digit of the original number of the short message receiver and the specified digit of the mobile phone number of the roaming country, and judging whether the digits are equal; if so, acquiring the international prefix of the home location of the mobile terminal number and the country code of the country of the roaming location, and combining the international prefix and the country code as the prefix of the original number of the short message receiver to generate the target number of the short message receiver; if not, determining the target number of the short message receiver according to the name of the target country or region to which the attribution place of the original number of the short message receiver belongs.
Optionally, as another embodiment, the processor 501 is further configured to: receiving the name of a target country or region to which the attribution of the original number of the short message receiver input by the user belongs; acquiring a database storing mapping relations between names of countries or regions and country codes thereof, and inquiring the country code corresponding to the name of the target country or region in the database; and acquiring the international prefix of the attribution of the mobile terminal number, and generating the target number of the short message receiver by combining the country code of the target country or region as the prefix of the original number of the short message receiver.
Optionally, as another embodiment, the processor 501 is further configured to: and if the original number of the short message receiver belongs to the country or the region of the attribution place of the mobile terminal number, taking the original number of the short message receiver as the target number of the short message receiver.
The mobile terminal 500 can implement the processes implemented by the mobile terminal in the foregoing embodiments, and in order to avoid repetition, the detailed description is omitted here. By judging whether the original number of the short message receiver belongs to the country or the region where the mobile terminal number belongs and whether the mobile terminal is in the international roaming state, when the original number does not belong to the country or the region where the mobile terminal number belongs and is in the international roaming state, the target number of the short message receiver is determined according to the relative relation between the digit of the original number of the short message receiver and the specified digit of the mobile phone number of the country of the roaming region, so that a user does not need to manually add the prefix of the original number of the short message receiver under the above conditions, the mobile terminal can intelligently and automatically add the prefix, the operation steps of the user are simple and efficient, the complexity of manual addition is avoided, and the short message sending experience of the user is improved.
Fifth embodiment
Fig. 6 is a block diagram of the structure of a third embodiment of the mobile terminal of the present invention. Specifically, the mobile terminal 900 in fig. 6 may be a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), or a vehicle-mounted computer.
The mobile terminal 900 in fig. 6 includes Radio Frequency (RF) circuitry 910, memory 920, input unit 930, display unit 940, other components 950, processor 960, audio circuitry 970, wifi (wireless fidelity) module 980, and a power supply 990.
The input unit 930 may be used, among other things, to receive numeric or character information input by a user and to generate signal inputs related to user settings and function control of the mobile terminal 900. Specifically, in the embodiment of the present invention, the input unit 930 may include a touch panel 931. The touch panel 931, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 931 (for example, a user may operate the touch panel 931 by using a finger, a stylus pen, or any other suitable object or accessory), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 931 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 960, where the touch controller can receive and execute commands sent by the processor 960. In addition, the touch panel 931 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 931, the input unit 930 may also include other input devices 932, and the other input devices 932 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
Among other things, the display unit 940 may be used to display information input by the user or information provided to the user and various menu interfaces of the mobile terminal 900. The display unit 940 may include a display panel 941, and optionally, the display panel 941 may be configured in the form of an LCD or an organic light-emitting diode (OLED).
It should be noted that the touch panel 931 may overlay the display panel 941 to form a touch display screen, and when the touch display screen detects a touch operation on or near the touch display screen, the touch display screen transmits the touch operation to the processor 960 to determine the type of the touch event, and then the processor 960 provides a corresponding visual output on the touch display screen according to the type of the touch event.
The touch display screen comprises an application program interface display area and a common control display area. The arrangement modes of the application program interface display area and the common control display area are not limited, and can be an arrangement mode which can distinguish two display areas, such as vertical arrangement, left-right arrangement and the like. The application interface display area may be used to display an interface of an application. Each interface may contain at least one interface element such as an icon and/or widget desktop control for an application. The application interface display area may also be an empty interface that does not contain any content. The common control display area is used for displaying controls with high utilization rate, such as application icons like setting buttons, interface numbers, scroll bars, phone book icons and the like.
The processor 960 is a control center of the mobile terminal 900, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 900 and processes data by operating or executing software programs and/or modules stored in the first memory 921 and calling data stored in the second memory 922, thereby integrally monitoring the mobile terminal 900. Optionally, processor 960 may include one or more processing units.
In the embodiment of the present invention, the processor 960 is configured to receive an original number of a short message recipient input by a user by calling a software program and/or a module stored in the first memory 921 and/or data stored in the second memory 922; acquiring the position information of the mobile terminal and the attribution information of the mobile terminal number; judging whether the original number of the short message receiver belongs to the country or the region where the mobile terminal number belongs; if the original number of the short message receiver does not belong to the country or the region where the mobile terminal number belongs, judging whether the mobile terminal is in an international roaming state or not according to the position information of the mobile terminal and the attribution information of the mobile terminal number; and if the mobile terminal is in the international roaming state, determining the target number of the short message receiver according to the relative relation between the digits of the original number of the short message receiver and the specified digits of the mobile phone number of the country of the roaming place.
Optionally, the processor 960 is further configured to: and if the mobile terminal is not in the international roaming state, determining the target number of the short message receiver according to the name of the target country or region to which the attribution of the original number of the short message receiver belongs.
Optionally, the processor 960 is further configured to: if the mobile terminal is in the international roaming state, acquiring the digit of the original number of the short message receiver and the specified digit of the mobile phone number of the roaming country, and judging whether the digits are equal; if so, acquiring the international prefix of the home location of the mobile terminal number and the country code of the country of the roaming location, and combining the international prefix and the country code as the prefix of the original number of the short message receiver to generate the target number of the short message receiver; if not, determining the target number of the short message receiver according to the name of the target country or region to which the attribution place of the original number of the short message receiver belongs.
Optionally, the processor 960 is further configured to: receiving the name of a target country or region to which the attribution of the original number of the short message receiver input by the user belongs; acquiring a database storing mapping relations between names of countries or regions and country codes thereof, and inquiring the country code corresponding to the name of the target country or region in the database; and acquiring the international prefix of the attribution of the mobile terminal number, and generating the target number of the short message receiver by combining the country code of the target country or region as the prefix of the original number of the short message receiver.
Optionally, the processor 960 is further configured to: and if the original number of the short message receiver belongs to the country or the region of the attribution place of the mobile terminal number, taking the original number of the short message receiver as the target number of the short message receiver.
The mobile terminal 900 can implement the processes implemented by the mobile terminal in the foregoing embodiments, and in order to avoid repetition, the details are not described here.
According to the mobile terminal 900 provided by the embodiment of the invention, by judging whether the original number of the short message recipient belongs to the country or the region where the mobile terminal number belongs and whether the mobile terminal is in the international roaming state, when the original number does not belong to the country or the region where the mobile terminal number belongs and is in the international roaming state, the target number of the short message recipient is determined according to the relative relationship between the digits of the original number of the short message recipient and the specified digits of the mobile phone number of the country of the roaming region, so that a user does not need to manually add the prefix of the original number of the short message recipient under the above conditions, the mobile terminal can intelligently and automatically add the prefix, the operation steps of the user are simple and efficient, the complexity of manual addition is avoided, and the short message sending experience of the user is improved.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (9)

1. A method for determining a target number is applied to a mobile terminal, and is characterized by comprising the following steps:
receiving an original number of a short message receiver input by a user;
acquiring the position information of the mobile terminal and the attribution information of the mobile terminal number;
judging whether the original number of the short message receiver belongs to the country or the region where the mobile terminal number belongs;
if the original number of the short message receiver does not belong to the country or the region where the mobile terminal number belongs, judging whether the mobile terminal is in an international roaming state or not according to the position information of the mobile terminal and the attribution information of the mobile terminal number;
if the mobile terminal is in the international roaming state, determining the target number of the short message receiver according to the relative relation between the digits of the original number of the short message receiver and the specified digits of the mobile phone number of the country of the roaming place; wherein,
if the mobile terminal is in the international roaming state, determining the target number of the short message recipient according to the relative relationship between the digits of the original number of the short message recipient and the specified digits of the mobile phone number of the country of the roaming place, wherein the determining comprises the following steps:
if the mobile terminal is in the international roaming state, acquiring the digit of the original number of the short message receiver and the specified digit of the mobile phone number of the roaming country, and judging whether the digits are equal; if so, acquiring the international prefix of the home location of the mobile terminal number and the country code of the country of the roaming location, and combining the international prefix and the country code as the prefix of the original number of the short message receiver to generate the target number of the short message receiver; if not, determining the target number of the short message receiver according to the name of the target country or region to which the attribution place of the original number of the short message receiver belongs.
2. The method of claim 1, wherein after the step of determining whether the mobile terminal is in an international roaming state, further comprising:
and if the mobile terminal is not in the international roaming state, determining the target number of the short message receiver according to the name of the target country or region to which the attribution of the original number of the short message receiver belongs.
3. The method as claimed in claim 1 or 2, wherein the step of determining the target number of the short message recipient according to the name of the target country or region to which the attribution of the original number of the short message recipient belongs comprises:
receiving the name of a target country or region to which the attribution of the original number of the short message receiver input by the user belongs;
acquiring a database storing mapping relations between names of countries or regions and country codes thereof, and inquiring the country code corresponding to the name of the target country or region in the database;
and acquiring the international prefix of the attribution of the mobile terminal number, and generating the target number of the short message receiver by combining the country code of the target country or region as the prefix of the original number of the short message receiver.
4. The method of claim 1, wherein after the step of determining whether the original number of the short message recipient belongs to a country or a region to which the mobile terminal number belongs, the method further comprises:
and if the original number of the short message receiver belongs to the country or the region of the attribution place of the mobile terminal number, taking the original number of the short message receiver as the target number of the short message receiver.
5. A mobile terminal, comprising:
the receiving module is used for receiving an original number of a short message receiver input by a user;
the acquisition module is used for acquiring the position information of the mobile terminal and the attribution information of the mobile terminal number;
the attribution judging module is used for judging whether the original number of the short message receiver belongs to the country or the region where the mobile terminal number belongs;
the roaming judging module is used for judging whether the mobile terminal is in an international roaming state or not according to the position information of the mobile terminal and the attribution information of the mobile terminal number if the original number of the short message receiver does not belong to the country or the region where the attribution of the mobile terminal number is located;
the first determining module is used for determining the target number of the short message receiver according to the relative relation between the digits of the original number of the short message receiver and the specified digits of the mobile phone number of the roaming country if the mobile terminal is in the international roaming state; wherein,
the first determining module includes:
a digit judging unit, configured to, if the mobile terminal is in the international roaming state, obtain a digit of an original number of the short message recipient and a specified digit of a mobile phone number of the roaming country, and judge whether the digits are equal to each other;
a first determining unit, configured to, if the number of the short message recipient is equal to the international prefix, obtain an international prefix of a home location of the mobile terminal number and a country code of the country of the roaming location, and combine the international prefix and the country code to serve as a prefix of an original number of the short message recipient to generate a target number of the short message recipient;
and the second determining unit is used for determining the target number of the short message receiver according to the name of the target country or region to which the attribution place of the original number of the short message receiver belongs if the original number of the short message receiver is not equal to the original number of the short message receiver.
6. The mobile terminal of claim 5, further comprising:
and the second determining module is used for determining the target number of the short message receiver according to the name of the target country or region to which the attribution place of the original number of the short message receiver belongs if the mobile terminal is not in the international roaming state.
7. The mobile terminal of claim 6, wherein the second determining module comprises:
a country input unit, configured to receive a name of a target country or region to which an attribution of the original number of the short message recipient input by the user belongs;
the query unit is used for acquiring a database storing the mapping relation between the name of each country or region and the country code thereof, and querying the country code corresponding to the name of the target country or region in the database;
and the number generating unit is used for acquiring the international prefix of the attribution of the mobile terminal number, and generating the target number of the short message receiver by combining the country code of the target country or region as the prefix of the original number of the short message receiver.
8. The mobile terminal according to claim 5, wherein the second determining unit includes:
a country input subunit, configured to receive a name of a target country or region to which an attribution of the original number of the short message recipient input by the user belongs;
the query subunit is used for acquiring a database in which the mapping relation between the name of each country or region and the country code of the country is stored, and querying the country code corresponding to the name of the target country or region in the database;
and the number generation subunit is used for acquiring the international prefix of the attribution of the mobile terminal number, and generating the target number of the short message receiver by combining the country code of the target country or region as the prefix of the original number of the short message receiver.
9. The mobile terminal of claim 5, further comprising:
and the third determining module is used for taking the original number of the short message receiver as the target number of the short message receiver if the original number of the short message receiver belongs to the country or the region of the attribution place of the mobile terminal number.
CN201610932152.4A 2016-10-31 2016-10-31 A kind of the determination method and mobile terminal of destination number Active CN106507320B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610932152.4A CN106507320B (en) 2016-10-31 2016-10-31 A kind of the determination method and mobile terminal of destination number

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610932152.4A CN106507320B (en) 2016-10-31 2016-10-31 A kind of the determination method and mobile terminal of destination number

Publications (2)

Publication Number Publication Date
CN106507320A CN106507320A (en) 2017-03-15
CN106507320B true CN106507320B (en) 2019-09-27

Family

ID=58318969

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610932152.4A Active CN106507320B (en) 2016-10-31 2016-10-31 A kind of the determination method and mobile terminal of destination number

Country Status (1)

Country Link
CN (1) CN106507320B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110519454A (en) * 2019-08-21 2019-11-29 Oppo(重庆)智能科技有限公司 Incoming number processing method and processing device
CN111836249B (en) * 2020-06-29 2023-04-21 广州三星通信技术研究有限公司 Method and equipment for determining attribution of telephone number for electronic terminal
CN112040430B (en) * 2020-08-31 2022-09-23 北京达佳互联信息技术有限公司 Short message sending method, device, server and storage medium
CN113438352B (en) * 2021-05-20 2022-05-27 荣耀终端有限公司 Dialing processing method, mobile terminal and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101640727A (en) * 2009-08-18 2010-02-03 中兴通讯股份有限公司 Method and terminal for intelligent dialing
CN103428324A (en) * 2012-05-17 2013-12-04 上海闻泰电子科技有限公司 Intelligent IP dialing method for mobile phone
CN103516916A (en) * 2012-06-28 2014-01-15 中兴通讯股份有限公司 Dialing method and device
CN103841080A (en) * 2012-11-22 2014-06-04 中国移动通信集团公司 Called number completion method, device and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9160827B2 (en) * 2012-04-27 2015-10-13 Apple Inc. Automatically adjusting country and area codes when doing a business card or telephone number exchange

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101640727A (en) * 2009-08-18 2010-02-03 中兴通讯股份有限公司 Method and terminal for intelligent dialing
CN103428324A (en) * 2012-05-17 2013-12-04 上海闻泰电子科技有限公司 Intelligent IP dialing method for mobile phone
CN103516916A (en) * 2012-06-28 2014-01-15 中兴通讯股份有限公司 Dialing method and device
CN103841080A (en) * 2012-11-22 2014-06-04 中国移动通信集团公司 Called number completion method, device and system

Also Published As

Publication number Publication date
CN106507320A (en) 2017-03-15

Similar Documents

Publication Publication Date Title
CN106507320B (en) A kind of the determination method and mobile terminal of destination number
CN107147505B (en) Group chat method and mobile terminal
CN104202473B (en) Merge the method and mobile terminal of session
US8611968B2 (en) Method and mobile terminal for processing contacts
CN107333325B (en) Network searching method and mobile terminal
CN107171874B (en) Voice engine switching method, mobile terminal and server
US9891816B2 (en) Method and mobile terminal for processing touch input in two different states
CN114827914B (en) Short message processing method and device and electronic equipment
CN106453953B (en) Wireless access point connection method and mobile terminal
US20200221288A1 (en) Method for determining access method of mobile terminal, storage medium, and mobile terminal
CN103455621A (en) Method, device and system for analyzing physical distribution invoice numbers
CN106210232A (en) The storage method of the telephone number of a kind of mobile terminal and mobile terminal
US20130244627A1 (en) Method for providing phone book service and associated electronic device thereof
CN103631580A (en) Method and device for generating theme icon
US20160139907A1 (en) Electronic device and method for controlling electronic device
CN107196847B (en) Group chat method and mobile terminal
CN108112022B (en) System information block transmission method, terminal and network side equipment
TWI483634B (en) System and method for sharing group
CN106506849B (en) Display method of wireless access point and mobile terminal
JP2017530459A (en) Terminal, terminal control apparatus and terminal control method
CN106354509B (en) Screen locking interface setting method and mobile terminal
CN103200296B (en) Method for information display, device and terminal
CN106791194A (en) A kind of message prompt method and mobile terminal
CN106991156B (en) Communication record retrieval method and mobile terminal
CN107172261B (en) Updating method and updating device for contact person telephone number

Legal Events

Date Code Title Description
C06 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