summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Laban <david.laban@collabora.co.uk>2010-12-07 17:45:57 +0000
committerDavid Laban <david.laban@collabora.co.uk>2011-01-26 17:16:33 +0000
commit744205d25b59848c56902a4fdfd7134d575f8794 (patch)
tree015b699b4309a0d751f125b870e771f3a8ba6c03
parent76cba776cacd54b3994a590e572b1a51c2217761 (diff)
Update the groups interface when remote user accepts the call.
-rw-r--r--src/sip-media-channel.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/sip-media-channel.c b/src/sip-media-channel.c
index 4f6f730..9aa1469 100644
--- a/src/sip-media-channel.c
+++ b/src/sip-media-channel.c
@@ -1403,7 +1403,25 @@ priv_nua_i_state_cb (TpsipMediaChannel *self,
TPSIP_CHANNEL_CALL_STATE_PROCEEDING_MASK);
if (status < 300)
- tpsip_media_session_accept (priv->session);
+ {
+ TpIntSet *set;
+
+ set = tp_intset_new ();
+ tp_intset_add (set, peer);
+
+ tp_group_mixin_change_members ((GObject *) self,
+ "",
+ set, /* add */
+ NULL, /* remove */
+ NULL,
+ NULL,
+ peer,
+ TP_CHANNEL_GROUP_CHANGE_REASON_NONE);
+
+ tp_intset_destroy (set);
+
+ tpsip_media_session_accept (priv->session);
+ }
else if (status == 491)
tpsip_media_session_resolve_glare (priv->session);
else