Compare commits
4 Commits
ce2299d176
...
7bf413c2a0
Author | SHA1 | Date |
---|---|---|
Pau Espin | 7bf413c2a0 | |
Pau Espin | ff57ae27ff | |
Pau Espin | 859807eb7f | |
Pau Espin | 0d09d1e568 |
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh -ex
|
||||
|
||||
rebar3 compile
|
||||
rebar3 escriptize
|
||||
rebar3 eunit
|
||||
make clean || true
|
||||
make
|
||||
make check
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
{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, [
|
||||
{rebar3_diameter_compiler,
|
||||
{git, "https://github.com/carlosedp/rebar3_diameter_compiler.git", {tag, "0.8.0"}}}
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
|
||||
-behaviour(gen_server).
|
||||
|
||||
-include_lib("eunit/include/eunit.hrl").
|
||||
-include_lib("diameter/include/diameter_gen_base_rfc6733.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},
|
||||
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