From 9267123b882d1e35a4cb6a3bf746d33c4e84c8ce Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Sat, 4 Mar 2017 03:15:53 +0100 Subject: 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 --- openbsc/tests/vlr/vlr_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbsc/tests/vlr/vlr_test.c') diff --git a/openbsc/tests/vlr/vlr_test.c b/openbsc/tests/vlr/vlr_test.c index 5433e3e41..055b0432f 100644 --- a/openbsc/tests/vlr/vlr_test.c +++ b/openbsc/tests/vlr/vlr_test.c @@ -671,7 +671,7 @@ int main(int argc, char **argv) osmo_init_logging(&log_info); g_vlr = vlr_alloc(NULL, &test_vlr_ops); - vlr_start(g_vlr, "localhost", 2222); + vlr_start("VLRTEST", g_vlr, "localhost", 2222); OSMO_ASSERT(g_vlr); osmo_fsm_register(&vlr_test_fsm); osmo_fsm_register(&test_sub_pres_vlr_fsm); -- cgit v1.2.3