CN101969400A - Method for matching number of voice over internet protocol terminal equipment - Google Patents

Method for matching number of voice over internet protocol terminal equipment Download PDF

Info

Publication number
CN101969400A
CN101969400A CN2010105072559A CN201010507255A CN101969400A CN 101969400 A CN101969400 A CN 101969400A CN 2010105072559 A CN2010105072559 A CN 2010105072559A CN 201010507255 A CN201010507255 A CN 201010507255A CN 101969400 A CN101969400 A CN 101969400A
Authority
CN
China
Prior art keywords
rule
flag bit
terminal equipment
special register
map
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.)
Granted
Application number
CN2010105072559A
Other languages
Chinese (zh)
Other versions
CN101969400B (en
Inventor
韦干翼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Gongjin Electronics Co Ltd
Original Assignee
Shenzhen Gongjin Electronics Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Gongjin Electronics Co Ltd filed Critical Shenzhen Gongjin Electronics Co Ltd
Priority to CN2010105072559A priority Critical patent/CN101969400B/en
Publication of CN101969400A publication Critical patent/CN101969400A/en
Application granted granted Critical
Publication of CN101969400B publication Critical patent/CN101969400B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method for matching a number of voice over internet protocol (VOIP) terminal equipment. The method is implemented in a process for establishing talking connection between the voice over internet protocol terminal equipment and a server; a number collection module of the voice over internet protocol terminal equipment stores a detected user dialed number in a temporary memory; a figure rule is searched from a database for comparison and matching through a number matching module; all figure rules stored in the database form a detailed hierarchical tree-shaped route structure; each node of the tree-shaped route structure is the diagram rule in which state information is packaged; meanwhile, a special register for storing the figure rule state information is arranged. Through an entire flow mechanism of the method of the invention, the defect that the dialing rule of the VOIP terminal system is generally not flexible and cannot adapt to various actual network environments is overcome.

Description

A kind of method of network voice communication terminal equipment numbers match
Technical field
The invention belongs to network voice communication VOIP terminal field, relate to the number matching method of netspeak communication terminal device, particularly a kind of number matching method of netspeak communication terminal device that can the multiple real network environment of flexible adaptation.
Background technology
Along with popularizing of communication and network, this talking mode that is different from traditional public switched telephone network PSTN of VOIP has obtained increasing application chance.Particularly under the policy of country " light advances copper and moves back " is guided, Fiber to the home/and Fiber To The Building waits light access class communication system to obtain development rapidly, have its congenital fireballing characteristics because light inserts and compares to traditional Digital Subscriber Loop DSL, Ethernet inserts, thereby not only can guarantee for the up-downgoing data provide enough bandwidth, also can provide a good basis and a guarantee for the carrying of VOIP speech business, under this background, the newly deployed smooth access communication system of operator has the VOIP function more.
The popularization of VOIP terminal is in order to replace people's use pstn telephone for many years, its occupation mode also must adapt to the use habit of pstn telephone, finish a communication process, also needing to experience the user dials in analog station, the VOIP terminal collects the digits, and the server on IP network makes a call and sets up the process of calling.When the user when analog station dials, the VOIP terminal collects the digits, receive that how many numbers just should make a call to server, the dialing rule that is present in the VOIP terminal exactly in action, this behavior is called numbers match, and the rule and the method that are relied on during dialing rule to be exactly the VOIP terminal carry out numbers match action.Traditional MGCP MGCP, H.248 the dialing rule of agreement is that server is handed down to the VOIP terminal, and terminal is done the numbers match and the number of sending according to this dialing rule that issues; And for the VOIP terminal of utility cession initializtion protocol SIP, dialing rule is that the user disposes on terminal.
VOIP termination number matching process is such, the user whenever dials a number on analog telephone, the VOIP terminal detects this number and stores, using dialing rule simultaneously mates the number of having collected, if successfully mate certain number rule map, then make a call to server with the number of collecting, if counting rule map, neither one successfully mates, and also have a number rule map to be in the part matching status at least, then do not do any action, wait for after detecting user's next one dials and mating again again.Common design has 4 timers in work, 1 in this process) the off-hook timer that do not dial, when behind user's off-hook and when not have duration of dialing to surpass this timer, return numbers match and fail, stopping to collect number can't make a call.2) interdigit dialing timer, the user has dialled a number to dialling the maximum time that can stop between the next number, if this timer expiry then return numbers match and fail stops to collect number and also can not make a call.3) t timer, when the number rule map comprised the t ending, the part of regular front had all successfully been mated, terminal can start this timer, up to this timer expiry user still not further dialing, return then that the match is successful, make a call to server with the number of collection.4) lack timer, this timer is with reference to the short timer design of protocol definition H.248, when the number of collecting has successfully mated certain number rule map, but it is to be matched to also have other to count rule map etc., do not return immediately then that the match is successful, start this timer, up to also not further dialing of this timer expiry user, return just that the match is successful, make a call to server with the number of collecting.Expression for dialing rule, common grammer is: " 0-9 " " * " " # " represents corresponding button on the phone, t represents above-mentioned the 3rd timer, " x " represents any one digital keys among the 0-9, " [] " expanded the part of getting up and represented scope, be illustrated in certain button in this scope, between the two all digital keys about "-" expression, ". " previous structure matching 0 of expression or repeatedly.
Above-mentioned dialing rule can satisfy common requirement, but also has following problem, 1) for some intelligent terminal or internal and external line scene, need the requirement of identification dialing prefix and further coupling Different Rule not adapt to.2) total length that can't the limited subscriber dial string, underaction.3) do not wish to mate other requirements of counting rule map and can not satisfy for successfully mating behind certain number rule map the user.4) successfully mate certain number rule map after, can not change flexibly the number of transfering to.5) successfully mate calling from certain number rule map to server that will initiate immediately behind, it is inflexible that behavior is relatively fixed.6) processing after it fails to match can only be returned the failure prompting to the user, and it is inflexible that behavior is relatively fixed.
Summary of the invention
In order to address the above problem, the invention provides a kind of method of network voice communication terminal equipment numbers match, dumb to solve the common dialing rule of VOIP terminal system, can not adapt to the defective of multiple real network environment.
The present invention for realizing the technical scheme that goal of the invention adopts is:
A kind of method of network voice communication terminal equipment numbers match, said method is to set up in the process that conversation is connected at network voice communication terminal equipment and server to realize, the collecting number module of network voice communication terminal equipment is stored in detected subscriber dialing in the buffer, from database, search several rule maps coupling of comparing by the numbers match module, key is: be stored in the database all and count rule map and be built into the tree-like routing infrastructure of level of detailization, each node of tree-like routing infrastructure is the several rule maps that are packaged with state information, set up the special register of storage number rule map state information simultaneously, concrete numbers match step is as follows:
1) several rule maps of the superiors of the tree-like routing infrastructure of level of detailization and the number that the user is dialled are begun the comparison coupling;
2) search several rule maps of dialling the number and being complementary, skip to step 5) after finding with the user; Do not find, skip to step 8);
3) with the coupling of comparing of next number of plies rule map of several rule map correspondences on the coupling,
4) repeating step 2), the coupling until finishing whole number goes to step 9);
5) state information in the corresponding special register of numbers match module inquiry number rule map if the signal that provides is breathed out for allowing, is inquired about next number of plies figure state information in the special register, as is provided signal for true, then skips to step 3); If provide signal for false, then skip to step 7); If refusal is breathed out, skip to step 6);
6) start the failure processing module and return the number error prompting, go to step 9) to the user;
7) the startup call processing module is sent to server and is set up call connection request, forwards step 9) to;
8) state information in the relevant special register is handled in numbers match module inquiry failure, if the signal that provides is breathed out for allowing, next number of plies figure state information in the relevant special register is handled in the inquiry failure again, as provides signal, then skips to step 3); If do not provide, then skip to step 7); If refusal is breathed out, skip to step 6);
9) the comparison pairing finishes.
Comprise in the structure of described special register: the route indication position of breathing out behind a, the permission coupling several rule maps that upward this node is represented; Next node layer flag bit of b, this node; The flag bit of dial-out immediately that c, the several rule maps that allow coupling to go up this node are breathed out immediately; D, this node exist the replacement of replacing the number rule map to count the rule map flag bit; The acquiescence of the layer at e, this node place is replaced number rule map flag bit; Several rule maps of the layer at f, this node place allow the default route flag bit of exhalation information; Next node layer flag bit of g, this node place layer.
In described network voice communication terminal equipment, also set up the first memory of setting dial string total length information.
In described network voice communication terminal equipment, also have additional storage and replace the second memory of number rule map and the 3rd memory that acquiescence is replaced the number rule map, on this basis, carry out to judge:
If 1. the set of rule map flag bit is counted in the replacement in the special register, then use replacement in the second memory to count rule map and replace; If the not set of rule map flag bit is counted in the replacement in the special register, then do not replace;
If 2. the acquiescence in the special register is replaced the set of number rule map flag bit, then use the acquiescence replacement number rule map in the 3rd memory to replace; If the acquiescence in the special register is replaced the not set of number rule map flag bit, then do not replace.
In described network voice communication terminal equipment, also have additional the 4th memory of one deck number of regulation under the storage and the 5th memory that acquiescence is displaced one deck number of regulation, on this basis, carry out to judge:
If next the node layer flag bit set 1. in the special register, the pairing rule of following one deck number of regulation that then jumps in the 4th memory is handled; If numbers match is then no longer proceeded in next the not set of node layer flag bit in the special register, return according to the matching result processing of this node layer;
If 2. next node layer flag bit set of the acquiescence in the special register, then the pairing rule of following one deck number of regulation in redirect the 5th memory is handled; If numbers match is then no longer proceeded in next not set of node layer flag bit of the acquiescence in the special register, return according to the matching result processing of this node layer.
Be provided with timing circuit and supporting switch control in the CPU of described network voice communication terminal equipment.
Beneficial effect provided by the invention is: 1) by the tree-like routing infrastructure of level of detailization, can further mate Different Rule according to the prefix of coupling again after successfully mating different prefix, increase the flexibility of whole dialing rule.2) by setting dial string total length information, can have under the situation of a plurality of asterisk wildcard rule sections, control the length of whole subscriber dialing string, reach dial string combination more flexibly at coupling number rule map.3) pass through state information--the flag bit of breathing out immediately, can need not mate other and count rule map and transfer to the experience when improving subscriber dialing, the wait after avoiding successfully mating immediately after successfully mate certain number rule map.4) rule map is counted in Xin Zeng replacement, removes at needs under the situation of prefix, FH-number transform, can carry out replacement operation by regular expression flexibly, reaches the effect of flexible replacement number.5) by newly-increased route indication position, can be used for forbidding that some number can not transfer to, and can mate a series of numbers by the mode of regular expression, successful coupling back and not making a call, thus can control flexibly dial-up routing.6) whether be the zero flag position by newly-increased acquiescence replacement number rule map, default route flag bit, following one deck rule number, can after the numbers match failure, still carry out a series of processing, increased the flexibility of rule match failure reprocessing.By this a whole set of mechanism, can satisfy the practical application scene of present various dialing rules.
Embodiment
A kind of method of network voice communication terminal equipment numbers match, said method is to set up in the process that conversation is connected at network voice communication terminal equipment and server to realize, the collecting number module of network voice communication terminal equipment is stored in detected subscriber dialing in the buffer, from database, search several rule maps coupling of comparing by the numbers match module, importantly: be stored in the database all and count rule map and be built into the tree-like routing infrastructure of level of detailization, each node of tree-like routing infrastructure is the several rule maps that are packaged with state information, set up the special register of storage number rule map state information simultaneously, concrete numbers match step is as follows:
1) several rule maps of the superiors of the tree-like routing infrastructure of level of detailization and the number that the user is dialled are begun the comparison coupling;
2) search several rule maps of dialling the number and being complementary, skip to step 5) after finding with the user; Do not find, skip to step 8);
3) with the coupling of comparing of next number of plies rule map of several rule map correspondences on the coupling,
4) repeating step 2), the coupling until finishing whole number goes to step 9);
5) state information in the corresponding special register of numbers match module inquiry number rule map if the signal that provides is breathed out for allowing, is inquired about next number of plies figure state information in the special register, as is provided signal for true, then skips to step 3); If provide signal for false, then skip to step 7); If refusal is breathed out, skip to step 6);
6) start the failure processing module and return the number error prompting, go to step 9) to the user;
7) the startup call processing module is sent to server and is set up call connection request, forwards step 9) to;
8) state information in the relevant special register is handled in numbers match module inquiry failure, if the signal that provides is breathed out for allowing, next number of plies figure state information in the relevant special register is handled in the inquiry failure again, as provides signal, then skips to step 3); If do not provide, then skip to step 7); If refusal is breathed out, skip to step 6);
9) the comparison pairing finishes.
Comprise in the structure of described special register: the route indication position of breathing out behind a, the permission coupling several rule maps that upward this node is represented; Next node layer flag bit of b, this node; The flag bit of dial-out immediately that c, the several rule maps that allow coupling to go up this node are breathed out immediately; D, this node exist the replacement of replacing the number rule map to count the rule map flag bit; The acquiescence of the layer at e, this node place is replaced number rule map flag bit; Several rule maps of the layer at f, this node place allow the default route flag bit of exhalation information; Next node layer flag bit of g, this node place layer.
In described network voice communication terminal equipment, also set up the first memory of setting dial string total length information.
In described network voice communication terminal equipment, also have additional storage and replace the second memory of number rule map and the 3rd memory that acquiescence is replaced the number rule map, on this basis, carry out to judge:
If 1. the set of rule map flag bit is counted in the replacement in the special register, then use replacement in the second memory to count rule map and replace; If the not set of rule map flag bit is counted in the replacement in the special register, then do not replace;
If 2. the acquiescence in the special register is replaced the set of number rule map flag bit, then use the acquiescence replacement number rule map in the 3rd memory to replace; If the acquiescence in the special register is replaced the not set of number rule map flag bit, then do not replace.
In described network voice communication terminal equipment, also have additional the 4th memory of one deck number of regulation under the storage and the 5th memory that acquiescence is displaced one deck number of regulation, on this basis, carry out to judge:
If next the node layer flag bit set 1. in the special register, the pairing rule of following one deck number of regulation that then jumps in the 4th memory is handled; If numbers match is then no longer proceeded in next the not set of node layer flag bit in the special register, return according to the matching result processing of this node layer;
If 2. next node layer flag bit set of the acquiescence in the special register, then the pairing rule of following one deck number of regulation in redirect the 5th memory is handled; If numbers match is then no longer proceeded in next not set of node layer flag bit of the acquiescence in the special register, return according to the matching result processing of this node layer.
Be provided with timing circuit and supporting switch control in the CPU of described network voice communication terminal equipment.
The inventive method provides a whole set of dialing rule system model to satisfy various practical application scenes, can be in this model to the dialing rule coupling that repeatedly circulates, thereby can realize the matching process of time iteration arbitrarily, and improved each link in the conventional dial rule match process, enrich the processing mode of each link in the matching process by some configuration items and the increase of handling branch, improve and handle flexibility and improve user experience.Below the inventive method is elaborated.
The method of a kind of network voice communication terminal equipment numbers match of the present invention comprises the steps:
Step S1: the user is configured on the VOIP communication terminal by some configuration modes, configuration information comprises: count rule map, replacement number rule map, replacement number figure flag bit, dial string total length, transfer to flag bit, route indication position, acquiescence to replace the number rule map immediately, give tacit consent to replacement number figure flag bit, default route flag bit, also has the outside line key prefix, interior lines dialing length, interior lines exception number can adopt following configuration mode: webpage, order line, Simple Network Management Protocol SNMP.VOIP has obtained these user's configurations by Configuration Manager.
Step S2: according to these configuration items, tree-like routing infrastructure of level of detailization of logarithmic chart rule structure, the numbers match module is carried out initialization with it.
Step S3: the collecting number module is waited for user's dialing, detect dialing after, the numbers match resume module is delivered at the number series end of collecting before it is appended to, and preserve.
Step S4: when user's off-hook began to take turns new dialing, all correlated variabless of rule map were counted in the numbers match module initialization, selected corresponding number rule map to carry out follow-up coupling.
Step S5: divide two kinds of implementation status, 1) carry out this step from step S3, S4, each counts " the number rule map is effective " flag bit of rule map judgement earlier.If also having a number rule map at least is effectively, then forwards step S6 to and carry out matching treatment; If it is all invalid that all count rule map, then forward to
Step S16 carries out the processing of default rule.2) forwarding this step to from step S7, is effectively if also have a number rule map at least, then forwards step S3 to and goes subscriber dialing by the time; If it is all invalid that all count rule map, then forward the processing that step S16 carries out default rule to.
Described variable " number rule maps effective " flag bit, with in the number rule maps each to count rule map corresponding, whether it fails to match promptly to represent the number rule map.The set that is initialised when user's off-hook begins to take turns new dialing of this flag bit, in follow-up matching operation, after the failure of number rule maps coupling dial string, this flag bit is gone set.
Step S6: the key step of actual figure rule map coupling, the pattern that adopts regular expression to mate.Use still effectively several rule maps that the dial string of collecting is mated successively, if can mate a number rule map fully, then forward step S7 to and carry out maximum match pattern relevant treatment, can mate fully if neither one is counted rule map, then rotate back into step S5 and go to judge that current all effective situations of counting rule map do further processing again.
Coupling number rule map grammer is as follows: " 0-9 " " * " " # " represents corresponding button on the phone, t represents above-mentioned the 3rd timer, " x " represents any one digital keys among the 0-9, " [] " expanded the part of getting up and represented scope, be illustrated in certain button in this scope, between the two all digital keys about "-" expression, ". " previous structure matching 0 of expression or repeatedly.For example matched rule can be expressed as, 9x[3-5] x.t, mating upward, this regular dial string is, with number 9 beginnings, follow any one digital number of 0-9 then, follow digital keys in 3,4,5 again, follow-up digital keys of following any a plurality of 0-9 scopes again, and starting the t timer, the t timer expiry then returns coupling fully.The current matching result of number rule map has three kinds of situations, 1) mates fully, it is last field that dial string and number rule map can mate and match several rule maps, as above routine number rule map is 9x[3-5] x.t, subscriber dialing 90355, and after waiting for the t timer expiry, at this moment belong to coupling fully.2) part coupling, promptly dial string can mate with the number rule map but not match last fields of several rule maps, as above counting rule map in the example is 9x[3-5] x.t, at this moment subscriber dialing 903 just belongs to part and mates.3) it fails to match, and promptly dial string has unmatched field to take place with the number rule map, and as above the number rule map is 9x[3-5 in the example] x.t, subscriber dialing 901, then number 1 does not match with rule field [3-5], thereby causes the rule match failure.
Usually comprise asterisk wildcard rule section and non-asterisk wildcard rule section in the number rule map.Asterisk wildcard comprises two kinds: a) the single 0-9 button number wildcard of " x " expression.B) " x. " expression 0-9 button number repeats 0 or repeatedly, adapts to string number button number.A, b both one of in rule every appearance once be asterisk wildcard rule section, and the part between two asterisk wildcards rule sections is called non-asterisk wildcard rule section.Matched rule 9x.5x for example, wherein 9 is exactly first non-asterisk wildcard rule section in the rule, and x. is exactly first asterisk wildcard rule section, and 5 is second non-asterisk wildcard rule section, and x is second asterisk wildcard rule section.
If comprise in the coupling number rule map " x. " and so on can a plurality of digital keys of wildcard the rule section time, when the number of collecting arrives the dial string total length of setting, and when having matched last rule section of coupling number rule map, think that then coupling finishes.For example matched rule is 9x1x., and the dial string total length of setting is 13, when subscriber dialing 901373657664, the dialing total length is 12, and has matched last section x. part of rule, at this moment remains the part coupling, when the user dials a number 7 again, dial string length has reached set point 13, at this moment just returns fully coupling, and to return dial string be 9013736576647.
Step S7: judge whether to have disposed maximum match pattern, go to carry out,, promptly forward step S12 to and carry out number replacement processing if not then adopting the smallest match pattern if then forward step S8 to.
The control of the timing circuit that is provided with in the CPU of network voice communication terminal equipment among the present invention and supporting switch has realized the function of the short timer of prior art, below to lack the saying that timer replaces above-mentioned timing circuit and supporting switch to control.
Described maximum match pattern, be meant the situation of the switch closure of the timing circuit that is provided with in the CPU of network voice communication terminal equipment, when the number of collecting has successfully mated certain number rule map, but also have other to count rule map and be in the part matching status, then do not return coupling fully immediately, up to also not further dialing of this short timer expiry user, just return coupling fully.
Described smallest match pattern, be meant the situation of the switch opens of the timing circuit that is provided with in the CPU of network voice communication terminal equipment, when the number of collecting has successfully mated certain number rule map, be in the part matching status even if also have other to count rule map, also return coupling fully immediately.
Step S8: judge whether to also have the number rule map to be in the part matching status, handle, carry out number replacement processing if not then forwarding step S12 to if then forward step S9 to.
Step S9: judge the whether set of the flag bit of dial-out immediately of the severals rule map correspondences on the coupling, if set then forward step S12 to and carry out number and replace processing, if not set then forward step S10 to and start maximum matching treatment.
Step S10: start short timer and detect subscriber dialing.At this moment it is too of a specified duration should not allow the user wait for, so short timer duration is less than interdigit do not dial timer and t length of timer usually.
Step S11: if short timer expiry and not further dialing of user, then forward step S12 to and carry out number and replace and handle.If the user has dialing to be detected before the short timer expiry, then addition number arrives the subscriber dialing string end of collecting, and forwards step S4 execution to, and the several rule maps that are used to mate before choosing mate.
Step S12: judge that replacement in the special register of the severals rule maps on the coupling counts the whether set of rule map flag bit, if set then forwards step S13 to and carries out number and replace and handle, if not set then jump to step S14 and carry out the judgement of route indication position.
Step S13: carry out number and replace the key step of handling.Several rule maps on the coupling and the replacement in the second memory are counted rule map and are all adopted the regular expression form, and two rules are carried out association with asterisk wildcard rule section, replace with non-asterisk wildcard rule section.Rule section sum in two rules must be identical, and asterisk wildcard rule section must be identical, and this is to carry out the precondition that number is replaced.
Described number is replaced, when the number of collecting successfully mates a number rule map, section all have for each asterisk wildcard rule section in the coupling number rule map and non-asterisk wildcard rule in the number of collection on a part of numbers match, asterisk wildcard rule section coupling is mated for the wildcard mode, and non-asterisk wildcard rule section coupling is corresponding one by one for the button of non-wildcard mode.When replacing the number of collecting, be one to one on the asterisk wildcard rule section of coupling number rule map and replacement number rule map and the non-asterisk wildcard rule fragment position with replacement number rule map.For that part of number in the non-asterisk wildcard rule section collection number that is mated in the coupling number rule map, replace with the non-asterisk wildcard rule section of correspondence position in the replacement number rule map; The number that mate for asterisk wildcard rule section in the coupling number rule map and since in replacing the number rule map asterisk wildcard of correspondence position rule section with mate the number rule map in be identical, so this part number need not be replaced.For example, coupling number rule map is 9x[3-7] x., replacing the number rule map is 90755x[3-7] x., the subscriber dialing string is 913505213470.Coupling number rule map resolves into 4 rule sections, is respectively: 9, x, [3-7], x., and wherein 1,3 is non-asterisk wildcard rule section, 2,4 is asterisk wildcard rule section.Replace the number rule map and also be decomposed into 4 rule sections: 90755, x, [3-7], x., wherein 1,3 is non-asterisk wildcard rule section, 2,4 is asterisk wildcard rule section.Matching process such as following table:
Table 1
Coupling number rule map Number on the coupling Replace the number rule map Number after the replacement
Rule section 1 9 9 90755 90755
Rule section 2 X 1 x 1
Rule section 3 [3-7] 3 [3-7] 3
Rule section 4 X 505213470 x 505213470
Number series after final the replacement is 9075513505213470.
Step S14: judge the whether set of route indication position of the severals rule map correspondences on the coupling, if set then illustrate and allow to breathe out forwards step S15 processing to.If not set then illustrate that refusal breathes out then forwards step S21 to and handles.
Step S15: judge whether next number of plies rule map flag bit in the special register of the severals rule maps on the coupling is zero, if be zero, illustrate that not descend one deck rule etc. to be matched, the numbers match end forwards step S20 processing to.If non-vanishing, illustrate that to also have down one deck rule etc. to be matched, then forward step S4 to carry out, proceed matching treatment.
Step S16: enter into this step when all count the rule map failure when this layer of coupling and carry out, here the acquiescence that needs to judge this layer rule is replaced the whether set of number rule map flag bit, if set, then forward step S17 to and carry out the number replacement, if not set is then leapt to step S18 and is handled.
Step S17: replace the number rule map according to the acquiescence in the 3rd memory and carry out number replacement processing, the method for replacement is identical with step S13.
Step S18: judge the whether set of default route flag bit of this layer rule, if set, then explanation allows to breathe out when it fails to match, forwards step S19 to and carries out, if not set, then it fails to match does not allow to breathe out in explanation, forwards step S21 to and carry out.
Step S19: whether following one deck rule number of judging this layer rule is zero, if non-vanishing, also regular wait coupling is described, then forwards step S4 to and carries out, and proceeds matching treatment.If be zero, illustrate that not have rule etc. to be matched, numbers match finishes, and forwards step S20 processing to.
Step S20:, call out at the SIP that initiates server on network in the call processing module according to the number series after the processing of numbers match module.
Step S21: according to numbers match module it fails to match result, in the failure processing module, return the failure prompt tone, point out this dialing to handle failure to the user.

