Summary of the invention
In view of this, main purpose of the present invention provides a kind of Dialing Method of communication terminal, realizes the fast automatic menu mode interactive service that carries out, and saves dialing time, is user-friendly to.
To achieve these goals, technical scheme of the present invention specifically is achieved in that
A kind of Dialing Method of communication terminal, this method comprises:
A, communication terminal receive dialing information;
B, communication terminal obtain telephone number from dialing information, transfer to this telephone number, connect with callee side; And judge whether mutual character is arranged in the dialing information, if having, execution in step C then, otherwise, carry out normal dialing flow process after, process ends;
C, communication terminal continue to obtain mutual character from above-mentioned dialing information, utilize the dual tone multi-frequency dtmf agreement to send described mutual character to callee side.
This method sets in advance separator, and the concrete steps of described step B are:
B1, communication terminal read a character in the described dialing information successively;
B2, judge whether the current character that reads is separator, if then judging has mutual character in the dialing information, execution in step B3, otherwise execution in step B4;
B3, current all characters that read before the character that read are arranged according to reading order, the character string of arranging as telephone number, is transferred to this telephone number, connect execution in step C with callee side;
B4, judge whether dialing information reads and finish, do not finish, then return step B1 if read; Otherwise with the current character that reads, and current all characters that read before the character that read are arranged according to reading order, the character string that is arranged in as telephone number, is transferred to this telephone number, connect with callee side, after carrying out normal dialing flow process, process ends.
Described step B2 comprises:
B21, judge whether the current character that reads is separator, if the current character that reads is a separator, execution in step B22 then; Otherwise, execution in step B4;
B22, communication terminal judge further whether dialing information reads and finish that do not finish if read, then judging has mutual character, execution in step B3 in the dialing information; Finish if read, then current all characters that read before the character that read arranged according to reading order, the character string that is arranged in as telephone number, is transferred to this telephone number, connect with callee side, carry out normal dialing flow process after, process ends.
This method sets in advance end mark, and among the described step B4, judge dialing information whether read finish before, further may further comprise the steps:
B41, judge whether the current character that reads is end mark, if not, continue then to judge whether dialing information reads finishes, and the subsequent step of execution in step B4; Otherwise, execution in step B42;
B42, current all characters that read before the character that read are arranged according to reading order, the character string that is arranged in as telephone number, are transferred to this telephone number, connect with callee side, carry out normal dialing flow process after, process ends.
The method of communication terminal continuation mutual character of acquisition from described dialing information is among the described step C:
Continue to read successively the character in the dialing information, and with the character that reads as character alternately.
Described step C specifically comprises:
C1, communication terminal continue to read successively the character in the dialing information;
C2, communication terminal judge whether the current character that reads is end mark, if, process ends then; Otherwise, with this character as mutual character;
C3, communication terminal utilize the DTMF agreement to send described mutual character to callee side.
Described communication terminal utilizes the DTMF agreement to the method that callee side sends described mutual character to be:
C31, communication terminal send beginning DTMF message to callee side, and this begins to carry in the DTMF message described mutual character.
C32, communication terminal judge whether the beginning DTMF response message of receiving that callee side returns, if receive, and execution in step C33 then; Otherwise, continue to send beginning DTMF message, return step C32;
C33, communication terminal send to callee side and finish DTMF message;
C34, communication terminal judge whether the end DTMF response message of receiving that callee side returns, if receive, and execution in step C35 then; Otherwise, continue to send and finish DTMF message, return step C34;
C35, communication terminal judge whether dialing information reads and finish, if, process ends then; Otherwise, repeated execution of steps C.
Described communication terminal is mobile communication terminal or fixed communication terminal.
In the present invention, because communication terminal obtains and preserves the dialing information that comprises telephone number and mutual character of user's input once, carrying out when mutual with network side, do not need user's participation, dialing automatically, and automatically send mutual character to network side, thus realize the fast automatic menu mode interactive service that carries out, both saved dialing time, user-friendly again; Simultaneously, owing to can carry out the menu mode interactive service automatically, therefore can realize one-touch menu mutual service, that is: dialing information is preserved, when needing dialing, dialing information is accessed, the user only need just can realize dialing by next dial key, and finishes the menu mode interactive service.
Embodiment
Further specify implementation method of the present invention below in conjunction with the drawings and specific embodiments.
Core concept of the present invention is: communication terminal obtains all dialing informations of user's input once, comprising telephone number and the mutual character that is used for menu mutual; When carrying out dtmf dialing, read and resolve dialing information, obtain telephone number, send telephone number to network side; When the connection response of receiving that network side is correct, and after entering corresponding menu, continue to read and resolve dialing information, obtain to be used for the mutual character of menu mutual, automatically send mutual character with choice menus, thereby realize carrying out alternately with network side fast automaticly to network side.
Dialing information of the present invention comprises telephone number and a string mutual character string, can be input to communication terminal once by the user, and be preserved by communication terminal.The form of this dialing information is as shown in table 1:
Arrangement position |
Title |
Attribute |
? 1 |
Phone number field |
The network-side service central number is as 13800138000 of mobile network |
2 |
Separator |
Be used to separate telephone number and mutual character string |
3 |
First mutual character |
Be used for carrying out the first time alternately with network side |
4 |
Second mutual character |
Be used for carrying out the second time alternately with network side |
... |
... |
... |
N |
End mark |
The sign dialing information finishes |
Table 1
The character of being mentioned in the table 1 can be any character that communication terminal is supported.But, because " # " and " * " is the spcial character that uses in the DTMF agreement, for fear of obscuring, therefore had better not be as separator and end mark.For example: in concrete the application, separator can be big/small letter English alphabet, other symbol of perhaps non-" # ", non-" * "; End mark can be big/small letter English alphabet, perhaps other symbol of right and wrong " # ", non-" * ", non-separator.In addition, the end mark in the table 1 is for can select character, and the user can accord with by end of input, and also end of input does not accord with.
Be one of dialing information more object lesson below, for example at the menu mode recharging service of the mobile radio communication described in the background technology, dialing information can for:
13800138000P1188888888#E
Wherein, " 13800138000 " are phone number field, and " P " is separator, and " E " is end mark, and the character between " P " and " E " is mutual character string.Mandarin is selected in first character " 1 " expression in the mutual character string, and second character " 1 " expression of mutual character string is selected to supplement with money, and " 88888888 " in the mutual character string are prepaid card password.
Communication terminal of the present invention is for to contain the mobile communication terminal or the fixed communication terminal of central processing unit (CPU) or other data processing modules, and set in advance and preserved above-mentioned separator or separator and end mark in this communication terminal.With the communication terminal in the mobile communication system,, be example below, the method for the invention is described further as mobile phone.
Referring to Fig. 1, the user at first is input to dialing information among the CPU 101 of mobile phone by keyboard 110, and CPU 101 is kept at dialing information in the data storage 102 of mobile phone.This dialing information can show that the user can at any time edit, delete, revise or transfer to this dialing information by display unit 103.
When dialling, the dialing information that CPU 101 passes through in the data processing unit 104 reading of data memories 102, and resolve this dialing information, obtain telephone number, and this telephone number is put into buffer 105; By buffer 105 telephone number is passed to radio frequency control appliance 106 again; Radio frequency control appliance 106 is transferred to this telephone number, by Radio Link 107 call network sides, after network equipment 108 is received this calling, returns corresponding response, connects.Herein be connected to quick assist control channel (FACCH, Fast Associated Control Channel) in the mobile communication.
Herein, CPU 101 also can directly directly pass to radio frequency control appliance 106 with resolving the telephone number that obtains, by 106 dialing of radio frequency control appliance.
After connecting foundation, mobile phone just can utilize the DTMF agreement to carry out the menu mode interactive service on this basis, be that CPU 101 continues to read and resolve dialing information, obtain mutual character, and to radio frequency control appliance 106 these mutual characters of transmission, radio frequency control appliance 106 sends these mutual characters by the DTMF agreement to network side, after network side is received, returns corresponding response.
In addition, CPU 101 is resolving dialing information, and when sending character, can control bell system for electrical teaching 109 and produce different bell sounds when different characters sends.Can also control display unit 103 and when different characters sends, show different characters.
Referring to Fig. 2, the idiographic flow of the described method of present embodiment comprises:
Step 201, CPU 101 read a character in the dialing information successively from data storage 102.
Step 202, judge whether the current character that reads is separator, if then execution in step 208; Otherwise, execution in step 203.
Step 203, judge whether the current character that reads is end mark, if not, then execution in step 204; Otherwise, execution in step 205.
Step 204, judge whether dialing information reads and finish, that is: judge the character of whether not reading in addition in the dialing information,, then return step 201, continue to read the character late in the dialing information if the character that does not read is arranged; Otherwise, execution in step 206.
Step 205, current all characters that read before the character that read are arranged according to reading order, the character string that is arranged in is delivered to radio frequency control appliance 106 as telephone number, and execution in step 207.
Step 206, with the current character that reads, and current all characters that read before the character that read arrange according to reading order, and the character string that is arranged in is delivered to radio frequency control appliance 106 as telephone number, and execution in step 207.
Step 207, mobile phone Outgoing Call number, and carry out normal dialing flow process.
Step 208, judge the character of whether not reading in addition in the dialing information,, then illustrate to also have mutual character in the dialing information if having, and execution in step 209; Otherwise, execution in step 205.
Step 209, current all characters that read before the character that read are arranged according to reading order, and the character string that is arranged in is delivered to radio frequency control appliance 106 as telephone number.
Step 210, mobile phone are transferred to this telephone number by the radio frequency control appliance, after network side is received telephone number, to mobile phone echo reply signal, and set up FACCH with mobile phone.
By setting up FACCH, user and network side just can utilize the mutual character of DTMF protocol transmission in transferring voice, and it is mutual to carry out menu mode.For example, after FACCH set up, network side transmits voice suggestion to the user and is: " welcome you to use mobile communication business, would you please select the kind of language, 1 was mandarin, and 2 is English.”
A character of DRMF character string in the dialing information is read in step 211, continuation successively;
Step 212, judge whether the current character that reads is end mark, if, process ends then; Otherwise, execution in step 213.
Step 213, mobile phone send beginning (START) DTMF message to network side, are used for the informing network side and begin a DTMF communication, carry the current character that reads in this START DTMF message, and this character of this moment is mutual character.
Network side is waited for START DTMF message with certain time limit, if network side has been received START DTMF message in the time limit of regulation, network side just can be handled according to the mutual character that carries in this message so, and sending START DTMF ACK message in response to the mobile phone side, this START DTMFACK message shows that network side accepted the mutual character that mobile phone sends.If network side is not received START DTMF message in the time limit of regulation, just then network can send START DTMF REJECT message to inform this DTMF communication failure of mobile phone to mobile phone.
Step 214, mobile phone are judged beginning DTMF response (the START DTMF ACK) message of receiving that network side returns of whether receiving, if then continue execution in step 215; Otherwise, return step 213, send START DTMF message once more.
Step 215, mobile phone send to network side and finish (STOP) DTMF message.
In the DTMF agreement, STOP DTMF message is used for this DTMF sign off of informing network side.After network side is received STOP DTMF message, return acknowledge message STOP DTMF ACK to mobile phone.
Step 216, mobile phone are judged end DTMF response (STOP DTMFACK) message of whether receiving that network side returns, if then execution in step 217; Otherwise, return step 215, continue to send STOP DTMF message.
Step 217, judge the character of whether not reading in addition in the dialing information,, then return step 211 if having; Otherwise, process ends.
Telephone number in the foregoing description is the service number of carrier network service centre, and in addition, this telephone number also can be general user's a called number.For example, some user has disposed group telephone, and the user can dial called main frame number earlier, behind the called response of host, continues to dial extension again.Utilize the method for the invention described above, also can transfer to called main frame number earlier automatically, behind the called response of host, transfer to extension more automatically by caller phone.
In addition, can realize one-touch menu mutual service based on the method for the invention, the user can preserve dialing information as a number, when needing dialing, dialing information is accessed, and the user only need just can realize dialing by next dial key, and finishes the menu mode interactive service.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with the people of this technology in the disclosed technical scope of the present invention; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.