Fixups freeswitch rotate script, tutorial config

This commit is contained in:
DanB
2014-01-13 20:57:18 +01:00
parent 9428ffa9c6
commit 9feadce362
2 changed files with 3 additions and 4 deletions

View File

@@ -5,8 +5,7 @@ CGR_CDRC_IN_DIR=/var/log/cgrates/cdr/cdrc/in
/usr/bin/fs_cli -x "cdr_csv rotate"
find $FS_CDR_CSV_DIR -maxdepth 1 -mindepth 1 -not -name *.csv -print0 | xargs -0 mv -t $CGR_CDRC_IN_DIR
find $FS_CDR_CSV_DIR -maxdepth 1 -mindepth 1 -not -name *.csv -exec chown cgrates:cgrates '{}' \; -exec mv '{}' $CGR_CDRC_IN_DIR \;
exit 0

View File

@@ -61,11 +61,11 @@ enabled = true # Enable CDR client functionality
# cdrs_method = http_cgr # Mechanism to use when posting CDRs on server <http_cgr>
# run_delay = 0 # Sleep interval in seconds between consecutive runs, 0 to use automation via inotify
cdr_type = freeswitch_csv # CDR file format <csv>.
cdr_in_dir = /var/log/freeswitch/cdr-csv # Absolute path towards the directory where the CDRs are stored.
cdr_in_dir = /var/log/cgrates/cdr/cdrc/in # Absolute path towards the directory where the CDRs are stored.
cdr_out_dir = /tmp # Absolute path towards the directory where processed CDRs will be moved.
cdr_source_id = freeswitch_csv # Free form field, tag identifying the source of the CDRs within CGRS database.
accid_field = 10 # Accounting id field identifier. Use index number in case of .csv cdrs.
reqtype_field = 15 # Request type field identifier. Use index number in case of .csv cdrs.
reqtype_field = 16 # Request type field identifier. Use index number in case of .csv cdrs.
direction_field = ^*out # Direction field identifier. Use index numbers in case of .csv cdrs.
tenant_field = ^cgrates.org # Tenant field identifier. Use index numbers in case of .csv cdrs.
tor_field = ^call # Type of Record field identifier. Use index numbers in case of .csv cdrs.