aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2023-11-23 00:05:32 +0100
committerKeith Whyte <keith@rhizomatica.org>2023-11-29 23:54:56 +0000
commit537a1b2767c63cc26752dceae0255371cb516868 (patch)
tree8027f507e9afd875e79eed209801bccc7f3e446d
parent0d640d926687e55e1099e4cb7745c2717e19317e (diff)
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
-rw-r--r--src/libmsc/call_leg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libmsc/call_leg.c b/src/libmsc/call_leg.c
index b79732245..5720417b6 100644
--- a/src/libmsc/call_leg.c
+++ b/src/libmsc/call_leg.c
@@ -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: