diff options
author | Mikhail Zabaluev <mikhail.zabaluev@nokia.com> | 2010-03-12 17:08:14 +0200 |
---|---|---|
committer | Mikhail Zabaluev <mikhail.zabaluev@nokia.com> | 2010-03-12 17:08:41 +0200 |
commit | 64d5e8bb608a37a22072466960afaad3d61bf66e (patch) | |
tree | e92f9072d4bd0604a4dd7f9ec2ad6f1c840a1f1a | |
parent | 8f09f71527095bee0dba946feab5e09d97ee134c (diff) |
Avoid emitting "incoming-call" on re-INVITES
-rw-r--r-- | src/sip-media-channel.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sip-media-channel.c b/src/sip-media-channel.c index 6414e24..2177f63 100644 --- a/src/sip-media-channel.c +++ b/src/sip-media-channel.c @@ -1353,6 +1353,9 @@ priv_nua_i_state_cb (TpsipMediaChannel *self, switch ((enum nua_callstate)ss_state) { case nua_callstate_received: + if (tpsip_media_session_get_state (priv->session) + != TPSIP_MEDIA_SESSION_STATE_INVITE_RECEIVED) + break; if (r_sdp != NULL) priv_initial_media_properties_from_sdp (self, r_sdp); g_signal_emit (self, signals[SIG_INCOMING_CALL], 0); |