patents.google.com

CN102780801A - Intelligent dialing method and device for supporting various calling modes - Google Patents

  • ️Wed Nov 14 2012

Summary of the invention

The technical issues that need to address of the present invention provide a kind of intelligent dialing method and device of supporting multiple call model, when guaranteeing speech quality, reduce the rate that the inter-network phone brings.

In order to solve the problems of the technologies described above, the invention provides a kind of intelligent dialing method of supporting multiple call model, comprising:

The number segment rule of operator's dialed number and the corresponding relation of call model are set in advance;

Obtain the home domain information of terminal SIM;

According to the number segment rule of said home domain information inquiry home domain operator dialed number and the corresponding relation of call model, select the corresponding call model of dialed number to call out.

Further, the said home domain information of obtaining the terminal SIM comprises:

Through obtaining the home domain information of said terminal SIM alternately with service provider SP, said home domain information comprises: the toll telephone extra-code that local area code, local operator's informaiton and local operator provide.

Further, said according to the number segment rule of said home domain information inquiry home domain operator dialed number and the corresponding relation of call model, the corresponding call model of selection dialed number is called out, and comprising:

According to said local area code and said local operator's informaiton, inquire about local operator at the number segment rule of this area and the corresponding relation of call model, select the call model corresponding to call out according to the number segment of said dialed number with this number segment.

Further, said method also comprises: set the priority of call model according to the height of call tariff, wherein, the call model priority that rate are minimum is the highest;

At corresponding relation regular according to the number segment of said home domain information inquiry home domain operator dialed number and call model; Also comprise: judge whether said dialed number is toll telephone before; If; Then adopt the call model of high priority to call out, and before said dialed number, add the long-distance extra-code that the corresponding operator of this call model provides.

Further, said method also comprises:

After having selected the corresponding call model of dialed number, judge whether said call model is available, if said call model is current unavailable, then automatically switches to other stable call models and call out.

In order to solve the problems of the technologies described above, the present invention also provides a kind of intelligent dialing device of supporting multiple call model, comprising:

Call model is provided with module, is used for being provided with in advance the number segment rule of operator's dialed number and the corresponding relation of call model;

The information acquisition module is used to obtain the home domain information of terminal SIM;

Dial module is used for selecting the corresponding call model of dialed number to call out according to the number segment rule of said home domain information inquiry home domain operator dialed number and the corresponding relation of call model.

Further, said information acquisition module is used to obtain the home domain information of terminal SIM, comprising:

Said information acquisition module is through obtain the home domain information of said terminal SIM with service provider SP alternately, and said home domain information comprises: the toll telephone extra-code that local area code, local operator's informaiton and local operator provide.

Further, said dial module is used for selecting the corresponding call model of dialed number to call out according to the number segment rule of said home domain information inquiry home domain operator dialed number and the corresponding relation of call model, comprising:

Said dial module is according to said local area code and said local operator's informaiton; Inquire about local operator at the number segment rule of this area and the corresponding relation of call model, select the call model corresponding to call out with this number segment according to the number segment of said dialed number.

Further, said device comprises that also priority is provided with module, is used for setting according to the height of call tariff the priority of call model, and wherein, the call model priority that rate are minimum is the highest;

Said dial module; Also be used for before the corresponding relation of and call model regular according to the number segment of said home domain information inquiry home domain operator dialed number; Judge whether said dialed number is toll telephone; If then adopt the call model of high priority to call out automatically, and before said dialed number, add the long-distance extra-code of this call model.

Further, said dial module also is used for after having selected the corresponding call model of dialed number, judging whether said call model is available, if said call model is current unavailable, then automatically switches to other stable call models and calls out.

Compared with prior art, the intelligent dialing method and the device of the multiple call model of support provided by the invention are through the number segment rule of inquiry home domain operator dialed number and the corresponding relation of call model; Thereby select suitable call model according to call number; Reduced the rate that the inter-network phone brings, simultaneously, when causing certain call model unavailable owing to extraneous factor; Can automatically switch to metastable call model and call out, also guarantee the stability that the user calls.

Embodiment

For making the object of the invention, technical scheme and advantage clearer, hereinafter will combine accompanying drawing that embodiments of the invention are elaborated.Need to prove that under the situation of not conflicting, embodiment among the application and the characteristic among the embodiment be combination in any each other.

Embodiment:

As shown in Figure 1, present embodiment provides a kind of intelligent dialing device of supporting multiple call model, comprising:

Call model is provided with module, is used for being provided with in advance the number segment rule of operator's dialed number and the corresponding relation of call model;

