CN106878977B - Telephone number calling method and mobile terminal - Google Patents
Telephone number calling method and mobile terminal Download PDFInfo
- Publication number
- CN106878977B CN106878977B CN201710042729.9A CN201710042729A CN106878977B CN 106878977 B CN106878977 B CN 106878977B CN 201710042729 A CN201710042729 A CN 201710042729A CN 106878977 B CN106878977 B CN 106878977B
- Authority
- CN
- China
- Prior art keywords
- sim card
- determining
- mobile terminal
- telephone number
- call
- 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
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/18—Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/02—Terminal devices
- H04W88/06—Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention provides a calling method of a telephone number and a mobile terminal, wherein the method comprises the following steps: determining a telephone number to be called and first attribution information corresponding to the telephone number; respectively determining second attribution information corresponding to each SIM card in the mobile terminal; determining the geographical position information of the mobile terminal; for each SIM card, determining a call type corresponding to the SIM card calling the telephone number according to second attribution information, the first attribution information and the geographical location information corresponding to the SIM card, wherein different call types correspond to different priorities; and selecting the SIM card corresponding to the call type with the highest priority to call the telephone number. Through the method for calling the telephone number, the user does not need to select the SIM card by subjective consciousness, but the mobile terminal automatically selects the most suitable SIM card to complete the calling.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method for calling a phone number and a mobile terminal.
Background
With the rapid development of the mobile internet and the dependence of young people pursuing fashion on the mobile terminal, the mobile terminal is more and more popular, a mobile terminal user can install various application programs on the mobile terminal, the installed application programs can provide convenient services for daily life and work of the mobile terminal user, and the mobile terminal can also provide the service for the user to make a call anytime and anywhere.
In the actual use process, many users do not satisfy the requirement of using one SIM (Subscriber identity module) card, and they may use two or even more SIM cards, for example, one SIM card is mainly used for receiving a call, and the other SIM card is mainly used for making a call; for another example, the attribution of one SIM card is A ground, and the attribution of the other SIM card is B ground. Therefore, dual-card dual standby has become a necessary function in the mobile terminal at the present stage.
However, currently, when a user dials a phone number using a mobile terminal including a plurality of SIM cards, a phone number input interface is as shown in fig. 1. As can be seen from fig. 1, the existing phone number input interface only prompts the user that there is a SIM1 card, and the SIM2 card is selectable, so that when the user selects the SIM card to call a phone number, the user needs to select the phone number completely by subjective awareness, and if the user cannot clearly distinguish the attribution and specific use of each SIM card, the user cannot accurately select a suitable SIM card, and the user experience is poor.
Disclosure of Invention
The invention provides a method for calling a telephone number and a mobile terminal, which aim to solve the problem that a user cannot accurately select a proper SIM card because the SIM card is selected completely by the subjective consciousness of the user in the conventional telephone number calling scheme.
According to an aspect of the present invention, there is provided a method for calling a telephone number, applied to a mobile terminal including at least two SIM cards, wherein the method includes: determining a telephone number to be called and first attribution information corresponding to the telephone number; respectively determining second attribution information corresponding to each SIM card in the mobile terminal; determining the geographical position information of the mobile terminal; for each SIM card, determining a call type corresponding to the SIM card calling the telephone number according to second attribution information, the first attribution information and the geographical location information corresponding to the SIM card, wherein different call types correspond to different priorities; and selecting the SIM card corresponding to the call type with the highest priority to call the telephone number.
According to another aspect of the present invention, there is provided a mobile terminal including at least two SIM cards, wherein the mobile terminal further includes: the first determining module is used for determining a telephone number to be called and first attribution information corresponding to the telephone number; a second determining module, configured to determine second home location information corresponding to each SIM card in the mobile terminal; a third determining module, configured to determine geographic location information of the mobile terminal; a call type determining module, configured to determine, for each SIM card, a call type corresponding to the SIM card calling the phone number according to the second home location information, the first home location information, and the geographic location information corresponding to the SIM card, where different call types correspond to different priorities; and the selection module is used for selecting the SIM card corresponding to the conversation type with the highest priority to call the telephone number.
Compared with the prior art, the invention has the following advantages:
according to the method and the mobile terminal for calling the telephone number, the call type corresponding to the telephone number called by each SIM card is determined by analyzing the attribution of each SIM card, the attribution of the telephone number to be called and the geographical position of the mobile terminal, the SIM card corresponding to the call type with the highest priority is selected to call the telephone number, and the user does not need to select the SIM card by subjective awareness, so that even if the user forgets which SIM card to be selected to call the telephone number is most suitable, the call can be finally completed through the most suitable SIM card, and the use experience of the user can be improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a schematic diagram of a prior art telephone number entry interface;
fig. 2 is a flowchart illustrating steps of a method for calling a telephone number according to a first embodiment of the present invention;
fig. 3 is a flowchart illustrating steps of a method for calling a phone number according to a second embodiment of the present invention;
FIG. 4 is a schematic view of a telephone number input interface shown in the second embodiment;
fig. 5 is a block diagram of a mobile terminal according to a third embodiment of the present invention;
fig. 6 is a block diagram of a mobile terminal according to a fourth embodiment of the present invention;
fig. 7 is a block diagram of a mobile terminal according to a fifth embodiment of the present invention;
fig. 8 is a block diagram of a mobile terminal according to a sixth embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Example one
Referring to fig. 2, a flowchart illustrating steps of a method for calling a phone number according to a first embodiment of the present invention is shown.
The method for calling the telephone number comprises the following steps:
step 101: and determining a telephone number to be called and first attribution information corresponding to the telephone number.
The telephone number to be called may be entered by the user in a telephone number entry interface or may be selected by the user from a dial-out list or a phonebook.
When the first attribution information corresponding to the telephone number is determined, the first attribution information can be executed after the telephone number is completely input; the home information determination may also be made during entry of the telephone number when the entered portion of the telephone number is sufficient to characterize the home.
Step 102: and respectively determining second attribution information corresponding to each SIM card in the mobile terminal.
The method for calling the telephone number in the embodiment of the invention is suitable for the mobile terminal comprising two or more SIM cards.
Each SIM card has an attribution objectively, and attribution information corresponding to each SIM card can be prestored in the mobile terminal after the SIM card is inserted into the mobile terminal. The SIM card has no roaming when the SIM card is connected or called at the home. The home information includes: the country, province and city.
Step 103: and determining the geographical position information of the mobile terminal.
The geographical location information of the mobile terminal may be determined by the location information of the base station to which each SIM card in the mobile terminal is currently connected, or may be determined by a positioning module installed in the mobile terminal. The country, province and city where the mobile terminal is located can be determined through the geographical position information.
Step 104: and aiming at each SIM card, determining the call type corresponding to the calling telephone number of the SIM card according to the second attribution information corresponding to the SIM card, the first attribution information corresponding to the telephone number to be called and the geographical location information of the mobile terminal.
The call types include, but are not limited to: local, long distance, roaming, long distance plus roaming, international roaming. Different call types correspond to different priorities, and the higher the priority is, the lower the call charge is.
And repeatedly executing the step 104 to calculate the call type corresponding to the telephone number called by each SIM card.
Step 105: and selecting the SIM card corresponding to the call type with the highest priority to call the telephone number.
Because the call type corresponding to each SIM card is determined to be finished and each call type is preset with a priority, the call type with the highest priority can be determined by comparing the priorities of the current call types, and the SIM card corresponding to the call type is adopted to call the telephone number.
A higher priority indicates a lower tariff when the subscriber calls out the telephone number using the SIM card.
According to the method for calling the telephone number, the call type corresponding to the telephone number called by each SIM card is determined by analyzing the attribution of each SIM card, the attribution of the telephone number to be called and the geographical position of the mobile terminal, the SIM card corresponding to the call type with the highest priority is selected to call the telephone number, and the user does not need to select the SIM card by means of subjective consciousness, so that even if the user forgets which SIM card is selected to be most suitable for calling the telephone number, the call can be finally completed through the most suitable SIM card, and the use experience of the user can be improved.
Example two
Referring to fig. 3, a flowchart illustrating steps of a method for calling a phone number according to a second embodiment of the present invention is shown.
The method for calling the telephone number of the embodiment of the invention specifically comprises the following steps:
step 201: and determining a telephone number to be called and first attribution information corresponding to the telephone number.
The telephone number to be called may be entered by the user in a telephone number entry interface as shown in fig. 4, or may be selected by the user from a dial-out list or phonebook.
When the first attribution information corresponding to the telephone number is determined, the first attribution information can be executed after the telephone number is completely input; or may be determined during the telephone number entry process.
Step 202: and respectively determining second attribution information corresponding to each SIM card in the mobile terminal.
Each SIM card has an attribution objectively, and attribution information corresponding to each SIM card can be prestored in the mobile terminal after the SIM card is inserted into the mobile terminal. The SIM card has no roaming when the SIM card is connected or called at the home. The home information includes: the country, province and city. Step 204: and determining the geographical position information of the mobile terminal.
The geographical location information of the mobile terminal may be determined by the location information of the base station to which each SIM card in the mobile terminal is currently connected, or may be determined by a positioning module installed in the mobile terminal. The country, province and city where the mobile terminal is located can be determined through the geographical position information.
One preferred way to determine the geographical location information of the mobile terminal is as follows:
firstly, determining first position information of a base station connected with each SIM card in a mobile terminal;
the base stations connected with the SIM cards may be the same, and when the base stations are the same, the location information of the base stations may be directly used as the first location information. When the base stations connected with the SIM cards are different, the position information corresponding to the center of the position of each base station can be taken as the first position information.
Secondly, the first position information is determined as the geographical position information of the mobile terminal.
Step 203: and aiming at each SIM card, determining the call type corresponding to the calling telephone number of the SIM card according to the second attribution information corresponding to the SIM card, the first attribution information corresponding to the telephone number to be called and the geographical location information of the mobile terminal.
The call types include, but are not limited to: local, long distance, roaming, long distance plus roaming, international roaming.
A preferred method for determining the call type corresponding to the phone number called by the SIM card according to the second home location information corresponding to the SIM card, the first home location information corresponding to the phone number to be called, and the geographical location information of the mobile terminal is as follows:
when the first attribution information, the second attribution information and the geographical position information indicate the same city, determining that the call type corresponding to the telephone number called by the SIM card is the city call;
when the second attribution information and the geographical position information indicate different countries, determining that the call type corresponding to the SIM card calling telephone number is international roaming;
when the second attribution information and the geographical position information indicate the same city and the first attribution information and the second attribution information indicate different cities, determining that the call type corresponding to the SIM card calling telephone number is a long distance;
when the first attribution information, the second attribution information and the geographical position information respectively indicate different cities in the same country, determining that the call type corresponding to the SIM card calling telephone number is long distance roaming;
and when the second attribution information and the geographical position information indicate different cities in the same country, and the second attribution information and the first attribution information indicate the same city, determining that the call type corresponding to the SIM card calling telephone number is roaming.
And step 203 is repeatedly executed to determine the call type corresponding to each SIM card calling telephone number.
Step 204: and displaying the SIM card selection buttons and correspondingly displaying the call types corresponding to the SIM cards.
Each SIM card corresponds to a SIM card selection button, and each selection button is displayed in a telephone number input interface for a user to select. And correspondingly displaying the call types corresponding to the SIM cards while displaying the SIM card selection buttons, so that the user can determine which SIM card to call the telephone number according to the displayed call types, and the cost is lower.
As shown in fig. 4, in the embodiment of the present invention, each SIM card selection button is displayed in the phone number input interface, and the corresponding call type when each SIM card calls the phone number is correspondingly displayed.
Fig. 4(a) and 4(b) are phone number input interfaces for displaying SIM card selection buttons and displaying corresponding call types of each SIM card. The "international" and "city" in fig. 4(a) are the types of calls when the two SIM cards call the telephone number. In fig. 4(b), "long distance" and "roaming" are the types of calls when two SIM cards call the phone number. The user can select the SIM according to the self requirement through the displayed call type.
Step 205: and highlighting the SIM card selection button of the SIM card corresponding to the call type with the highest priority.
Different priorities are correspondingly set for different call types in the mobile terminal, and the higher the priority is, the lower the call charge is.
For example: the corresponding priority of the local calls can be set as a first level, the corresponding priority of the long-distance calls is set as a second level, the corresponding priority of the roaming calls is set as a third level, the corresponding priority of the long-distance roaming calls is set as a fourth level, and the corresponding priority of the international roaming calls is set as a fifth level; wherein the first level is higher in priority than the fifth level. Specifically, the SIM card selection button corresponding to "city call" in fig. 4(a) may be highlighted by deepening the color of the SIM card selection button. Of course, the SIM card selection button may be highlighted by highlighting the button, or may be enlarged by highlighting the SIM card selection button. The SIM card selection button corresponding to "long distance" shown in fig. 4(b) is highlighted by highlighting.
Highlighting the SIM card selection button may draw the attention of the user, which has the effect of suggesting that the user use the SIM card corresponding to the SIM card selection button.
It should be noted that, in the specific implementation process, the method is not limited to that defined in the embodiment of the present invention, and the SIM card selection prompt is given in a manner of displaying the call types corresponding to the respective SIM cards and highlighting the SIM card selection button with the highest association degree, or may be given in any manner. For example: only the SIM card selection button corresponding to the SIM card with the highest relevance degree is highlighted; for another example: only when the SIM card selection button is displayed, the corresponding association degree and/or the association degree label of each SIM card are correspondingly displayed.
Step 206: and receiving a selection instruction of the SIM card corresponding to the call type with the highest priority.
The user can easily determine the SIM card with the lowest charge for calling the telephone number, namely the SIM card corresponding to the call type with the highest priority, through the call type displayed in the telephone number input interface or the highlighted SIM selection button. In a specific implementation process, the user may select other SIM cards according to actual requirements, and is not limited to the SIM card corresponding to the call type with the highest priority shown in the embodiment of the present invention.
Step 207: and selecting the SIM card corresponding to the call type with the highest priority to call the telephone number.
The higher the priority, the lower the charge when the user calls out the phone number using the SIM card, so that the operation in step 207 can be performed to complete the call at the lowest charge.
The method for calling the telephone number provided by the embodiment of the invention has the advantages that the method for calling the telephone number has in the embodiment one, and the corresponding call types of the SIM cards and the SIM card selection buttons can be correspondingly displayed in the telephone number input interface, so that the SIM card selection prompt corresponding to the user is given. The user can select the SIM card according to the actual requirements by combining the prompt and the actual requirements, and is not limited to selecting the SIM card with the highest priority, namely the lowest charge, so that the method has more flexibility, and the use experience of the user can be further improved.
EXAMPLE III
Referring to fig. 5, a block diagram of a mobile terminal according to a third embodiment of the present invention is shown.
The mobile terminal of the embodiment of the invention comprises at least two SIM cards, and the mobile terminal also comprises: a first determining module 501, configured to determine a phone number to be called and first home location information corresponding to the phone number; a second determining module 502, configured to determine second home location information corresponding to each SIM card in the mobile terminal respectively; a third determining module 503, configured to determine geographic location information of the mobile terminal; a call type determining module 504, configured to determine, for each SIM card, a call type corresponding to the SIM card calling the phone number according to the second home location information, the first home location information, and the geographic location information corresponding to the SIM card, where different call types correspond to different priorities; and a selecting module 505, configured to select a SIM card corresponding to the call type with the highest priority to call the phone number.
According to the mobile terminal provided by the embodiment of the invention, the call type corresponding to each SIM card calling the telephone number is determined by analyzing the attribution of each SIM card, the attribution of the telephone number to be called and the geographical position of the mobile terminal, the SIM card corresponding to the call type with the highest priority is selected to call the telephone number, and the user does not need to select the SIM card by means of subjective consciousness, so that even if the user forgets which SIM card is selected to be most suitable for calling the telephone number, the call can be finally completed through the most suitable SIM card, and the use experience of the user can be improved.
Example four
Referring to fig. 6, a block diagram of a mobile terminal according to a fourth embodiment of the present invention is shown.
The mobile terminal of the embodiment of the present invention is further optimized for the mobile terminal of the third embodiment, and the optimized mobile terminal includes at least two SIM cards, and further includes: a first determining module 601, configured to determine a phone number to be called and first home location information corresponding to the phone number; a second determining module 602, configured to determine second home location information corresponding to each SIM card in the mobile terminal respectively; a third determining module 603, configured to determine geographic location information of the mobile terminal; a call type determining module 604, configured to determine, for each SIM card, a call type corresponding to the SIM card calling the phone number according to the second home location information, the first home location information, and the geographic location information corresponding to the SIM card, where different call types correspond to different priorities; and the selecting module 605 is configured to select the SIM card corresponding to the call type with the highest priority to call the phone number.
Preferably, the third determining module 603 comprises: a base station determining submodule 6031 configured to determine first location information of a base station to which each SIM card in the mobile terminal is connected; a geographic location information determining sub-module 6032, configured to determine the first location information as the geographic location information where the mobile terminal is located.
Preferably, the mobile terminal further includes: a display module 606, configured to display a SIM card selection button and correspondingly display the call types corresponding to the SIM cards while the call type determination module 604 determines that the SIM card calls the call type corresponding to the phone number before the selection module 605 selects the SIM card corresponding to the call type with the highest priority to call the phone number;
the invoking module 607 is configured to, when receiving a selection instruction for the SIM card corresponding to the call type with the highest priority, invoke the selecting module to execute an operation of calling the phone number by the SIM card corresponding to the call type with the highest priority.
Preferably, the mobile terminal further includes: the display processing module 608 is configured to highlight the SIM card selection button of the SIM card corresponding to the highest priority call type after the display module 606 correspondingly displays the call type corresponding to each SIM card.
Preferably, the call type determining module 604 includes: a first type determining submodule, configured to determine that a call type corresponding to the telephone number called by the SIM card is a local call when the first home location information, the second home location information, and the geographic location information indicate the same city; a second type determining submodule, configured to determine that a call type corresponding to the phone number called by the SIM card is international roaming when the second attribution information and the geographical location information indicate different countries; a third type determining sub-module, configured to determine that the call type corresponding to the SIM card calling the phone number is a long distance when the second home information and the geographic location information indicate the same city, and the first home information and the second home information indicate different cities; a fourth type determining sub-module, configured to determine that the call type corresponding to the SIM card calling the phone number is long distance roaming when the first attribution information, the second attribution information, and the geographic location information indicate different cities in the same country respectively; a fifth type determining sub-module, configured to determine that the call type corresponding to the SIM card calling the phone number is roaming when the second attribution information and the geographic location information indicate different cities in the same country, and the second attribution information and the first attribution information indicate the same city.
The mobile terminal of the embodiment of the present invention is used to implement the method for calling a phone number in the first embodiment and the second embodiment, and has the corresponding beneficial effects with the method embodiments, which are not described herein again.
EXAMPLE five
Referring to fig. 7, a block diagram of a mobile terminal according to a fifth embodiment of the present invention is shown.
The mobile terminal 700 of the embodiment of the present invention includes: at least one processor 701, memory 702, at least one network interface 704, and other user interfaces 703. The various components in the mobile terminal 700 are coupled together by a bus system 705. It is understood that the bus system 705 is used to enable communications among the components. The bus system 705 includes a power bus, a control bus, and a status signal bus in addition to a data bus. But for clarity of illustration the various busses are labeled in figure 7 as the bus system 705.
The user interface 703 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, track ball, touch pad, or touch screen, etc.).
It is to be understood that the Memory 702 in embodiments of the present invention may be either volatile Memory or non-volatile Memory, or may include both volatile and non-volatile Memory, wherein non-volatile Memory may be Read-Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), or flash Memory volatile Memory may be Random Access Memory (RAM), which serves as external cache Memory, by way of example but not limitation, many forms of RAM are available, such as Static Random Access Memory (Static RAM, SRAM), Dynamic Random Access Memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (syncronous DRAM, SDRAM), double data rate Synchronous Dynamic Random Access Memory (doubte DRAM, rsddddd DRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), SDRAM, or SDRAM L, and other types of RAM suitable for accessing the present invention, including, RAM, SDRAM, DRAM, and RAM, and other embodiments of the present invention are suitable for example, and RAM.
In some embodiments, memory 702 stores the following elements, executable modules or data structures, or a subset thereof, or an expanded set thereof: an operating system 7021 and application programs 7022.
The operating system 7021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks. The application 7022 includes various applications, such as a Media Player (Media Player), a Browser (Browser), and the like, for implementing various application services. Programs that implement methods in accordance with embodiments of the present invention can be included within application program 7022.
In the embodiment of the present invention, the processor 701 is configured to determine a phone number to be called and first home information corresponding to the phone number by calling a program or an instruction stored in the memory 702, specifically, a program or an instruction stored in the application 7022; respectively determining second attribution information corresponding to each SIM card in the mobile terminal; determining the geographical position information of the mobile terminal; for each SIM card, determining a call type corresponding to the SIM card calling the telephone number according to second attribution information, the first attribution information and the geographical location information corresponding to the SIM card, wherein different call types correspond to different priorities; and selecting the SIM card corresponding to the call type with the highest priority to call the telephone number.
The method disclosed in the above embodiments of the present invention may be applied to the processor 701, or implemented by the processor 701. The processor 701 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be implemented by integrated logic circuits of hardware or instructions in the form of software in the processor 701. The Processor 701 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 components. 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 702, and the processor 701 reads the information in the memory 702 and performs the steps of the above method in combination with the hardware 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 (P L D), Field-Programmable Gate arrays (FPGAs), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described in this embodiment of the invention may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described in this embodiment of the invention. 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, when determining the geographical location information of the mobile terminal, the processor 701 is specifically configured to: determining first position information of a base station connected with each SIM card in the mobile terminal; and determining the first position information as the geographical position information of the mobile terminal.
Optionally, before the SIM card corresponding to the call type with the highest priority is selected to call the phone number, after determining that the SIM card calls the call type corresponding to the phone number, the processor 701 is further configured to: displaying SIM card selection buttons and correspondingly displaying the call types corresponding to the SIM cards; and when a selection instruction of the SIM card corresponding to the call type with the highest priority is received, executing the step of calling the telephone number by the SIM card corresponding to the call type with the highest priority.
Optionally, after the processor 701 correspondingly displays the call types corresponding to the respective SIM cards, the processor is further configured to: and highlighting the SIM card selection button of the SIM card corresponding to the call type with the highest priority.
Optionally, when determining, by the processor 701, that the SIM card calls the call type corresponding to the phone number according to the second home information, the first home information, and the geographic location information corresponding to the SIM card, the processor is specifically configured to: when the first attribution information, the second attribution information and the geographical position information indicate the same city, determining that the call type corresponding to the telephone number called by the SIM card is a city call; when the second attribution information and the geographical location information indicate different countries, determining that the call type corresponding to the telephone number called by the SIM card is international roaming; when the second home location information and the geographical location information indicate the same city, and the first home location information and the second home location information indicate different cities, determining that the call type corresponding to the SIM card calling the telephone number is long distance; when the first attribution information, the second attribution information and the geographical location information respectively indicate different cities in the same country, determining that the call type corresponding to the SIM card calling the telephone number is long distance roaming; and when the second attribution information and the geographical position information indicate different cities in the same country, and the second attribution information and the first attribution information indicate the same city, determining that the call type corresponding to the telephone number called by the SIM card is roaming.
The mobile terminal 700 can implement the processes implemented by the mobile terminal in the foregoing embodiments, and details are not repeated here to avoid repetition.
According to the mobile terminal provided by the embodiment of the invention, the call type corresponding to each SIM card calling the telephone number is determined by analyzing the attribution of each SIM card, the attribution of the telephone number to be called and the geographical position of the mobile terminal, the SIM card corresponding to the call type with the highest priority is selected to call the telephone number, and the user does not need to select the SIM card by means of subjective consciousness, so that even if the user forgets which SIM card is selected to be most suitable for calling the telephone number, the call can be finally completed through the most suitable SIM card, and the use experience of the user can be improved.
EXAMPLE six
Referring to fig. 8, a block diagram of a mobile terminal according to a sixth embodiment of the present invention is shown.
The mobile terminal in the embodiment of the present invention may be a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), or a vehicle-mounted computer.
The mobile terminal in fig. 8 includes a Radio Frequency (RF) circuit 810, a memory 820, an input unit 830, a display unit 840, a processor 860, an audio circuit 870, a wifi (wirelessfidelity) module 880, and a power supply 890.
The input unit 830 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. Specifically, in the embodiment of the present invention, the input unit 830 may include a touch panel 831. The touch panel 831, also referred to as a touch screen, can collect touch operations performed by a user on or near the touch panel 831 (e.g., operations performed by the user on the touch panel 831 using a finger, a stylus, or any other suitable object or accessory), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 831 may include two portions, i.e., 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 the touch information into touch point coordinates, sends the touch point coordinates to the processor 860, and can receive and execute commands sent by the processor 860. In addition, the touch panel 831 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 831, the input unit 830 may include other input devices 832, and the other input devices 832 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.
The display unit 840 may include a display panel 841, and the display panel 841 may be configured in the form of L CD or an Organic light Emitting Diode (O L ED), or the like, optionally.
It should be noted that the touch panel 831 can overlay the display panel 841 to form a touch display screen, which, when it detects a touch operation thereon or nearby, is passed to the processor 860 to determine the type of touch event, and then the processor 860 provides a corresponding visual output on the touch display screen according to the type of 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 860 is a control center of the mobile terminal, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the first memory 821 and calling data stored in the second memory 822, thereby performing overall monitoring of the mobile terminal. Optionally, processor 860 may include one or more processing units.
In the embodiment of the present invention, the processor 860 is configured to determine a phone number to be called and first home information corresponding to the phone number by calling a software program and/or a module stored in the first memory 821 and/or data stored in the second memory 822; respectively determining second attribution information corresponding to each SIM card in the mobile terminal; determining the geographical position information of the mobile terminal; for each SIM card, determining a call type corresponding to the SIM card calling the telephone number according to second attribution information, the first attribution information and the geographical location information corresponding to the SIM card, wherein different call types correspond to different priorities; and selecting the SIM card corresponding to the call type with the highest priority to call the telephone number.
Optionally, when determining the geographical location information of the mobile terminal, the processor 860 is specifically configured to: determining first position information of a base station connected with each SIM card in the mobile terminal; and determining the first position information as the geographical position information of the mobile terminal.
Optionally, the processor 860 is further configured to, before the selecting the SIM card corresponding to the call type with the highest priority to call the phone number, after determining that the SIM card calls the call type corresponding to the phone number: displaying SIM card selection buttons and correspondingly displaying the call types corresponding to the SIM cards; and when a selection instruction of the SIM card corresponding to the call type with the highest priority is received, executing the step of calling the telephone number by the SIM card corresponding to the call type with the highest priority.
Optionally, after the processor 860 correspondingly displays the call types corresponding to the respective SIM cards, the processor is further configured to: and highlighting the SIM card selection button of the SIM card corresponding to the call type with the highest priority.
Optionally, when determining, according to the second attribution information, the first attribution information, and the geographic location information corresponding to the SIM card, that the SIM card calls the call type corresponding to the phone number, the processor 860 is specifically configured to: when the first attribution information, the second attribution information and the geographical position information indicate the same city, determining that the call type corresponding to the telephone number called by the SIM card is a city call; when the second attribution information and the geographical location information indicate different countries, determining that the call type corresponding to the telephone number called by the SIM card is international roaming; when the second home location information and the geographical location information indicate the same city, and the first home location information and the second home location information indicate different cities, determining that the call type corresponding to the SIM card calling the telephone number is long distance; when the first attribution information, the second attribution information and the geographical location information respectively indicate different cities in the same country, determining that the call type corresponding to the SIM card calling the telephone number is long distance roaming; and when the second attribution information and the geographical position information indicate different cities in the same country, and the second attribution information and the first attribution information indicate the same city, determining that the call type corresponding to the telephone number called by the SIM card is roaming.
According to the mobile terminal provided by the embodiment of the invention, the call type corresponding to each SIM card calling the telephone number is determined by analyzing the attribution of each SIM card, the attribution of the telephone number to be called and the geographical position of the mobile terminal, the SIM card corresponding to the call type with the highest priority is selected to call the telephone number, and the user does not need to select the SIM card by means of subjective consciousness, so that even if the user forgets which SIM card is selected to be most suitable for calling the telephone number, the call can be finally completed through the most suitable SIM card, and the use experience of the user can be improved.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The calling plan for telephone numbers provided herein is not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with the teachings herein. The structure required to construct a system incorporating aspects of the present invention will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in a telephone number calling scheme in accordance with embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
Claims (8)
1. A method for calling a telephone number, applied to a mobile terminal comprising at least two SIM cards, is characterized in that the method comprises the following steps:
determining a telephone number to be called and first attribution information corresponding to the telephone number;
respectively determining second attribution information corresponding to each SIM card in the mobile terminal;
determining the geographical position information of the mobile terminal;
for each SIM card, determining a call type corresponding to the SIM card calling the telephone number according to second attribution information, the first attribution information and the geographical location information corresponding to the SIM card, wherein different call types correspond to different priorities;
selecting the SIM card corresponding to the conversation type with the highest priority to call the telephone number;
the step of determining the geographical location information of the mobile terminal includes:
determining first position information of a base station connected with each SIM card in the mobile terminal;
determining the first position information as the geographical position information of the mobile terminal;
the determining first location information of a base station to which each SIM card in the mobile terminal is connected includes: and when the base stations connected with the SIM cards are the same, taking the position information of the base station as the first position information, and when the base stations connected with the SIM cards are different, taking the position information corresponding to the center of each base station as the first position information.
2. The method according to claim 1, wherein before the step of selecting the SIM card corresponding to the highest-priority call type to call the phone number, after the step of determining that the SIM card calls the call type corresponding to the phone number, the method further comprises:
displaying SIM card selection buttons and correspondingly displaying the call types corresponding to the SIM cards;
and when a selection instruction of the SIM card corresponding to the call type with the highest priority is received, executing the step of calling the telephone number by the SIM card corresponding to the call type with the highest priority.
3. The method according to claim 2, wherein after the step of correspondingly displaying the call types corresponding to the respective SIM cards, the method further comprises:
and highlighting the SIM card selection button of the SIM card corresponding to the call type with the highest priority.
4. The method according to claim 1, wherein the step of determining the call type corresponding to the SIM card calling the phone number according to the second home information, the first home information and the geographic location information corresponding to the SIM card comprises:
when the first attribution information, the second attribution information and the geographical position information indicate the same city, determining that the call type corresponding to the telephone number called by the SIM card is a city call;
when the second attribution information and the geographical location information indicate different countries, determining that the call type corresponding to the telephone number called by the SIM card is international roaming;
when the second home location information and the geographical location information indicate the same city, and the first home location information and the second home location information indicate different cities, determining that the call type corresponding to the SIM card calling the telephone number is long distance;
when the first attribution information, the second attribution information and the geographical location information respectively indicate different cities in the same country, determining that the call type corresponding to the SIM card calling the telephone number is long distance roaming;
and when the second attribution information and the geographical position information indicate different cities in the same country, and the second attribution information and the first attribution information indicate the same city, determining that the call type corresponding to the telephone number called by the SIM card is roaming.
5. A mobile terminal comprising at least two SIM cards, characterized in that the mobile terminal further comprises:
the first determining module is used for determining a telephone number to be called and first attribution information corresponding to the telephone number;
a second determining module, configured to determine second home location information corresponding to each SIM card in the mobile terminal;
a third determining module, configured to determine geographic location information of the mobile terminal;
a call type determining module, configured to determine, for each SIM card, a call type corresponding to the SIM card calling the phone number according to the second home location information, the first home location information, and the geographic location information corresponding to the SIM card, where different call types correspond to different priorities;
the selection module is used for selecting the SIM card corresponding to the conversation type with the highest priority to call the telephone number;
the third determining module includes:
the base station determining submodule is used for determining first position information of a base station connected with each SIM card in the mobile terminal;
the geographic position information determining submodule is used for determining the first position information as the geographic position information of the mobile terminal;
the base station determining submodule is specifically configured to use, when the base stations connected to the SIM cards are the same, the position information of the base station as the first position information, and when the base stations connected to the SIM cards are different, use, as the first position information, the position information corresponding to the center of the position of each base station.
6. The mobile terminal of claim 5, wherein the mobile terminal further comprises:
the display module is used for displaying SIM card selection buttons and correspondingly displaying the call types corresponding to the SIM cards at the same time after the call type determining module determines that the SIM card calls the call type corresponding to the telephone number before the selection module selects the SIM card corresponding to the call type with the highest priority to call the telephone number;
and the calling module is used for calling the selection module to execute the operation of calling the telephone number by the SIM card corresponding to the call type with the highest selection priority when receiving the selection instruction of the SIM card corresponding to the call type with the highest selection priority.
7. The mobile terminal of claim 6, wherein the mobile terminal further comprises:
and the display processing module is used for highlighting the SIM card selection button of the SIM card corresponding to the communication type with the highest priority after the display module correspondingly displays the communication types corresponding to the SIM cards.
8. The mobile terminal of claim 5, wherein the call type determination module comprises:
a first type determining submodule, configured to determine that a call type corresponding to the telephone number called by the SIM card is a local call when the first home location information, the second home location information, and the geographic location information indicate the same city;
a second type determining submodule, configured to determine that a call type corresponding to the phone number called by the SIM card is international roaming when the second attribution information and the geographical location information indicate different countries;
a third type determining sub-module, configured to determine that the call type corresponding to the SIM card calling the phone number is a long distance when the second home information and the geographic location information indicate the same city, and the first home information and the second home information indicate different cities;
a fourth type determining sub-module, configured to determine that the call type corresponding to the SIM card calling the phone number is long distance roaming when the first attribution information, the second attribution information, and the geographic location information indicate different cities in the same country respectively;
a fifth type determining sub-module, configured to determine that the call type corresponding to the SIM card calling the phone number is roaming when the second attribution information and the geographic location information indicate different cities in the same country, and the second attribution information and the first attribution information indicate the same city.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710042729.9A CN106878977B (en) | 2017-01-20 | 2017-01-20 | Telephone number calling method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710042729.9A CN106878977B (en) | 2017-01-20 | 2017-01-20 | Telephone number calling method and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106878977A CN106878977A (en) | 2017-06-20 |
CN106878977B true CN106878977B (en) | 2020-07-31 |
Family
ID=59158621
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710042729.9A Active CN106878977B (en) | 2017-01-20 | 2017-01-20 | Telephone number calling method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106878977B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108737956B (en) * | 2018-05-04 | 2021-09-03 | 平安科技(深圳)有限公司 | Dialing control method in terminal equipment, electronic equipment and storage medium |
CN109714464B (en) * | 2018-12-28 | 2021-01-12 | 恒宝股份有限公司 | Multi-number switching method, smart card and mobile device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101001464A (en) * | 2006-12-26 | 2007-07-18 | 宇龙计算机通信科技(深圳)有限公司 | Mobile communication terminal and its calling method |
CN105142168A (en) * | 2015-07-23 | 2015-12-09 | 努比亚技术有限公司 | Method and device for switching mobile terminal among multiple SIM cards |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100542340C (en) * | 2007-10-16 | 2009-09-16 | 嘉兴闻泰通讯科技有限公司 | The method that a kind of cell phone intelligent is called |
US20140200048A1 (en) * | 2013-01-17 | 2014-07-17 | Acer Incorporated | Method of automatic sim card selection according to network environment |
CN103167476A (en) * | 2013-03-12 | 2013-06-19 | 广东欧珀移动通信有限公司 | Method and device for dynamically switching over a plurality of SIM (subscriber identity module) cards of mobile terminal |
CN103501373A (en) * | 2013-09-12 | 2014-01-08 | 小米科技有限责任公司 | Method, device and terminal for making call |
CN106231586B (en) * | 2016-09-23 | 2019-02-19 | 珠海市魅族科技有限公司 | A kind of multi-card terminal and its communication means |
-
2017
- 2017-01-20 CN CN201710042729.9A patent/CN106878977B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101001464A (en) * | 2006-12-26 | 2007-07-18 | 宇龙计算机通信科技(深圳)有限公司 | Mobile communication terminal and its calling method |
CN105142168A (en) * | 2015-07-23 | 2015-12-09 | 努比亚技术有限公司 | Method and device for switching mobile terminal among multiple SIM cards |
Also Published As
Publication number | Publication date |
---|---|
CN106878977A (en) | 2017-06-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8611968B2 (en) | Method and mobile terminal for processing contacts | |
CN106453953B (en) | Wireless access point connection method and mobile terminal | |
CN102819416B (en) | A kind of realize the method and apparatus that component content shows | |
CN106131650B (en) | Video processing method and mobile terminal | |
CN106060884B (en) | A kind of method for switching network and mobile terminal | |
CN105975152B (en) | Fingerprint-based application program calling method and mobile terminal | |
US10146415B2 (en) | Method and terminal device for controlling a terminal device in a locked and unlocked state | |
CN106506401A (en) | A kind of flow managing method and mobile terminal | |
CN101968693A (en) | Navigation apparatus operation method, navigation apparatus and computer program product | |
CN107423018B (en) | A kind of multi-screen display method and terminal | |
CN106354407A (en) | Information sharing method and mobile terminal | |
CN107172287B (en) | Multi-card communication method and mobile terminal | |
CN106161811A (en) | A kind of reminding method and mobile terminal | |
CN106780314B (en) | Jigsaw previewing method and mobile terminal | |
CN107665140A (en) | A kind of display methods and mobile terminal of application program shortcut | |
CN106210231A (en) | A kind of method of information processing and mobile terminal | |
CN106878977B (en) | Telephone number calling method and mobile terminal | |
CN104780253B (en) | A kind of book management method | |
CN106991150B (en) | Webpage data display method and mobile terminal | |
CN106033355A (en) | Language setting method and mobile terminal | |
CN106354509B (en) | Screen locking interface setting method and mobile terminal | |
CN106503061B (en) | Group message display method and mobile terminal | |
CN106101381B (en) | Call request processing method and mobile terminal | |
CN107566610A (en) | A kind of message prompt method, mobile terminal and computer-readable recording medium | |
CN106469060A (en) | A kind of processing method of application messages and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |