mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-25 09:08:45 +05:00
Fixups freeswitch rotate script, tutorial config
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user