
Before configuring file accounting
This historical reference explains IOS gateway call-detail accounting. Standalone gateways are not currently accepted for new PBXDom connections. This reference lists Cisco IOS 12.4(20)T or later as its prerequisite; confirm the exact gateway, software version, and collector requirements with your administrator.
Commands below are syntax references, not a ready-to-paste configuration. Replace parameter names with your own values. Braces group alternatives; the vertical bar separates choices.
Command reference
| Step | Command | Purpose |
|---|---|---|
| 1 | enable | Enter privileged EXEC mode. |
| 2 | configure terminal | Enter global configuration mode. |
| 3 | gw-accounting file | Open file-accounting configuration. |
| 4 | primary { ftp path/filename username username password password | ifs device : filename } | Optional primary CDR destination: an FTP file with credentials, or a file on an available internal device such as flash or slot0. Default: flash:cdr. |
| 5 | secondary { ftp path/filename username username password password | ifs device : filename } | Optional backup destination when the primary is unavailable. Use an FTP file with credentials, or an available internal device and filename. Default: flash:cdr. |
| 6 | maximum retry-count number | Connection attempts before switching to the secondary destination. Range: 1–5. Default: 2. |
| 7 | maximum buffer-size kbytes | Maximum accounting buffer size. Range: 6–40 KB. Default: 20 KB. |
| 8 | maximum fileclose-timer minutes | Time before closing the current file and creating another. Range: 60–1,440 minutes; default: 1,440. Must be at least five minutes longer than the flush timer. |
| 9 | maximum cdrflush-timer minutes | Time to hold records in the buffer before appending them to the file. Range: 1–1,435 minutes; default: 60. Must be at least five minutes shorter than the file-close timer. |
| 10 | cdr-format { compact | detailed } | Select a compact or full set of voice attributes. Default: detailed. |
| 11 | acct-template { template-name | callhistory-detail } | Select a named custom template, or callhistory-detail for all voice accounting attributes. |
| 12 | end | Exit configuration mode. |
The retry, buffer, timer, format, and template settings are optional. Review them with your administrator and confirm collector setup requirements before applying changes.