aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libmsc
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-03-04 03:15:53 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-03-09 17:10:20 +0100
commitc9a8c3892a6bdf88ec251927ff5b955d9bf6cfa5 (patch)
tree1426767fced6875b653a96eb4584ba0eb26e9392 /openbsc/src/libmsc
parent8aef30f24c63eccea440639c1225ab001beeebd1 (diff)
gsup_client: allow passing a unit id to identify with HLR
Before, each GSUP client would contact the HLR with an identical unit id, i.e. "SGSN-00-00-00-00-00-00", with the result that some messages were sucked off by the wrong client. Pass explicit unit name from each gsup client user, so that OsmoMSC is "MSC" and OsmoSGSN is "SGSN". Hence the HLR can properly route the messages. Todo: also set some values instead of the zeros. Change-Id: I3f8d6dd47c7013920e2a4bde006ed77afd974e80
Diffstat (limited to 'openbsc/src/libmsc')
-rw-r--r--openbsc/src/libmsc/gsm_04_08.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/libmsc/gsm_04_08.c b/openbsc/src/libmsc/gsm_04_08.c
index 8c2e835ce..92760cdef 100644
--- a/openbsc/src/libmsc/gsm_04_08.c
+++ b/openbsc/src/libmsc/gsm_04_08.c
@@ -3880,7 +3880,7 @@ int msc_vlr_alloc(struct gsm_network *net)
int msc_vlr_start(struct gsm_network *net)
{
OSMO_ASSERT(net->vlr);
- return vlr_start(net->vlr, net->gsup_server_addr_str,
+ return vlr_start("MSC", net->vlr, net->gsup_server_addr_str,
net->gsup_server_port);
}