A kind of method of dialling IP telephone without dialling special service number and device
Technical field:
The device that the present invention relates to a kind of method of calling IP phone and realize this method.
Background technology:
When using the mobile phone calling IP phone at present, the dialer software requirement that is installed in the phone will provide the shortcode and the telephone number of the operator of IP service to import together, just phone can be transferred to by IP network according to shortcode.Use the aforesaid way calling IP phone need remember shortcode, have the memory burden for the user inevitably, and the mode inconvenient operation of above-mentioned calling IP phone, easily make mistakes.
Summary of the invention:
The object of the present invention is to provide a kind of shortcode of need not importing to get final product the method for calling IP phone and the device of realizing this method, use this method or device calling IP phone more easily.
For achieving the above object, the method for dialling IP telephone without dialling special service number provided by the invention comprises:
A, from travelling carriage SIM (subscriber identification module) card, read the Virtual network operator code;
B, judge this operator whether for IP is provided the operator of service by described operator code, if not, mobile phone enters normal placement process, otherwise,
C, judge in this operator corresponding IP shortcode memory cell in the travelling carriage whether preserve effective I P shortcode, if having, the input telephone number also adds described IP shortcode before described telephone number, enter normal making call process then; Otherwise described IP shortcode is deposited in automatically in the IP shortcode memory cell of travelling carriage, before telephone number, add described IP shortcode then, enter normal making call module again.
Described method also comprises:
In the memory block of travelling carriage, open up IP shortcode memory cell, be used to store the IP shortcode that provides IP operator to have.
The present invention also provides a kind of device of dialling IP telephone without dialling special service number simultaneously, and the shortcode that provides IP operator to have is provided.
Code read module: be used for reading the Virtual network operator code in the SIM card of travelling carriage;
First judge module: be used for judging this operator whether for IP is provided the operator of service by described operator code, if not, do not deal with, otherwise, second judge module changeed;
Second judge module: be used for judging in the IP shortcode memory cell of travelling carriage whether preserve effective I P shortcode, enter normal telephone then and dial module, otherwise, change the shortcode processing module; Shortcode processing module: be used for the IP shortcode that the described IP of automatic input operator has, and described IP shortcode is deposited in the IP shortcode memory cell of travelling carriage, before telephone number, add described IP shortcode then, enter normal making call module again;
Making call module: be used for carrying out dialing of phone according to telephone number.
Owing to read in the SIM card of the present invention from travelling carriage IP service network operator code be provided, judge that by described operator code whether this operator is for providing IP the Virtual network operator of service, judge again in the IP shortcode particular memory location in the travelling carriage and whether preserve effective I P shortcode, if have, the input telephone number also adds described IP shortcode before telephone number, enter normal making call process then, otherwise, the IP shortcode is kept in the IP shortcode particular memory location of travelling carriage, make the user need not know that later on the IP shortcode more need not this number of input, but only need just calling IP phone of operation IP function key, adopt said method, avoided user's memory burden, and when calling IP phone, easy to operate, be difficult for makeing mistakes.
Description of drawings:
Fig. 1 is the flow chart of the method for the invention embodiment;
Fig. 2 is the block diagram of device embodiment of the present invention.
Embodiment:
The invention will be further described below in conjunction with accompanying drawing.
Provide IP the IP shortcode of service owing to provide the operator of IP service often to have the one's own mobile subscriber of being used in the reality, and there are specific corresponding relation in described shortcode and operator, the code that on the SIM card of mobile phone, has simultaneously operator, therefore, if the IP shortcode that described operator is had automatically is stored in the user's mobile phone, the user does not just need to import the IP shortcode again when calling IP phone.Meanwhile, the user can change the IP shortcode when operator's IP shortcode changes, or operator is when supporting a plurality of IP shortcode simultaneously, and the user can oneself select the IP shortcode liked.The present invention guarantees that the IP shortcode priority that the user selects is higher than the priority that mobile phone deposits the IP shortcode automatically in.
Fig. 1 is the flow chart of the method for the invention embodiment.According to Fig. 1, at first in the memory block of travelling carriage, hew out IP shortcode memory cell, be used to store the shortcode that provides IP operator to have, i.e. the IP shortcode that has of the operator of the operator code correspondence in the SIM card.Like this, in step 1 of the present invention, reading in the SIM card from travelling carriage provides IP the IP operator code of service; In step 2, judge that by described operator code this operator whether for IP is provided the Virtual network operator of service, enters normal placement process if not mobile phone then; Otherwise carry out step 3, judge in the IP shortcode memory cell in the travelling carriage whether preserve effective I P shortcode, if having, the input telephone number also adds described IP shortcode before described telephone number, enter normal making call process then; Otherwise carry out step 4, described IP shortcode is deposited in the IP shortcode memory cell of travelling carriage, the input telephone number also adds described IP shortcode before described telephone number, enter normal placement process again.
Fig. 2 is the block diagram of device embodiment of the present invention.The device A of the described dialling IP telephone without dialling special service number of Fig. 2 comprises: code read module A1, the first judge module A2, the second judge module A3, shortcode processing module A4, making call modules A 5.
When calling IP phone, at first reading in the SIM card of code read module A1 from travelling carriage provides IP the IP operator code of service, this code is sent into the first judge module A2, judge that according to described operator code whether the IP operator of the legal IP of providing service is provided in this operator by the first judge module A2, if not, stop dialing of this IP phone, forward normal making call modules A 5 to and carry out dialing of common phone, otherwise, change the second judge module A3, judge in the IP shortcode memory cell in the travelling carriage and whether preserve effective I P shortcode, if have, before telephone number, add described IP shortcode, the normal telephone that enters is then dialed modules A 5 and is carried out dialing of common phone, otherwise, change shortcode processing module A4, import the IP shortcode that described IP operator has, and described IP shortcode is deposited in the IP shortcode memory cell of travelling carriage, before telephone number, add described IP shortcode then, enter normal making call modules A 5 again, carry out dialing of common phone according to telephone number.