Private branch exchange apparatus and accounting process method

Abstract
Each time the time in a timer is re-set, a control section overwrites a difference integration value corresponding to the amount of the change from a reference value “0” in an registration memory of a memory section. When a call is sent from an extension to an outside line, the control section first reads out the difference integration value from the registration memory and stores on a management table the read-out difference integration value and call beginning time information in association with the call-sending extension. If the call between the extension and the outside line is finished, the control section calculates a call charge associated with the call-sending extension, on the basis of call end time information, the difference integration value stored in the registration memory, and the call beginning time information and difference integration value associated with the call-sending extension, which are registered on the management table.
Description


CROSS REFERENCE TO RELATED APPLICATIONS

[0001] This application is based upon and claims the benefit of priority from the prior Japanese Patent Application No. 2000-363417, filed Nov. 29, 2000, the entire contents of which are incorporated herein by reference.



BACKGROUND OF THE INVENTION

[0002] 1. Field of the Invention


[0003] The present invention relates generally to a private branch exchange apparatus and accounting process method used in an office, a business branch, etc., and more particular to a private branch exchange wherein an accounting process is executed on a calling-side extension when a call is made from an extension to an outside line.


[0004] 2. Description of the Related Art


[0005] In general, a currently used private branch exchange apparatus has various service functions. One of the service functions is an accounting process function. The accounting process function has a memory table and timer, The memory table is registered identification number information indicative of communication service providers, and information indicative of call charges associated with the identification number information. When a call is sent from an extension to an outside line, an accounting process function executes accounting process on the basis of the registered content of the memory table and a difference between a call beginning time and a call end time measured by the timer.


[0006] In this type of private branch exchange apparatus, the timer needs to be re-set for various reasons. As a result, an accounting calculation result relating to a call made during the time in which the timer is re-set may differ from an accounting calculation result relating to the actual call time. In order to solve this problem, there is a method wherein when the time of the timer has been changed, call beginning times of all existing calls, which are managed by the private branch exchange apparatus, are rewritten in a batch.


[0007] In this method, however, a CPU executes a process relating to calls, a batch-rewrite process for call beginning times and an accounting calculation process for call-sending extensions. Thus, the processing load of the CPU increases, and a predetermined time is needed for the batch-rewrite of call beginning times due to the change of time. When the rewriting work is performed at the time of the end of calls, a serious problem arises with the execution of the accounting calculation process.



BRIEF SUMMARY OF THE INVENTION

[0008] The object of the present invention is to provide a private branch exchange apparatus and accounting process method capable of executing, even when a re-setting of time has occurred during a call, an accounting process on a call-sending extension without influence of the re-setting of time.


[0009] The present invention may provide a private branch exchange apparatus having a timer, being capable of connecting a plurality of extensions to extension terminals, and being capable of connecting at least one outside line, the private branch exchange apparatus calculating a call charge on the basis of start time information and end time information measured by the timer in association with a call-sending extension, the apparatus comprising: detection means for detecting a re-setting of time in the timer, generating a detection signal; first storing means for storing a difference integration value corresponding to an amount of change from a reference value in response to the detection signal; second storing means for storing information necessary for the accounting calculation process for each extension; and control means for making the second storing means store, the start time information supplied from the timer and the difference integration value supplied from the first storing means, in the second storing means in association with the call-sending extension, and making the accounting calculation process associated with the call-sending extension execute in response to the end time information supplied from the timer, on the basis of the end time information, the difference integration value supplied from the first storing means, and the start time information and differential integration value supplied from the second storing means.







BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWING

[0010]
FIG. 1 is a block diagram schematically showing an embodiment of a private branch exchange system using a private branch exchange apparatus of the present invention;


[0011]
FIG. 2 shows a structure of a call-associated information management table shown in FIG. 1;


[0012]
FIG. 3 is a flow chart illustrating control procedures and control contents of an accounting calculation process executed by a control section shown in FIG. 1; and


