sip-origin: Use alerting state once ringing

Signed-off-by: Evangelos Ribeiro Tzaras <devrtz@fortysixandtwo.eu>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/804>
This commit is contained in:
Evangelos Ribeiro Tzaras
2025-11-06 03:38:19 +01:00
committed by Marge Bot
parent b4b56ad201
commit 978890f1ec

View File

@@ -572,7 +572,7 @@ sip_i_state (int status,
const sdp_session_t *r_sdp = NULL;
const sdp_session_t *l_sdp = NULL;
const char *r_sdp_str = NULL;
gint call_state = nua_callstate_init;
int call_state = nua_callstate_init;
CallsCallState state;
CallsSipCall *call;
int offer_sent = 0;
@@ -711,6 +711,13 @@ sip_i_state (int status,
state = CALLS_CALL_STATE_DIALING;
break;
case nua_callstate_proceeding:
if (status == 180)
state = CALLS_CALL_STATE_ALERTING;
else
state = CALLS_CALL_STATE_DIALING;
break;
case nua_callstate_received:
state = CALLS_CALL_STATE_INCOMING;
g_debug ("Call incoming");