You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.8 KiB
34 lines
1.8 KiB
DBHOST=localhost
|
|
DBUSER=exporter
|
|
DBPASS=exporter
|
|
DBDB=accounting
|
|
|
|
#EDRDIR=/home/jail/home/cdrexport
|
|
EDRDIR=/tmp
|
|
|
|
# comment out to export all into one file per run
|
|
MAX_ROWS_PER_FILE=5000
|
|
|
|
# if 1, don't export events which are switched on and off again
|
|
# during an export interval
|
|
FILTER_FLAPPING=1
|
|
|
|
PREFIX=sipwise
|
|
VERSION=001
|
|
SUFFIX=edr
|
|
|
|
# none if no remote transfer should be done
|
|
TRANSFER_TYPE=sftp
|
|
TRANSFER_HOST=demo.sipwise.com
|
|
TRANSFER_PORT=22
|
|
TRANSFER_USER=cdrexport
|
|
TRANSFER_PASS=export!!!
|
|
TRANSFER_REMOTE=/home/jail/home/cdrexport
|
|
|
|
EXPORT_FIELDS = 'accounting.events.id', 'accounting.events.type', 'billing.contracts.external_id', 'billing.contacts.company', 'billing.voip_subscribers.external_id', 'voip_numbers_tmp.username', #'accounting.events.old_status', 'old_profile.name', #'accounting.events.new_status', 'new_profile.name', 'from_unixtime(accounting.events.timestamp)'
|
|
|
|
EXPORT_JOINS = { 'billing.voip_subscribers' => { 'billing.voip_subscribers.id' => 'accounting.events.subscriber_id' } }, { 'provisioning.voip_subscribers' => { 'provisioning.voip_subscribers.uuid' => 'billing.voip_subscribers.uuid' } }, { 'billing.contracts' => { 'billing.contracts.id' => 'billing.voip_subscribers.contract_id' } }, { 'billing.contacts' => { 'billing.contacts.id' => 'billing.contracts.contact_id' } }, { '(select * from provisioning.voip_dbaliases order by is_primary asc, id asc) as voip_numbers_tmp' => { 'provisioning.voip_subscribers.id' => 'voip_numbers_tmp.subscriber_id' } }, { 'provisioning.voip_subscriber_profiles as old_profile' => { 'old_profile.id' => 'accounting.events.old_status' } }, { 'provisioning.voip_subscriber_profiles as new_profile' => { 'new_profile.id' => 'accounting.events.new_status' } }
|
|
|
|
# important last comma if there is just one
|
|
EXPORT_CONDITIONS = { 'accounting.events.export_status' => { '=' => '"unexported"' } },
|