CN103150471B - A kind of dialing rule matching process and device - Google Patents
A kind of dialing rule matching process and device Download PDFInfo
- Publication number
- CN103150471B CN103150471B CN201310057138.0A CN201310057138A CN103150471B CN 103150471 B CN103150471 B CN 103150471B CN 201310057138 A CN201310057138 A CN 201310057138A CN 103150471 B CN103150471 B CN 103150471B
- Authority
- CN
- China
- Prior art keywords
- node
- rule
- regular texture
- dialing
- node structure
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 23
- 230000008878 coupling Effects 0.000 claims abstract description 34
- 238000010168 coupling process Methods 0.000 claims abstract description 34
- 238000005859 coupling reaction Methods 0.000 claims abstract description 34
- 238000010276 construction Methods 0.000 claims description 25
- 230000006399 behavior Effects 0.000 claims description 9
- 238000000605 extraction Methods 0.000 claims description 6
- 238000013507 mapping Methods 0.000 claims description 6
- 230000001934 delay Effects 0.000 claims 1
- 238000004891 communication Methods 0.000 abstract description 3
- 238000003860 storage Methods 0.000 description 35
- 238000010586 diagram Methods 0.000 description 6
- 239000004173 sunset yellow FCF Substances 0.000 description 6
- 230000014759 maintenance of location Effects 0.000 description 2
- 230000013011 mating Effects 0.000 description 2
- 239000000203 mixture Substances 0.000 description 2
- 241001441547 Caproidae Species 0.000 description 1
- 238000009825 accumulation Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Landscapes
- Information Transfer Between Computers (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the invention discloses a kind of dialing rule matching process and device, be applied to communication technical field.A kind of dialing matching process, including: receive dialing rule;Described dialing rule is resolved to regular texture array;According to regular texture array spanning tree structure and node structure;Receive user key-press, mate the node structure that the node of button instruction is corresponding, perform corresponding nodal community, if the coupling of being not fully complete, redundancy rule is resolved to regular texture array, according to regular texture array spanning tree structure and node structure, continues to accept user key-press.Embodiment of the present invention matching efficiency is high.
Description
Technical field
The present invention relates to communication technical field, particularly to a kind of dialing rule matching process and device.
Background technology
Along with popularizing of network, network voice communication (voice over internet protocol, VOIP) obtains
To more and more applying chance, will complete one and pass through process, user needs first push-button dialing, terminal
Mating button and dialing rule, and provide corresponding response, such as busy tone or be successfully transmitted is dialled
Number, dialing rule is handed down to terminal by server.
Dialing matching process of the prior art, is to be stored, then by the button that user's accumulation is pressed
Sub-rule in dialing rule is mated one by one, performs corresponding behavior according to the result of coupling, such as, send out
Send dialing.
In prior art, if dialing rule is longer, then the time mating needs is the longest, special for some
Different number figure, the various terminal of the most difficult compatibility.
Summary of the invention
The embodiment of the present invention provides high efficiency dialing matching process and device.
A kind of dialing matching process, including: receiving dialing rule, described dialing rule indicates some cuckoos
Then;Described dialing rule resolves to regular texture array, and described regular texture array includes indicating each son
The regular texture of rule, described regular texture includes rule number figure and rules properties;According to regular texture
Array spanning tree structure and node structure, described tree construction includes lower level node pointer set, described node
Each keyboard, described node pointer group is indicated to include the node pointer that each node is the most corresponding, described joint
Point pointer be used for indicating node structure, described node structure to include nodal community, lower level node pointer set with
And redundancy rule;Described tree construction includes that decision node group, described decision node group include and node pointer
Decision node position one to one, described decision node position is for judging whether the node pointer of its correspondence has
The node structure of instruction;Described specifically include according to regular texture array spanning tree structure and node structure:
First permission extracting rule number figure in each regular texture is arranged the decision node group of tree construction by key mapping;
According to the rules properties in regular texture, node structure is set;If remaining rule number figure first place is after Chou Qu
Number figure ". ", then using the regular number figure before extraction as redundancy rule;Remaining rule number after otherwise extracting
Figure is as redundancy rule;If redundancy rule is empty or only remains the number figure of rules properties, then tie in corresponding node
Nodal community in structure adds termination attribute, and described termination attribute has indicated coupling;Receive user key-press,
Mate the node structure that the node of button instruction is corresponding, perform corresponding nodal community, if the coupling of being not fully complete,
Redundancy rule is resolved to regular texture array, ties according to regular texture array spanning tree structure and node
Structure, continues to accept user key-press.
A kind of dialing coalignment, including: configuration module, it is used for receiving dialing rule, described dialing is advised
Then indicate some sub-rules;Build module, for described dialing rule is resolved to regular texture array,
Described regular texture array includes the regular texture indicating each sub-rule, and described regular texture includes rule number
Figure and rules properties;Described tree construction includes that decision node group, described decision node group include and node
Pointer decision node position one to one, described decision node position is for judging that the node pointer of its correspondence is
The no node structure having instruction;Described structure module is further used for: extract rule number in each regular texture
First permission of figure is arranged the decision node group of tree construction by key mapping;According to the rule genus in regular texture
Property arranges node structure;If after Chou Qu, remaining rule number figure first place is number figure ". ", then by the rule before extraction
Then count figure as redundancy rule;After otherwise extracting, remaining rule number figure is as redundancy rule;If residue
Rule is empty or only remains the number figure of rules properties, then the nodal community in corresponding node structure adds termination
Attribute, described termination attribute has indicated coupling;Matching module, for generating according to regular texture array
Tree construction and node structure, described tree construction includes lower level node pointer set, and described node indicates each key
Dish button, described node pointer group includes the node pointer that each node is the most corresponding, and described node pointer is used
In instruction node structure, described node structure includes nodal community, lower level node pointer set and residue rule
Then;Receive user key-press, mate the node structure that the node of button instruction is corresponding, perform corresponding node
Attribute, if the coupling of being not fully complete, resolves to regular texture array, according to regular texture array by redundancy rule
Spanning tree structure and node structure, continue to accept user key-press.
The embodiment of the present invention provide technical scheme in, dialing rule is carried out resolve and spanning tree structure with
And node structure, then user is dialing when, and terminal receives one-stage dialing and both can carry out once
Join, and owing to tree construction indicates the node structure of correspondence, matching speed is quickly so that matching efficiency
The highest.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to reality
Execute the required accompanying drawing used in example or description of the prior art to be briefly described, it should be apparent that below,
Accompanying drawing in description is only some embodiments of the present invention, for those of ordinary skill in the art,
On the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is dialing rule matching process first embodiment schematic diagram in the embodiment of the present invention;
Fig. 2 is dialing rule matching process the second embodiment schematic diagram in the embodiment of the present invention;
Fig. 3 is dialing rule coalignment embodiment schematic diagram in the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out
Clearly and completely describe, it is clear that described embodiment is only a part of embodiment of the present invention, and
It is not all, of embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art are not making
Go out the every other embodiment obtained under creative work premise, broadly fall into the scope of protection of the invention.
The embodiment of the present invention provides a kind of dialing rule matching process and device.Carry out specifically separately below
Bright.
Refer to Fig. 1, for dialing rule matching process first embodiment schematic diagram in the embodiment of the present invention, bag
Include:
101, dialing rule is received;
Terminal receives dialing rule, and described dialing rule indicates some sub-rules;Dialing rule can pass through
Server issues, it is also possible to configured in terminal by user, writes generally according to certain custom, bag
Including various number figure, wherein, " " " * " " # " represents corresponding button on phone to 0-9, and t represents to be needed to wait
The length of one intervalometer, " x " represents any one digital keys in 0-9, and " [] " expands the part table of getting up
Demonstration is enclosed, and represents certain button in this scope, "-" all digital keys between the two about expression,
". " represents previous structure matching 0 or repeatedly, some number figures one sub-rule of composition, between sub-rule
Separated by number figure " | ", and form a dialing rule, such as, if dialing rule is
" 1 [35] xxxxxxxx | E110 | x.t | 17951 | * 55# ", it indicates that " 1 [35] xxxxxxxx " " E110 " " x.t "
" 17951 " " * 55# " these 5 sub-rules.
102, described dialing rule is resolved to regular texture array;
Described dialing rule is resolved to regular texture array by terminal, and described regular texture array includes instruction
The regular texture of each sub-rule, described regular texture includes rule number figure and rules properties, described rule
Attribute is the number figure that in rule number figure, instruction performs specific behavior, such as, in sub-rule " E110 ",
Number figure " E " is rules properties, rule number figure uses several storage positions to store, and described storage position is big
In 12 bits, each storage position is for storing each button allowed or attribute, such as, if rule number
Value content is that " 1 [35] xxxxxxxx " then has 10 cases allowed and 0 attribute, uses 10 storages
Position stores, first storage position instruction 1, second storage position instruction 3 and 5, and the 3rd storage position is to the
Ten storage positions all indicate 0 to 9, and concrete grammar is it may be that first bit of storage position puts 1, and other compare
Spy sets to 0, then this storage position instruction 1;3rd and the 5th bit of storage position puts 1, and other bits set to 0,
Then this storage position instruction 3 and 5;1st to 10 bit of storage position puts 1, and other bits set to 0, then this storage
Position instruction 0 to 9;* and # in rule number figure can utilize the 11st and 12 bit of storage position to indicate,
And have the number figure of instruction rules properties, then can be indicated by other bits being more than 12 in storage position,
Rules properties is preset instruction by terminal and performs specific behavior.
103, according to regular texture array spanning tree structure and node structure;
Terminal is according to regular texture array spanning tree structure and node structure, and described tree construction includes lower floor
Node pointer group, described node indicates each keyboard, and described node pointer group includes that each node is the most right
The node pointer answered, described node pointer is used for indicating node structure, described node structure to include that node belongs to
Property, lower level node pointer set and redundancy rule;Each regular texture in regular texture array is resolved to
Node structure, and corresponding with node pointer, and the nodal community in node structure is corresponding with rules properties,
In one specific embodiment, if rules properties is intervalometer, then directly using this intervalometer as nodal community,
If rules properties is urgent number figure " E ", then when without redundancy rule, using rules properties as nodal community;
If the random attribute of redundancy rule, then, time without redundancy rule, nodal community is arranged to the short timer of acquiescence
Device;When redundancy rule is left more than one button allowed, the length that nodal community is set to acquiescence is fixed
Time device;Redundancy rule is the part that rule number figure does not include first node, such as, sub-rule
In " 1 [35] xxxxxxxx ", the redundancy rule of the node structure of generation is " [35] xxxxxxxx ", and source
In the node structure that redundancy rule " [35] xxxxxxxx " generates, redundancy rule is " xxxxxxxx ".
104, receive user key-press, mate the node structure that the node of button instruction is corresponding, perform correspondence
Nodal community;
Terminal receives user key-press, mates the node structure that the node of button instruction is corresponding, performs correspondence
Nodal community, in a specific embodiment, if the nodal community of node structure is " E ", then terminal
Sending dialled number at once, if nodal community is intervalometer, then terminal starts intervalometer, at timer expiry
Time Sending dialled number.
105, judge whether coupling, if the coupling of being not fully complete, perform step 106, if completing coupling,
Perform step 107;
Whether terminal judges has mated, in a specific embodiment, if terminal Sending dialled number,
Then complete coupling, or in node structure without redundancy rule time, then complete mate, node structure has surplus
Remaining rule, then judge to be not fully complete coupling.
106, redundancy rule is resolved to regular texture array, according to regular texture array spanning tree structure with
And node structure, and perform step 104;
Redundancy rule is resolved to regular texture array by terminal, according to regular texture array spanning tree structure with
And node structure, and perform step 104.
107, Sending dialled number.
Terminal is to operator's Sending dialled number.
In the present embodiment, carry out dialing rule resolving and spanning tree structure and node structure, then user
Dialing when, terminal receives one-stage dialing and both can once mate, and due to tree construction
Indicating the node structure of correspondence, matching speed is quickly so that matching efficiency is the highest.
Refer to Fig. 2, for dialing rule matching process the second embodiment schematic diagram in the embodiment of the present invention, bag
Include:
201, dialing rule is received;
Terminal receives dialing rule, and described dialing rule indicates some sub-rules;Dialing rule can pass through
Server issues, it is also possible to configured in terminal by user, writes generally according to certain custom, bag
Including various number figure, wherein, " " " * " " # " represents corresponding button on phone to 0-9, and t represents to be needed to wait
The length of one intervalometer, " x " represents any one digital keys in 0-9, and " [] " expands the part table of getting up
Demonstration is enclosed, and represents certain button in this scope, "-" all digital keys between the two about expression,
". " represents previous structure matching 0 or repeatedly, some number figures one sub-rule of composition, between sub-rule
Separated by number figure " | ", and form a dialing rule, such as, if dialing rule is
" 1 [35] xxxxxxxx | E110 | x.t | 17951 | * 55# ", it indicates that " 1 [35] xxxxxxxx " " E110 " " x.t "
" 17951 " " * 55# " these 5 sub-rules.
202, rules properties is set so that it is corresponding instruction performs specific behavior;
Terminal arranges rules properties so that it is corresponding instruction performs specific behavior, such as, arrange number figure " t "
For starting intervalometer some seconds, or number figure " E " is Sending dialled number etc. at once.
203, described dialing rule is resolved to regular texture array;
Described dialing rule is resolved to regular texture array by terminal, and described regular texture array includes instruction
The regular texture of each sub-rule, described regular texture includes rule number figure and rules properties, described rule
Attribute is the number figure that in rule number figure, instruction performs specific behavior, such as, in sub-rule " E110 ",
Number figure " E " is rules properties, rule number figure uses several storage positions to store, and described storage position is big
In 12 bits, each storage position is for storing each button allowed or attribute, such as, if rule number
Value content is that " 1 [35] xxxxxxxx " then has 10 cases allowed and 0 attribute, uses 10 storages
Position stores, first storage position instruction 1, second storage position instruction 3 and 5, and the 3rd storage position is to the
Ten storage positions all indicate 0 to 9, and concrete grammar is it may be that first bit of storage position puts 1, and other compare
Spy sets to 0, then this storage position instruction 1;3rd and the 5th bit of storage position puts 1, and other bits set to 0,
Then this storage position instruction 3 and 5;1st to 10 bit of storage position puts 1, and other bits set to 0, then this storage
Position instruction 0 to 9;* and # in rule number figure can utilize the 11st and 12 bit of storage position to indicate,
And have the number figure of instruction rules properties, then can be indicated by other bits being more than 12 in storage position, example
Figure " t " in full, presets rules properties instruction in the terminal and performs specific behavior, further, number
Figure ". " also uses one of them bit of storage position to store.
204, according to regular texture array spanning tree structure and node structure;
Terminal is according to regular texture array spanning tree structure and node structure, and described tree construction includes lower floor
Node pointer group, described node indicates each keyboard, and described node pointer group includes that each node is the most right
The node pointer answered, described node pointer is used for indicating node structure, described node structure to include that node belongs to
Property, lower level node pointer set and redundancy rule;Each regular texture in regular texture array is resolved to
Node structure, and corresponding with node pointer, and the nodal community in node structure is corresponding with rules properties,
In one specific embodiment, if rules properties is intervalometer, then directly using this intervalometer as nodal community,
If rules properties is urgent number figure " E ", then when without redundancy rule, using rules properties as nodal community;
If the random attribute of redundancy rule, then, time without redundancy rule, nodal community is arranged to the short timer of acquiescence
Device;When redundancy rule is left more than one button allowed, the length that nodal community is set to acquiescence is fixed
Time device;Redundancy rule is the part that rule number figure does not include first node, such as, sub-rule
In " 1 [35] xxxxxxxx ", the redundancy rule of the node structure of generation is " [35] xxxxxxxx ", and source
In the node structure that redundancy rule " [35] xxxxxxxx " generates, redundancy rule is " xxxxxxxx ";
Further, described tree construction also includes that decision node group, described decision node group include and node
Pointer decision node position one to one, described decision node position is for judging that the node pointer of its correspondence is
The no node structure having instruction, concrete, described decision node position is a binary code, and 1 judges there is finger
The node structure shown, 0 judges the node structure not having instruction, and described decision node group passes through regular texture number
Group is arranged;
Further, this step includes:
First permission extracting rule number figure in each regular texture is arranged the decision node of tree construction by key mapping
Group, all several figures included by number figure " [" and number figure "] " are considered as one and allow case position;
According to the rules properties in regular texture, node structure is set;
If after Chou Qu, remaining rule number figure first place is number figure ". ", then using the regular numerical value before extraction as surplus
Remaining rule;After otherwise extracting, remaining rule number figure is as redundancy rule;
If redundancy rule is empty or only remains the number figure of rules properties, then the node in corresponding node structure belongs to
Property add termination attribute, described termination attribute has indicated coupling.
205, node structure is cached in memory modules;
Node structure is cached in memory modules by terminal.
206, receive user key-press, mate the node structure that the node of button instruction is corresponding, perform correspondence
Nodal community;
Terminal receives user key-press, mates the node structure that the node of button instruction is corresponding, performs correspondence
Nodal community, in a specific embodiment, if the nodal community of node structure is " E ", then terminal
Sending dialled number at once, if nodal community is intervalometer, then terminal starts intervalometer, at timer expiry
Time Sending dialled number.
207, judge whether coupling, if the coupling of being not fully complete, perform step 208, if completing coupling,
Perform step 209;
Whether terminal judges has mated, in a specific embodiment, if terminal Sending dialled number,
Then complete coupling, or in node structure without redundancy rule time, then complete mate, node structure has surplus
Remaining rule, then judge to be not fully complete coupling;
Further, if the node of button instruction is corresponding, the decision node position in tree construction does not indicate
Node structure, then complete coupling.
208, redundancy rule is resolved to regular texture array, according to regular texture array spanning tree structure with
And node structure;Newly-generated node structure is cached in memory modules;By non-newly-generated node knot
Structure discharges from memory modules;And perform step 206;
Redundancy rule is resolved to regular texture array by terminal, according to regular texture array spanning tree structure with
And node structure;Newly-generated node structure is cached in memory modules;By non-newly-generated, the most former
The node structure being buffered in memory modules discharges from memory modules;And perform step 206.
209, Sending dialled number.
Terminal is to operator's Sending dialled number.
In the present embodiment, carry out dialing rule resolving and spanning tree structure and node structure, then user
Dialing when, terminal receives one-stage dialing and both can once mate, and due to tree construction
Indicating the node structure of correspondence, matching speed is quickly so that matching efficiency is the highest, and by interior
The management of storing module so that internal memory effectively utilizes.
Refer to Fig. 3, for the coalignment embodiment schematic diagram that dials in the embodiment of the present invention, the end of the present invention
End is dialing coalignment, including:
Configuration module 301, is used for receiving dialing rule, and described dialing rule indicates some sub-rules;
Build module 302, for described dialing rule being resolved to regular texture array, described regular texture
Array includes the regular texture indicating each sub-rule, and described regular texture includes that rule number figure and rule belong to
Property;
Matching module 303, for according to regular texture array spanning tree structure and node structure, described tree
Structure includes lower level node pointer set, and described node indicates each keyboard, and described node pointer group includes
The node pointer that each node is the most corresponding, described node pointer is used for indicating node structure, and described node is tied
Structure includes nodal community, lower level node pointer set and redundancy rule;Receive user key-press, mate button
The node structure corresponding to node of instruction, performs corresponding nodal community, if the coupling of being not fully complete, will residue
Rule parsing is regular texture array, according to regular texture array spanning tree structure and node structure, continues
Continued access is by user key-press.
Described configuration module 301 is further used for, and arranges rules properties so that it is corresponding instruction performs particular row
For;
Described matching module 303 is further used for, it is judged that if completing coupling, then Sending dialled number.
Further, described dialing coalignment also includes memory modules 304, for being cached by node structure
In memory modules;
Described memory modules 304 is further used for, in described regular texture array that redundancy rule resolved to,
After regular texture array spanning tree structure and node structure, by newly-generated node structure caching
In memory modules;Non-newly-generated node structure is discharged from memory modules.
Further, described tree construction includes that decision node group, described decision node group include referring to node
Pin decision node position one to one, whether described decision node position for judging the node pointer of its correspondence
There is the node structure of instruction;
Described structure module 302 is further used for:
First permission extracting rule number figure in each regular texture is arranged the decision node of tree construction by key mapping
Group;
According to the rules properties in regular texture, node structure is set;
If after Chou Qu, remaining rule number figure first place is number figure ". ", then using the regular number figure before extraction as surplus
Remaining rule;After otherwise extracting, remaining rule number figure is as redundancy rule;
If redundancy rule is empty or only remains the number figure of rules properties, then the node in corresponding node structure belongs to
Property add termination attribute, described termination attribute has indicated coupling.
Described matching module 303 is further used for: if the node of button instruction is corresponding, sentencing in tree construction
Disconnected node position does not indicate node structure, then complete coupling.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment
Suddenly the program that can be by completes to instruct relevant hardware, and this program can be stored in a computer can
Reading in storage medium, storage medium may include that read only memory (ROM), random access memory
(RAM), disk or CD etc..
A kind of dialing matching process provided the embodiment of the present invention above and device have carried out detailed Jie
Continuing, principle and the embodiment of the present invention are set forth by specific case used herein, above reality
The explanation executing example is only intended to help to understand method and the core concept thereof of the present invention;Simultaneously for ability
The those skilled in the art in territory, according to the thought of the present invention, the most all can
Change part, and in sum, this specification content should not be construed as limitation of the present invention.
Claims (8)
1. a dialing matching process, it is characterised in that including:
Receiving dialing rule, described dialing rule indicates some sub-rules;
Described dialing rule resolves to regular texture array, and described regular texture array includes indicating each son
The regular texture of rule, described regular texture includes rule number figure and rules properties;
According to regular texture array spanning tree structure and node structure, described tree construction includes lower level node
Pointer set, described node indicates each keyboard, and described node pointer group includes each node correspondence respectively
Node pointer, described node pointer is used for indicating node structure, described node structure to include nodal community,
Lower level node pointer set and redundancy rule;
Described tree construction includes that decision node group, described decision node group include and node pointer one_to_one corresponding
Decision node position, described decision node position is for judging whether the node pointer of its correspondence has the joint of instruction
Dot structure;
Described specifically include according to regular texture array spanning tree structure and node structure:
First permission extracting rule number figure in each regular texture is arranged the decision node of tree construction by key mapping
Group;
According to the rules properties in regular texture, node structure is set;
If after Chou Qu, remaining rule number figure first place is number figure ". ", then using the regular number figure before extraction as surplus
Remaining rule;After otherwise extracting, remaining rule number figure is as redundancy rule;
If redundancy rule is empty or only remains the number figure of rules properties, then the node in corresponding node structure belongs to
Property add termination attribute, described termination attribute has indicated coupling;
Receive user key-press, mate the node structure that the node of button instruction is corresponding, perform corresponding node
Attribute, it may be judged whether complete coupling, if the coupling of being not fully complete, redundancy rule is resolved to regular texture array,
According to regular texture array spanning tree structure and node structure, continue to accept user key-press.
Dialing matching process the most according to claim 1, it is characterised in that;
Described method also includes: arrange rules properties so that it is corresponding instruction performs specific behavior;
Described method also includes: if completing coupling, then Sending dialled number.
Dialing matching process the most according to claim 1, it is characterised in that described node structure delays
There is memory modules, described include according to after regular texture array spanning tree structure and node structure:
Node structure is cached in memory modules;
Described redundancy rule is resolved to regular texture array, according to regular texture array spanning tree structure with
And include after node structure:
Newly-generated node structure is cached in memory modules;
Non-newly-generated node structure is discharged from memory modules.
A dialing matching process the most according to claim 1, it is characterised in that judged whether
Join and include:
If the decision node position in the tree construction that the node of button instruction is corresponding does not indicate node structure, then
Complete coupling.
5. a dialing coalignment, it is characterised in that including:
Configuration module, is used for receiving dialing rule, and described dialing rule indicates some sub-rules;
Build module, for described dialing rule being resolved to regular texture array, described regular texture number
Group includes the regular texture indicating each sub-rule, and described regular texture includes rule number figure and rules properties;
Matching module, for according to regular texture array spanning tree structure and node structure, described tree is tied
Structure includes lower level node pointer set, and described node indicates each keyboard, and described node pointer group includes respectively
The node pointer that node is the most corresponding, described node pointer is used for indicating node structure, described node structure
Including nodal community, lower level node pointer set and redundancy rule;Wherein, described tree construction also includes sentencing
Disconnected node group, described decision node group includes and node pointer decision node position one to one, described in sentence
Disconnected node position is for judging whether the node pointer of its correspondence has the node structure of instruction;
Described matching module is further used for:
First permission extracting rule number figure in each regular texture is arranged the decision node of tree construction by key mapping
Group;
According to the rules properties in regular texture, node structure is set;
If after Chou Qu, remaining rule number figure first place is number figure ". ", then using the regular number figure before extraction as surplus
Remaining rule;After otherwise extracting, remaining rule number figure is as redundancy rule;
If redundancy rule is empty or only remains the number figure of rules properties, then the node in corresponding node structure belongs to
Property add termination attribute, described termination attribute has indicated coupling;
Described matching module, is further used for receiving user key-press, and the node of coupling button instruction is corresponding
Node structure, performs corresponding nodal community, it may be judged whether complete coupling, if the coupling of being not fully complete, will be surplus
Remaining rule parsing is regular texture array, according to regular texture array spanning tree structure and node structure,
Continue to accept user key-press.
Dialing coalignment the most according to claim 5, it is characterised in that;
Described configuration module is further used for, and arranges rules properties so that it is corresponding instruction performs specific behavior;
Described matching module is further used for, it is judged that if completing coupling, then Sending dialled number.
Dialing coalignment the most according to claim 5, it is characterised in that described dialing coupling dress
Put and also include memory modules, for node structure is cached in memory modules;
Described memory modules is further used for, at described regular texture array, the root of being resolved to by redundancy rule
After regular texture array spanning tree structure and node structure, newly-generated node structure is cached to
In memory modules;Non-newly-generated node structure is discharged from memory modules.
Dialing coalignment the most according to claim 5, it is characterised in that described matching module enters
One step is used for: if the decision node position in the tree construction corresponding to node of button instruction does not indicate node to tie
Structure, then complete coupling.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310057138.0A CN103150471B (en) | 2013-02-22 | 2013-02-22 | A kind of dialing rule matching process and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310057138.0A CN103150471B (en) | 2013-02-22 | 2013-02-22 | A kind of dialing rule matching process and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103150471A CN103150471A (en) | 2013-06-12 |
CN103150471B true CN103150471B (en) | 2016-08-17 |
Family
ID=48548545
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310057138.0A Expired - Fee Related CN103150471B (en) | 2013-02-22 | 2013-02-22 | A kind of dialing rule matching process and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103150471B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111090417B (en) * | 2019-11-14 | 2023-11-28 | 杭州中恒电气股份有限公司 | Binary file analysis method, binary file analysis device, binary file analysis equipment and binary file analysis medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2002015084A1 (en) * | 2000-08-17 | 2002-02-21 | Mindful Technologies | Method and user interface for retrieving content |
CN101252625A (en) * | 2008-03-31 | 2008-08-27 | 杭州华三通信技术有限公司 | Voice gateway and method for collecting subscriber number in Internet protocol voice application |
CN101969400A (en) * | 2010-10-13 | 2011-02-09 | 深圳市共进电子有限公司 | Method for matching number of voice over internet protocol terminal equipment |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050165607A1 (en) * | 2004-01-22 | 2005-07-28 | At&T Corp. | System and method to disambiguate and clarify user intention in a spoken dialog system |
-
2013
- 2013-02-22 CN CN201310057138.0A patent/CN103150471B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2002015084A1 (en) * | 2000-08-17 | 2002-02-21 | Mindful Technologies | Method and user interface for retrieving content |
CN101252625A (en) * | 2008-03-31 | 2008-08-27 | 杭州华三通信技术有限公司 | Voice gateway and method for collecting subscriber number in Internet protocol voice application |
CN101969400A (en) * | 2010-10-13 | 2011-02-09 | 深圳市共进电子有限公司 | Method for matching number of voice over internet protocol terminal equipment |
Also Published As
Publication number | Publication date |
---|---|
CN103150471A (en) | 2013-06-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106033393B (en) | A kind of applied program testing method and system and mobile terminal | |
CN103020089A (en) | Method and device for importing data in EXCEL file to database | |
CN108805565B (en) | Block chain based commitment presence proving method, device and readable storage medium | |
WO2014155050A2 (en) | Method and apparatus for testing electronic systems | |
CN110795175A (en) | Method and device for analog control of intelligent terminal and intelligent terminal | |
CN106155721A (en) | The deployment method of application program, the generation method and device of the recommendation page | |
CN106469113A (en) | Applied program testing method and system | |
CN107220251A (en) | Generate the method and device of description information | |
CN107943695A (en) | Testing case management, device, equipment and computer-readable recording medium | |
CN104615333B (en) | The group technology and play system of a kind of playback equipment | |
CN111162918B (en) | Service fulfillment management method and device | |
CN103150471B (en) | A kind of dialing rule matching process and device | |
CN106527979B (en) | Data migration method and device | |
CN109657317A (en) | A kind of method, system and the equipment of CPLD pin assignments | |
CN106034119A (en) | Encryption mixing method and device for application installation package | |
CN106569986B (en) | Character string replacing method and device | |
CN106469330A (en) | Information searching method, information storage means and device | |
CN103457957B (en) | A kind of network penetration test macro and method with adaptation function | |
CN105847516A (en) | Method and device for managing contact person information | |
CN109597496A (en) | Information prediction method, device and equipment | |
CN115577363A (en) | Detection method and device for deserialization utilization chain of malicious code | |
CN108023949A (en) | dial-up networking method, system, intelligent terminal and server | |
CN101237489A (en) | Processing method and device based on voice communication content | |
CN106027737A (en) | Contact information management device, method and terminal | |
CN105516425A (en) | Method and device for inputting numbers in smart watch |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160817 |
|
CF01 | Termination of patent right due to non-payment of annual fee |