MTP2 IAC: ignore SIOS in not_aligned state

This commit is contained in:
Harald Welte 2012-01-19 22:30:17 +01:00
parent 99efaf9578
commit 4d08a71c98
1 changed files with 4 additions and 0 deletions

View File

@ -146,6 +146,10 @@ not_aligned(What, LoopDat) when What == si_o; What == si_n ->
not_aligned(emergency, LoopDat) ->
% mark emergency
{next_state, not_aligned, LoopDat#iac_state{emergency=1}};
not_aligned(si_os, LoopDat) ->
% ignore SIOS in this state, as some implementations (notably
% yate) seem to send it in violation of the spec
{next_state, not_aligned, LoopDat};
not_aligned({timer_expired, t2}, LoopDat) ->
% send 'alignment not possible' to LSC
send_to_lsc(alignment_not_possible, LoopDat),