diff options
author | Harald Welte <laforge@osmocom.org> | 2022-05-17 12:06:58 +0200 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2022-05-17 14:47:34 +0200 |
commit | 52c0ef934cee215a0b4199e8a21a79d93705ff24 (patch) | |
tree | 8f1fea950b5b6117fe0ac57c14bb9733e20ddf2f /src/libmsc/sms_queue.c | |
parent | d302bb11face7f2c0d326de1024ed00768851195 (diff) |
sms: Give smsc its own VTY
The pre-historic sms_queue code used to have very strange aspects,
such as having some parameters (max-failure, max-pending) which could
only be sent from the 'enable' node, but not from a config file.
Before adding more configuration parameters, let's clean this up by
introducing a proper VTY config node for the 'smsc'; move the existing
config commands there and add new ones for max-failure and max-pending.
As the sms_queue data structure is only allocated after the config file
parsing happens, we are introducing a new 'sms_queue_config' data
structure. This encapsulates the public readable/writable config
parameters.
Change-Id: Ie8e0ab1a9f979337ff06544b9ab3820954d9804a
Diffstat (limited to 'src/libmsc/sms_queue.c')
-rw-r--r-- | src/libmsc/sms_queue.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/libmsc/sms_queue.c b/src/libmsc/sms_queue.c index e0433ee22..a47f8e0c7 100644 --- a/src/libmsc/sms_queue.c +++ b/src/libmsc/sms_queue.c @@ -672,22 +672,6 @@ int sms_queue_stats(struct gsm_sms_queue *smsq, struct vty *vty) return 0; } -int sms_queue_set_max_pending(struct gsm_sms_queue *smsq, int max_pending) -{ - LOGP(DLSMS, LOGL_NOTICE, "SMSqueue old max: %d new: %d\n", - smsq->cfg->max_pending, max_pending); - smsq->cfg->max_pending = max_pending; - return 0; -} - -int sms_queue_set_max_failure(struct gsm_sms_queue *smsq, int max_fail) -{ - LOGP(DLSMS, LOGL_NOTICE, "SMSqueue max failure old: %d new: %d\n", - smsq->cfg->max_fail, max_fail); - smsq->cfg->max_fail = max_fail; - return 0; -} - int sms_queue_clear(struct gsm_sms_queue *smsq) { struct gsm_sms_pending *pending, *tmp; |