diff options
author | Keith <keith@rhizomatica.org> | 2019-03-19 15:14:19 +0100 |
---|---|---|
committer | Keith Whyte <keith@rhizomatica.org> | 2019-03-29 22:48:38 +0000 |
commit | 18f1138a6d2298977f30d907d5cd9b512523cfe1 (patch) | |
tree | 76ca00fa26d46c33550ff8059617a1fc7fdd73ce /src | |
parent | 81635d3400f9837ecd6dcf3b512de50bf6aee9f2 (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: I079aea96ee83fbf04f782dcab344d41a4ef04657
Diffstat (limited to 'src')
-rw-r--r-- | src/libmsc/smpp_vty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libmsc/smpp_vty.c b/src/libmsc/smpp_vty.c index 4c179d429..9026f6cf5 100644 --- a/src/libmsc/smpp_vty.c +++ b/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); |