Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Feed
openwrt-telephony
Commits
a8a8131b
Commit
a8a8131b
authored
Aug 24, 2021
by
Wenpeng Song
Committed by
Yalu Zhang
Aug 24, 2021
Browse files
add uci config for cdr csv rotate
parent
531f0f69
Changes
3
Hide whitespace changes
Inline
Side-by-side
net/asterisk/files/iopsys/etc/asterisk/cdr.conf
View file @
a8a8131b
...
...
@@ -9,3 +9,4 @@ usegmtime=no ; log date/time in GMT. Default is "no"
loguniqueid
=
yes
;
log
uniqueid
.
Default
is
"no"
loguserfield
=
yes
;
log
user
field
.
Default
is
"no"
accountlogs
=
no
;
create
separate
log
file
for
each
account
code
.
Default
is
"yes"
maxrow
=|
MAXROW
| ;
max
row
stored
in
master
.
csv
.
Default
is
100
.
net/asterisk/files/iopsys/etc/config/asterisk
View file @
a8a8131b
...
...
@@ -150,6 +150,9 @@ config log 'log_options'
option syslog_facility 'local0'
option syslog ''
config cdr 'cdr_options'
option csv_max_row '100'
config call_filter 'call_filter0'
option block_outgoing '0'
option block_incoming '0'
...
...
net/asterisk/files/iopsys/lib/voice/config_asterisk.sh
View file @
a8a8131b
...
...
@@ -620,6 +620,16 @@ configure_queue() {
}
configure_cdr
()
{
local
csv_max_row
config_get csv_max_row cdr_options csv_max_row
if
[
-z
"
$csv_max_row
"
]
;
then
csv_max_row
=
"100"
fi
sed
-i
"s/|MAXROW|/
$csv_max_row
/"
$WORK_DIR
/cdr.conf
mkdir
-p
/var/log/asterisk/cdr-csv
touch
/var/log/asterisk/cdr-csv/Master.csv
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment