SCRC: Forward incoming connection oriented msgs via RCOC-CONNECTION.ind to SCOC
diff --git a/src/sccp_scrc.erl b/src/sccp_scrc.erl
index c635418..c8db1cd 100644
--- a/src/sccp_scrc.erl
+++ b/src/sccp_scrc.erl
@@ -107,12 +107,13 @@
% connection oriented messages need to go via SCOC instance
#sccp_msg{parameters = Opts} = Msg,
LocalRef = proplists:get_value(dst_local_ref, Opts),
+ UserPrim = sccp_scoc:make_prim('RCOC', 'CONNECTION-MSG', indication, Msg),
case LocalRef of
undefined ->
% FIXME: send SCCP_MSGT_ERR
io:format("Conn-Msg to undefined ref ~p~n", [Msg]);
_ ->
- tx_prim_to_local_ref(Prim, LocalRef)
+ tx_prim_to_local_ref(UserPrim, LocalRef)
end
end,
LoopDat1 = LoopDat