[0013]
FIG. 4 is a view for explaining a method of calculating an individual call time by means of the control section shown in FIG. 1.







DETAILED DESCRIPTION OF THE INVENTION

[0014] An embodiment of the present invention will now be described in detail with reference to the accompanying drawings.


[0015]
FIG. 1 schematically shows the structure of a private branch exchanged (PBX) system according to an embodiment of the invention.


[0016] The PBX system, as shown in FIG. 1, is constructed such that a plurality of extension terminals 2 (2-1 to 2-i)(maximum number=i) are connected, as desired, to a private branch exchange (PBX) apparatus 1.


[0017] The PBX apparatus 1 comprises a time switch 11, a plurality of (i.e. a j-number of) station line interface circuits 12 (12-1 to 12-j), a plurality of (i.e. an i-number of) extension interface circuits 13 (13-1 to 13-i), a control section 14, a memory section 15, a timer 16, and a data highway interface section 17. The time switch 11, station line interface circuits 12 and extension interface circuits 13 are interconnected via a PCM highway 18.


[0018] The time switch 11, station line interface circuits 12, extension interface circuits 13 and data highway interface section 17 are interconnected via a data highway 19. The control section 14, memory section 15, timer 16 and data highway interface section 17 are interconnected via a CPU bus 20.


[0019] The time switch 11 switches time slots on the PCM highway 18 under control of the control section 14, thus switching and connecting the station line interface circuits 12 and extension interface circuits 13 in a desired fashion.


[0020] Station lines L (L-1 to L-j) such as public lines or dedicated lines are connected to the station line interface circuits 12 on an as-needed basis. The station line interface circuit 12 performs station line interface operations associated with the connected station line L. The station line interface operations include conversion from a voice signal (analog), which is delivered via the station line L, to a PCM signal; conversion from a PCM signal, which is delivered via the time switch 11, to a voice signal (analog); monitoring of the station lines L; and transmission of various signals to a network connected via the station lines L. The station line interface circuit 12 executes transmission/reception of various control information relating to the station line interface operations with the control section 14 via the data highway 19, data highway interface section 17 and CPU bus 20.


[0021] The extension terminals 2 are connected to the extension interface circuits 13 on an as-needed basis. The extension interface circuit 13 performs extension interface operations relating to the connected extension terminal 2. The extension interface operations include extraction of a PCM signal, which is output from the extension terminal 2, from the PCM highway 18; monitoring of the extension terminal 2; and transmission of various signals to the extension terminal 2. The extension interface circuit 13 executes transmission/reception of various control information relating to the extension interface operations with the control section 14 via the data highway 19, data highway interface section 17 and CPU bus 20.


[0022] The control section 14 executes processes based on operation programs stored in the memory section 15 and thus generally controls the time switch 11, station line interface circuits 12 and extension interface circuits 13. Thereby, the operations of the PBX apparatus 1 are realized.


[0023] The memory section 15 stores operation programs for the control section 14 and other various data for permanent use.


[0024] The timer 16 measures the present time.


[0025] The data highway interface section 17 executes data transmission/reception between the data highway 19 and CPU bus 20.


[0026] The control section 14 according to this embodiment is provided with a time change detection function 141 and an accounting control function 142. In addition, the memory section 15 is provided with an integration value registration memory 151 (hereinafter referred to as “registration memory 151”) and a call-associated information management table 152 (hereinafter “management table 152”).


[0027] The time change detection function 141 detects change of time in the timer 16 and, each time the change is detected, overwrites a difference integration value corresponding to the amount of change from a reference value “0” in the registration memory 151 of memory section 15.


[0028] For example, when a call is sent from the extension terminal 2-1 to the station line L-1, the accounting control function 142 associates information on time measured by the timer 16 at that time point and a difference integration value stored in the registration memory 151 with the call-sending extension terminal 2-1, and stores the associated data in the management table 152. When the call has ended, the accounting control function 142 executes a control relating to an accounting calculation process for the call-sending extension terminal 2-1 on the basis of time information measured by the timer 16 at this time point, the difference integration value stored in the registration memory 151, and the call time information and difference integration value stored in the management table 152.


[0029] The management table 152, as shown in FIG. 2, stores a call beginning time and integration data at the call beginning time in association with a call number assigned to the extension terminal 2.


[0030] The control section 14 is connected to a call accounting apparatus 22 via a interface 21. The call accounting apparatus 22 selectively executes a control relating to an accounting calculation process for the call-sending extension terminal 2-1 on the basis of the call time information and difference integration value stored in the management table 152 in response to a preset command data supplied from an exterior. For example, the interface 21 is used RS232C.


[0031] The operation of the system with the above-described structure will now be described.


[0032] For example, when a call has been sent from the extension terminal 2-1, the control section 14 recognizes which extension phone number, i.e. call number, is associated with the call. Then, when a special number for connection to the station line L-1, for instance, has been dialed from the call-sending extension, the control section 14 registers the recognized call number in a call number column of the management table 152. If called party on the station line L-1 side has answered, the control section 14 registers the time of the timer 16 in a call beginning time column of the management table 152 in association with the call-sending extension.


[0033] If either called party or the call-sending extension terminal 2-1 is set in the on-hook state and the line is disconnected, the control section 14 executes the accounting calculation process for calculating the call charge for the extension terminal 2-1, on the basis of the call end time and the call beginning time registered on the management table 152.


[0034] However, if the time measured in the timer 16 is changed during a call, an accounting calculation result for the call, may differ from an accounting calculation result on the actual call time, during which the change of time has taken place. To solve this problem, the control section 14 has to add the amount of change in time to all call beginning times registered on the management table 152. This increases the processing load on the control section 14. Under the circumstances, in the present embodiment, the registration memory 151 is prepared to register a difference integration value due to the change in time, and the management table 152 is additionally provided with a column for registering integration data at the call beginning time.


[0035]
FIG. 3 is a flow chart illustrating control procedures and control contents of the accounting calculation process executed by the control section 14 when the change in time has taken place.


[0036] For example, if a call is sent from the extension terminal 2-1 to the station line L-1, the control section 14 starts a control process, as illustrated in FIG. 3.


[0037] If the control process is started, the control section 14 registers on the management table 152 a call number of the call-sending extension terminal 2-1 and a call beginning time measured by the timer 16 (step ST1).


[0038] The control section 14 registers on the management table 152 a difference integration value, which is stored in the registration memory 151, in association with the call-sending terminal (step ST2). Alternatively, the system may have only one registration memory 151.


[0039] The control section 14 determines whether the time in the timer 16 has been changed (step ST3). If the time has been changed (YES), the control section 14 overwrites the difference integration value in the registration memory 151 (step ST4).


[0040] The control section 14 determines whether the other-side party or the call-sending extension terminal 2-1 is set in the on-hook state (step ST5). The process of steps ST3 to ST5 is repeated until the other-side party or the call-sending extension terminal 2-1 is set in the on-hook state.


[0041] If the on-hook state is detected (YES), the control section 14 reads out of the management table 152 the call beginning time information and difference integration value associated with the extension terminal 2-1. In addition, the control section 14 reads out the difference integration value at the time of the end of the call from the registration memory 151. The control section 14 executes the accounting calculation process for the call charge associated with the call-sending extension terminal 2-1 on the basis of the read-out information(step ST6).


[0042] Referring to FIG. 4, the accounting calculation process will now be described in greater detail. In FIG. 4, a portion (a) indicates time information measured by the timer 16, a portion (b) the amount of change in time in the timer 16, and a portion (c) the difference integration value.


