Technical Field of the Invention
The present invention relates in general to telecommunications processing techniques and more particularly to a method of parsing digits to provide a flexible dial plan capability in a telecommunications switch.
Related Patent Application
This application claims the benefit of U.S. Provisional Application No. 60/013,628, filed on Mar. 18, 1996.
Background of the Invention
Telecommunications switches typically operate in known environments with fixed dial plans and the expected digit patterns are pre-defined. By knowing what the digit patterns will be, the telecommunications switch uses an inflexible hard coded program to identify the received digit patterns. However, each country has its own telecommunication numbering plan and dialing sequence. The hard coded telecommunications switches are specifically defined for a particular country and would not operate in other countries. Therefore, it is desirable to have a telecommunication switch that is flexible to function in many, if not all, operating environments without requiring changes to hardware of software in order to meet the needs of a particular environment.
Summary of the Invention
From the foregoing, it may be appreciated that a need has arisen for a telecommunication switch with global operating capabilities. In accordance with the present invention, a method of digit parsing for a flexible dial plan capability in a telecommunications switch is provided that substantially eliminates or reduces disadvantages and problems associated with conventional hard coded telecommunications switches.
According to an embodiment of the present invention, there is provided a method of digit parsing for a flexible dial plan capability in a telecommunications switch that includes collecting digits corresponding to an incoming call and comparing the collected digits to a dial plan stored within a dial plan database. A digit parsing routine identifies dial plan codes in a dialing sequence regardless of the operating environment of the telecommunications switch.
The present invention provides various technical advantages over conventional hard coded telecommunications switches. For example, one technical advantage is having a telecommunications switch capable of operating anywhere in the world. Another technical advantage is providing a digit parsing routine that can identify any global dialing sequence. Other technical advantages are readily apparent to one skilled in the art from the following figures, description, and claims.
Brief Description of the Drawings
For a more complete understanding of the present invention and the advantages thereof, reference is now made to the following description taken in conjunction with the accompanying drawings, wherein like reference numerals represent like parts, in which:
FIG. 1 illustrates a block diagram of a telecommunications switch;
FIG. 2 illustrates a block diagram of a dial plan;
FIG. 3 illustrates a block diagram of a dial plan database within the telecommunications switch;
FIG. 4 illustrates a flow diagram through tables and buffers of the telecommunications switch performing a digit parsing routine;
FIG. 5 illustrates a flow diagram of the digit parsing routine;
FIGS. 6A-D illustrate a flow diagram of a code identification function for the digit parsing routine;
FIG. 7 illustrates a flow diagram of a resolve conflict function for the digit parsing routine;
FIGS. 8A-B illustrate a flow diagram of a code collection function for the digit parsing routine; and
FIG. 9 illustrates a block diagram for a created dial plan.
Detailed Description of the Invention
FIG. 1 is a block diagram of a portion of a telecommunications network 10. Telecommunications network 10 includes a telecommunications switch 12 providing communication with the network over a plurality of trunk groups 14. Telecommunications switch 12 includes a processing subsystem 100, a call/trunk handler 101, a dial plan database 300, and a craft interface 200. Telecommunications switch 12, through dial plan database 300 is capable of accepting different numbering plans and processing any dialed digits to connect a call to a desired destination within telecommunications network 10. Dial plan database 300 is created by a user through a craft terminal 201. Craft interface 200 provides access to telecommunications switch 12 for craft terminal 201. Different dialing plans can be programmed into telecommunications switch 12 through craft terminal 201 in order to provide flexible dial plan capabilities. An incoming call transported over a trunk group 14 is received at call/trunk handler 101 for processing by processing subsystem 100 in accordance with dial plans programmed into dial plan database 300. Telecommunications switch 12 collects digits dialed by the subscriber to determine the appropriate dial plan for proper routing of the incoming call.
The plurality of trunk groups 14 provide incoming calls to telecommunication switch 12. Each trunk group 14 is associated with a unique dialing plan that consists of a set of dialing sequences. A dialing sequence contains the information required to complete a call within telecommunication switch 12. The dialing sequences include identifying the type of call, the subscriber identity, any billing information, and the called number. The subscriber dials one of the dialing sequences of the dial plan in order to make a call.
A dialing sequence contains a list of numbers called dial plan codes. A dial plan code is a digit stream recognized by telecommunication switch 12 for specific call related information. Typically, a dial plan code may specify functions that include calling type information, subscriber identity, or called number. Digits for a dial plan code follow a specified characteristic format which makes a dial plan code distinct from other codes. Dialing sequences also specify switch related actions which include directing telecommunication switch 12 to either validate the information, modify the call parameters, apply a treatment to a call, or abandon the call. These actions are associated with a specified dial plan code. An action can be either a valid action or an error action.
A dial plan code and its associated actions are collectively identified as a node in a dialing sequence. A dialing sequence consists of a stream of nodes. Each dial plan is stored in dial plan database 300 as a tree of nodes. A particular path traversed in this tree forms a dialing sequence. FIG. 2 illustrates an example of a dial plan 100. Dial plan 100 consists of several nodes where each node is represented by a box and consists of a dial plan code and associated actions. The nodes are arranged into separate levels where each level signifies the rank of a node. A dialing sequence traverses the tree from left to right through each level of dial plan 100 along branches connecting one level to another.
After the first node 102 in level 1, four nodes 104, 106, 108, and 110 may be chosen at level 2. A subscriber can dial any of the four dial plan codes of the four nodes at level 2. The four nodes form a peer list, or cluster, having the same predecessor node. A level may have more than one cluster and each cluster has at least one node. Thus, level 3 has three separate clusters. Further, after dialing any of the dial plan codes in level 2, the subscribers choice of further dial plan codes is limited to the nodes in the cluster which are branching off from a dialed node into level 3. Each node has a branch into the next successive level which may be shared by other nodes in the same level. Each node in the tree of dial plan 100 can then be defined by three parameters--the level number, the cluster number, and the node number.
FIG. 3 shows an example of dial plan database 300 within telecommunication switch 12. Dial plan database 300 includes a plurality of tables used to define each dial plan. The tables in dial plan database 300 are used by the call processing routines in processing subsystem 100 of telecommunication switch 12 during digit collection, digit parsing, and digit analysis of user dialed information. A dial plan in dial plan database 300 of telecommunication switch 12 is defined by a unique dial plan number. A dial plan number associated with every trunk group is stored in a trunk group database 302. Trunk group database 302 provides the dial plan number corresponding to the trunk group of the incoming call. The dial plan number is used as an index to a dial plan record index table 304 which contains an address to the first record of a dial plan. Every dialing sequence possible in a dial plan is stored in a series of records linked to one another within a dial plan sequence table 306. Each record in dial plan sequence table 306 corresponds to a dial plan code and node of a dial plan tree. The processing actions to be followed by a dial plan code are stored in a dial plan action table 308. Every record in dial plan sequence table 306 indexes a corresponding record in dial plan action table 308. The availability of a record for access is determined by a dial plan free records table 309.
The properties of each dial plan code are stored in a dial plan code table 310 indexed by a dial plan code number found within dial sequence table 306. A verbose description of each dial plan code is stored in a dial plan code description table 312 indexed by a dial plan code number. Additional properties of each dial plan code are stored in dial plan code value type tables 314, 316, 318, and 320 that provide constant, range, pattern, and set value type options to further define each dial plan code. A dial plan code recognition table is used by telecommunication switch 12 to systematically eliminate dial plan codes in order to identify the correct dial plan code for processing.
Table 1 shows an example structure for dial plan sequence table 306. Dial plan sequence table 306 specifies the dial plan code number, the minimum and maximum expected number of digits to be collected for this dial plan code, a next sequence pointer, and a peer pointer. The next sequence pointer indexes the record number of the dial plan code in the next level of the dial plan tree or to the head of the peer list in the next level of the dial plan tree for the specified dialing sequence. The peer pointer indexes the record number of the next dial plan code in the peer list of the current level which includes the current dial plan code.
Table 2 shows an example structure for dial plan action table 308. Dial plan action table 308 provides for a number of valid actions to be executed, an action number corresponding to actions to be performed, and an action parameter associated with the action to be performed. For illustrative purposes, each record within dial plan action table 308 has a total of twelve action items. Telecommunications switch 12 performs various actions during call processing when a dial plan code is collected. Action items are separated into valid actions and error actions according to the number of valid actions to be executed. Valid actions are performed when digit collection is completed successfully. Error actions are performed when the digit collection stage identifies a digit collection error. Table 3 shows examples of valid actions and Table 4 shows examples of error actions.
Table 5 shows an example structure of dial plan code table 310. Dial plan code table 310 provides for a format, length, value type, digit type, and brief name for each dail plan code of a dial plan. A permissions field defines which entry within dial plan code 310 is externally programmable. Digit timer and timer digit fields store timer values and number of digits to be used when performing digit collection. For illustrative purposes, telecommunication switch 12 allows for definition of 255 dial plan codes. System defined dial plan codes range from dial plan code number 0 to dial plan code number 63. Custom define plan codes are assigned in decreasing order from dial plan code number 255 to dial plan code number 64. Certain parameters for system defined dial plan codes may be custom programmable to adjust operation of telecommunication switch 12 as desired. A number of system defined dial plan codes and their interpretation within telecommunication switch 12 are shown in Appendix A.
A dial plan code has a fixed or variable format with a length specified as a minimum number of digits to expect and a maximum number of digits to expect. The value type specifies how the dial plan code is recognized. A constant type indicates that the dial plan code can only have one valid value. Table 6 shows an example structure for value type-constant table 314. A range type indicates that any value within a minimum to maximum range is considered valid for the dial plan code. Table 7 shows an example structure for value-range table 316. A pattern type specifies what valid digit values can occur in each digit position. Table 8 shows an example structure for value type-pattern table 318. The set type specifies a set of valid values for recognition of the dial plan code. Table 9 shows an example structure for value type-set table 320.
The digit type field of dial plan code table 310 indicates the type of digit supported by the dial plan code. There are five major digit types--TY1, TY2, TY3, TY4, and TY5. Digit type TY1 accepts digits in the set (0, 1, 2, 3, 4, 5, 6, 7, 8, 9). These digits can be received through tones or line signals in dial pulse, DTMF, MF, R2, or address signals in common channel signaling systems. Digit type TY2 accepts digits in the set (ST, CODE 11, CODE 12, A, B, C, D, #, *). Digits A, B, C, D, #, * are received through DTMF tones (TY2-DT). CODE 11, CODE 12, and ST digits are received through address signal information in SS7/C7 call setup messages (TY2-C7). Digit type TY3 accepts digits in the set (KP, ST, ST', ST", ST'"). These digits are received through MF tones. Digit ST can also be received through address signal information in SS7/C7 call setup messages. Digit type TY4 accepts digits in the set (I-1, I-2, . . . , I-15, II-1, II-2, . . . , II-15). These digits are received through R2 tones. Digits I-1 to I-10 and II-1 to II-10 represent numerals 0-9.
Digit type TY5 defines signal information values received through call setup messages in SS7/C7/ISDN PRI signaling. Call setup messages includes--initial address message (IAM) used in signaling system number 7 and its national variance, subsequent address message (SAM) used in signaling system number 7 and its national variance, subsequent address message with one signal (SAO) used in signaling system number 7 and its national variance, and information message (IFM) used in signaling system number 7 and its national variance. Digit type TY5 has various subtypes--TY5-1 nature of address indicator values, TY5-2 nature of circuit indicator values, TY5-3 calling party category indicator values, TY5-4 incomplete calling line identity indicator values, TY5-5 signaling path indicator values, and TY5-6 numbering plan indicator values. Each subtype refers to a message parameter field in the signaling message.
For illustrative purposes, these 12 digit types are specified as recognizable by telecommunication switch 12 and are referred to by their corresponding type numbers. Table 10 shows the digit type numbers corresponding to each digit type. Table 11 show the hexadecimal values for each digit recognized by each digit type.
FIG. 4 shows the interaction among various tables in dial plan database 300 for an incoming call. Telecommunication switch 12 accesses these tables during digit collection in order to determine the correct dial plan number and dial plan codes for the incoming call. When telecommunication switch 12 receives an incoming call from one of the plurality of trunk groups 14, the dial plan number associated with a particular trunk group is retrieved from trunk group database 302. The dial plan number retrieved from trunk group database 300 is used as an index to dial plan record index table 304 in order to access the first record associated with the dial plan number. The availability of the first record of the dial plan number is checked by accessing free records table 309 to determine if the record is occupied or free.
The record is accessed from dial plan sequence table 308. If the record has a null value in its next sequence pointer and peer pointer address pointers, then there is no peer list and no ambiguity to resolve. The digits to be collected belong to the dial plan code stored in this record and a code collection function is performed for this dial plan code. If an ambiguity exists, i.e., a pointer address value is stored within the peer pointer address pointer, then a list 400 of ambiguous codes is made by reading all the database records linked through the peer pointer address pointers. A code identification function is performed to resolve the ambiguity.
The code identification function is performed when the digit parsing routine being processed by telecommunication switch 12 cannot identify, unambiguously, the dial plan code for which the digits are to be collected. The code identification function collects digits in order to resolve the ambiguity. After collecting a digit, the code identification function refers to dial plan code recognition table 322. An available digit buffer 402 holds digits collected by a digit collection source 404. A digit position indicator 406 keeps track of the position each digit occupies. A digit collected indicator 403 keeps track of the number of digits collected by digit collection source 404 and a digit available indicator 405 keeps track of the number of digits within digit available buffer 402. The digit collected, the digit position, and the digit type are used as parameters to access a bit map of dial plan codes within dial plan recognition table 40. If a bit corresponding to a dial plan code is set in this bit map, that dial plan code allows the collected digit at that current digit position. If the bit corresponding to a dial plan code in ambiguous code list 400 is not set in the bit map, this dial plan code is removed from ambiguous code list 400.
The code identification function collects digits and eliminates dial plan codes from ambiguous code list 38 in response to the bit mapping of dial plan code recognition table 40 until one of the following cases occurs ambiguous code list 38 is empty, ambiguous code list 38 has one code, or ambiguous code list 38 has more than one code. If ambiguous code list 38 is empty, unexpected digits have been collected and a digit collection error is reported. If ambiguous code list 400 has one code, the code identification function was successful in identifying a dial plan code. This dial plan code is returned in order to perform the code collection function for this dial plan code.
If ambiguous code list 400 still contains more than one code, the dial plan codes remaining either have a length equal to or greater than the number of digits collected thus far. If there are dial plan codes with length equal to the number of digits collected, the next digit collected does not belong to these dial plan codes but may belong to the next sequence in the dial plan corresponding to these dial plan codes. This occurs when the next digit does not belong to the remaining dial plan codes in ambiguous code list 400. An example of resolving this ambiguity is illustrated in Table 12.
For a zero collected as the first digit, all the dial plan codes in Table 1 permit this digit at digit position 1. Since dial plan code 254 (ZPLUS) is of length 1 and the number of digits collected is 1, the next digit does not belong to ZPLUS. However, the digit parsing routine cannot eliminate ZPLUS at this stage because this ambiguity can be resolved only after collecting one more digit and confirming that the next digit is 1. If the next digit is 1, then ZPLUS is no longer considered and eliminated from ambiguous code list 400. If the next digit is not 1, then the digit parsing routine assumes that the digits collected so far belong to the dialing sequence starting with dial plan code ZPLUS and returns the identified dial plan code as ZPLUS.
A similar situation will arise after collecting two digits 0 and 1. An ambiguity will now exist between dial plan code 255 (INT01) and dial plan code 16 (IPC). The dial plan code which requires to be confirmed after collecting the next digit is stored in a look ahead table 408, wherein dial plan code 255 (INT01) is placed. Only one dial plan code can be placed in look ahead table 408, but there may be a possibility that ambiguous code list 400 may have more than one dial plan code competing for resolution by look ahead analysis. Codes competing for look ahead analysis are placed into an unresolved code list 410. To break the tie, the dial plan code competing for placement in look ahead table 408 having a constant type value definition is considered first. If there are no codes with a constant type value definition, the set value tables for the dial plan codes are checked to see whether the digits received are present. If the digit string is not present in any of the set value tables, then these dial plan codes are deleted from ambiguous code list 400. If more than one dial plan code is still competing for placement in look ahead table 408, then the dial plan has conflicting codes and cannot be processed. A digit collection error result is returned.
The code identification function either identifies a dial plan code as recognized or returns a digit collection error. A digit collection error causes error actions to be performed in response to the inability to identify a dial plan code. Digit collection begins upon identifying a dial plan code. Digit collection occurs by placing digits collected by digit collection source 404 into available digits buffer 402. Digits from available digits buffer 402 are moved to a dial plan code buffer 412 corresponding to the identified dial plan code. Dial plan code buffer 412 initiates performance of valid actions associated with the identified dial plan code within dial plan action table 308. After successfully performing the valid actions, telecommunications switch 12 begins the digit parsing routine again for the next dial plan code in the dialing sequence or the next dial plan number.
The processing flow for the digit parsing routine performed by telecommunications switch 12 begins at process block 500 in FIG. 5. Telecommunications switch 12 receives an incoming call over a trunk group 14 at process block 502 and obtains the dial plan number corresponding to the incoming trunk group 14 at process block 504. The first record corresponding to the dial plan number is accessed at process block 506 and the contents of its peer pointer is checked at process block 508. If there is no peer list associated with the first record of the dial plan, process flow proceeds to the code collection function at process block 700. If a peer list exists, the dial plan codes in the peer list are placed into the ambiguous code list at process block and process flow proceeds to the code identification function at process block 600.
FIGS. 6A-D show the process flow for the code identification function beginning at process block 600. At process block 602, the digit position indicator is set to zero and look ahead table is set to null. Digit timer 1 of the first dial plan code in the ambiguous code list is set at process block 604. Digit timer 1 begins counting during collection of the next digit at process block 606. The next digit is stored in the available digit buffer at process block 608. A check is made at process block 610 to see whether digit timer 1 timed out before the next digit was received or that an unacceptable digit was encountered. If so, process flow proceeds to the resolve conflict function at process block 800.
If an acceptable digit has been received, the index value is computed from the digit collected, its position, and its digit type at process block 612. The digit position indicator is incremented at process block 614 and the dial plan code recognition table is accessed at process block 616 in response to the index value. The indexed bit map found in the dial plan recognition table is compared to the dial plan codes within the ambiguous code list at process block 618. Dial plan codes are deleted from the ambiguous code list at process block 620 that do not have its bit set in the indexed bit map of the dial plan code recognition table.
Process flow proceeds to process block 622, where the contents of the ambiguous code list is examined. If the ambiguous code list is empty, the look ahead table is examined at process block 624. If the look ahead table is not empty, the dial plan code in the look ahead table is returned at process block 626 and process flow proceeds to the code collection function at process block 700. If the look ahead table was empty, then a digit collection error is returned at process block 628 in FIG. 6B and error actions are performed at process block 900 to include aborting the incoming call.
If the ambiguous code list was not empty at process block 622, then the look ahead table is set to null at process block 630 and the content of the ambiguous code list is examined at process block 632. If the ambiguous code list has only one entry, the one dial plan code in the ambiguous code list is returned at process block 634 and process flow proceeds to the code collection function at process block 700. If the ambiguous code list has more than one entry, the dial plan codes having defined lengths equal to the number of digits collected are placed into the unresolved code list at process block 636 in FIG. 6B. If the unresolved code list is empty at process block 638, then the contents of the ambiguous code list and the look ahead table are examined at process block 640. If both are empty, then a digit collection error is returned at process block 628 and error actions are performed at process block 900. If either the ambiguous code list or the look ahead table are not empty, process flow proceeds through jump point A to FIG. 6A if the number of digits collected at process block 642 is less than a predefined number (in this example 15). Otherwise, process flow proceeds through jump point D to FIG. 6C. If the unresolved code list has only one entry at process block 644, the entry is stored in the look ahead table at process block 646 at process flow proceeds through process block 640 as described above.
If there is more than one entry in the unresolved code list competing for look ahead analysis, the value types of the dial plan codes in the unresolved code list are analyzed. If any entry has a valid type-constant at process block 648, those entries are retained in and other entries are eliminated from the unresolved code list at process block 650. If only one entry remains in the unresolved code list at process block 652, that entry is stored in the look ahead table at process block 654 and process flow proceeds to jump point B back to process block 640 of FIG. 6B. If no entry has value type-constant but any entry has value type-set at process block 656, those entries with value type-set are retained in the unresolved code list and other entries are eliminated therefrom at process block 658. The content of the unresolved code list is checked at process block 652 as discussed above. If no entry has value type-set but any entry has value type-range at process block 660, entries with value type-range are retained in the unresolved code list and other entries are eliminated therefrom at process block 662. The content of the unresolved code list is checked at process block 652 as discussed above.
If the unresolved code list has more than one entry at process block 652 after the elimination process, the value tables of the remaining entries are compared at process block 664. If the value table comparison resolves the conflict at process block 666, then the resulting entry is stored in the look ahead table at process block 668 and process flow proceeds through jump point B. If the conflict cannot be resolved, a dial plan error is returned at process block 670 and error actions are performed at process block 672.
FIG. 6C shows the process flow associated with jump point D. Jump point D is reached when the number of digits collected is greater than or equal to a predefined number (15, in this example). At jump point D, a digit timer of the first dial plan in the ambiguous code list is initiated at process block 674 and the next digit is collected at process block 676 and stored in the available digit buffer at process block 678. If a digit timer time-out has occurred and look ahead table has an entry at process block 680, then the dial plan code in the look ahead table is returned at process block 682 and process flow proceed to the code collection function at process block 700. If not, process block 684 determines if a time-out or an unacceptable digit has been received. If so, process flow proceeds to the resolve conflict function at process block 800. Otherwise, the look ahead table is set to null at process block 685 and dial plan codes with lengths equal to the number of digits collected are removed from the ambiguous code list and placed into the unresolved code list at process block 686. If the unresolved code list has more than one entry at process block 687, then a digit collection error is returned at process block 688 and error actions are performed at process block 900. If the unresolved code list has less than one entry at process block 689, process flow proceeds to jump point D.
Process flow proceeds to FIG. 6D where if only one entry is in the unresolved code list at process block 689, the entry is placed into the look ahead table at process block 690. If the ambiguous code list is empty at process block 691, the dial plan code in the look ahead table is returned at process block 692 and process flow proceeds to the code collection function at process block 700. If the ambiguous code list is not empty, the look ahead table is set to null at process block 693. If the ambiguous code list has only one entry at process block 694, the entry is returned at process block 695 and process proceeds to the code collection function at process block 700. If the ambiguous code list is not empty and the entries have the same length at process block 696, the conflict cannot be resolved and a digit collection error is returned at process block 697 followed by performance of error actions at process block 900. For entries of different lengths, process flow proceeds through jump point D to FIG. 6C.
FIG. 7 shows the process flow for the resolve conflict function of the digit parsing routine. The resolve conflict function is initiated at process block 800 when a time-out or unacceptable digit has been received in the code identification function. Process flow proceeds to process block 802, in order to check the content of the look ahead table. If the look ahead table has an entry, that entry is returned at process block 804 and process flow proceeds to the code collection function at process block 700. If the look ahead table is null, dial plan codes having a fixed format are removed from the ambiguous code list of process block 806. If the ambiguous code list is empty at process block 808, then a digit collection error is returned at process block 810 and error actions are performed at process block 900. If the ambiguous code list is not empty, dial plan codes having a minimum number of expected digits greater than the number of digits collected are removed from the ambiguous code list at process block 812. If the ambiguous code list is empty at process block 814, a digit collection error is returned at process block 810 and error actions are performed at process block 900. If the ambiguous code list is not empty, the first dial plan code in the ambiguous code list is returned at process block 816 and process flow proceeds to the code collection function at process block 700.
FIGS. 8A-B show the process flow for the code collection function of the digit parsing routine beginning at process block 700. In FIG. 8A, process flow proceeds to process block 702 where a check is made to determine if the digits for a dial plan code have already been collected. Digits for a dial plan code may have been collected during the code identification function. If so, a digit collection successful and code not collected status are returned at process block 704 and valid actions are performed at process block 1000. Valid actions include initiate routing of the call, processing another dial plan, and continue with the current dialing sequence. Digits for the dial plan code are placed in the corresponding dial plan code buffer used to access the associated valid actions.
If the dial plan code has not been collected, the length and minimum and maximum expected digits are established at process block 706 and the digit collected indicator is set to zero at process block 708. Any digits within the available digits buffer are transferred at process block 710 tot he corresponding dial plan code buffer up to the maximum number expected. The digit collected indicator is incremented at process block 712 for each digit transferred. If the number of digits collected so far equals the maximum number expected at process block 714, a digit collection successful and valid status are returned at process block 716 and appropriate valid actions are performed at process block 1000. If the maximum number of digits expected has not been reached, a determination is made whether any digits have been collected, precollection valid actions are performed at process block 720, such as connecting a tone prior to proceeding.
After precollection actions are performed or if there has been at least one digit previously collected, process flow proceeds to FIG. 8B to determine if more digits are expected at process block 722. If more digits are expected, the appropriate digit timer in the record of the identified dial plan code is set at process block 724 and the next digit is collected at process block 726. If a tone disconnection action is pending at process block 728, a tone disconnection action is performed at process block 730 before proceeding. If a time-out occurs or digits are unavailable at process block 732, a determination is made at process block 732 as to whether the minimum expected number of digits have been collected. If so, a digit collection successful and valid status are returned at process block 736 and valid actions are performed at process block 1000. If not, a digit collection failure and insufficient digit status are returned at process block 738 and error actions are performed at process block 900.
If a digit was collected at process block 732, a check is made at process block 740 to see if the collected digit is acceptable to the identified dial plan code. If so, the digit collected indicator is incremented at process block 742 and any defined system collection actions are performed at process block 744 in preparation for collecting the next digit beginning back at process block 724. If the collected digit is not acceptable to the dial plan code, the collected digit is stored in the available digit buffer at process block 746 and the digit available indicator is incremented by 1. Process flow proceeds to process block 748 where the number of digits collected is compared to the minimum number expected. If collected digits are greater than the minimum expected, than a digit collection successful and valid status are returned at process block 750 and valid actions are performed at process block 1000. If collected digits are less than the minimum expected, a digit collection failure and incorrect digit status are returned at process block 752 and error actions are performed at process block 900.
Creation, alteration, and deletion of dial plans, dial plan codes, and associated parameters may be performed through craft terminal 201. When initiated, craft terminal 201 provides command line prompts used to interrogate an operator for desired inputs associated with a dial plan. Each input is subject to validation upon entry in order to verify that proper inputs have been received and that parameters satisfy pre-defined constraints. Any entry errors will result in a command line prompt requesting entry of a correct input. An example of a dial plan is shown in FIG. 9 and a corresponding creation sequence is shown in Table 13. Though shown as requiring entries through command line prompting, craft terminal 201 and telecommunications switch 12 may employ a graphical user interface to provide point and click capability in the creation of a dial plan.
Not only are validations performed for each input entered into craft terminal 201, integrity validations are performed on the dialing plan, and sequences being created. Integrity validations are performed whenever a dial plan code or node of a dial plan tree is entered into dial plan database 300. Once a node has been accepted, cluster branch, and sequence dependent constraints are imposed to insure integrity of the dial plan. Validations carried out on a node insure that dial plan codes not listed in the dial plan code table are not allowed as an entry and that all action numbers and parameters fall within appropriate constraints associated with the corresponding dial plan code.
To perform validations of nodes within a cluster, the primary criterion is to ensure that a given dial plan code in the cluster is distinguishable from other dial codes within the cluster. Thus, no dial plan codes should be repeated within a cluster unless the same dial plan codes have different lengths. Further, dial plan codes with similar properties cannot form part of a cluster. There should be some difference in either digit type, value type, or format to have a valid dial plan.
If the format of the new dial plan code is of fixed length, the length of the dial plan code must be different than either the length of the other fixed length dial plan codes in the cluster, lesser than the lowest minimum length of the variable length dial plan codes, or greater than the highest maximum length of the variable length dial plan codes. Of the new dial plan code having a value-type range, the values should not overlap the values of other dial plan codes within the cluster unless different lengths are specified. The values of the new dial plan code having set or constant value types should be different from constant or set values of other dial plan codes in the cluster. The nth digit of dial plan codes having value type-pattern should be different from the nth digit of other dial plan codes in the cluster.
If the new dial plan code format is variable, either its minimum length should be greater than the longest length of the dial plan codes having fixed length formats, or its maximum length should be lesser than the shortest length of the dial plan codes having fixed length formats. Validation may also occur if either its minimum length is greater than the largest maximum length of the dial plan codes having variable length formats or its maximum length is less than the shortest length of the dial plan codes having variable length formats. For value type-pattern, the digits allowed at any position within the least of the minimum ranges of the competing dial plan codes should be mutually exclusive.
To perform validations of nodes on a branch, the primary criterion is to ensure that the start of a dial plan code is distinguishable as a branch by differing in digit type, value type, or format. No restrictions apply to dial plan codes in a level of the dial plan tree that tie to dial plan codes in the parent branch having a fixed format. There is also no restrictions on a dial plan code in a branch where the dial plan codes in the parent branch are distinguishable by their properties. If at least one dial plan code in the parent branch has a variable format, the first digit of the next dial plan code in the branch should not occur in any dial plan code in the parent branch.
Certain dial plan codes may not be effective with other dial plan codes, thus validations are performed on dialing sequences created within a dial plan. The use of certain dial plan codes logically prevents the ability to place other dial plan codes in the dialing sequence. For example, only one billing type dial plan code (such as Calling Card Number, Credit Card Number, or Debit Card Number) can occur in a dialing sequence. Another example may be that only one of the following dial plan codes may occur within a dialing sequence--ENUM, NCN, SNUM, PRI, PUB, and DLVC. Telecommunications switch 12 ensures that dialing sequences have valid integrity before allowing a call to be passed on. Table 14 shows an example of what dial plan codes would not be allowed for certain dial plan codes that have been identified by the digit parsing routine as part of a dialing sequence.
In summary, a telecommunication switch provides flexible dial plan capabilities to allow it to be installed anywhere throughout the world. The telecommunication switch performs a digit parsing routine in order to identify dial plan codes received over trunk groups from subscribers. The dial plan codes become part of a dialing sequence that is followed by the telecommunication switch in accordance with a dial plan associated with each trunk group and stored within a dial plan database. In this manner, the telecommunications switch is not limited to installation at specific geographic locations with fixed, unflexible dial plan routines.
Thus, it is apparent that there has been provided, in accordance with the present invention, a method of parsing digits in a telecommunications switch providing a flexible dial plan that satisfies the advantages set forth above. Although the present invention has been described, it should be understood that various changes, substitutions, and alterations readily ascertainable by one skilled in the art can be made herein without departing from the spirit and scope of the present invention as defined by the following claims.
Appendix A
A dial plan consists of groups of digits that we will refer to as codes.
A telecommunications switching system interprets these codes and performs specific actions in its call processing stages.
Valid codes and their interpretation in a telecommunications switching system are listed below.