MONREP is set up to run automatically over night on the computer of the designated user, as a method of running long reports on MonTel Call Record files.
MonRep reports on call records and generates results in the same way and style than report windows in the main MonTel tool bar does. However, instead of filling out check boxes and edit fields, the settings are drawn from the PABX.INI file, in the [AutoReport] section. The Following example would find from "All Calls", any call in the last month that cost at least 26 seconds and lasted from more than 24 seconds.
[AutoReport]
AutoReportRunThisReport = 1
AutoReportFrom = "ALLCALLS"
AutoReportDirection = "0"
AutoReportUserName = "david"
AutoReportCallRecordFile = "f:\data\montel\autorep\pabxdcr.dat"
AutoReportSummaryReportFile = "f:\data\montel\autorep\test.txt"
AutoReportCostMin = "0.26"
AutoReportCostMax = "9999.99"
AutoReportDateTimeStart = "Last Month"
AutoReportDuration = 24
In addition, you can specify more than one report, by creating an Response file. A response file is just another INI file (typically named REPORT.INI) contains similar values. The response file name is specified in the PABX.INI file
[AutoReport]
AutoReportResponseFile = "F:\APPS\MONTEL\Autorep\report.ini"
The response file follows the same format as the [AutoReport] section in the PABX.INI, even requiring a an [AutoReport] section header. The one addition is The AutoReportReortList. This is a comma separated list of report keys. Each key in the ReportList is the key for a series of entries that follow the same names as detailed in the report section, but preceded by the key and a period. An example response file looks this:
[AutoReport]
AutoReportReportList = First, Second, Third
First.AutoReportRunThisReport = 1
First.AutoReportFrom = "MYCALLS"
First.AutoReportDirection = "0"
First.AutoReportUserName = "david"
First.AutoReportCallRecordFile = "f:\data\montel\autorep\First.dat"
First.AutoReportSummaryReportFile = "f:\data\montel\autorep\First.txt"
First.AutoReportCostMin = "0"
First.AutoReportDateTimeStart = "This Month"
First.AutoReportCostMax = "9999.99"
First.AutoReportDuration = 1
Second.AutoReportRunThisReport = 1
Second.AutoReportFrom = "ALLCALLS"
Second.AutoReportDirection = "0"
Second.AutoReportUserName = "david"
Second.AutoReportCallRecordFile = "f:\data\montel\autorep\Second.dat"
Second.AutoReportSummaryReportFile = "f:\data\montel\autorep\Second.txt"
Second.AutoReportCostMin = "0"
Second.AutoReportCostMax = "9999.99"
Second.AutoReportDateTimeStart = "Last Month"
Second.AutoReportDuration = 1
Third.AutoReportRunThisReport = 1
Third.AutoReportFrom = "ALLCALLS"
Third.AutoReportDirection = "0"
Third.AutoReportUserName = "david"
Third.AutoReportCallRecordFile = "f:\data\montel\autorep\Third.dat"
Third.AutoReportSummaryReportFile = "f:\data\montel\autorep\Third.txt"
Third.AutoReportCostMin = "0"
Third.AutoReportCostMax = "9999.99"
Third.AutoReportDateTimeStart = "Month before last"
Third.AutoReportDuration = 1
When run the MonTel Auto Report Screen will be displayed.
The AutoReportCallRecordFile is a copy of the Call Record File generated by MonRep, and The AutoReportSummaryReportFile is a summary report. In the example shown above the are stored in a directory created for the purpose in the MonTel Data Directory, though it could be anywhere on the system.