aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2017-11-29 14:01:35 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2017-11-29 14:05:09 +0100
commit2e9ea50f7824e2028e44a27b72d5ae268cfc66f0 (patch)
tree041818ead287024197956b12f8220ac52e1ed3f0 /include/osmocom
parent291efcb590c136fc5ce0e0f54d6ecd2630e2f3e2 (diff)
Add vty cmd 'cdr trap' to send CDR through CTRL iface
Default behavior is to have them disabled, and can be explicitly disabled too by using 'no cdr trap' cmd. Tested with osmo_ctrl.py that messages are send successfully: TRAP 0 cdr-v1 20171129125950222,901700000015254,357737055592090,555,0,5,,pdp-periodic,2731,127.0.0.2,127.0.0.1,internet,176.16.222.3,20793,10045,1 Related: OS#2360 Change-Id: I1d144d87effd934d991257a65e19cf046a938907
Diffstat (limited to 'include/osmocom')
-rw-r--r--include/osmocom/sgsn/sgsn.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/osmocom/sgsn/sgsn.h b/include/osmocom/sgsn/sgsn.h
index 464a64fe0..7e0b5d477 100644
--- a/include/osmocom/sgsn/sgsn.h
+++ b/include/osmocom/sgsn/sgsn.h
@@ -52,6 +52,7 @@ enum sgsn_rate_ctr_keys {
struct sgsn_cdr {
char *filename;
+ bool trap;
int interval;
};