[0043] Assume that the extension terminal 2-1 is associated with call A. A call beginning time measured by the timer 16 is “11:55”, a call end time measured by the timer 16 is “13:00”, the difference integration value stored in the registration memory 151 at the time of beginning of the call is “0”, and the difference integration value stored in the registration memory 151 at the time of end of the call is “+30”. In this case, the actual call time relating to call A, which is calculated by the control section 14, is given by


13:00−11:55−(+30−0)=40(min.)


[0044] Assume that the extension terminal 2-2 is associated with call B. A call beginning time measured by the timer 16 is “11:55”, a call end time measured by the timer 16 is “12:25”, the difference integration value stored in the registration memory 151 at the time of beginning of the call is “0”, and the difference integration value stored in the registration memory 151 at the time of end of the call is “+10”. In this case, the actual call time relating to call B, which is calculated by the control section 14, is given by


12:25−11:5531 (+10−0)=20(min.)


[0045] Assume that the extension terminal 2-3 is associated with call C. A call beginning time measured by the timer 16 is “112:05”, a call end time measured by the timer 16 is “11:55”, the difference integration value stored in the registration memory 151 at the time of beginning of the call is “0”, and the difference integration value stored in the registration memory 151 at the time of end of the call is “−30”. In this case, the actual call time relating to call C, which is calculated by the control section 14, is given by


11:55−12:05−(−30−0)=20(min.)


[0046] Assume that the extension terminal 2-4 is associated with call D. A call beginning time measured by the timer 16 is “12:25”, a call end time measured by the timer 16 is “11:55”, the difference integration value stored in the registration memory 151 at the time of beginning of the call is “+10”, and the difference integration value stored in the registration memory 151 at the time of end of the call is “−30”. In this case, the actual call time relating to call D, which is calculated by the control section 14, is given by


11:55−12:25−(−30−10)=10(min.)


[0047] In general cases, the difference integration value is definite with a settable range. It should suffice if the difference integration value is set so that the difference between a maximum (future) value and a minimum (past) value in the PBX apparatus 1 can be managed. Therefore, no matter how the timer is re-set within this range, the difference integration value falls within the range.


[0048] As has been described above, according to the present embodiment, in the PBX 1, each time the time of the timer 16 has been re-set, the difference integration value corresponding to the amount of change in time from the reference value “0” is overwritten on the registration memory 151 of memory section 15. When a call is sent from an extension to an outside line, the control section 14 first reads out the difference integration value from the registration memory 151 and stores on the management table 152 the read-out difference integration value and call beginning time information in association with the call-sending extension. If the call between the extension and the outside line is finished, the control section 14 executes the accounting calculation process for the call charge associated with the call-sending extension, on the basis of the call end time information, the difference integration value stored in the registration memory 151 at this time, and the call beginning time information and difference integration value associated with the call-sending extension, which are registered on the management table 152.


[0049] Specifically, when a call is sent from the extension to the outside line, the control section 14 accesses the CPU bus 20 at only three occasions: 1) when the difference integration value at the time of beginning of the call is read out of the registration memory 151 and the read-out difference integration value and call beginning time information are stored on the management table 152 in association with the call-sending extension, 2) when the difference integration value due to the change in time is overwritten on the registration memory 151 at the time at which the time of the timer has been re-set during the call, and 3) when the difference integration value at the time the call between the extension and outside line is finished is read out of the registration memory 151, and the call beginning time information and the difference integration value at this time are read out of the management table 152. In the other time slots, the control section is enabled to execute the accounting calculation process for respective calls, the communication process with external devices, etc.


[0050] According to the present embodiment, unlike the prior art, there is no need to batch-rewrite call beginning times relating to all calls when the change in time has taken place. Thereby, the processing load on the control section 14 due to the re-set in time is reduced, and the reduction in processing load makes it possible to efficiently execute the accounting calculation process for the call charge associated with the call-sending extension. Accordingly, the accounting calculation process for the call charge associated with the call-sending extension, which accords with the actual call time, can be executed without influence due to the re-setting of time.


