From b92589a1a2731911ea551e4ba729794145806419 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Fri, 8 Nov 2019 15:07:42 +0100 Subject: ss7: Set ASP default remote addr to 127.0.0.1 if none set in VTY Similar to what we do with local address. Should fix creating the stream when no remote address is provided on an ASP configured through VTY. Related: OS#4260 Change-Id: I33672e76a51a5d5a483906749d30e4c4e08b66ce --- src/osmo_ss7_vty.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/osmo_ss7_vty.c b/src/osmo_ss7_vty.c index 35640df..1a246db 100644 --- a/src/osmo_ss7_vty.c +++ b/src/osmo_ss7_vty.c @@ -1775,6 +1775,11 @@ int osmo_ss7_vty_go_parent(struct vty *vty) asp->cfg.local.host[0] = NULL; asp->cfg.local.host_cnt = 1; } + /* If no remote addr was set */ + if (!asp->cfg.remote.host_cnt) { + asp->cfg.remote.host[0] = "127.0.0.1"; + asp->cfg.remote.host_cnt = 1; + } osmo_ss7_asp_restart(asp); vty->node = L_CS7_NODE; vty->index = asp->inst; -- cgit v1.2.3