Claims (6)

1. the method for a network voice communication terminal equipment numbers match, said method is to set up in the process that conversation is connected at network voice communication terminal equipment and server to realize, the collecting number module of network voice communication terminal equipment is stored in detected subscriber dialing in the buffer, from database, search several rule maps coupling of comparing by the numbers match module, it is characterized in that: be stored in the database all and count rule map and be built into the tree-like routing infrastructure of level of detailization, each node of tree-like routing infrastructure is the several rule maps that are packaged with state information, set up the special register of storage number rule map state information simultaneously, concrete numbers match step is as follows:
1) several rule maps of the superiors of the tree-like routing infrastructure of level of detailization and the number that the user is dialled are begun the comparison coupling;
2) search several rule maps of dialling the number and being complementary, skip to step 5) after finding with the user; Do not find, skip to step 8);
3) with the coupling of comparing of next number of plies rule map of several rule map correspondences on the coupling,
4) repeating step 2), the coupling until finishing whole number goes to step 9);
5) state information in the corresponding special register of numbers match module inquiry number rule map if the signal that provides is breathed out for allowing, is inquired about next number of plies figure state information in the special register, as is provided signal for true, then skips to step 3); If provide signal for false, then skip to step 7); If refusal is breathed out, skip to step 6);
6) start the failure processing module and return the number error prompting, go to step 9) to the user;
7) the startup call processing module is sent to server and is set up call connection request, forwards step 9) to;
8) state information in the relevant special register is handled in numbers match module inquiry failure, if the signal that provides is breathed out for allowing, next number of plies figure state information in the relevant special register is handled in the inquiry failure again, as provides signal, then skips to step 3); If do not provide, then skip to step 7); If refusal is breathed out, skip to step 6);
9) the comparison pairing finishes.
2. the method for a kind of network voice communication terminal equipment numbers match according to claim 1 is characterized in that: comprise in the structure of described special register: the route indication position of breathing out behind a, the permission coupling several rule maps that upward this node is represented; Next node layer flag bit of b, this node; The flag bit of dial-out immediately that c, the several rule maps that allow coupling to go up this node are breathed out immediately; D, this node exist the replacement of replacing the number rule map to count the rule map flag bit; The acquiescence of the layer at e, this node place is replaced number rule map flag bit; Several rule maps of the layer at f, this node place allow the default route flag bit of exhalation information; Next node layer flag bit of g, this node place layer.
3. the method for a kind of network voice communication terminal equipment numbers match according to claim 1 is characterized in that: also set up the first memory of setting dial string total length information in described network voice communication terminal equipment.
4. the method for a kind of network voice communication terminal equipment numbers match according to claim 2, it is characterized in that: in described network voice communication terminal equipment, also have additional storage and replace the second memory of number rule map and the 3rd memory that acquiescence is replaced the number rule map, on this basis, carry out to judge:
If 1. the set of rule map flag bit is counted in the replacement in the special register, then use replacement in the second memory to count rule map and replace; If the not set of rule map flag bit is counted in the replacement in the special register, then do not replace;
If 2. the acquiescence in the special register is replaced the set of number rule map flag bit, then use the acquiescence replacement number rule map in the 3rd memory to replace; If the acquiescence in the special register is replaced the not set of number rule map flag bit, then do not replace.
5. the method for a kind of network voice communication terminal equipment numbers match according to claim 2, it is characterized in that: in described network voice communication terminal equipment, also have additional the 4th memory of one deck number of regulation under the storage and the 5th memory that acquiescence is displaced one deck number of regulation, on this basis, carry out to judge:
If next the node layer flag bit set 1. in the special register, the pairing rule of following one deck number of regulation that then jumps in the 4th memory is handled; If numbers match is then no longer proceeded in next the not set of node layer flag bit in the special register, return according to the matching result processing of this node layer;
If 2. next node layer flag bit set of the acquiescence in the special register, then the pairing rule of following one deck number of regulation in redirect the 5th memory is handled; If numbers match is then no longer proceeded in next not set of node layer flag bit of the acquiescence in the special register, return according to the matching result processing of this node layer.
6. the method for a kind of network voice communication terminal equipment numbers match according to claim 2 is characterized in that: be provided with timing circuit and supporting switch control in the CPU of described network voice communication terminal equipment.
CN2010105072559A 2010-10-13 2010-10-13 Method for matching number of voice over internet protocol terminal equipment Active CN101969400B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105072559A CN101969400B (en) 2010-10-13 2010-10-13 Method for matching number of voice over internet protocol terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105072559A CN101969400B (en) 2010-10-13 2010-10-13 Method for matching number of voice over internet protocol terminal equipment

