aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/osmo_ss7_vty.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/osmo_ss7_vty.c b/src/osmo_ss7_vty.c
index 35ee5cd..ec387a9 100644
--- a/src/osmo_ss7_vty.c
+++ b/src/osmo_ss7_vty.c
@@ -864,6 +864,12 @@ static int _rout_key(struct vty *vty,
struct osmo_ss7_routing_key *rkey = &as->cfg.routing_key;
int pc;
+ if (as->cfg.proto == OSMO_SS7_ASP_PROT_IPA && atoi(rcontext) != 0) {
+ vty_out(vty, "IPA doesn't suppor routing contexts; only permitted routing context "
+ "is 0\n");
+ return CMD_WARNING;
+ }
+
pc = osmo_ss7_pointcode_parse(as->inst, dpc);
if (pc < 0) {
vty_out(vty, "Invalid point code (%s)%s", dpc, VTY_NEWLINE);