Compare commits
4 Commits
ce2299d176
...
7bf413c2a0
Author | SHA1 | Date |
---|---|---|
|
7bf413c2a0 | |
|
ff57ae27ff | |
|
859807eb7f | |
|
0d09d1e568 |
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh -ex
|
#!/bin/sh -ex
|
||||||
|
|
||||||
rebar3 compile
|
make clean || true
|
||||||
rebar3 escriptize
|
make
|
||||||
rebar3 eunit
|
make check
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
{osmo_gsup, {git, "https://gerrit.osmocom.org/erlang/osmo_gsup", {branch, "osmocom/epdg"}}}
|
{osmo_gsup, {git, "https://gerrit.osmocom.org/erlang/osmo_gsup", {branch, "osmocom/epdg"}}}
|
||||||
]}.
|
]}.
|
||||||
|
|
||||||
{minimum_otp_vsn, "20.3"}.
|
{minimum_otp_vsn, "25.2.3"}.
|
||||||
{plugins, [
|
{plugins, [
|
||||||
{rebar3_diameter_compiler,
|
{rebar3_diameter_compiler,
|
||||||
{git, "https://github.com/carlosedp/rebar3_diameter_compiler.git", {tag, "0.8.0"}}}
|
{git, "https://github.com/carlosedp/rebar3_diameter_compiler.git", {tag, "0.8.0"}}}
|
||||||
|
|
|
@ -40,6 +40,7 @@
|
||||||
|
|
||||||
-behaviour(gen_server).
|
-behaviour(gen_server).
|
||||||
|
|
||||||
|
-include_lib("eunit/include/eunit.hrl").
|
||||||
-include_lib("diameter/include/diameter_gen_base_rfc6733.hrl").
|
-include_lib("diameter/include/diameter_gen_base_rfc6733.hrl").
|
||||||
-include_lib("diameter_3gpp_ts29_273_s6b.hrl").
|
-include_lib("diameter_3gpp_ts29_273_s6b.hrl").
|
||||||
|
|
||||||
|
@ -221,3 +222,17 @@ diameter_call(Msg, State) ->
|
||||||
diameter:call(?SVC_NAME, ?APP_ALIAS, Msg, [{timeout, State#s6b_state.tx_timeout},
|
diameter:call(?SVC_NAME, ?APP_ALIAS, Msg, [{timeout, State#s6b_state.tx_timeout},
|
||||||
detach]).
|
detach]).
|
||||||
|
|
||||||
|
|
||||||
|
%% TESTING:
|
||||||
|
reverse_test() ->
|
||||||
|
State = #s6b_state{tx_timeout = 10000},
|
||||||
|
Imsi = "262422638508077",
|
||||||
|
SessionId = diameter:session_id(application:get_env(?ENV_APP_NAME, dia_s6b_origin_host, ?ENV_DEFAULT_ORIG_HOST)),
|
||||||
|
ASR = #'ASR'{'Session-Id' = SessionId,
|
||||||
|
'Auth-Application-Id' = ?DIAMETER_APP_ID_S6b,
|
||||||
|
'User-Name' = Imsi,
|
||||||
|
'Auth-Session-State' = ?'AUTH-SESSION-STATE_NO_STATE_MAINTAINED'
|
||||||
|
},
|
||||||
|
lager:debug("S6b Tx ASR: ~p~n", [ASR]),
|
||||||
|
Ret = diameter_call(ASR, State),
|
||||||
|
ok = Ret.
|
Loading…
Reference in New Issue