Merge "Add a CDR log file"

This commit is contained in:
Jenkins 2013-08-01 18:03:09 +00:00 committed by Gerrit Code Review
commit ada5c9a8e3
3 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,3 @@
[general](+)
enable=yes

View File

@ -0,0 +1,3 @@
[mappings](+)
Master.csv => ${CSV_QUOTE(${CDR(clid)})},${CSV_QUOTE(${CDR(src)})},${CSV_QUOTE(${CDR(dst)})},${CSV_QUOTE(${CDR(dcontext)})},${CSV_QUOTE(${CDR(channel)})},${CSV_QUOTE(${CDR(dstchannel)})},${CSV_QUOTE(${CDR(lastapp)})},${CSV_QUOTE(${CDR(lastdata)})},${CSV_QUOTE(${CDR(start)})},${CSV_QUOTE(${CDR(answer)})},${CSV_QUOTE(${CDR(end)})},${CSV_QUOTE(${CDR(duration)})},${CSV_QUOTE(${CDR(billsec)})},${CSV_QUOTE(${CDR(disposition)})},${CSV_QUOTE(${CDR(amaflags)})},${CSV_QUOTE(${CDR(accountcode)})},${CSV_QUOTE(${CDR(uniqueid)})},${CSV_QUOTE(${CDR(userfield)})},${CDR(sequence)}

View File

@ -60,4 +60,22 @@ class openstack_project::pbx (
source => 'puppet:///modules/openstack_project/pbx/asterisk/extensions.conf',
require => File['/etc/asterisk/'],
}
file {'/etc/asterisk/cdr.conf.d/cdr.conf':
ensure => present,
owner => 'asterisk',
group => 'asterisk',
mode => '0660',
source => 'puppet:///modules/openstack_project/pbx/asterisk/cdr.conf',
require => File['/etc/asterisk/'],
}
file {'/etc/asterisk/cdr_custom.conf.d/cdr_custom.conf':
ensure => present,
owner => 'asterisk',
group => 'asterisk',
mode => '0660',
source => 'puppet:///modules/openstack_project/pbx/asterisk/cdr_custom.conf',
require => File['/etc/asterisk/'],
}
}