Field of the Invention
The present invention relates to a method of recovering a telephone call and more particularly to a method of recovering a pre-engaged call without disconnecting a speech path of the call upon restarting a keyphone exchange system due to the occurrence of a system failure.
Technical Background of the Invention
Generally it is required for an exchange system not to disconnect a speech path of a pre-engaged call in any case. However the exchange system may be restarted in its entirety after the occurrence of a system failure due to its greatly complex mechanism comprised of hardware and software. In such a case, there may be a problem that a subscriber's speech path engaged in a preceding telephone call is disconnected because both the software and the hardware have to be initialized when restarting the system.
Summary of the Invention
An object of the present invention is to provide a method of recovering a pre-engaged call without disconnecting a speech path of the call upon restarting a keyphone exchange system after the occurrence of a system failure.
According to the present invention, a method of recovering a pre-engaged call upon restarting a keyphone exchange system after the occurrence of a system failure includes the steps of initializing all hardware and all software except for a call buffer when a restarting grade of the system is a minor grade, generating the address of a corresponding port number for a variable number of port, set by a given value and checking whether a talk bit of a line status word is set or not, and connecting a speech path of the call by detecting a corresponding port number in a line number and an opposite port number engaged in a call of an opposite party in the case the talk bit is set in the third step.
The present invention will now be described more specifically with reference to the attached drawings only by way of example.
Brief Description of the Accompanying Drawings
FIG. 1 is a block diagram of this inventive system;
FIG. 2 is a flow chart of system operation;
FIG. 3A is a table structure of a call buffer, and FIG. 3B is a structure of a line status word of a call buffer; and
FIG. 4A is a table structure of communication between port #1 and port #2, FIG. 4B is a table structure of port #1 being in a busy state, and FIG. 4C is a table structure of port #1 being in an idle state.
Detailed Description of Certain Embodiment
Referring to FIG. 1, there is shown an extension subscriber matching circuit 104 for detecting a hook on/off of an extension subscriber's telephone and supplying a current thereto. A memory 102 is to access or record certain data by a given control signal. A central processing unit 101 generates a control signal for allocating a time slot according to signalling information from the extension subscriber matching circuit 104 and accesses the memory 102. A complex frequency receiver 107 converts a dialed signal, from an extension subscriber telephone connected with the subscriber matching circuit 104, into a digital signal, and transmits it to the central processing unit 101. A complex frequency transmitter 106 generates a DTMF (Dual Tone Multi Frequency) by a digit data output of the central processing unit 101. A switching circuit 105 connects a speech path of an office line with the extension subscriber matching circuit 104 according to control by the central processing unit 101. An office line matching circuit 103 interfaces an office line of a central telephone office with the switching circuit 105. A tone generator 108 supplies various tones to an extension subscriber or an office line subscriber through the switching circuit 105.
With reference to FIG. 2, the system operation comprises the steps of initializing all hardware and all software except for a call buffer in case of a minor restarting grade, generating an address of a corresponding port number for variable number of port, set by a given value and checking whether a talk bit of a line status word is set or not, connecting a speech path of a pre-engaged call by detecting corresponding port number in a line number and an opposite port number engaged in call of an opposite party in case of the talk bit being set in the above step, and detecting a last port number by repeating the steps beginning from the second step if the port number increased by 1 is not a last one after connecting the speech path of the call in the third step.
With reference to FIG. 3, a call buffer records information according to progress of a call and it is allocated to each port. A line status word indicates a state of a port and comprises 4 bits. An idle bit D0 indicates whether a state of a port is idle or not and a `1` indicates a state of idle. A busy bit D1 indicates a state of a busy tone wherein one party hears a busy tone if the other party hooks on, and a `1` indicates a busy tone state. A talk bit D2 indicates a state of communication with an office line or an extension line and a `1` indicates a speech state. This invention is to recover a speech path of a pre-engaged call only for a talk state (a completely established call) on restarting a system. A hold bit D3 indicates a state of holding and a `1` indicates a holding state. A line number (Line No.) is a storage for recording a specific number allocated in hardware to each port. For example, the line number of port #1 is recorded 0, the line number of port #2 is recorded 1, and the line number of port #N is recorded N-1 likewise. An opposite port number engaged in the call is recorded in an opposite party. In a state of idle, OFF is recorded in an opposite party.
With reference to FIG. 1 through 4, an embodiment will be described as follows.
Generally there are inevitable causes for restarting a system. It is a major grade when restarting a system from power-on reset or power off-on, and a minor grade when restarting a system from a system failure occurrence on software or using a reset button.
A step 2b is performed in case of a major grade and a step 2d in case of a minor grade, after checking the restarting grade of a system in a step 2a. After initializing all hardware in step 2b and all software in the step 2c, the procedure returns to start. If the restarting grade of a system is detected to be the minor grade in the step 2a, all hardware is initialized in the step 2d and all software except for a call buffer is initialized in step 2e.
In step 2f, a variable number of port #N of the call buffer as shown in FIG. 3A is set by `1` and step 2g is performed. In step 2g, an address of the call buffer for a variable number of port #N is generated and step 2h is performed checking whether the talk bit is set. A step 2L is performed in case of a talk bit not being set and step 2i is performed in case of the talk bit being set, after checking whether the talk bit of a line status word is set or not as shown in FIG. 3 in step 2h. Step 2i detects the corresponding port number in the line number of the call buffer and step 2j is performed. In the step 2j, an opposite port number previously engaged in a call is detected from an opposite party of the call buffer and a step 2k is performed. In the step 2k, a subscriber's speech path of the call is connected by corresponding port number of the line number and the opposite port number of the opposite party. For example a table of FIG. 4A is formed for the communication between port #1 and port #2, a table of FIG. 4B is formed for the busy state of port #1 and a table of FIG. 4C is formed for the idle state of port #1. After the speech path is connected in step 2k, the port number is increased by 1 in a step 2l and step 2m is performed. The step jumps to step 2g in case of a port number not being a last one by checking the port number in the step 2m and repeats the steps 2g to 2m until detecting the last one, and returns to start in case of the last port number.
As described above, the method is to recover a pre-engaged call without disconnecting a speech path of the call especially in case of a minor restarting grade of a system due to an failure occurring on a keyphone exchange system so as to secure reliability and an improved function of a keyphone exchange system.
While the invention has been particularly shown and described with reference to the preferred embodiment of the present invention thereof, it will be understood by those skilled in the art that the foregoing and other changes in form and details may be made without departing from the spirit and scope of the present invention.