[telepathy-sofiasip/master] Signal the call state In_Progress on response 183 Session Progress
Mikhail Zabaluev
mikhail.zabaluev at nokia.com
Tue Nov 3 05:11:26 PST 2009
This is the proper fix for the early media case. Before,
we could only pretend that the call state is Ringing.
---
src/sip-media-channel.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/sip-media-channel.c b/src/sip-media-channel.c
index 3bcfbf5..aaa9f10 100644
--- a/src/sip-media-channel.c
+++ b/src/sip-media-channel.c
@@ -1180,7 +1180,6 @@ priv_nua_i_state_cb (TpsipMediaChannel *self,
switch (status)
{
case 180:
- case 183: /* FIXME: use state IN_PROGRESS when we get it from the spec */
tpsip_media_channel_change_call_state (self, peer,
TP_CHANNEL_CALL_STATE_RINGING, 0);
break;
@@ -1188,6 +1187,10 @@ priv_nua_i_state_cb (TpsipMediaChannel *self,
tpsip_media_channel_change_call_state (self, peer,
TP_CHANNEL_CALL_STATE_QUEUED, 0);
break;
+ case 183:
+ tpsip_media_channel_change_call_state (self, peer,
+ TP_CHANNEL_CALL_STATE_IN_PROGRESS, 0);
+ break;
}
break;
--
1.5.6.5
More information about the telepathy-commits
mailing list