aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKeith Whyte <keith@rhizomatica.org>2020-08-28 13:36:58 +0200
committerKeith Whyte <keith@rhizomatica.org>2020-08-28 16:25:14 +0200
commit1587ffbc7b9fc8b7279c0069631cda030cefa8dd (patch)
treec06a45030cece6d13a0b4391a0384db19de79ee4 /include
parentc84702c571041dd523713e2b22178a1819517ea9 (diff)
vty: allow configuring db path from cfg file
So far, the cmdline argument was the only way to set a database file. Add a similar config to VTY as 'msc' / 'sms-database'. The cmdline arg is stronger than the 'database' cfg item. DB is not reloaded from VTY command. Change-Id: I18d954c30fcceb0b36a620b927fd3a93dcc79f49
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/msc/gsm_data.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmocom/msc/gsm_data.h b/include/osmocom/msc/gsm_data.h
index 2122d4b21..61fbc26de 100644
--- a/include/osmocom/msc/gsm_data.h
+++ b/include/osmocom/msc/gsm_data.h
@@ -30,6 +30,7 @@ struct vlr_instance;
struct vlr_subscr;
struct gsup_client_mux;
+#define SMS_DEFAULT_DB_FILE_PATH "sms.db"
#define tmsi_from_string(str) strtoul(str, NULL, 10)
enum {
@@ -259,6 +260,7 @@ struct gsm_network {
/* Whether to use call waiting on the network */
bool call_waiting;
+ char *sms_db_file_path;
};
struct osmo_esme;