SCRC: Forward incoming connection oriented msgs via RCOC-CONNECTION.ind to SCOC

This commit is contained in:
Harald Welte 2010-12-20 12:44:15 +01:00
parent fba08e471e
commit 9a8f50bbfa
1 changed files with 2 additions and 1 deletions

View File

@ -107,12 +107,13 @@ idle(Prim = #primitive{subsystem = 'MTP', gen_name = 'TRANSFER',
% 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