The post and telecommunications resource is the Ministry of Posts and Telecommunications (the existing Ministry of Information Industry) uniform dispatching, for example, and wherein; Operator comprises telecommunications, moves and UNICOM; Telecommunications is managed landline telephone, broadband services and mobile service, and for example, number section 133,153,180,189 all belongs to telecom operators; And the number segment of China Mobile has 16 kinds, and the number segment of CHINAUNICOM has 7 kinds.

Call model mainly contains three kinds of PSTN, CS and VoiP, and other call models are more stable relatively for the PSTN call model, but rate are higher; The CS call model then possibly receive ectocine, and be not as stable as PSTN, VoiP is the networking telephone; Its speech quality depends on network condition, but rate are more cheap.The number segment rule of operator's dialed number and the corresponding relation of call model are set in advance to be meant: according to the number segment rule of dialed number; The corresponding PSTN call model of local landline telephone is set in advance; The corresponding CS call model of mobile phone; Landline telephone and mobile phone perhaps are set when supporting the VoiP call model all can corresponding relation such as call out through the VoiP call model; So just can when calling, adopt corresponding call model to call out automatically according to dialed number.

The information acquisition module is used to obtain the home domain information of terminal SIM;

Wherein, said information acquisition module is through obtain the home domain information of said terminal SIM with service provider SP alternately, and said home domain information comprises: the toll telephone extra-code that local area code, local operator's informaiton and local operator provide.

Dial module is used for the telephone set dialing through linking to each other, and according to the number segment rule of said home domain information inquiry home domain operator dialed number and the corresponding relation of call model, selects the corresponding call model of dialed number to call out.

Wherein, Said dial module is according to said local area code and said local operator's informaiton; Inquire about local operator at the number segment rule of this area and the corresponding relation of call model, select the call model corresponding to call out with this number segment according to the number segment of said dialed number.

In addition, the present embodiment device comprises that also priority is provided with module, is used for setting according to the height of call tariff the priority of call model, and wherein, the call model priority that rate are minimum is the highest; For example, for these three kinds of call models of PSTN, CS and VoiP, the priority of VoiP is the highest, is CS secondly, and the priority of PSTN is minimum.

Said dial module; Also be used for before the corresponding relation of and call model regular, judging whether said dialed number is toll telephone according to the number segment of said home domain information inquiry home domain operator dialed number, if; Then adopt the call model of high priority to call out automatically; For example, when device is supported the VoiP call model, adopt this call model to call out, support CS if do not support VoiP; Then adopt the CS call model to call out, and before said dialed number, add the long-distance extra-code that the corresponding operator of this call model provides.It is more cheap than PSTN that CS dials toll telephone, can dial toll number fast like this, saved user's conversation rate simultaneously.

Said dial module also is used for after having selected the corresponding call model of dialed number, judging whether said call model is available, if said call model is current unavailable, then automatically switches to other stable call models and calls out.

Instability is promptly current unavailable because CS call model and VoiP call model all may receive ectocine, and for example, for the network in CS territory, whether the terminal is registered to the CS territory, and promptly whether the terminal is registered to the network of operator; Whether inserted SIM in this device; Whether the mutual wireless communication module of this device and network side normally all can influence the stability of CS, in case above-mentioned a certain situation occurs, just need this calling be switched to metastable call model, and for example PSTN calls out.

As shown in Figure 2, adopt above-mentioned intelligent dialing device, present embodiment provides a kind of intelligent dialing method of supporting multiple call model, may further comprise the steps:

S101: this intelligent dialing device is linked to each other with telephone set;

Link to each other with telephone set and can support the PSTN call model, both can support the CS call model also can connect through SIM and realize the VoiP call model through network;

S102: the home domain information of obtaining the terminal SIM;

Wherein, this intelligent dialing device mutual through with service provider SP obtains the home domain information of said terminal SIM, and said home domain information comprises: the toll telephone extra-code that local area code, local operator's informaiton and local operator provide.

Wherein, before step S101, also be included in the corresponding relation of number segment rule that operator's dialed number is set in this intelligent dialing device in advance and call model; For example; According to the number segment rule of dialed number, the corresponding PSTN call model of local landline telephone is set in advance, for example local fixed line number segment rule is the number with the XXXX beginning; The corresponding CS call model of mobile phone, for example local Mobile Directory Number section rule is middle 4 and is the number of YYYY; Landline telephone and mobile phone perhaps are set when supporting the VoiP call model all can corresponding relation such as call out, so just can when calling, adopt the call model of correspondence to call out automatically according to dialed number through the VoiP call model.

Again such as; Said terminal SIM operator is a China Telecom, and this operator calls out in order to limit this SIM user cross operator, and the number segment rule of operator's dialed number and the corresponding relation of call model can only be set in this intelligent dialing device in advance; For example; The number segment rule of China Telecom this area is a CS territory telephone number for the number with the XXXX beginning, and the number that starts with YYYY is the pstn telephone number, and other numbers are then refused to call out.

S103:,, select the corresponding call model of dialed number to call out according to the number segment rule of said home domain information inquiry home domain operator dialed number and the corresponding relation of call model through the telephone set dialing that links to each other.

Wherein, As a kind of preferred mode; According to said local area code and said local operator's informaiton; Inquire about local operator at the number segment rule of this area and the corresponding relation of call model, select the call model corresponding to call out with this number segment according to the number segment of said dialed number.

For example, the number segment of this area rule is the CS telephone number for middle 4 for the number of XXXX, and the number that starts with YYYY is the pstn telephone number; If 4 number segments in the centre of call number are XXXX; Then select the CS call model to carry out dial-up; If the beginning number segment of call number is YYYY, then select the PSTN call model to carry out dial-up, can reduce the user like this and dial the rate that the inter-network phone produces.

In addition, in step S102, also set the priority of call model according to the height of call tariff, wherein, the call model priority that rate are minimum is the highest; For example, for these three kinds of call models of PSTN, CS and VoiP, the priority of VoiP is the highest, is CS secondly, and the priority of PSTN is minimum;

Can judge further whether call number is toll number; Perhaps after the home domain information of SIM; Area code or number segment rule according to call number can judge whether this call number is toll telephone; If then adopt the call model of high priority to call out automatically, and before said call number, add the long-distance extra-code of this call model.For example, if support PSTN and two kinds of call models of CS simultaneously, because the priority of the CS that is provided with is higher than PSTN, then when being judged as toll telephone, it is more cheap than PSTN to dial toll telephone through CS, selects CS territory call model to call out.

In addition, after having selected the corresponding call model of dialed number, further comprising the steps of:

Judge whether said call model is available,, then automatically switch to other stable call models and call out if selected call model is current unavailable.

For example; The network in CS territory is compared PSTN and is had more destabilizing factor; When having selected CS territory call model, judge so further whether this call model is available, for the network in CS territory; The condition of judging CS stability comprises: whether the terminal is registered to the CS territory, and promptly whether the terminal is registered to the network of operator; Whether inserted SIM in this device; Whether this device and the mutual wireless communication module of network side be normal or the like, in case above-mentioned a certain situation occurs, just need this calling be switched to metastable call model, and for example PSTN calls out.This moment, the user need not the dialing of repetition off-hook, and the intelligent dialing device can be remembered number and call out passage through PSTN automatically number is seen off.

In an applying examples; A kind of intelligent dialing device of supporting multiple call model is provided; As shown in Figure 3; This device is except call model is provided with module, and information acquisition module and dial module are made up of button detection module, D/A converter module, wire communication module, wireless communication module and cpu chip.CPU links to each other with each module; Control the operation of each module; Wireless communication module through with the home domain information of obtaining the terminal SIM alternately of SP; When user's incoming call number, in the corresponding relation of the number segment of local operator this area rule and call model, search and select the call model corresponding with this number segment according to the number segment of said call number, current unavailable as if selected call model; Then automatically switch to other metastable patterns and call out, guarantee the stability of conversation.

Below in conjunction with accompanying drawing technical scheme of the present invention is done detailed description:

The button detection module is used to detect the phone state, and for example, phone is current to be off hook state or on-hook, whether ring or the like, and with the phone state reporting to CPU, also receive the message that CPU issues simultaneously, carry out dial-up with the control phone.

Digital-to-analogue/analog-to-digital conversion module is used for speech data is handled, and comprises inhibition, elimination of encoding and decoding speech, echo etc.

Wire communication module is the interface of PSTN pattern and device.

Above-mentioned button detection module, digital-to-analogue/analog-to-digital conversion module and wire communication module can be by one or more SLIC (Subscriber Line Interface Circuit; The subscriber line interface chip) forms; It can control the phone state, for PSTN provides interface and transmission pulse coded modulation PCM data flow.

Wireless communication module is used for network side alternately, receives signal from network side, reports CPU after the conversion, receives the message that CPU issues simultaneously, and feeds back to network side.This module is built Bearer Channel for the transmission of speech data behind the call setup of CS territory and VoIP.

CPU is used to receive the also reporting information of the various modules of analyzing and processing, and result is fed back to each module, to control the work of each module.

For example, during the voip call pattern, CPU receives the IP network side message that wireless communication module reports, and is issued to SLIC after the processing.When SLIC detects the phone state variation; Current like phone is off hook state or on-hook; Whether ring or the like is given CPU with current phone state reporting, and CPU returns to wireless communication module with message after handling; Wireless communication module carries out finally setting up the transmission bearer channel of speech data alternately in the IP network side again.

