Add a CDR log file
It may be useful to have a consumable log of every call the system has processed. This enables a simple CSV based file for CDRs (Call Detail Records). Change-Id: I2086594a127e1377056fdb10af763ade3af4ad56
This commit is contained in:
parent
7de0819e3d
commit
f94b32a42f
3
modules/openstack_project/files/pbx/asterisk/cdr.conf
Normal file
3
modules/openstack_project/files/pbx/asterisk/cdr.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[general](+)
|
||||||
|
|
||||||
|
enable=yes
|
@ -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)}
|
@ -59,4 +59,22 @@ class openstack_project::pbx (
|
|||||||
source => 'puppet:///modules/openstack_project/pbx/asterisk/extensions.conf',
|
source => 'puppet:///modules/openstack_project/pbx/asterisk/extensions.conf',
|
||||||
require => File['/etc/asterisk/'],
|
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/'],
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user