Keith Whyte has uploaded this change for review. ( 
https://gerrit.osmocom.org/13320


Change subject: Write configuration correctly from vty (alert notifications)
......................................................................

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
---
M openbsc/src/libmsc/smpp_vty.c
1 file changed, 2 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/openbsc refs/changes/20/13320/1

diff --git a/openbsc/src/libmsc/smpp_vty.c b/openbsc/src/libmsc/smpp_vty.c
index f1df652..8647867 100644
--- a/openbsc/src/libmsc/smpp_vty.c
+++ b/openbsc/src/libmsc/smpp_vty.c
@@ -582,8 +582,8 @@
                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);

--
To view, visit https://gerrit.osmocom.org/13320
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4b0363fa34dd9ac0a221844974e4ebf7465b56f4
Gerrit-Change-Number: 13320
Gerrit-PatchSet: 1
Gerrit-Owner: Keith Whyte <ke...@rhizomatica.org>

Reply via email to