[0051] In the present embodiment, each time the time of the timer 16 has been changed, the difference integration value reflecting the re-setting of time is overwritten on the registration memory 151. The accounting calculation process for the call charge associated with the call-sending extension is executed by the control section 14, using the difference integration value registered on the management table 152 at the time of beginning of the call, and the difference integration value stored in the registration memory 151 at the time of end of the call. Therefore, there is no need to provide a timer dedicated for changing the time, and only the timer 16 may be used. The structure of the PBX apparatus 1 is not made complex in order to cope with the changing of time.


[0052] In the present embodiment, when a call begins, the call beginning time and the difference integration value at this time are registered on the management table 152 in association with the call-sending extension. When the call ends, the accounting calculation process for the call charge associated with the call-sending extension is executed simply by using the difference integration value stored in the registration memory 151 at the time of end of the call and the call beginning time and the difference integration value, which were previously registered on the management table 152. Thus, the time in the timer 16 can be changed any number of times.


[0053] The above embodiment is directed to the case where the control section 14 executes the accounting calculation process for the call charge associated with the call-sending extension. Alternatively, only the accounting calculation process associated with the call-sending extension may be executed by the call accounting apparatus 22 or the like. In this case, the control section 14 may perform only three processes: 1) a process of reading out the difference integration value at the time of beginning of the call from the registration memory 151, and registering this difference integration value and call beginning time information on the management table 152 in association with the call-sending extension, 2) a process of overwriting, when the time in the timer has been re-set during the call, the difference integration value at this time point on the registration memory 151, and 3) a process of reading out, when the call between the extension and outside line is finished, the difference integration value at this time point from the registration memory 151, and writing this difference integration value and call end time information on the management table 152 in association with the call-sending extension. Thereby, the accounting calculation process associated with the call-sending extension may be executed by the maintenance terminal on the basis of the content registered on the management table 152.


[0054] In the above embodiment, the control section 14 overwrites the difference integration value due to the re-setting of time in the timer 16 on the registration memory 151. Alternatively, this difference integration value may automatically overwritten on the registration memory 151 in accordance with the re-setting of time in the timer 16. Thereby, the processing load on the control section 14 is further reduced, and the real-time performance of the accounting calculation process can be enhanced.


[0055] The structure of the PBX apparatus, the kind of extension terminals, the functions of the control section, the structure of the memory section, the kind of timer, the control procedures of the accounting calculation process, etc. may be variously modified without departing from the spirit of the invention.


[0056] As has been described above, the present invention may provide a private branch exchange apparatus and accounting process method capable of executing, even when a re-setting of time has occurred during a call, an accounting process on a call-sending extension without influence of the re-setting of time.