Publications (2)

Publication Number Publication Date
CN101969400A true CN101969400A (en) 2011-02-09
CN101969400B CN101969400B (en) 2012-05-30

Family

ID=43548505

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105072559A Active CN101969400B (en) 2010-10-13 2010-10-13 Method for matching number of voice over internet protocol terminal equipment

Country Status (1)

Country Link
CN (1) CN101969400B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102694934A (en) * 2012-06-04 2012-09-26 深圳市共进电子股份有限公司 Communication method and device
CN103150471A (en) * 2013-02-22 2013-06-12 深圳市共进电子股份有限公司 Dialing rule matching method and device
WO2014049472A1 (en) * 2012-09-27 2014-04-03 International Business Machines Corporation Phone call management
CN108881214A (en) * 2018-04-18 2018-11-23 李世伟 Multifunctional unit exchange method, device and electronic equipment
CN109831568A (en) * 2019-03-27 2019-05-31 苏州工业园区服务外包职业学院 A kind of method and system of intelligence access gateway config. number code table
CN114466103A (en) * 2021-12-21 2022-05-10 天翼云科技有限公司 Voice digital map generation method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1545344A (en) * 2003-11-14 2004-11-10 中兴通讯股份有限公司 Method of digit-figure number matching
CN1870682A (en) * 2006-03-17 2006-11-29 华为技术有限公司 Receiving processing method and its device
EP2157760A1 (en) * 2008-08-19 2010-02-24 Alcatel Lucent Handling of H248 digitmap timers

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1545344A (en) * 2003-11-14 2004-11-10 中兴通讯股份有限公司 Method of digit-figure number matching
CN1870682A (en) * 2006-03-17 2006-11-29 华为技术有限公司 Receiving processing method and its device
EP2157760A1 (en) * 2008-08-19 2010-02-24 Alcatel Lucent Handling of H248 digitmap timers

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102694934A (en) * 2012-06-04 2012-09-26 深圳市共进电子股份有限公司 Communication method and device
WO2014049472A1 (en) * 2012-09-27 2014-04-03 International Business Machines Corporation Phone call management
US9106766B2 (en) 2012-09-27 2015-08-11 International Business Machines Corporation Phone call management
CN103150471A (en) * 2013-02-22 2013-06-12 深圳市共进电子股份有限公司 Dialing rule matching method and device
CN103150471B (en) * 2013-02-22 2016-08-17 深圳市共进电子股份有限公司 A kind of dialing rule matching process and device
CN108881214A (en) * 2018-04-18 2018-11-23 李世伟 Multifunctional unit exchange method, device and electronic equipment
CN108881214B (en) * 2018-04-18 2021-02-09 李世伟 Multifunctional integrated interaction method and device and electronic equipment
CN109831568A (en) * 2019-03-27 2019-05-31 苏州工业园区服务外包职业学院 A kind of method and system of intelligence access gateway config. number code table
CN112929346A (en) * 2019-03-27 2021-06-08 苏州工业园区服务外包职业学院 Method and system for configuring number list by intelligent access gateway
CN114466103A (en) * 2021-12-21 2022-05-10 天翼云科技有限公司 Voice digital map generation method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN101969400B (en) 2012-05-30

