Use the General Format, to Change Predefined Formats
To change a format that is almost right, create a new general format, using the existing format as a template.
- Use the command callinfo_format_print -subtype to print the existing format. Perform the needed modifications.
- Open the new format string in an output file to test the change. Hint: perform 'tail -f' on the file, to output as it is written to the file.
Note: A delay may be noticed if the file system caches the data prior to output to file. Try making more than one call to flush the cache or wait for the cache flush every second minute.
An existing file from a local fixed format copy, XML, comma separated, or SQL, can also be used. One of the commands callinfo_file_to_file , or callinfo_sql_to_file shall be used. The resulting file can be examined and the format string can be adjusted without making calls. This method is faster if complicated calls have to be made to confirm the format changes.
To test the format, enter the following command (on one line).
>callinfo_file_to_file -insubtype xml -infilename /var/smdr/data.1.xml -outsubtype asb501 -outfilename /var/opt/eri_sn/call_logging/conv -format "xxx"
Where "xxx" is the format to be tested