Claims
  • 1. A private branch exchange apparatus having a timer, being capable of connecting a plurality of extensions to extension terminals, and being capable of connecting at least one outside line, storing information necessary for an accounting calculation process for a call charge on the basis of start time information and end time information measured by the timer in association with a call-sending extension, the apparatus comprising: detecting means for detecting a re-setting of time in the timer, generating a detection signal; first storing means for storing a difference integration value corresponding to an amount of change from a reference value in response to the detection signal; second storing means for storing information necessary for the accounting calculation process for each extension; and controlling means for making the second storing means to store, the start time information supplied from the timer and the difference integration value supplied from the first storing means, in the second storing means in association with the call-sending extension, and making the second storing means store, the end time information supplied the timer and the difference integration value, in the second storing means in association with the extension.
  • 2. A private branch exchange apparatus having a timer, being capable of connecting a plurality of extensions to extension terminals, and being capable of connecting at least one outside line, the private branch exchange apparatus calculating a call charge on the basis of start time information and end time information measured by the timer in association with a call-sending extension, the apparatus comprising: detection means for detecting a re-setting of time in the timer means, generating a detection signal; first storing means for storing a difference integration value corresponding to an amount of change from a reference value in response to the detection signal; second storing means for storing information necessary for the accounting calculation process for each extension; and controlling means for making the second storing means store, the start time information supplied from the timer and the difference integration value supplied from the first storing means, in the second storing means in association with the call-sending extension, and making the accounting calculation process associated with the call-sending extension execute in response to the end time information supplied from the timer, on the basis of the end time information, the difference integration value supplied from the first storing means, and the start time information and differential integration value supplied from the second storing means.
  • 3. A private branch exchange apparatus having a timer, being capable of connecting a plurality of extensions to extension terminals, and being capable of connecting at least one outside line, storing information necessary for an accounting calculation process for a call charge on the basis of start time information and end time information measured by the timer in association with a call-sending extension, the apparatus comprising: a detection circuit which detects a re-setting of time in the timer, generates a detection signal; a first memory circuit which stores a difference integration value corresponding to an amount of change from a reference value in response to the detection signal; a second memory circuit which stores information necessary for the accounting calculation process for each extension; and a control circuit which makes the second memory circuit store, the start time information supplied from the timer and the difference integration value supplied from the first memory circuit, in the second memory circuit in association with the call-sending extension, and makes the second memory circuit store, the end time information supplied the timer and the difference integration value, in the second memory circuit in association with the extension.
  • 4. A private branch exchange apparatus having a timer, being capable of connecting a plurality of extensions to extension terminals, at least one outside line, the private branch exchange apparatus calculating a call charge on the basis of start time information and end time information measured by the timer in association with a call-sending extension, the apparatus comprising: a detection circuit which detects a re-setting of time in the timer, generates a detection signal; a first memory circuit which stores a difference integration value corresponding to an amount of change from a reference value in response to the detection signal; a second memory circuit which stores information necessary for the accounting calculation process for each extension; and a control circuit which makes the second memory circuit store, the start time information supplied from the timer and the difference integration value supplied from the first memory circuit, in the second memory circuit in association with the call-sending extension, and makes the accounting calculation process associated with the call-sending extension execute in response to the end time information supplied from timer, on the basis of the end time information, the difference integration value supplied from the first memory circuit, and the start time information and differential integration value supplied from the second memory circuit.
  • 5. An accounting process method used a private branch exchange apparatus having a timer, first memory and second memory, being capable of connecting a plurality of extensions to extension terminals, and being capable of connecting at least one outside line, storing information necessary for an accounting calculation process for a call charge on the basis of start time information and end time information measured by the timer means in association with a call-sending extension, the method comprising: first step of making the second memory store, the start time information supplied from the timer and the difference integration value supplied from the first memory, in the second memory in association with the call-sending extension information; second step of detecting a re-setting of time in the timer, generating a detection signal; third step of making the first memory store a difference integration value corresponding to an amount of change from a reference value in response to the detection signal; and fourth step of making the second memory store, the end time information supplied the timer and the difference integration value supplied from the first memory, in the second memory in association with the extension.
  • 6. An accounting process method used a private branch exchange apparatus having a timer, first memory and second memory, being capable of connecting a plurality of extensions to extension terminals, and being capable of connecting at least one outside line, the private branch exchange apparatus executing an accounting calculation process for a call charge on the basis of start time information and end time information measured by the timer means in association with a call-sending extension, the method comprising: first step of making the second memory store, the start time information supplied from the timer and the difference integration value supplied from the first memory, in the second memory in association with the call-sending extension information; second step of detecting a re-setting of time in the timer, generating a detection signal; third step of making the first memory store a difference integration value corresponding to an amount of change from a reference value in response to the detection signal; and fourth step of making the accounting calculation process associated with the call-sending extension execute in response to the end time information supplied from the timer, on the basis of the end time information, the difference integration value supplied from the first memory, and the start time information and differential integration value supplied from the second memory.
Priority Claims (1)
Number Date Country Kind
2000-363417 Nov 2000 JP