SCOC: We already assigned the local reference in SCRC
diff --git a/src/sccp_scoc.erl b/src/sccp_scoc.erl
index f726eb2..b6354c2 100644
--- a/src/sccp_scoc.erl
+++ b/src/sccp_scoc.erl
@@ -122,13 +122,12 @@
% N-CONNECT.req from user
idle(#primitive{subsystem = 'N', gen_name = 'CONNECT',
spec_name = request, parameters = Param}, LoopDat) ->
- % assign local reference and SLS
- % determine protocol class and credit
- LoopDat1 = LoopDat#state{local_reference = make_ref(), class = 2},
- gen_fsm:send_event(LoopDat1#state.scrc_pid,
+ % local reference already assigned in SCRC when instantiating this SCOC
+ % FIXME: determine protocol class and credit
+ gen_fsm:send_event(LoopDat#state.scrc_pid,
osmo_util:make_prim('OCRC','CONNECTION', indication, Param)),
% start connection timer
- {next_state, conn_pend_out, LoopDat1, ?CONNECTION_TIMER};
+ {next_state, conn_pend_out, LoopDat, ?CONNECTION_TIMER};
% RCOC-CONNECTION.req from SCRC
idle(#primitive{subsystem = 'RCOC', gen_name = 'CONNECTION',