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:
When not preserving effective IP shortcode in the corresponding IP shortcode of the Virtual network operator in the travelling carriage memory cell, import the IP shortcode that described IP operator has, and described IP shortcode is deposited in the IP shortcode particular memory location of travelling carriage.
In the memory block of travelling carriage, open up IP shortcode memory cell, be used to store the 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, comprising:
Code read module: be used for from the SIM card of travelling carriage, reading the Virtual network operator code;
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 particular memory location of travelling carriage whether preserve effective I P shortcode, if have, the input telephone number also adds described IP shortcode before telephone number, and the normal telephone that enters is then dialed module, otherwise, change the shortcode processing module;
Shortcode processing module: be used to import the IP shortcode that described IP operator has, and described IP shortcode 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.
The specific embodiment:
The invention will be further described below in conjunction with accompanying drawing.
Because providing the operator of IP service often to have one's own being used in the reality moves Employ the IP shortcode that the family provides IP service, and described shortcode and operator there is the spy Fixed corresponding relation has simultaneously the code of operator at the SIM of mobile phone, because of This is if the IP shortcode that described operator is had automatically is stored in the mobile electric of user In the words, 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 When supporting simultaneously a plurality of IP shortcode, the user can oneself select the IP shortcode like. The present invention guarantees that the IP shortcode priority of user selection is higher than mobile phone and automatically deposits the special clothes of IP in Number priority.
Fig. 1 is the flow chart of the method for the invention embodiment. According to figure, at first will Hew out IP shortcode memory cell in the memory block of travelling carriage, being used for storage provides IP fortune The shortcode that the merchant of battalion has, namely operator corresponding to the operator code in the SIM has The IP shortcode. Like this, in step 1 of the present invention, read in the SIM from travelling carriage The IP IP operator code of service is provided; Then in step 2, by described operator code Judge that this operator whether for the IP Virtual network operator of service is provided, enters if not mobile phone Normal placement process; Otherwise carry out step 3, judge the IP shortcode storage in the travelling carriage Whether preserve effective IP shortcode in the unit, if having, input telephone number and in institute Add described IP shortcode before stating telephone number, enter then normal phone placement process; Otherwise carry out step 4, described IP shortcode is deposited in the IP shortcode memory cell of travelling carriage In, the input telephone number also adds described IP shortcode before described telephone number, enter again Normal placement process.
Fig. 2 is the block diagram of device embodiment of the present invention. Fig. 2 is described not to import the spy The device A of clothes calling IP phone comprises: code read module A1, first judges mould Piece A2, the second judge module A3, shortcode processing module A4, phone are dialed modules A 5.
When calling IP phone, the SIM of code read module A1 from travelling carriage at first In read the IP operator code that IP service is provided, this code is sent into first judge module A2 judges that according to described operator code whether this operator is by the first judge module A2 The legal IP IP operator of service that provides, if not, stop dialing of this IP phone, Forward normal phone to and dial modules A 5 and carry out dialing of common phone, otherwise, turn to second Whether judge module A3 judges in the IP shortcode memory cell in the travelling carriage and has preserved The IP shortcode of effect if having, adds described IP shortcode, then before telephone number The normal telephone that enters is dialed modules A 5 and is carried out dialing of common phone, otherwise, turn to special clothes Number processing module A4 imports the IP shortcode that described IP operator has, and with described IP Shortcode deposits in the IP shortcode memory cell of travelling carriage, adds before telephone number then Described IP shortcode enters normal phone again and dials modules A 5, advances according to telephone number Work the dialing of normal phone.