Similar Documents

Publication Publication Date Title
CN101969400B (en) Method for matching number of voice over internet protocol terminal equipment
US7953209B2 (en) Provisioning of emergency services in a voice-over-packet environment
US6961334B1 (en) Intelligence engine
US8593993B2 (en) Method and apparatus for self-learning of call routing information
US7519732B2 (en) Routing service method in voice over internet protocol system
US20050105708A1 (en) Method of routing signals through communication networks
US20090274141A1 (en) Ip telephone system and ip telephone method
US20070286390A1 (en) Method for Implementing Wide Area Centrex
US7627101B2 (en) Method and apparatus for telephone routing between PTN and PSTN
US7002953B2 (en) Multimedia data transfer system between computers associated with terminals
CN103873713B (en) Apparatus and method for the Subscriber Number identification of voice-over-IP telephone
CN104486515A (en) System and method for realizing home gateway number blacklist management in VoIP network
CN100558174C (en) A kind of call connection method
AU761112B2 (en) Method for processing outgoing call in voice over the internet protocol (VIP) gateway
CN101227527B (en) System and method for initiating blind transfer call switching business
CN108156171A (en) IP phone exchange system and exchange method
US6222917B1 (en) Method and apparatus for providing a directory number to a call-processing device in a communications network
US20100260171A1 (en) Method and apparatus for processing number portability in internet phone
CN100362828C (en) Method for realizing service extending of integrated access apparatus and its apparatus
Beneš Blocking states in connecting networks made of square switches arranged in stages
WO2006039783A1 (en) Emergency services provisioning and emergency call handling in a voice-over-packet environment
KR100416807B1 (en) Method for Gateway Calling Connection of Gate-keeper
JPH01183950A (en) Speaking route designating system
US7433360B2 (en) Virtual private communications network
JP2943859B2 (en) Call connection method of another area subscriber

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent for invention or patent application
CB02 Change of applicant information

Address after: 518000, Shenzhen, Guangdong province Nanshan District Shekou Nanhai Road 1019, 100 surplus medical instrument Park, two floor

Applicant after: Shenzhen Gongjin Electronics Co., Ltd.

Address before: 518000, Shenzhen, Guangdong province Nanshan District Shekou Nanhai Road 1019, 100 surplus medical instrument Park, two floor

Applicant before: Shenzhen Gongjin Electronics Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: SHENZHEN GONGJIN ELECTRONICS CO., LTD. TO: SHENZHEN GONGJIN ELECTRONIC CO., LTD.

C14 Grant of patent or utility model
GR01 Patent grant