diff --git a/plugins/provider/sip/calls-sip-origin.c b/plugins/provider/sip/calls-sip-origin.c index 39a01af..a82ef7d 100644 --- a/plugins/provider/sip/calls-sip-origin.c +++ b/plugins/provider/sip/calls-sip-origin.c @@ -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");