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 PDFInfo
- 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
- mobile terminal
- country
- message addressee
- addressee
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/12—Messaging; Mailboxes; Announcements
- H04W4/14—Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/26—Devices for calling a subscriber
- H04M1/27—Devices whereby a plurality of signals may be stored simultaneously
- H04M1/274—Devices 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/2745—Devices 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/27485—Appending 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
Technical field
The present invention relates to the determination methods and its movement of mobile communication technology field more particularly to a kind of destination number eventually
End.
Background technique
With socio-economic development, travel abroad, the chance of work are more and more, in overseas travel or work, we
It often needs to contact with the friend of domestic household or the country one belongs to, SMS is a kind of common communication modes, operation
Also very convenient.But when we are in foreign countries, if still international roaming state, meeting can be in using domestic SIM card
It is registered to the roaming network of the country one belongs to locality.When we need the cell-phone number to local registration to send short message, it is necessary to manually
Prefix as number of increase international prefix and country code, the short message otherwise sent out, which will be defaulted, to be sent to SIM card and returns
Number belonging to the region of possession is sent to domestic respective number, so that destination address can not be correctly sent to.
Equally, when we desire to user's transmission short message of other countries or area at home, it is also desirable to manually
Increase prefix, can not achieve intelligent automatic addition prefix.But in many cases, we may not know use it is assorted
International prefix and country code, it is also necessary to which idea tries to inquire, then increases prefix manually for the number of short message addressee,
It can send successfully.This causes the operation of user very complicated, influences the short message transmitting efficiency of user, and user does not know oneself
Whether the international prefix and country code looked into are correct, it is not known that whether short message has successfully been dealt into targeted recipient there, this pole
The earth reduces the short message usage experience of user, brings unnecessary puzzlement to user.
Summary of the invention
The embodiment of the present invention provides a kind of determination method of destination number, to solve the addressee that short message is sent in the prior art
People's number cannot intelligence automatic addition prefix the problem of.
In a first aspect, providing a kind of determination method of destination number, the method is applied to mobile terminal, comprising:
Receive the original number of the short message addressee of user's input;
Obtain the location information of the mobile terminal and the information of home location of the mobile terminal number;
Judge whether the original number of the short message addressee belongs to where the ownership place of the mobile terminal number
Country;
If the original number of the short message addressee does not belong to the country where the ownership place of the mobile terminal number
Or area, then according to the information of home location of the location information of the mobile terminal and the mobile terminal number, judge the shifting
Whether dynamic terminal is in international roaming state;
If the mobile terminal is in the international roaming state, according to the position of the original number of the short message addressee
Relativeness between the regulation digit of several and roaming place country Mobile Directory Number, determines the target of the short message addressee
Number.
Second aspect additionally provides a kind of mobile terminal, comprising:
Receiving module, the original number of the short message addressee for receiving user's input;
Module is obtained, for obtaining the location information of the mobile terminal and the ownership place letter of the mobile terminal number
Breath;
Ownership place judgment module, for judging whether the original number of the short message addressee belongs to the mobile terminal
Country where the ownership place of number;
Judgment module is roamed, if the original number for the short message addressee does not belong to the mobile terminal number
Country where ownership place, then according to the ownership place of the location information of the mobile terminal and the mobile terminal number
Information, judges whether the mobile terminal is in international roaming state;
First determining module is received if being in the international roaming state for the mobile terminal according to the short message
Relativeness between the regulation digit of the Mobile Directory Number of the digit of the original number of part people and roaming place country, determines institute
State the destination number of short message addressee.
In this way, the embodiment of the present invention, by judging whether the original number of the short message addressee belongs to the movement
Whether country and mobile terminal where the ownership place of termination number are in international roaming state, when not belonging to
Country where the ownership place of the mobile terminal number and when being in international roaming state, then according to short message addressee
Original number digit and roaming place country Mobile Directory Number regulation digit between relativeness, determine short message receive
The destination number of part people, so that user is in these cases, the prefix of the original number without adding short message addressee manually is moved
Dynamic terminal can intelligence automatic addition prefix, be simple and efficient, save the operating procedure of user, avoid adding manually cumbersome, mention
The short message for rising user sends experience.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, institute in being described below to the embodiment of the present invention
Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention
Example, for those of ordinary skill in the art, without creative efforts, can also obtain according to these attached drawings
Obtain other attached drawings.
Fig. 1 is the flow diagram of the first embodiment of the determination method of destination number of the invention;
Fig. 2 is the flow diagram of the second embodiment of the determination method of destination number of the invention;
Fig. 3 is one of the structural schematic diagram of first embodiment of mobile terminal of the invention;
Fig. 4 is the second structural representation of the first embodiment of mobile terminal of the invention;
Fig. 5 is the structural schematic diagram of the second embodiment of mobile terminal of the invention;
Fig. 6 is the structural schematic diagram of the 3rd embodiment of mobile terminal of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
First embodiment
Fig. 1 is please referred to, is the flow diagram of the first embodiment of the determination method of destination number of the invention, this method
Applied to mobile terminal, comprising:
Step 101: receiving the original number of the short message addressee of user's input.
In this step, in order to guarantee the correctness of prefix addition, avoid repeating to add, the short message that the received user of institute inputs
The original number of addressee is considered as the subscriber phone number without prefix.It is 11 for China Mobile telephone subscriber
The phone number of position, such as " 138******** ".
When user A to other than its ownership place other countries or area belonging to user B send short message when, user B is short
Believe addressee.The prefix of required addition includes two parts: international prefix and country code.Added method are as follows: " national word
Hat "+" country code "+" original number of user B ".
International prefix is also international access code, be user A to other than its ownership place other countries or area belonging to use
When family B sends short message, the number of the required embodiment user A information of home location dialed.China international prefix be " 00 " or "+",
The U.S. is " 011 ", and Hong Kong is " 001 ".For example, Radix Angelicae Sinensis belongs to the user A of China's Mainland to belonging to its other than China's Mainland
When the user B of his country sends short message, the international prefix of required addition is 00 or "+".
Country code be user A to other than its ownership place other countries or area belonging to user B send short message when, institute
The number for the embodiment user B information of home location that need to be dialed.The country code of China is " 86 ", and the U.S. is " 1 ", and Japan is " 81 ",
Britain is " 44 ", and Taiwan is " 886 ", and Hong Kong is " 852 ".For example, Radix Angelicae Sinensis belongs to the other countries other than the U.S. or the use in area
When family A sends short message to the user B for belonging to the U.S., the country code of required addition is " 1 ".
In summary, the user A " 138******** " that Radix Angelicae Sinensis belongs to China's Mainland is sent to the user B for belonging to the U.S.
When short message, the prefix of required addition is international prefix " 00 " and country code " 1 ", i.e., the destination number finally used is
“001138********”。
Step 102: obtaining the location information of mobile terminal and the information of home location of mobile terminal number.
In this step, the acquisition of the current location information of mobile terminal (i.e. the machine) can utilize global positioning system, pass through
The positioning function of mobile terminal is realized.
The information of home location of mobile terminal number (i.e. loCal number) can both be looked by network to network server transmission
Request is ask, inquired by network server and returns to inquiry response to obtain, mobile terminal can also be stored in by inquiry
Local database obtains.Information of home location may include the number belonged to country, provinces and cities' information.
Step 103: judging whether the original number of short message addressee belongs to where the ownership place of mobile terminal number
Country.
In this step, since for sending for short message, whether the original number of short message addressee belongs to mobile terminal
Country where the ownership place of number, i.e. the machine number of the ownership place of the original number of short message addressee and mobile terminal
Whether the ownership place of code belongs to same country, it will influences the composition of destination number when short message is sent.If belonging to same
One country, then do not need prefix;If being not belonging to same country, need to increase international prefix and country code
As prefix.Therefore, it is necessary to judge before adding prefix automatically for user the case where ownership place.
After the information of home location for obtaining mobile terminal number, it can inquire to obtain the tool of the ownership place Mobile Directory Number
Physique formula, such as the regulation digit of the ownership place Mobile Directory Number, number field range etc..
Illustratively, if the ownership place for finding mobile terminal number is China's Mainland, it can inquire and learn China's Mainland
The specific format of Mobile Directory Number are as follows: regulation digit is 11, China Unicom 130-132,155,156,185,186,176
Number section, China Mobile 134-139,150-152, the number section of 157-159,182-184,187,188,178, China Telecom 133,
153,180,181,189,177 number section.If the original number of the short message addressee of user's input does not meet above-mentioned China's Mainland and moves
The specific format of mobile phone number then can determine that the ownership place for the original number of short message addressee is not China's Mainland, i.e., with
The ownership place of mobile terminal number is not belonging to same country.
Step 104: if the original number of short message addressee does not belong to the country where the ownership place of mobile terminal number
Or area, then according to the information of home location of the location information of mobile terminal and mobile terminal number, judge whether mobile terminal is located
In international roaming state.
In this step, when the original number of the short message addressee does not belong to the ownership place institute of the mobile terminal number
Country, i.e. the ownership place of the original number of short message addressee and the ownership place of mobile terminal number be not belonging to same
When country, according to whether being in the different situations of international roaming state, the side of different intelligence addition prefixes can be taken
Method.
If judging mobile terminal according to the information of home location of the current location information of mobile terminal and mobile terminal number
Be currently located state and ownership place the country one belongs to of mobile terminal number be different countries, then it is assumed that mobile terminal is current
It is in international roaming state;If identical country, then it is assumed that be not in international roaming state.
Step 105: if mobile terminal is in international roaming state, according to the digit of the original number of short message addressee with
Relativeness between the regulation digit of the Mobile Directory Number of roaming place country, determines the destination number of short message addressee.
In this step, when user is in foreign countries' work or tourism, that is, is in international roaming state, usually, most probable
Short message sending object be exactly domestic friends and family or roaming country friend, and short message is sent to other than domestic and roaming country
Third state a possibility that it is very small.It therefore, can be according to the original of short message addressee in order to improve the efficiency that intelligence adds prefix
The digit of number and the regulation digit of roaming place country Mobile Directory Number are simply judged, if digit is equal, it is believed that
The artificial roaming place national user of the short message addressee of user, rather than above-mentioned third state user, so as to according to the roaming place state
The country code of family determines the destination number of short message addressee.Although this method judged according to digit exists certain
Error probability, sacrifice a degree of accuracy to exchange the raising of efficiency for, but according to the convention error probability at
In the acceptable range of user.It in the concrete realization, can after the artificial roaming place national user of short message addressee for determining user
It is required that user confirms whether the information is accurate, and after receiving user feedback, then decide whether the state according to roaming place country
Family's code determines the destination number of short message addressee.
The embodiment of the present invention, by judging whether the original number of the short message addressee belongs to the mobile terminal number
Whether country and mobile terminal where the ownership place of code are in international roaming state, when not belonging to the shifting
Country where the ownership place of dynamic termination number and when being in international roaming state, then according to the original of short message addressee
Relativeness between the regulation digit of the Mobile Directory Number of the digit of number and roaming place country, determines short message addressee's
Destination number, so that user is in these cases, the prefix of the original number without adding short message addressee manually, mobile terminal
Can intelligence automatic addition prefix, be simple and efficient, save the operating procedure of user, avoid adding manually it is cumbersome, promoted user
Short message send experience.
Second embodiment
Referring to figure 2., be destination number of the invention determination method second embodiment flow diagram, this method
Applied to mobile terminal, comprising:
Step 201: receiving the original number of the short message addressee of user's input.
Step 202: obtaining the location information of mobile terminal and the information of home location of mobile terminal number.
Step 203: judging whether the original number of short message addressee belongs to where the ownership place of mobile terminal number
Country.
Above-mentioned steps 201 to 203, it is identical as the correspondence step in the first embodiment of the determination method of destination number,
This is repeated no more.
Step 204: if the original number of short message addressee belong to country where the ownership place of mobile terminal number or
Area, then using the original number of short message addressee as the destination number of short message addressee.
In this step, country where the original number of short message addressee belongs to the ownership place of mobile terminal number or
Area, the i.e. ownership place of the original number of short message addressee and the ownership place of mobile terminal number belong to same country
When, no matter whether mobile terminal is in roaming state, without addition international prefix and/country code, that is, does not have to add any
Prefix can be sent directly using the original number of short message addressee as destination number for short message.For example, Radix Angelicae Sinensis belongs to China
When the user A in continent roams into the U.S., to the friend User B (cell-phone number 13312345678) for equally belonging to China's Mainland
When sending short message, then the destination number directly by the cell-phone number 13312345678 of user B as short message addressee.
Step 205: if the original number of the short message addressee does not belong to the ownership place institute of the mobile terminal number
Country, then according to the information of home location of the location information of mobile terminal and mobile terminal number, judge it is mobile eventually
Whether end is in international roaming state.
This step is identical as the correspondence step in the first embodiment of the determination method of destination number, and details are not described herein.
Step 206: if mobile terminal is not in international roaming state, according to the ownership of the original number of short message addressee
The title in target country belonging to ground or area determines the destination number of short message addressee.
In this step, when mobile terminal is not in international roaming state, then can determine whether out user be ownership place to its
The other users of his country send short message, at this time, it may be necessary to the title for the target country that user's offer short message is sent, and by
Mobile terminal system removes the country code for inquiring the target country automatically, to replace the manual queries process of user.
" determine that short message is received according to the title of target country belonging to the ownership place of the original number of short message addressee or area
The destination number of part people " can be specifically achieved by the steps of: receive returning for the original number of the short message addressee of user's input
The title in target country belonging to possession or area;It obtains to be stored between various countries or the title and its country code in area and reflect
The database of relationship is penetrated, and inquires the corresponding country code of title of target country or area in the database;It obtains mobile whole
The international prefix of the ownership place of number, and the country code of combining target country are held, as the original of short message addressee
The prefix of number generates the destination number of institute short message addressee.
Illustratively, Radix Angelicae Sinensis belongs to the user A of China's Mainland, short to the user B transmission for belonging to Hong Kong in China's Mainland
When letter, according to above-mentioned steps it is found that when user A inputs 8 Hong Kong cell-phone numbers " 9876**** " of user B, the mobile end of user A
End system is only capable of judging the ownership place of user B and the difference of user A, but can not further determine that out that the ownership place of user B is
Which country or area.At this point, if system only relies on " 9876**** " this 8 numbers in order to determine that the ownership place of user B is national
The cell-phone number format of Auto-matching various countries is removed, efficiency will be very low, and be likely to occur erroneous judgement.Therefore, it can provide a user
The input interface for target country's title that short message is sent, the target country sent by the directly specified short message of user, then system will
The country code of the target country inquired is used for the generation of final goal number.
Step 207: if mobile terminal is in international roaming state, obtain the digit of the original number of short message addressee with
The regulation digit of the Mobile Directory Number of roaming place country, and judge whether the two is equal.
In this step, when mobile terminal is in international roaming state, then it can determine whether out that user is other than ownership place
Country sends short message to roaming place country or third state.It, can be according to short message in order to improve the efficiency of intelligence addition prefix
The digit of the original number of addressee and the regulation digit of roaming place country Mobile Directory Number are simply judged, if digit phase
Deng, then artificial roaming place national user of the short message addressee of user very in maximum probability, rather than above-mentioned third state user, so as to
The destination number of short message addressee is determined according to the country code of roaming place country.
Step 208: if equal, obtaining the international prefix of the ownership place of mobile terminal number and the state of roaming place country
Family's code, and combine using the prefix of the original number as short message addressee, generate the destination number of short message addressee.
In this step, illustratively, if the user A for belonging to China's Mainland roams into Hong Kong, and to belonging to Hong Kong
When user B sends short message, user A inputs 8 Hong Kong cell-phone numbers " 9876**** " of user B, and system queries are fragrant to roaming place
The regulation digit of the Mobile Directory Number at port is 8, i.e. the number length of user B is equal with the number length in roaming place Hong Kong,
All be 8, it may be considered that user A be in very maximum probability short message is sent to Hong Kong, rather than to China's Mainland and Hong Kong with
Outer other countries or area send short message.The world of China's Mainland where being user A therefore, it is necessary to the international prefix of addition
Prefix " 00 ", needing country code to be added is the country code " 852 " in Hong Kong, the two is combined as prefix, so as to life
At the destination number " 008529876**** " of short message addressee.
Step 209: if unequal, according to target country belonging to the ownership place of the original number of short message addressee or ground
The title in area determines the destination number of short message addressee.
In this step, if the predetermined bits of the digit of the original number of short message addressee and roaming place country Mobile Directory Number
Number it is unequal, then it is believed that the original number for the short message addressee that user A is inputted neither user's A ownership place number,
The not instead of number of roaming place, the number of third state.Therefore, with as step 206, in order to improve search efficiency, can to
Family provides the input interface for target country's title that short message is sent, i.e., by the original number of the directly specified short message addressee of user
Target country belonging to ownership place or area, then the country code of the target country inquired or area is used for most by system
The generation of whole destination number.Therefore, " according to target country belonging to the ownership place of the original number of short message addressee or area
Title determines the destination number of short message addressee " concrete methods of realizing it is identical as in step 206, details are not described herein.
The embodiment of the present invention, by judging whether the original number of the short message addressee belongs to the mobile terminal number
Whether country and mobile terminal where the ownership place of code are in international roaming state, give various ownership place
The generation method of the destination number of short message addressee in situation and roaming state not only ensure that the accuracy of prefix addition, but also note
The raising for having weighed efficiency eliminates user's puzzlement that prefix is added in all cases, adequately achieves destination number generation
Intelligent, automation.
3rd embodiment
Referring to figure 3., be mobile terminal of the invention first embodiment structural schematic diagram, the mobile terminal 100 packet
It includes:.
Receiving module 110, the original number of the short message addressee for receiving user's input.
Module 120 is obtained, for obtaining the location information of mobile terminal and the information of home location of mobile terminal number;
Ownership place judgment module 130 is connected, for judging the short message addressee with receiving module 110 and acquisition module 120
Whether the original number of people belongs to the country where the ownership place of the mobile terminal number.
Judgment module 140 is roamed, is connected with ownership place judgment module 130 and acquisition module 120, if being received for the short message
The original number of part people does not belong to the country where the ownership place of the mobile terminal number, then according to mobile terminal
Location information and mobile terminal number information of home location, judge whether mobile terminal is in international roaming state.
First determining module 150 is connected, if being in for mobile terminal with roaming judgment module 140 and acquisition module 120
International roaming state, then according to the regulation of the digit of the original number of short message addressee and the Mobile Directory Number of roaming place country
Relativeness between digit determines the destination number of short message addressee.
In order to guarantee the correctness of prefix addition, avoid repeating to add, the short message addressee's that the received user of institute inputs
Original number is considered as the subscriber phone number without prefix.It is 11 mobile phones for China Mobile telephone subscriber
Number, such as " 138******** ".
When user A to other than its ownership place other countries or area belonging to user B send short message when, user B is short
Believe addressee.The prefix of required addition includes two parts: international prefix and country code.Added method are as follows: " national word
Hat "+" country code "+" original number of user B ".
International prefix is also international access code, be user A to other than its ownership place other countries or area belonging to use
When family B sends short message, the number of the required embodiment user A information of home location dialed.China international prefix be " 00 " or "+",
The U.S. is " 011 ", and Hong Kong is " 001 ".For example, Radix Angelicae Sinensis belongs to the user A of China's Mainland to belonging to its other than China's Mainland
When the user B of his country sends short message, the international prefix of required addition is 00 or "+".
Country code be user A to other than its ownership place other countries or area belonging to user B send short message when, institute
The number for the embodiment user B information of home location that need to be dialed.The country code of China is " 86 ", and the U.S. is " 1 ", and Japan is " 81 ",
Britain is " 44 ", and Taiwan is " 886 ", and Hong Kong is " 852 ".For example, Radix Angelicae Sinensis belongs to the other countries other than the U.S. or the use in area
When family A sends short message to the user B for belonging to the U.S., the country code of required addition is " 1 ".
In summary, the user A " 138******** " that Radix Angelicae Sinensis belongs to China's Mainland is sent to the user B for belonging to the U.S.
When short message, the prefix of required addition is international prefix " 00 " and country code " 1 ", i.e., the destination number finally used is
“001138********”。
The acquisition of the current location information of mobile terminal (i.e. the machine) can utilize global positioning system, pass through mobile terminal
Positioning function is realized.
The information of home location of mobile terminal number (i.e. loCal number) can both be looked by network to network server transmission
Request is ask, inquired by network server and returns to inquiry response to obtain, mobile terminal can also be stored in by inquiry
Local database obtains.Information of home location may include the number belonged to country, provinces and cities' information.
Since for sending for short message, whether the original number of short message addressee belongs to the ownership of mobile terminal number
Country where ground, the i.e. ownership place of the loCal number of the ownership place and mobile terminal of the original number of short message addressee
Whether same country is belonged to, it will influences the composition of destination number when short message is sent.If belonging to same country or ground
Area does not need prefix then;If being not belonging to same country, need to increase international prefix and country code as prefix.
Therefore, it is necessary to judge before adding prefix automatically for user the case where ownership place.
After the information of home location for obtaining mobile terminal number, it can inquire to obtain the tool of the ownership place Mobile Directory Number
Physique formula, such as the regulation digit of the ownership place Mobile Directory Number, number field range etc..
Illustratively, if the ownership place for finding mobile terminal number is China's Mainland, it can inquire and learn China's Mainland
The specific format of Mobile Directory Number are as follows: regulation digit is 11, China Unicom 130-132,155,156,185,186,176
Number section, China Mobile 134-139,150-152, the number section of 157-159,182-184,187,188,178, China Telecom 133,
153,180,181,189,177 number section.If the original number of the short message addressee of user's input does not meet above-mentioned China's Mainland and moves
The specific format of mobile phone number then can determine that the ownership place for the original number of short message addressee is not China's Mainland, i.e., with
The ownership place of mobile terminal number is not belonging to same country.
Country where the original number of the short message addressee does not belong to the ownership place of the mobile terminal number
Or area, the i.e. ownership place of the original number of short message addressee and the ownership place of mobile terminal number are not belonging to same country or ground
Qu Shi, according to whether the different situations of international roaming state are in, the method that different intelligence addition prefixes can be taken.
If judging mobile terminal according to the information of home location of the current location information of mobile terminal and mobile terminal number
Be currently located state and ownership place the country one belongs to of mobile terminal number be different countries, then it is assumed that mobile terminal is current
It is in international roaming state;If identical country, then it is assumed that be not in international roaming state.
When user is in foreign countries' work or tourism, that is, is in international roaming state, usually, most probable short message is sent
Object is exactly the friend of domestic friends and family or roaming country, and short message is sent to the third state other than domestic and roaming country
Possibility is very small.It therefore, can be according to the digit of the original number of short message addressee in order to improve the efficiency that intelligence adds prefix
Simply judged with the regulation digit of roaming place country Mobile Directory Number, if digit is equal, it is believed that the short message of user
The artificial roaming place national user of addressee, rather than above-mentioned third state user, so as to according to the national generation of roaming place country
Code determines the destination number of short message addressee.Although it is general to there is certain mistake in this method judged according to digit
Rate sacrifices a degree of accuracy to exchange the raising of efficiency for, but being in user according to the convention error probability can
The range of receiving.In the concrete realization, after the artificial roaming place national user of short message addressee for determining user it may require that user
Confirm whether the information accurate, and after receiving user feedback, then decide whether according to the country code of roaming place country come
Determine the destination number of short message addressee.
The embodiment of the present invention, by judging whether the original number of the short message addressee belongs to the mobile terminal number
Whether country and mobile terminal where the ownership place of code are in international roaming state, when not belonging to the shifting
Country where the ownership place of dynamic termination number and when being in international roaming state, then according to the original of short message addressee
Relativeness between the regulation digit of the Mobile Directory Number of the digit of number and roaming place country, determines short message addressee's
Destination number, so that user is in these cases, the prefix of the original number without adding short message addressee manually, mobile terminal
Can intelligence automatic addition prefix, be simple and efficient, save the operating procedure of user, avoid adding manually it is cumbersome, promoted user
Short message send experience.
Referring to figure 4., on the basis of Fig. 3, the mobile terminal 100 further include: the second determining module 160 is sentenced with roaming
Disconnected module 140 is connected, if being not in international roaming state for mobile terminal, according to returning for the original number of short message addressee
The title in target country belonging to possession or area determines the destination number of short message addressee;Third determining module 170, with ownership
Ground judgment module 130 is connected with receiving module 110, if the original number for short message addressee belongs to mobile terminal number
Country where ownership place, then using the original number of short message addressee as the destination number of short message addressee.
Wherein, the first determining module 150 of mobile terminal 100 further include: digit judging unit 151, if for mobile whole
End is in international roaming state, then obtains the digit of the original number of short message addressee and the Mobile Directory Number of roaming place country
Regulation digit, and whether equal both judge;First determination unit 152, is connected with length determining unit 151, if being used for phase
Deng, then obtain the international prefix of the ownership place of mobile terminal number and the country code of roaming place country, and combine with make
For the prefix of the original number of short message addressee, the destination number of short message addressee is generated;Second determination unit 153, with length
Judging unit 151 is connected, if for unequal, according to target country belonging to the ownership place of the original number of short message addressee
Or the title in area determines the destination number of short message addressee.
Second determining module 160 may also include (not shown): national input unit, for receiving the short of user's input
Believe the title of target country belonging to the ownership place of the original number of addressee or area;Query unit, with national input unit
It is connected, for obtaining the database for being stored with mapping relations between various countries or the title and its country code in area, and in number
According to the corresponding country code of title for inquiring target country or area in library;Number generation unit, is connected with query unit, is used for
The international prefix of the ownership place of mobile terminal number, and the country code of combining target country are obtained, is received as short message
The prefix of the original number of part people generates the destination number of institute short message addressee.
Second determination unit 153 may also include (not shown): country's input subelement, for receiving user's input
The title in target country belonging to the ownership place of the original number of short message addressee or area;Subelement is inquired, is inputted with country
Subelement is connected, for obtaining the database for being stored with mapping relations between various countries or the title and its country code in area,
And the corresponding country code of title of target country or area is inquired in the database;Number generates subelement, single with inquiry
Member is connected, the international prefix of the ownership place for obtaining mobile terminal number, and the country code of combining target country,
The prefix of original number as short message addressee generates the destination number of institute short message addressee.
Country where the original number of short message addressee belongs to the ownership place of mobile terminal number, i.e., it is short
When believing that the ownership place of original number of addressee and the ownership place of mobile terminal number belong to same country, no matter move
Whether terminal is in roaming state, without addition international prefix and/country code, that is, does not have to add any prefix, can be direct
Using the original number of short message addressee as destination number, sent for short message.For example, Radix Angelicae Sinensis belongs to the user A of China's Mainland
When roaming into the U.S., when sending short message to the friend User B (cell-phone number 13312345678) for equally belonging to China's Mainland,
The then destination number directly by the cell-phone number 13312345678 of user B as short message addressee.
When mobile terminal is not in international roaming state, then it can determine whether out that user is in ownership place to other countries or ground
The other users in area send short message, at this time, it may be necessary to which user provides the title for the target country that short message is sent, and by mobile terminal system
System removes the country code for inquiring the target country automatically, to replace the manual queries process of user.
Illustratively, Radix Angelicae Sinensis belongs to the user A of China's Mainland, short to the user B transmission for belonging to Hong Kong in China's Mainland
When letter, according to above-mentioned steps it is found that when user A inputs 8 Hong Kong cell-phone numbers " 9876**** " of user B, the mobile end of user A
End system is only capable of judging the ownership place of user B and the difference of user A, but can not further determine that out that the ownership place of user B is
Which country or area.At this point, if system only relies on " 9876**** " this 8 numbers in order to determine that the ownership place of user B is national
The cell-phone number format of Auto-matching various countries is removed, efficiency will be very low, and be likely to occur erroneous judgement.Therefore, it can provide a user
The input interface for target country's title that short message is sent, the target country sent by the directly specified short message of user, then system will
The country code of the target country inquired is used for the generation of final goal number.
When mobile terminal is in international roaming state, then it can determine whether out that user is country or the ground other than ownership place
Area sends short message to roaming place country or third state.It, can be according to short message addressee's in order to improve the efficiency of intelligence addition prefix
The digit of original number and the regulation digit of roaming place country Mobile Directory Number simply judged, if digit is equal, very
Artificial roaming place national user of the short message addressee of user in maximum probability, rather than above-mentioned third state user, should so as to basis
The country code of roaming place country determines the destination number of short message addressee.
Illustratively, it if the user A for belonging to China's Mainland roams into Hong Kong, and is sent to the user B for belonging to Hong Kong
When short message, user A inputs 8 Hong Kong cell-phone numbers " 9876**** " of user B, and system queries are to the mobile electricity in roaming place Hong Kong
The regulation digit for talking about number is 8, i.e. the number length of user B is equal with the number length in roaming place Hong Kong, is all 8, then
It is considered that user A is to send short message to Hong Kong in very maximum probability, rather than to its other country other than China's Mainland and Hong Kong
Family or area send short message.The international prefix " 00 " of China's Mainland where being user A therefore, it is necessary to the international prefix of addition,
Needing country code to be added is the country code " 852 " in Hong Kong, and the two is combined as prefix, to produce short message addressee
The destination number " 008529876**** " of people.
If the digit of the original number of short message addressee and the regulation digit of roaming place country Mobile Directory Number are unequal,
Then it is believed that the original number for the short message addressee that user A is inputted neither user's A ownership place number, nor roaming place
Number, but the number of third state.Therefore, in order to improve search efficiency, the target country of short message transmission can be provided a user
The input interface of title, i.e. target country or ground as belonging to the ownership place of the original number of the directly specified short message addressee of user
Area, then the country code of the target country inquired or area is used for the generation of final goal number by system.
The embodiment of the present invention, by judging whether the original number of the short message addressee belongs to the mobile terminal number
Whether country and mobile terminal where the ownership place of code are in international roaming state, give various ownership place
The generation method of the destination number of short message addressee in situation and roaming state not only ensure that the accuracy of prefix addition, but also note
The raising for having weighed efficiency eliminates user's puzzlement that prefix is added in all cases, adequately achieves destination number generation
Intelligent, automation.
Fourth embodiment
Referring to figure 5., be mobile terminal of the invention second embodiment structural schematic diagram, the mobile terminal 500 packet
It includes: at least one processor 501, memory 502, at least one network interface 504 and user interface 503.In mobile terminal 500
Various components be coupled by bus system 505.It is understood that bus system 505 is for realizing between these components
Connection communication.Bus system 505 further includes power bus, control bus and status signal bus in addition in addition to including data/address bus.
But for the sake of clear explanation, various buses are all designated as bus system 505 in Fig. 5.
Wherein, user interface 503 may include key, various acceleration transducers, especially gravity sensor and gyro
Instrument.
It is appreciated that the memory 502 in the embodiment of the present invention can be volatile memory or nonvolatile memory,
It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read-
OnlyMemory, ROM), programmable read only memory (ProgrammableROM, PROM), Erasable Programmable Read Only Memory EPROM
(ErasablePROM, EPROM), electrically erasable programmable read-only memory (ElectricallyEPROM, EEPROM) dodge
It deposits.Volatile memory can be random access memory (RandomAccessMemory, RAM), and it is slow to be used as external high speed
It deposits.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory
(StaticRAM, SRAM), dynamic random access memory (DynamicRAM, DRAM), Synchronous Dynamic Random Access Memory
(SynchronousDRAM, SDRAM), double data speed synchronous dynamic RAM (DoubleDataRate
SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links
Dynamic random access memory (SynchlinkDRAM, SLDRAM) and direct rambus random access memory
(DirectRambusRAM, DRRAM).The memory 502 of system and method described herein be intended to include but be not limited to these and
The memory of any other suitable type.
In some embodiments, memory 502 stores following element, and the location information of mobile terminal and movement are eventually
The title for holding the information of home location of number, target country belonging to the ownership place of the original number of short message addressee or area, is deposited
The database for containing mapping relations between various countries or the title and its country code in area, can be performed module or data knot
Structure perhaps their subset or their superset: operating system 5021 and application program 5022.
Wherein, operating system 5021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for
Realize various basic businesses and the hardware based task of processing.Application program 5022 includes various application programs, such as media
Player (MediaPlayer), browser (Browser) etc., for realizing various applied business.Realize embodiment of the present invention side
The program of method may be embodied in application program 5022.
In embodiments of the present invention, by the program or instruction of calling memory 502 to store, specifically, can be application
The program or instruction stored in program 5022, processor 501 are used to receive the original number of the short message addressee of user's input;Place
Reason device 501 is used to obtain the location information of the mobile terminal and the information of home location of the mobile terminal number;Processor 501
For judging the country where whether the original number of the short message addressee belongs to the ownership place of the mobile terminal number
Or area;If the original number of the short message addressee do not belong to country where the ownership place of the mobile terminal number or
Area, then processor 501 is used for the information of home location of location information and the mobile terminal number according to the mobile terminal,
Judge whether the mobile terminal is in international roaming state;If the mobile terminal is in the international roaming state, locate
Reason device 501 is used for the regulation of the Mobile Directory Number of the digit and roaming place country according to the original number of the short message addressee
Relativeness between digit determines the destination number of the short message addressee.
The method that the embodiments of the present invention disclose can be applied in processor 501, or be realized by processor 501.
Processor 501 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each
Step can be completed by the integrated logic circuit of the hardware in processor 501 or the instruction of software form.
Above-mentioned processor 501 can be general processor, digital signal processor
(DigitalSignalProcessor, DSP), specific integrated circuit (ApplicationSpecific
IntegratedCircuit ASIC), ready-made programmable gate array (FieldProgrammableGateArray, FPGA) or
Other programmable logic device, discrete gate or transistor logic, discrete hardware components.It may be implemented or execute this hair
Disclosed each method, step and logic diagram in bright embodiment.General processor can be microprocessor or the processor
It is also possible to any conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly in firmly
Part decoding processor executes completion, or in decoding processor hardware and software module combination execute completion.Software module
It can be located at random access memory, flash memory, read-only memory, programmable read only memory or electrically erasable programmable memory,
In the storage medium of this fields such as register maturation.The storage medium is located at memory 502, and processor 501 reads memory 502
In information, in conjunction with its hardware complete the above method the step of.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its
Combination is to realize.For hardware realization, processing unit be may be implemented in one or more specific integrated circuit (Application
SpecificIntegratedCircuits, ASIC), digital signal processor (DigitalSignalProcessing, DSP),
Digital signal processing appts (DSPDevice, DSPD), programmable logic device (ProgrammableLogicDevice, PLD),
Field programmable gate array (Field-ProgrammableGateArray, FPGA), general processor, controller, microcontroller
In device, microprocessor, other electronic units for executing herein described function or combinations thereof.
For software implementations, it can be realized herein by executing the module (such as process, function etc.) of function described herein
The technology.Software code is storable in memory and is executed by processor.Memory can in the processor or
It is realized outside processor.
Optionally, as another embodiment, processor 501 is also used to: if the mobile terminal is not in the world
Roaming state, then the title in the target country according to belonging to the ownership place of the original number of the short message addressee or area determines
The destination number of the short message addressee.
Optionally, as another embodiment, processor 501 is also used to: if the mobile terminal is in described international unrestrained
Free state then obtains the rule of the digit of the original number of the short message addressee and the Mobile Directory Number of the roaming place country
Number is positioned, and judges whether the two is equal;If equal, obtain the ownership place of the mobile terminal number international prefix and
The country code of the roaming place country, and combine using the prefix of the original number as the short message addressee, generate institute
State the destination number of short message addressee;If unequal, according to belonging to the ownership place of the original number of the short message addressee
The title in target country or area determines the destination number of the short message addressee.
Optionally, as another embodiment, processor 501 is also used to: the short message for receiving user's input is received
The title in target country belonging to the ownership place of the original number of part people or area;Obtain the title for being stored with various countries or area
The database of mapping relations between its country code, and the title of the target country or area is inquired in the database
Corresponding country code;The international prefix of the ownership place of the mobile terminal number is obtained, and in conjunction with the target country or ground
The country code in area, the prefix of the original number as the short message addressee generate the destination number of institute short message addressee.
Optionally, as another embodiment, processor 501 is also used to: if the original number of the short message addressee is returned
Belong to the country where the ownership place of the mobile terminal number, then using the original number of the short message addressee as
The destination number of the short message addressee.
Mobile terminal 500 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, here
It repeats no more.By judging whether the original number of the short message addressee belongs to the ownership place institute of the mobile terminal number
Country and mobile terminal whether be in international roaming state, when not belonging to the mobile terminal number
Country where ownership place and when being in international roaming state, then according to the digit of the original number of short message addressee with
Relativeness between the regulation digit of the Mobile Directory Number of roaming place country, determines the destination number of short message addressee, makes
User in these cases, the prefix of the original number without adding short message addressee manually, mobile terminal can intelligence from
Dynamic addition prefix, is simple and efficient, saves the operating procedure of user, avoids adding manually cumbersome, and the short message for promoting user is sent
Experience.
5th embodiment
Fig. 6 is the structural block diagram of the 3rd embodiment of mobile terminal of the present invention.Specifically, the mobile terminal 900 in Fig. 6 can
Think mobile phone, tablet computer, personal digital assistant (PersonalDigital Assistant, PDA) or vehicle-mounted computer etc..
Mobile terminal 900 in Fig. 6 includes radio frequency (RadioFrequency, RF) circuit 910, memory 920, input list
First 930, display unit 940, other assemblies 950, processor 960, voicefrequency circuit 970, WiFi (WirelessFidelity) mould
Block 980 and power supply 990.
Wherein, input unit 930 can be used for receiving the number or character information of user's input, and generation and mobile terminal
The related signal input of 900 user setting and function control.Specifically, in the embodiment of the present invention, which can
To include touch panel 931.Touch panel 931, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses the operations of any suitable object or attachment on touch panel 931 such as finger, stylus), and according to preparatory
The formula of setting drives corresponding attachment device.Optionally, touch panel 931 may include touch detecting apparatus and touch controller
Two parts.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, by signal
Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate,
The processor 960 is given again, and can be received order that processor 960 is sent and be executed.Furthermore, it is possible to using resistance-type,
The multiple types such as condenser type, infrared ray and surface acoustic wave realize touch panel 931.In addition to touch panel 931, input unit
930 can also include other input equipments 932, other input equipments 932 can include but is not limited to physical keyboard, function key
One of (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Wherein, display unit 940 can be used for showing information input by user or be supplied to the information and movement of user
The various menu interfaces of terminal 900.Display unit 940 may include display panel 941, optionally, can use LCD or organic hair
The forms such as optical diode (OrganicLight-EmittingDiode, OLED) configure display panel 941.
It should be noted that touch panel 931 can cover display panel 941, touch display screen is formed, when the touch display screen is examined
After measuring touch operation on it or nearby, processor 960 is sent to determine the type of touch event, is followed by subsequent processing device
960 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and common control viewing area.The Application Program Interface viewing area
And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious
Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with
The interface elements such as the icon comprising at least one application program and/or widget desktop control.The Application Program Interface viewing area
Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example,
Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
Wherein processor 960 is the control centre of mobile terminal 900, utilizes various interfaces and connection whole mobile phone
Various pieces, by running or executing the software program and/or module that are stored in first memory 921, and calling storage
Data in second memory 922 execute the various functions and processing data of mobile terminal 900, thus to mobile terminal 900
Carry out integral monitoring.Optionally, processor 960 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 921 in software program and/or module and/
Or the data in the second memory 922, processor 960 are used to receive the original number of the short message addressee of user's input;It obtains
Take the location information of the mobile terminal and the information of home location of the mobile terminal number;Judge the original of the short message addressee
Whether beginning number belongs to the country where the ownership place of the mobile terminal number;If the original of the short message addressee
Beginning number does not belong to the country where the ownership place of the mobile terminal number, then according to the position of the mobile terminal
The information of home location of confidence breath and the mobile terminal number, judges whether the mobile terminal is in international roaming state;If
The mobile terminal is in the international roaming state, then according to the digit of the original number of the short message addressee and roaming place
Relativeness between the regulation digit of the Mobile Directory Number of country, determines the destination number of the short message addressee.
Optionally, processor 960 is also used to: if the mobile terminal is not in the international roaming state, according to institute
The title for stating target country belonging to the ownership place of the original number of short message addressee or area determines the short message addressee's
Destination number.
Optionally, processor 960 is also used to: if the mobile terminal is in the international roaming state, obtain described in
Both the regulation digit of the Mobile Directory Number of the digit of the original number of short message addressee and the roaming place country, and judge
It is whether equal;If equal, obtain the ownership place of the mobile terminal number international prefix and the roaming place country
Country code, and combine the mesh that the short message addressee is generated using the prefix of the original number as the short message addressee
Label code;If unequal, according to target country belonging to the ownership place of the original number of the short message addressee or area
Title determines the destination number of the short message addressee.
Optionally, processor 960 is also used to: receiving returning for the original number of the short message addressee of user's input
The title in target country belonging to possession or area;It obtains to be stored between various countries or the title and its country code in area and reflect
The database of relationship is penetrated, and inquires the corresponding country code of title of the target country or area in the database;It obtains
Take the international prefix of the ownership place of the mobile terminal number, and in conjunction with the target country or the country code in area, as
The prefix of the original number of the short message addressee generates the destination number of institute short message addressee.
Optionally, processor 960 is also used to: if the original number of the short message addressee belongs to the mobile terminal number
Country where the ownership place of code, then using the original number of the short message addressee as the mesh of the short message addressee
Label code.
Mobile terminal 900 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, here
It repeats no more.
Mobile terminal 900 provided in an embodiment of the present invention, by judging whether the original number of the short message addressee returns
Whether the country and mobile terminal belonged to where the ownership place of the mobile terminal number is in international roaming shape
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 opposite between the digit of the original number of short message addressee and the regulation digit of the Mobile Directory Number of roaming place country
Relationship determines the destination number of short message addressee, so that user is in these cases, without adding the original of short message addressee manually
The prefix of beginning number, the automatic addition prefix that mobile terminal can be intelligent, is simple and efficient, saves the operating procedure of user, avoid hand
The cumbersome of addition is moved, the short message for promoting user sends experience.
Those of ordinary skill in the art may be aware that the embodiment in conjunction with disclosed in the embodiment of the present invention describe it is each
Exemplary unit and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others
Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit
It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various can store program code
Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.
Claims (9)
1. a kind of determination method of destination number is applied to mobile terminal characterized by comprising
Receive the original number of the short message addressee of user's input;
Obtain the location information of the mobile terminal and the information of home location of the mobile terminal number;
Judge whether the original number of the short message addressee belongs to the country where the ownership place of the mobile terminal number
Or area;
If the original number of the short message addressee does not belong to country or ground where the ownership place of the mobile terminal number
Area judges described mobile whole then according to the information of home location of the location information of the mobile terminal and the mobile terminal number
Whether end is in international roaming state;
If the mobile terminal is in the international roaming state, according to the digit of the original number of the short message addressee with
Relativeness between the regulation digit of the Mobile Directory Number of roaming place country determines the target number of the short message addressee
Code;Wherein,
If the mobile terminal is in the international roaming state, according to the position of the original number of the short message addressee
Relativeness between the regulation digit of several and roaming place country Mobile Directory Number, determines the target of the short message addressee
Number, comprising:
If the mobile terminal is in the international roaming state, obtain the digit of the original number of the short message addressee with
The regulation digit of the Mobile Directory Number of the roaming place country, and judge whether the two is equal;If equal, the shifting is obtained
The international prefix of the ownership place of dynamic termination number and the country code of roaming place country, and combine using as described short
The prefix for believing the original number of addressee, generates the destination number of the short message addressee;If unequal, according to the short message
The title in target country belonging to the ownership place of the original number of addressee or area determines the target number of the short message addressee
Code.
2. the method as described in claim 1, which is characterized in that judge whether the mobile terminal is in international roaming described
After the step of state, further includes:
If the mobile terminal is not in the international roaming state, according to the ownership of the original number of the short message addressee
The title in target country belonging to ground or area determines the destination number of the short message addressee.
3. method according to claim 1 or 2, which is characterized in that the original number according to the short message addressee
The step of title in target country belonging to ownership place or area determines the destination number of the short message addressee, comprising:
Receive target country belonging to the ownership place of the original number of the short message addressee of user input or area
Title;
The database for being stored with mapping relations between various countries or the title and its country code in area is obtained, and in the data
The corresponding country code of title of the target country or area is inquired in library;
The international prefix of the ownership place of the mobile terminal number is obtained, and in conjunction with the target country or the national generation in area
Code, the prefix of the original number as the short message addressee generate the destination number of institute short message addressee.
4. the method as described in claim 1, which is characterized in that the original number for judging the short message addressee whether
After the step of belonging to the country where the ownership place of the mobile terminal number, further includes:
If the original number of the short message addressee belongs to the country where the ownership place of the mobile terminal number,
Then using the original number of the short message addressee as the destination number of the short message addressee.
5. a kind of mobile terminal characterized by comprising
Receiving module, the original number of the short message addressee for receiving user's input;
Module is obtained, for obtaining the location information of the mobile terminal and the information of home location of the mobile terminal number;
Ownership place judgment module, for judging whether the original number of the short message addressee belongs to the mobile terminal number
Ownership place where country;
Judgment module is roamed, if the original number for the short message addressee does not belong to the ownership of the mobile terminal number
Country where ground is then believed according to the ownership place of the location information of the mobile terminal and the mobile terminal number
Breath, judges whether the mobile terminal is in international roaming state;
First determining module, if the international roaming state is in for the mobile terminal, according to the short message addressee
Original number digit and roaming place country Mobile Directory Number regulation digit between relativeness, determine described short
Believe the destination number of addressee;Wherein,
First determining module includes:
Digit judging unit obtains the short message addressee if being in the international roaming state for the mobile terminal
Original number digit and the roaming place country Mobile Directory Number regulation digit, and judge the two it is whether equal;
First determination unit, if obtaining the international prefix of the ownership place of the mobile terminal number and described for equal
The country code of roaming place country, and combine using the prefix of the original number as the short message addressee, it generates described short
Believe the destination number of addressee;
Second determination unit, if for unequal, according to mesh belonging to the ownership place of the original number of the short message addressee
The title of mark country determines the destination number of the short message addressee.
6. mobile terminal as claimed in claim 5, which is characterized in that further include:
Second determining module, if being not in the international roaming state for the mobile terminal, according to the short message addressee
The title in target country belonging to the ownership place of the original number of people or area determines the destination number of the short message addressee.
7. mobile terminal as claimed in claim 6, which is characterized in that second determining module includes:
National input unit, belonging to the ownership place of the original number of the short message addressee for receiving user input
The title in target country or area;
Query unit, for obtaining the data for being stored with mapping relations between various countries or the title and its country code in area
Library, and the corresponding country code of title of the target country or area is inquired in the database;
Number generation unit, the international prefix of the ownership place for obtaining the mobile terminal number, and in conjunction with the target state
The country code in family or area, the prefix of the original number as the short message addressee generate the target of institute short message addressee
Number.
8. mobile terminal as claimed in claim 5, which is characterized in that second determination unit includes:
Country inputs subelement, belonging to the ownership place of the original number of the short message addressee for receiving user's input
Target country or area title;
Subelement is inquired, for obtaining the data for being stored with mapping relations between various countries or the title and its country code in area
Library, and the corresponding country code of title of the target country or area is inquired in the database;
Number generation subelement, the international prefix of the ownership place for obtaining the mobile terminal number, and in conjunction with the target
The country code of country, the prefix of the original number as the short message addressee generate the mesh of institute short message addressee
Label code.
9. mobile terminal as claimed in claim 5, which is characterized in that further include:
Third determining module, if the original number for the short message addressee belongs to the ownership place of the mobile terminal number
The country at place, then using the original number of the short message addressee as the destination number of the short message addressee.
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)
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)
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)
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 |
-
2016
- 2016-10-31 CN CN201610932152.4A patent/CN106507320B/en active Active
Patent Citations (4)
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 | |
CN101833418B (en) | Method and device for adding icon in interface and mobile terminal | |
US20140038572A1 (en) | Method and mobile terminal for processing contacts | |
CN106372560B (en) | A kind of detection method and device, terminal of Quick Response Code detection figure | |
CN106294308A (en) | Name entity recognition method and device | |
CN106535100A (en) | Method for locating mobile terminal, mobile terminal and server | |
CN106203228A (en) | Two-dimensional code information transmission method, device and equipment | |
CN106210232A (en) | The storage method of the telephone number of a kind of mobile terminal and mobile terminal | |
CN106095266A (en) | A kind of control exposure method and apparatus | |
CN105050038A (en) | Method, apparatus, and system for monitoring position information of mobile terminal | |
CN106972941B (en) | A kind of group chat method and mobile terminal | |
EP2347328A1 (en) | User interface, device and method for providing a use case based interface | |
CN105740242A (en) | Information search device and method based on two-dimension code, and mobile terminal | |
CN107708093B (en) | A kind of method and mobile terminal for establishing relaying data network using wireless headset | |
CN102256004A (en) | Information processing method and electronic terminal | |
CN104363560A (en) | Event reminding method and mobile terminal based on WIFI signals | |
CN108112022A (en) | A kind of system information block transmission method, terminal and network side equipment | |
CN106790768B (en) | A kind of dns server setting method and mobile terminal | |
CN109271312A (en) | Game test method and Related product | |
CN105611514A (en) | Short message service subscription cancellation method and mobile terminal | |
CN108227953A (en) | Character input method and related product | |
CN106385671A (en) | Positioning method and mobile terminal | |
CN107528963A (en) | The switching method and mobile terminal of a kind of positioning service | |
CN106469060A (en) | A kind of processing method of application messages and mobile terminal | |
CN106060289A (en) | Method, apparatus and system for communication |
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 |