1.2 AOC Records

In addition to full-featured communication channel, the library also provides simplified interface for obtaining accounting records. The channel, from which the application acquires the accounting lines, opens by OpenAocRecords. This channel is a one-way channel (from PBX to the application). All information necessary to build it are transferred as parameters of the OpenAocRecords function. The first parameter, bOverlapped, has the same meaning as in the OpenXmlBridge function. The second parameter, pOpenInfo, is an indicator of the structure that includes information necessary to build the connection with the PBX, see Structure of NSB_AOC_OPEN_INFO. The third parameter, pStatus, is an indicator of a variable, in which the information on the cause of a channel opening failure, if any, returns. The OpenAocRecords function as well as OpenXmlBridge returns handle of the channel, from which it is possible to read information using a standard Windows API function, ReadFile. If the application no longer needs the handle obtained it should close it by the CloselBridge function.