As shown in Figure 4, should a kind of system that supports the intelligent dialing of multiple call model also be provided with example, this system comprises intelligent dialing device, the TCP/IP network layer that links to each other with this device, and the network side of SP.Button detection module, D/A converter module and the wire communication module of said intelligent dialing device are made up of SLIC.Link to each other with pcm interface through SPI (Serial Peripheral Interface--Serial Peripheral Interface (SPI)) bus between SLIC and phone and the CPU.Wherein spi bus is responsible for the control of signal, and PCM mainly is responsible for the transmission of speech data.Wireless communication module is as the tie point of other modules and SP, builds Bearer Channel when also setting up for CS and VoiP voice simultaneously.

Suppose that this intelligent dialing device supports CS territory call model and PSTN pattern, as shown in Figure 5, support to may further comprise the steps the intelligent dialing method of multiple call model:

S201: obtain the home domain information of SIM, like the ownership place area code of this SIM, the long-distance extra-code that operator information and this operator provide etc.;

S202:, search operator at the number segment rule of this area and the corresponding relation of call model according to the home domain information of SIM;

The number segment rule of supposing this area is a CS territory phone for number section with the XXXX beginning, and with the YYYY beginning is the pstn telephone number;

S203: the user Enters Number through the phone that links to each other with this device;

S204: judge whether this number is toll number, if then go to step S205; Otherwise go to step S206;

S205: before the number of seeing off, add long-distance extra-code automatically, and go to step S207;

S206: judge which number segment beginning this number is with, if, then go to step S207, if, then go to step S208 with the YYYY beginning with the XXXX beginning;

S207: whether the network in inspection current C S territory can be called out normally, if the available step S209 that then goes to, the unavailable step S208 that goes to;

Judge whether available condition can be for the network in current C S territory: whether current intelligent dialing device is registered to the CS territory, and whether current intelligent dialing device has inserted SIM, and whether normal initialization completion etc. of wireless communication module.

S208: call out through the PSTN call model;

S209: call out through the CS call model.

In an applying examples, further specify above-mentioned flow process below, other application are similar with it.

Local area code as in the SIM home domain information in the intelligent dialing device is 029; Its operator belongs to CS territory phone in the number segment rule in this area code area for the number segment with 8800 beginnings; Number segment with 9900 beginnings belongs to pstn telephone, and the long-distance extra-code of this operator is 18560.

This device can obtain required SIM information when initialization.If user's off-hook is desired to call out, what at first judges was dialed is toll telephone or toll free number, supposes that the user has dialed a toll free number, and number is 88001234.Judge that at first No. 8800 sections are CS territory phone; Judge then whether the network in CS territory can be called out normally; For example, judge whether the intelligent dialing device is registered to CS territory etc., if current C S territory network can be used; Then number is seen off, then number is seen off through the PSTN call model as if unavailable through the CS call model; If it is 99005678 that the user has dialed non-toll number, then directly call out through PSTN.

If the user has dialed toll telephone 66005678, judge at first whether current C S territory network is available, if current C S territory network can be used, then number 1856066005678 is seen off, otherwise this number is seen off through the PSTN call model through the CS call model.

Can find out from the foregoing description; With respect to prior art; The intelligent dialing device of the multiple call model of support that provides in the foregoing description; Can reduce the user and dial the rate that the inter-network phone produces, and when selected network is unavailable, can automatically switches to other more stable patterns and call out.Certainly, the invention is not restricted to the situation of PSTN and CS coexistence.These three kinds of call models of PSTN, CS and VoIP can make up in twos, and the various modes coexistence is also supported.Because the situation whether the PSTN network is available can't be judged in end side, so when PSTN is unavailable, can not switch to other call models.

One of ordinary skill in the art will appreciate that all or part of step in the said method can instruct related hardware to accomplish through program, said program can be stored in the computer-readable recording medium, like read-only memory, disk or CD etc.Alternatively, all or part of step of the foregoing description also can use one or more integrated circuits to realize.Correspondingly, each the module/unit in the foregoing description can adopt the form of hardware to realize, also can adopt the form of software function module to realize.The present invention is not restricted to the combination of the hardware and software of any particular form.

The above is merely the preferred embodiments of the present invention, is not to be used to limit protection scope of the present invention.According to summary of the invention of the present invention; Also other various embodiments can be arranged; Under the situation that does not deviate from spirit of the present invention and essence thereof, those of ordinary skill in the art are when making various corresponding changes and distortion according to the present invention, and are all within spirit of the present invention and principle; Any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.