If your goal is to export CDR from a cisco gateway, you can use gw-accounting command:
gw-accounting
#
To enable an accounting method for collecting call detail records (CDRs), use the gw-accounting command in global configuration mode. To disable an accounting method, use the no form of this command.
#
gw-accounting {aaa | file | syslog [stats] }
no gw-accounting {aaa | file | syslog [stats] }
gw-accounting {h323 [vsa] | syslog | voip}
no gw-accounting {h323 [vsa] | syslog | voip}
#
Syntax Description
# aaa | # Enables accounting through the AAA system and sends call detail records to the RADIUS server in the form of vendor-specific attributes (VSAs). |
# file | # Enables the file accounting method to store call detail records in .csv format. |
# syslog | # Enables the system logging facility to output accounting information in the form of a system log message. |
# stats | # (Optional) Enables voice quality statistics to be sent to the system log. |
# h323 | # Enables standard H.323 accounting using Internet Engineering Task Force (IETF) RADIUS attributes. |
# vsa | # (Optional) Enables H.323 accounting using RADIUS VSAs. |
# voip | # Enables generic gateway-specific accounting. |
You can find more info in cisco IOS voice command reference guide.
This is an example to collect CDR of H.323 calls via RADIUS:
gw-accounting syslog
gw-accounting aaa
attribute acct-session-id overloaded
attribute h323-remote-id resolved
acct-template callhistory-detail
Regards.