summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-07-27 13:53:03 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-08-09 13:54:44 +0200
commite634a6f3251cf556ca8d1466b044775e44a48a79 (patch)
tree9487bfabbd6f1e655a66bf22cf68cddd00456dc0
parent037d46abc181d5a763f2171a5e08154eb163fd0c (diff)
sccp-addr vty: set RI to SSN_PC when setting a point-code
-rw-r--r--src/osmo_ss7_vty.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/osmo_ss7_vty.c b/src/osmo_ss7_vty.c
index b70f892..21efcae 100644
--- a/src/osmo_ss7_vty.c
+++ b/src/osmo_ss7_vty.c
@@ -1300,6 +1300,8 @@ DEFUN(cs7_sccpaddr_pc, cs7_sccpaddr_pc_cmd,
entry->addr.presence |= OSMO_SCCP_ADDR_T_PC;
entry->addr.pc = pc;
+ if (entry->addr.ri == OSMO_SCCP_RI_NONE)
+ entry->addr.ri = OSMO_SCCP_RI_SSN_PC;
return CMD_SUCCESS;
}