diff options
author | Keith <keith@rhizomatica.org> | 2019-03-19 15:07:47 +0100 |
---|---|---|
committer | Keith Whyte <keith@rhizomatica.org> | 2019-03-29 18:58:21 +0000 |
commit | d6be5303546a2a383b76485ef19bf623688edb65 (patch) | |
tree | 59516bcace1e51688607302df192da2e19992e53 /openbsc/src | |
parent | 2bd3ba632e90a5d68bc09e41a4983940e04cd232 (diff) |
Write configuration correctly from vty (alert notifications)
The default is [yes] alert-notifications, therefore write
"no alert-notifications" in the case that this has
been set, in order to preserve configuration after
write is called from vty.
Change-Id: I4b0363fa34dd9ac0a221844974e4ebf7465b56f4
Diffstat (limited to 'openbsc/src')
-rw-r--r-- | openbsc/src/libmsc/smpp_vty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/libmsc/smpp_vty.c b/openbsc/src/libmsc/smpp_vty.c index f1df6527a..86478674e 100644 --- a/openbsc/src/libmsc/smpp_vty.c +++ b/openbsc/src/libmsc/smpp_vty.c @@ -582,8 +582,8 @@ static void config_write_esme_single(struct vty *vty, struct osmo_smpp_acl *acl) vty_out(vty, " osmocom-extensions%s", VTY_NEWLINE); if (acl->dcs_transparent) vty_out(vty, " dcs-transparent%s", VTY_NEWLINE); - if (acl->alert_notifications) - vty_out(vty, " alert-notifications%s", VTY_NEWLINE); + if (!acl->alert_notifications) + vty_out(vty, " no alert-notifications%s", VTY_NEWLINE); llist_for_each_entry(r, &acl->route_list, list) write_esme_route_single(vty, r); |