sctp_m2ua: ignore ASP-UP.ind in case of passive/listen mode

This commit is contained in:
Harald Welte 2013-07-27 15:08:53 +08:00
parent a540950cfb
commit 4540ecdad7
1 changed files with 5 additions and 1 deletions

View File

@ -74,12 +74,16 @@ prim_up(#primitive{subsystem='M', gen_name = 'SCTP_ESTABLISH', spec_name = confi
{ignore, LoopDat};
prim_up(#primitive{subsystem='M', gen_name = 'SCTP_ESTABLISH', spec_name = indication}, State, LoopDat) ->
% indication in case of passive/listen mode
Asp = LoopDat#m2ua_state.asp_pid,
{ignore, LoopDat};
prim_up(#primitive{subsystem='M', gen_name = 'ASP_UP', spec_name = confirm}, State, LoopDat) ->
% confirmation in case of active/connect mode
Asp = LoopDat#m2ua_state.asp_pid,
gen_fsm:send_event(Asp, osmo_util:make_prim('M','ASP_ACTIVE',request)),
{ignore, LoopDat};
prim_up(#primitive{subsystem='M', gen_name = 'ASP_UP', spec_name = indication}, State, LoopDat) ->
% indication in case of passive/listen mode
{ignore, LoopDat};
prim_up(Prim, State, LoopDat) ->
% default: forward all primitives to the user
{ok, Prim, LoopDat}.