switch back to use the master branch of osmo_ss7
Add the missing ipa_ccm_options record to use the new api
Change-Id: I89ff055ed84e394d0f25bc6389d1f4d757f7b92b
diff --git a/rebar.config b/rebar.config
index 0803ccd..66db6b5 100644
--- a/rebar.config
+++ b/rebar.config
@@ -3,7 +3,7 @@
{deps, [
{setup, "2.0.2"},
{lager, {git, "https://github.com/erlang-lager/lager", {tag, "3.9.1"}}},
- {osmo_ss7, {git, "git://git.osmocom.org/erlang/osmo_ss7", {branch, "laforge/wip"}}},
+ {osmo_ss7, {git, "git://git.osmocom.org/erlang/osmo_ss7", {branch, "master"}}},
{osmo_gsup, {git, "git://git.osmocom.org/erlang/osmo_gsup", {branch, "master"}}}
]}.
diff --git a/src/gsup_client.erl b/src/gsup_client.erl
index 361864f..6a583e0 100644
--- a/src/gsup_client.erl
+++ b/src/gsup_client.erl
@@ -36,6 +36,7 @@
-behaviour(gen_server).
-include_lib("osmo_gsup/include/gsup_protocol.hrl").
+-include_lib("osmo_ss7/include/ipa.hrl").
-define(IPAC_PROTO_EXT_GSUP, {osmo, 5}).
@@ -65,8 +66,19 @@
% register the GSUP codec with the IPA core; ignore result as we mgiht be doing this multiple times
ipa_proto:register_codec(?IPAC_PROTO_EXT_GSUP, fun gsup_protocol:encode/1, fun gsup_protocol:decode/1),
lager:info("Connecting to GSUP HLR on IP ~s port ~p~n", [Address, Port]),
+ CcmOptions = #ipa_ccm_options{
+ serial_number="HSS-00-00-00-00-00-00",
+ unit_id="0/0/0",
+ mac_address="00:00:00:00:00:00",
+ location="00:00:00:00:00:00",
+ unit_type="00:00:00:00:00:00",
+ equipment_version="00:00:00:00:00:00",
+ sw_version="00:00:00:00:00:00",
+ unit_name="HSS-00-00-00-00-00-00"
+ },
case ipa_proto:connect(Address, Port, Options) of
{ok, {Socket, IpaPid}} ->
+ ipa_proto:set_ccm_options(Socket, CcmOptions),
lager:info("connected!~n", []),
true = ipa_proto:register_stream(Socket, ?IPAC_PROTO_EXT_GSUP, {process_id, self()}),
ipa_proto:unblock(Socket),