path: root/src/hnbgw_rua.c
diff options
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-07-31 13:13:24 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-08-09 15:30:14 +0200
commitecbdc5cb06ef7f61c6f4cdb4e1fd84a05ec0407d (patch)
treed37d0f16ebc34830066550a29afd1e3c62e6471e /src/hnbgw_rua.c
parent5e0292a6412a04eeed9e0aff3f56bd8d4f353346 (diff)
make point codes configurable by SCCP address book
In the vty config, use the SCCP address book to configure the local and remote SCCP addresses. Add VTY commands to set the remote SCCP addresses by name, derive the ss7 instance from these addresses: cs7 instance 1 point-code 0.23.0 sccp-address msc point-code 0.0.1 sccp-address sgsn point-code 0.0.2 hnbgw iucs remote-addr msc iups remote-addr sgsn Enforce that both IuCS and IuPS use the same ss7 instance. In the future, we may add the feature to use two separate instances. Depends: libosmo-sccp I75c67d289693f1c2a049ac61cf2b2097d6e5687d, Ie1aedd7894acd69ddc887cd65a8a0df4b888838c, I85b46269dbe7909e52873ace3f720f6292a4516c Change-Id: I33a7ba11eb7c2d9a5dc74d10fb0cf04bf664477b
Diffstat (limited to 'src/hnbgw_rua.c')
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hnbgw_rua.c b/src/hnbgw_rua.c
index b610437..95979f5 100644
--- a/src/hnbgw_rua.c
+++ b/src/hnbgw_rua.c
@@ -188,11 +188,11 @@ static int rua_to_scu(struct hnb_context *hnb,
switch (cN_DomainIndicator) {
case RUA_CN_DomainIndicator_cs_domain:
- remote_addr = &hnb->gw->sccp.remote_addr_cs;
+ remote_addr = &hnb->gw->sccp.iucs_remote_addr;
is_ps = false;
case RUA_CN_DomainIndicator_ps_domain:
- remote_addr = &hnb->gw->sccp.remote_addr_ps;
+ remote_addr = &hnb->gw->sccp.iups_remote_addr;
is_ps = true;