pespin has uploaded this change for review.

View Change

gsup_server: Log rx of all GSUP messages

Change-Id: I348e20f65e8bdb713819256615a84292ed4e9833
---
M src/gsup_server.erl
1 file changed, 12 insertions(+), 1 deletion(-)

git pull ssh://gerrit.osmocom.org:29418/erlang/osmo-epdg refs/changes/50/36050/1
diff --git a/src/gsup_server.erl b/src/gsup_server.erl
index 6bb98ee..0af015c 100644
--- a/src/gsup_server.erl
+++ b/src/gsup_server.erl
@@ -228,6 +228,7 @@

% send auth info / requesting authentication tuples
handle_info({ipa, Socket, ?IPAC_PROTO_EXT_GSUP, GsupMsgRx = #{message_type := send_auth_info_req, imsi := Imsi}}, State0) ->
+ lager:info("GSUP: Rx ~p~n", [GsupMsgRx]),
case maps:find(pdp_info_list, GsupMsgRx) of
{ok, [PdpInfo]} ->
#{pdp_context_id := _PDPCtxId,
@@ -258,7 +259,8 @@

% location update request / when a UE wants to connect to a specific APN. This will trigger a AAA->HLR Request Server Assignment Request
% FIXME: add APN instead of hardcoded internet
-handle_info({ipa, Socket, ?IPAC_PROTO_EXT_GSUP, _GsupMsgRx = #{message_type := location_upd_req, imsi := Imsi}}, State) ->
+handle_info({ipa, Socket, ?IPAC_PROTO_EXT_GSUP, GsupMsgRx = #{message_type := location_upd_req, imsi := Imsi}}, State) ->
+ lager:info("GSUP: Rx ~p~n", [GsupMsgRx]),
UE = find_gsups_ue_by_imsi(Imsi, State),
case UE of
#gsups_ue{imsi = Imsi} ->

To view, visit change 36050. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: erlang/osmo-epdg
Gerrit-Branch: master
Gerrit-Change-Id: I348e20f65e8bdb713819256615a84292ed4e9833
Gerrit-Change-Number: 36050
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin@sysmocom.de>
Gerrit-MessageType: newchange