diff options
author | Keith Whyte <keith@rhizomatica.org> | 2020-08-28 13:36:58 +0200 |
---|---|---|
committer | Keith Whyte <keith@rhizomatica.org> | 2020-08-28 16:25:14 +0200 |
commit | 1587ffbc7b9fc8b7279c0069631cda030cefa8dd (patch) | |
tree | c06a45030cece6d13a0b4391a0384db19de79ee4 /src/libmsc/msc_net_init.c | |
parent | c84702c571041dd523713e2b22178a1819517ea9 (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 'src/libmsc/msc_net_init.c')
-rw-r--r-- | src/libmsc/msc_net_init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libmsc/msc_net_init.c b/src/libmsc/msc_net_init.c index adb9ca74f..774c7678f 100644 --- a/src/libmsc/msc_net_init.c +++ b/src/libmsc/msc_net_init.c @@ -61,6 +61,8 @@ struct gsm_network *gsm_network_init(void *ctx, mncc_recv_cb_t mncc_recv) if (!net) return NULL; + net->sms_db_file_path = talloc_strdup(net, SMS_DEFAULT_DB_FILE_PATH); + net->plmn = (struct osmo_plmn_id){ .mcc=1, .mnc=1 }; /* Permit a compile-time default of A5/3 and A5/1 */ |