call_leg: silence some false errors

"[ESTABLISHED] transition to state ESTABLISHED not permitted"

i.e. don't complain when we already are in the established state.

Change-Id: I9b1fd63ed1ee7ed2877a4b2059386354598f4ea4
This commit is contained in:
Neels Hofmeyr 2023-11-23 00:05:32 +01:00
parent ed226ed6e6
commit d7d3eced56
1 changed files with 2 additions and 1 deletions

View File

@ -158,7 +158,8 @@ static void call_leg_fsm_establishing_established(struct osmo_fsm_inst *fi, uint
}
if (!established)
break;
call_leg_state_chg(cl, CALL_LEG_ST_ESTABLISHED);
if (cl->fi->state != CALL_LEG_ST_ESTABLISHED)
call_leg_state_chg(cl, CALL_LEG_ST_ESTABLISHED);
break;
case CALL_LEG_EV_RTP_STREAM_ADDR_AVAILABLE: