Authorization
A portion of the disclosure of this patent document contains material which is subject to copyright protection. The copyright owner has no objection to the facsimile reproduction by anyone of the patent document or the patent disclosure, as it appears in the Patent and Trademark Office patent file or records, but otherwise reserves all copyrights whatsoever.
Microfiche Appendix
This specification includes a microfiche appendix which consists of one microfiche consisting of 81 frames.
Field of the Invention
This invention relates generally to electronic voice processing systems and, more particularly, though in its broader aspects not limited to, methods and apparatus for configuring an electronic voice processing system to allow it to communicate with a variety of different types of telephone lines and systems.
Background of the Invention
Electronic voice processing systems, also commonly known as voice response systems, voice messaging systems, or voice store and forward systems, operate to store, retrieve or otherwise manipulate data, be it voice or otherwise transmitted via a telephone network which commonly takes the form of a Public Switched Telephone Network (PSTN). Such systems may be coupled either directly to phone lines which connect to a Central Office of the PSTN, or indirectly, via an intermediate switching type of mechanism, such as a Private Branch Exchange (PBX) utilized by many organizations to route telephone calls, either incoming or outgoing, and to provide a variety of other functions.
In order to communicate with telephone lines coupled directly to a PSTN or indirectly via an intermediate switch, an electronic voice processing system must be configured to receive and transmit the necessary signals in an order and manner defined either by the PSTN or by the intermediate switch. For example, in order to establish a connection between a calling party and a called party, both parties, be they humans or machines, need to utilize compatible protocols. In many countries such as the United States, devices operating over the PSTN must conform to established standards and operate via established protocols in order to operate effectively. However, even within the United States, a number of different protocols exist for establishing a connection with a Central Office. Intermediate switching mechanisms such as PBX type switches present additional, different protocols.
As noted above, an electronic voice processing system must be configured with the protocol of each type of telephone line to which the system is connected. If multiple lines are connected to the system and if the lines operate under more than one protocol, the system must be configured with the protocol of each of the connected lines. If the type of lines connected to the system are changed, for example by changing the type of intermediate switch to which the system may be connected, then the configuration of the system must be changed to adhere to the requirement of the new type of lines. Changing such a configuration is often a time consuming and difficult process which may require the skills of a person with a specialized knowledge of telephone systems and of the particular type of electronic voice processing system. If the administrator of the electronic voice processing system does not have the required knowledge then the supplier of the system may have to dispatch qualified personnel, sometimes upon very short notice, to reconfigure the system on site in a manner to operate with the connected telephone lines. Such a procedure often is expensive and time-consuming and may result in extended down-time of the voice processing system in question.
Accordingly, it is an object of the present invention to provide a mechanism which allows rapid and simple reconfiguration of a voice processing system in order to enable the system to operate with a plurality of different telephone lines and switching equipment.
It is a further object of the present invention to enable such reconfiguration from a location remote from the voice processing system.
It is a further more specific object of the present invention to enable reconfiguration of a voice processing system via predefined sets of configuration parameters and protocol descriptions selectable by an administrator of the voice processing system.
It is a further specific object of the present invention to enable such reconfiguration via entry of values for selected configuration parameters into a text file on a digital computer.
Summary of the Invention
In accordance with the present invention, the above objects are achieved in an electronic voice response system which includes an interface unit coupled to one or more trunk groups which each comprise a plurality of channels. Each trunk group operates in accordance with a set of operating parameters. A control unit within the voice response system comprises a trunk type configuration file, corresponding to each unique set of operating parameters, which contains values corresponding to certain operating parameters for the trunk group. A server process operating within the control unit is responsive to values contained in the configuration files and to events received over the channels, and responds to the events in accordance with the values.
An advantage of at least certain preferred embodiments is that the voice response system may be easily configured to communicate with different types of telephone lines and different types of switching equipment. Flexibility of the system is enhanced, and system operation costs and downtime are reduced. Such a system enables users to relatively freely use such a system with a multitude of different types of lines and switching equipment, without experiencing the delays and costs associated with having a trained service person reconfigure the system. Such an advantage also affects vendors of such systems who do not have to incur the cost and time associated with either sending trained personnel to sometimes distant customer sites or having to maintain such personnel at geographically diverse locations.
The trunk type configuration files advantageously take the form of text files, thus allowing rapid modification. An additional advantage of certain embodiments is that the configuration files may be created and modified remotely via a computer type terminal and a modem. Consequently, such systems may be configured by the remotely located vendor or other remotely located personnel if required.
In a certain embodiment the voice response system contains predefined sets of commonly used configuration parameters which are selectable by the administrator. Such embodiments further simplify the configuration procedure.
These and other features and advantages of the present invention may be better understood by considering the following detailed description of certain preferred embodiments of the invention. In the course of this description, reference will be made to the attached drawings.
Brief Description of the Drawings
FIG. 1 is a schematic illustration of a system embodying the principles of the invention.
FIG. 2 is a block diagram of a preferred embodiment of the invention.
FIGS. 3(a) and 3(b) are flowcharts of a preferred embodiment of the invention.
FIG. 4 is a flowchart of a preferred embodiment of the invention.
Detailed Description
FIG. 1 of the drawings is a schematic illustration of a system embodying the principles of the invention. A plurality of Voice Response Units (VRUs) 103, 104, 105 and 106 are coupled to a Public Switched Telephone Network 107. As used herein, the term voice response unit (VRU) refers to systems which generally receive information in the form of voice or otherwise and which respond by performing certain functions such as providing information, storing information or other manipulation, storage or retrieval functions. Such systems include systems known as voice response systems which provide either pre-recorded information or selective computer data over telephone lines, and also systems known as voice store and forward or voice messaging systems which allow voice to be digitally encoded, sent to storage devices and later forwarded to a recipient. U.S. Pat. No. 4,663,777 to Szeto entitled Apparatus for Controlling Digital Voice Recording and Playback Over Telephone Liness and Adapted for Use With Host Computers describes a voice response unit and is hereby incorporated by reference. VRUs 104-106 are each coupled to PSTN 107 via a plurality of telephone lines, 114, 115 and 116. In the present specification, telephone lines 113-116 which couple a VRU to the PSTN or to PBX 109 are hereinafter referred to as trunk lines. VRU 103 is coupled to PSTN via an intermediate switch 109 which may take the form of a Private Branch Exchange (PBX) type of switch or other similar forms of switches which operate to provide access to the PSTN to a plurality of telephone lines located at a private site. PBX 109 is coupled to PSTN 107 via a plurality of telephone lines 119. VRU 103 is preferably coupled to PBX 109 via a plurality of trunk lines 113.
Each of the VRUs 103-106 are coupled to a local area network 110 of a known type which in a preferred embodiment takes the form of an Ethernet type network as described in IEEE Standard 802.3. The Ethernet type network 110 is of known type and may support a plurality of devices which perform various types of data processing tasks.
An application processor (AP) 100, which is coupled to the local area network 110 operates to perform various system management functions for selected VRUs. Application processor 100 preferably takes the form of a general purpose digital computer which runs the UNIX.RTM. operating system and a plurality of application programs which control call flow over the telephone lines as well as perform a variety of management and configuration tasks, to be described, for each of the VRUs connected to the network 110.
Application processor 100 preferably functions primarily to provide the control flow for telephone calls which are being processed by each VRU. For example, when a VRU is being used to provide an information retrieval service, AP 100 is notified of each incoming call and the digits the caller dials in response to an initial voice prompt requesting the topic number on which information is desired. AP 100 determines which voice or fax file on the VRU contains the information the caller has requested and instructs the VRU to play or fax the requested file to the user. In a more complex service, AP 100 may be required to make a large number of decisions during the course of a call to meet the needs of the caller.
VRU 106 is preferably coupled via a serial RS-232 type communications link 112, as is defined by the American Electrical Industries Association, to a data entry and display terminal 102. Terminal 102 may take the form of a "dumb" terminal which operates only to receive data via a keyboard, display data via a visual cathode ray tube type of display and receive and transmit data via communications link 112 which takes the form of an RS-232 type link. Alternatively terminal 102 may take the form of a general purpose data processor which performs other data processing functions in addition to acting as a data entry and display terminal.
Application processor 100 and data terminal 102 each operates as a command input unit to interact with a supervisory system control unit located in the VRU to which the command input unit is coupled. Data terminal 102 operates as a command input unit to interact with the system control unit contained in VRU 106 and AP 100 operates, with the benefit of a terminal emulator, as a command input unit to interact individually with the system control units contained in VRUs 103-105. AP 100 may also act as a command input unit to VRU 106. Consequently, as seen in FIG. 1, a particular command input unit may serve as the command input unit for a plurality of VRUs. The system control unit in each VRU operates to receive data and commands from the command input unit coupled to the VRU, process the commands and data, and to transmit information indicative of VRU operation and configuration to the corresponding command input unit.
As further seen in FIG. 1, data processor 108 is coupled to PSTN via a telephone line 118 and 139 and Modulator-DEModulator (Modem) unit 120 which operates in a conventional manner to transfer information between data processor 108 and a remotely located VRU 105 via PSTN 107 and modem 137 and telephone lines 117 and 138. As will be explained, data processor 108 may advantageously be used as a remotely located command input unit to provide commands and data to VRU 105 and receive information from VRU 105.
FIG. 2 of the drawings is a block diagram of VRU 103. VRUs 104, 105, and 106 may preferably take a similar form. Each VRU 103-106 preferably takes the form of a VTK type voice processing system supplied by Voicetek Corporation, Chelmsford, Mass. 01824. As seen in FIG. 2, an interface unit 224 is coupled to a PSTN 107 via a plurality of trunk lines seen at 225. In a preferred embodiment, each interface unit 224 may be coupled to PSTN 107 via up to 48 trunk lines. In an alternative embodiment, each interface unit 224 may be coupled to up to 24 trunk lines.
Interface unit 224 includes one or more signal transfer devices which each operate under control of control unit 201 to transfer information between the VRU and trunk lines coupled to the interface unit 224. Interface unit 224 is preferably of a type available from Dialogic Corporation, Parsippany, N.J. 07054.
As noted above, each VRU contains a system control unit, seen at 201, which operates to control and configure the functions performed by the VRU. Such control units preferably utilize a Central Processing Unit (CPU) 202 in the form of a microprocessor of the type available from Intel Corporation, Santa Clara, Calif. 95051 and described in Microprocessor and Peripheral Handbook, 1988 available from the Intel Corporation. CPU 202 transfers data and instructions to and from an Industry Standard Association (ISA) type bus 210. Read-Only Memory (ROM) 203 stores information required to boot the system upon power-up, and Random Access Memory (RAM) 208 stores program information downloaded at system boot time and serves as a temporary storage area for instructions and data to be used by CPU 202. Other circuitry within control unit 201 includes: a Small Computer System Interface (SCSI) type disk controller 207 which transfers information to and from a storage unit 230 of known type which preferably includes a plurality of disk drives 231,232, 233 and 234; a display controller 205 of known type which controls the display of information on a visual display; an ethernet controller 204 of known type which controls the transfer of information to an ethernet type network; and a serial I/O unit 206 of known type which preferably transfers information serially in accordance with the aforementioned RS-232 standard to and from control unit 201 to a data entry terminal and a modem.
Each VRU 103-106 preferably includes one or more specialized modules of the types seen at 220, 221 and 222 which receive, transmit and process specific types of information. Voice processing module 220 is coupled to bus 210 and operates under control of control unit 201 to provide VRU 103 with the capability to store and retrieve voice messages over the PSTN 107. Each voice processing module 220 comprises a plurality of voice processing channels which receive voice information routed from a corresponding channel in interface unit 224. Each channel in the interface unit corresponds to a channel in a trunk group, with each trunk group having four channels. As used in the present specification, the term channel corresponds to a single telephone line within a trunk group. Consequently, in a preferred embodiment a trunk group consists of four trunk lines. Fax processing module 221 is coupled to bus 210 and operates under control of control unit 201 to receive and transmit documents according to known facsimile data transmission formats. Voice recognition module 222 is coupled to bus 210 and operates under control of control unit 201 to convert certain speech utterances into a format understandable by the VRU.
Voice processing module 220, fax processing module 221 and voice recognition module 222 are additionally coupled to a bus 223 known as a PCM Expansion Bus (PEB) to enable the transfer of information to and from interface unit 224. A PEB as shown at 223 is preferably of the type available from Dialogic Corporation, Parsippany, N.J. 07054.
In a preferred embodiment of the present invention, control unit 201 advantageously enables interface unit 224 to communicate with a plurality of different types of trunk lines by allowing an administrator of the VRU in which the control unit is located, to enter configuration commands to generate state definitions and parametric definitions or to assign preconfigured stored files to be used. Control unit 201 interprets the entered commands and provides interface unit 224 with state definitions and certain parametric values which enable interface unit 224 to communicate information with a corresponding trunk group which transmits information in a manner corresponding to the configuration commands entered by the administrator for the particular trunk group.
A preferred embodiment of the present invention advantageously utilizes configuration files, which preferably contain definitions for a trunk group and which may be created, stored and modified via the VRU to define the behavior of a trunk group. When the VRU is configured, each channel in the system is assigned a trunk type. During normal operation the definition of the trunk type specified for a channel, as defined in a configuration file, will determine the behavior of that channel.
A configuration file is composed of one or more trunk type definitions plus comments. Configuration files preferably take the format of text files, and may be created and modified by application programs of known type such as text editors and word processors which can read, manipulate and write text-type files. A trunk type definition is composed of parameter settings and a state machine definition.
A preferred template for a trunk type definition is shown below. In the below definition, text which is preceded by a "#" character is understood to be comments which are ignored by trunk behavior interpreter within the VRU:
The above example of a preferred embodiment of a trunk type definition within a configuration file contains a plurality of sections which each perform a separate function in defining the operating characteristics of a particular trunk group. The following description elaborates on the features and functions of each of the sections.
DEFINITION OF A TRUNK TYPE NAME (define Trunk-Type-Name)
Each trunk type definition is identified by a unique name entered by the administrator. The trunk type definition is contained in a file which is created via a text editor as an ASCII format file and which can contain the definitions of one or more trunk type. Each individual trunk type is assigned a descriptive name by the creator of the definition. The trunk type is subsequently referenced by the name. Each trunk group in the system may have a unique trunk behavior definition. If multiple trunks use the same definition then only one interpreted definition is used by the system.
INHERITANCE OF PARAMETER VALUES (inherit General-Trunk-Type-Name;)
A preferred embodiment of the present invention advantageously allows inheritance of trunk definitions which have already been defined. This avoids either the re-entry of parameters already entered for another trunk definition or the copying of already entered parameters. Definitions which have already been defined may be inherited by another definition by referencing the already defined definition with use of the "inherit" command. Changes to specific parameters of the inherited definition may then be made by the setting of specific values with the "set" command as described below. The advantageous feature of inheritance allows child definitions to be created which inherit values set in a parent definition. Subsequent modifications of the parent definition are then reflected in the child definitions for the values which have not been specifically set as described below.
SETTING OF SPECIFIC VALUES (set param1=value1;)
Values for individual parameters may be assigned using the "set" command. In a preferred embodiment, all parameters are system defined, (i.e. administrators may not create new or modified parameters) and are assigned a default value. If the value of a parameter is not explicitly set, the default value will be used. In the below listing of system parameters, the system parameter name is followed by the default value and the units of the values. Default values for all defined parameters are preferably stored in a separate default file. A description of the system parameter is provided following the system parameter name, default value and units. The below system parameters are grouped according to the general function defined by the parameter.
STATE MACHINE DEFINITION
A preferred embodiment of the present invention advantageously utilizes a trunk behavior language which allows an administrator to define the specific implementation of the standard call flow for a given hardware interface and protocol of a trunk group. The standard call flow is a generic representation of the significant control states present on a telephony trunk. Such control states include the following:
Make Busy
An asserted state signaling that the trunk is unready for incoming calls.
Reverse Make Busy
A detected state signaling that the remote end is unready for incoming calls.
Idle State
An asserted/detected state indicating that the trunk is ready to process incoming calls.
Make Call
An asserted state for handling a trunk initiated call including all necessary addressing and control information. The call attempt can either result in a successful call (transitioning to the call state) or a failed call (returning to idle).
Detect Call
A detected state indicating an incoming call including all relevant addressing and control information. This call may either be accepted (transitioning to the call state) or rejected (returning to the idle state).
Call State
The state in which a call has been placed and accepted and a connection exists.
Detect Disconnect
The detected state in which the remote end party has disconnected.
Disconnect
The asserted state in which the trunk has disconnected.
A specific protocol can advantageously detect and effect changes between the above states using any of the following mechanisms:
On digital trunks--the transition of signaling bits;
On analog trunks--the line hook state (e.g. loop current or battery polarity);
The detection and generation of digit signals (e.g. DTMF, MF, R2MF, pulse);
The detection and generation of call progress signals (e.g. Dial Tone, Busy Tone); and
Timed transitions of any of the above conditions.
In addition to controlling protocols, the trunk behavior language can advantageously control the state of system indicators such as trunk state lights on the VRU, and parameters which control interface related properties of standard call flow operations such as gain on playback and digit type for call-state digit detection.
Listed below is a sample trunk type file which defines a T-1 type line emulating an E&M Wink Start protocol. As can be seen from the below example, of a trunk type file, the trunk behavior language allows the definition of an initial state and subsequent states which occur to establish a telephone connection between a calling and a called party, to transfer into from the calling and called party, and to terminate the connection. Each state contains an event or events which are required for the state be executed, an action or actions to be taken by the state in responding to the received event or events, and a subsequent state to be taken in response to each of the possible events. The following definition is reproduced from the Example Trunk Type File listed below and helps in understanding the portions of a state definition.
For the state "sCLR1" three events, also termed commands may trigger the state: a string of bits preceeded by a "0" bit, a "cANSW" command, or a "cBUSY" command. Occurrence of one of the three commands will result in a corresponding action being taken. The action represented by "rspIDLE" will be taken in response to a string of bits preceeded by a "0" bit, the action represented by "rspCALL" will be taken in response to a "cANSW" command, and no action will be taken in response to a "cBUSY" command. Finally, one of three subsequent states will be entered in response to one of the three events: state "sIDLE" will be entered in response to a string of bits preceeded by a "0" bit, state "sCALL" will be entered in response to a "cANSW" command and state "sBUSY" will be entered in response to a "cBUSY" command.
FIGS. 3(a) and 3(b) show the steps taken in a preferred embodiment to change the configuration of a selected trunk group. In FIGS. 3(a) and 3(b), rectangular shaped steps signify steps taken by the VRU, and oval shaped steps signify commands entered by a system administrator using the VRU. Such commands entered by the administrator are preferably performed at a data processor of type 100 which is coupled to the VRU 104 by a local area network 110. In an alternate embodiment, the commands are performed at a data entry terminal 102 coupled to the VRU 101 via a serial type communications link 112. In yet another embodiment, such commands are performed at a remotely located data processor 108 coupled to a VRU 105 via modem 120 and 137, and telephone lines 118, 139, 117 and 137. The procedure is entered at 301 upon logging on by a system administrator to an operating system running on the VRU. As will be known to those skilled in the art in view of the present disclosure, such an operating system manages resources and functions of the VRU. In a preferred embodiment, such an operating system takes the form of the UNIX.RTM. System Five type operating system available from The Santa Cruz Operation, Inc., Santa Cruz, Calif. 95061. Upon logging onto the operating system, the system administrator is presented at 302 with a plurality of system management options which are shown below:
config--Display & modify system configuration parameters.
log--Display the system event log.
files--Perform file management functions.
status--Perform system status functions.
reset--Perform a full VRU reset.
install--Perform software installation functions.
diag--Perform system diagnostics functions.
admin--Perform account administration functions.
maint--Perform system maintenance functions.
quit--Log out of the service console.
At 303, an administrator wishing to display and modify system configuration parameters enters the "config" command or a variation thereof, and is presented at 304 with a list of options for displaying and modifying system configuration parameters which are shown below:
list--List the current configuration parameters.
sys--Modify system parameters.
path--Modify path parameters.
t1span--Modify T-1 span parameters.
e1span--Modify E-1 span parameters.
trunk--Modify trunk group parameters.
tts--Modify tts port parameters.
fax--Modify fax port parameters.
vrec--Modify voice recognizer parameters.
done--Save changes and return to previous menu.
cancel--Return to the previous menu without saving changes.
At 305, the administrator may list current configuration parameters of the system by use of the "list" command. At 306 current configuration parameters of the system are displayed as seen below:
As can be seen from the above listing, configuration parameters relating to many different aspects of the system are listed. Information regarding configuration parameters of trunk lines coupled to the VRU are listed above under the heading entitled "TRUNK INFORMATION." In the listing above, 48 telephone lines, termed channels above, are coupled to the VRU in trunk groups with each trunk group having four channels. As can be seen from above, TRUNK GROUP 01 includes four channels, numbered 00 to 03. Also listed is the PEB corresponding to each trunk group. As can be seen from the above listing, the VRU contains two PEBs with PEB 0 corresponding to trunk groups 01-06, and PEB 1 corresponding to trunk groups 7-12. As explained in the description accompanying FIG. 2, a PEB couples the interface unit 224 to 6 being coupled to specialized modules of the types seen at 220, 221 and 222. Accordingly in a VRU corresponding to the above listing, information flowing through trunk groups 01-06 is processed by specialized modules coupled to PEB 0 and information flowing through trunk groups 7-12 is processed by specialized modules coupled to PEB 1. As can be further seen from the above listing, trunk groups 01-12 are all T1 type of lines communicating according to an E&M protocol.
At 307, the administrator selects a trunk group for configuration. In order to change the configuration of a particular trunk group, the administrator enters an "edit" command along with an identification of a trunk group sought to be configured:
At 308, as can be seen from above, a preferred embodiment responds to the administrator "edit" command by listing ten predefined sets of configuration parameters which each comprise a plurality of values for each of the configuration parameters. As seen at 309, the administrator may then select one of the ten predefined sets of configuration parameters for selected trunk group 01. As seen above, predefined set number 9 is chosen for trunk group 01.
Upon listing of system information, the trunk type for trunk group 01 can be seen below to have changed from its initial value of 8 which corresponds to a T1-E&M type of line to the selected value of 9 which corresponds to a T1-E&M-Wink type of line:
At this point steps 302-309, or a portion of them, may be repeated to change configurations of additional trunk groups. After selection of predefined sets of configuration parameters for selected trunk groups, the administrator commands the VRU to exit and save configuration mode by typing the command "done". Upon exiting configuration mode, the newly entered configuration parameters are preferably invoked at 310 by resetting the VRU. This result may also be accomplished by power-cycling the VRU. Upon a reset command, the VRU invokes a server process, to be described, which enables interface unit 224 to communicate with trunk groups coupled to the VRU.
FIG. 3(a) and the accompanying description shows how an administrator may configure selected trunk groups of a VRU by using predefined sets of configuration parameters. Such a procedure is advantageous in situations where trunk groups for a VRU have been added or replaced with different types of trunk groups which operate according to one of the predefined sets of configuration parameters shown above. Under certain situations, it will be desirable to define new sets of parameters in which values for certain or all parameters of one of the predefined sets of parameters are altered in order for the VRU to communicate with a trunk group which operates under parameter values different from the predefined sets shown above. A preferred embodiment advantageously provides mechanisms to enable such modifications. FIG. 3(b) shows the steps taken in a preferred embodiment to perform such modifications.
Steps 321 and 322 operate similarly to steps 301 and 302 in FIG. 3(a). At step 323 the administrator selects a maintenance mode, in which system maintenance functions are performed, by entering the "maint" command or a altered version thereof. At 324 system maintenance options are displayed in the manner shown below:
announce--Enter Configured Auto Announcement Mode.
init--Reinitialize an individual channel.
shutdown--Shutdown the system.
restart--Restart the system.
params--Display & modify trunk parameters.
done--Return to the previous menu.
At 325, the administrator enters the "params" option to display and modify trunk parameters. As shown at 326, the system responds by displaying a list of sub-options for the display and modification of trunk parameters as shown below:
list--Display default values for all parameters.
edit--Modify parameters for a specific trunk type.
new--Copy parameters to a new trunk type.
delete--Delete a trunk type.
done--Return to the previous menu.
At this point an operator wishing to display the default values for each of the configuration parameters within the system will, at 327 select the "list" option shown above. The system responds at 328 by displaying default values for all configuration parameters. A preferred embodiment advantageously contains default values for each parameter defined for trunk groups.
As shown at 329, an administrator wishing to change values of certain or all configuration parameters may then edit a selected set of configuration parameters. As seen in the Example Trunk Type File, values of individual parameters may be individually modified by invoking a text editor of known type which allows creation and modification of text files.
Upon modification of parameters in a configuration file, at 330, a trunk group may be assigned the set of parameters by following the steps shown in FIG. 3(a).
FIG. 4 of the drawings is a flowchart of the trunk behavior interpreter routine which reads the configuration files known as trunk type files and generates a state machine for each type of channel coupled to the inteface unit. The trunk behavior interactive routine is a library module which reads and executes the specific actions of the trunk behavior definitions. The interpreter routine allows registration of a set of hardware control functions which perform the actual interface manipulations. New hardware control functions need to be added to the base vocabulary each time a new interface class is added but not each time a new interface is defined.
Functions and sub-routines utilized by the trunk behavior interpreter routine are defined and explained below. The following functions and sub-routines are preferably implemented in the C programming language. A C language source code listing for subroutines tt.sub.-- default.c, dcm.sub.-- params.c, tt.sub.-- define.c, tt.sub.-- params.c, tt.sub.-- states.c and ttype.h is provided in the attached microfiche appendix. The source code listed in the attached microfiche appendix is executable, upon conversion into an executable module using an appropriate C language compiler/linker available from The Santa Cruz Operation, Inc., Santa Cruz, Calif. 95061, on an Intel 80386 microprocessor, available from Intel Corporation, Santa Clara, Calif. 95052.
In the following description of functions and subroutines utilized by the trunk behavior routine, the function/subroutine is preceded by the return type of the value returned by the function as that return type is understood in the C programming language as defined by Kernighan, B. and Ritchie, D., in The C Programming Language, 2d ed., 1988 available from Prentice Hall, Englewood Cliffs, N.J. 07632. Functions/subroutines utilized in the trunk behavior interpreter routine are as follows:
FIG. 4 is a flow chart of the operation of a server process which operates in block 400 to generate a state machine for each type of channel coupled to the interface unit and in block 430, to receive events occurring upon each channel, take an appropriate action or actions for the received event, and to initiate a new state and process events which occur for the new state. In block 440, upon issuance by the administrator of a shut down command, or upon disconnection of the VRU from a power source, the server process is shut down by releasing space occupied by parameter lists and other data structures in memory which comprise the state machine for each channel, and closing all opened devices.
The trunk behavior interpreter routine is initiated at 401 upon invocation by the system administrator of the server process. At 402, a sub-routine termed tt.sub.-- init.sub.-- tables is invoked to initialize and load certain parameters such as pointers: to a default parameter table 403, a global action table 404 and a global event table 405. Default parameter table 403, global action table 404 and global event table 405, along with trunk type files 421, are preferably stored on storage unit 230 and are retrieved into RAM 208 by the operating system which manages control unit 201. Subroutine tt.sub.-- init.sub.-- tables operates generally to set up a vocabulary of actions and events required to establish a state machine for each type of channel coupled to the VRU.
At 406 devices used by the server process are opened and at steps 407-409 sub-routines tt.sub.-- init.sub.-- ttchanp and tt.sub.-- get.sub.-- trunk.sub.-- data are executed: to determine which trunk type file applies to each channel, to parse and store in memory, commands stored in each trunk type file, to retrieve and store defined parametric values for individual channels, and to generate a state machine which defines parameter values and protocols for each type of channel coupled to the VRU. As seen in the Example Trunk Type File, the state machine defines the event or events to which a channel must respond, defines an action or actions which must be taken in response to an event, and defines the subsequent state in response to the event or events. Subroutine tt.sub.-- init.sub.-- ttchanp 408 initializes a parameter block for each channel and subroutine tt.sub.-- get.sub.-- trunk.sub.-- data retrieves data from a corresponding trunk type file 421 for each channel. The server process advantageously generates a state machine for each different type of channel coupled to the VRU. Consequently, if multiple channels have the same trunk type definition, only one state machine is generated for those channels. If at 409 a state machine corresponding to the trunk type in question has not been generated, the trunk type file is retrieved from storage block 421 and a state machine for that trunk type is generated.
Once steps 408 and 409 have been executed for each channel, the VRU is ready for operation and block 430 is entered. The steps in block 430 are performed during operation of the VRU to control telephone calls occurring on channels coupled to the VRU. At step 410, the server process awaits events occurring on any of the channels. Each channel coupled to the VRU has, in a corresponding state machine, a definition for an initial state. The initial state may require occurrence of either a single event or multiple events in order for the actions, if any are defined to be executed, and for a subsequent state to be entered. Steps 410, 411 and 412 operate to detect the occurrence of the necessary event or events required to perform an action in an initial state and for all subsequent states. Upon occurrence of the necessary event(s), steps 414 and 415 operate to perform the defined action(s) for the present state in accordance with any specific parametric values which may be defined for the particular channel. Upon performance of all defined actions in the present state, step 422 operates to advance the state machine in question to the subsequent state defined in the present state. Control is then passed to step 410 to await the events defined for the subsequent state.
Upon entry at the command input unit of a shut down command, or upon detection by the control unit of a loss of power, the server process is advantageously shut down in an orderly manner in the steps shown in block 440. At steps 416 and 417, subroutine tt.sub.-- deinit.sub.-- ttchanp is executed to release space in memory allocated for the parameter list of each channel. All devices opened at step 406 are closed at step 418 and at step 419 space in memory allocated for trunk type files is released. The server process is then exited at step 420.
It is to be understood that the specific mechanisms and techniques which have been described are merely illustrative of one application of the principles of the invention. Numerous modifications may be made to the methods and apparatus described without departing from the true spirit and scope of the invention. For example, although the embodiment described has been a voice response unit, the principles of the invention may be applied to other similar systems which do not necessarily receive or transmit voice information over telephone lines. For instance the principles of the invention may be applied to systems, including but not limited to, those which receive or transmit information in other forms such as facsimile type data transmitted and received by fax machines, and those machines which receive video or image data.