summaryrefslogtreecommitdiff
path: root/src/call-stream.c
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2011-12-23 11:54:22 -0500
committerXavier Claessens <xavier.claessens@collabora.co.uk>2012-01-11 09:53:39 +0100
commita8c774fcd09e4298ade48982112ac0cc69b89321 (patch)
tree3e7024e2849cbb382c76b42da67c7ac78905a85a /src/call-stream.c
parent10d618e5098ec0b5a8baada8c1dec67428382797 (diff)
downloadtelepathy-gabble-a8c774fcd09e4298ade48982112ac0cc69b89321.tar.gz
Export the ICE credentials from the transport to the stream
Diffstat (limited to 'src/call-stream.c')
-rw-r--r--src/call-stream.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/call-stream.c b/src/call-stream.c
index 2c310d8fa..dade2b2a6 100644
--- a/src/call-stream.c
+++ b/src/call-stream.c
@@ -225,10 +225,14 @@ _new_candidates_cb (
TpCallStreamEndpoint *endpoint)
{
GPtrArray *tp_candidates;
+ gchar *ufrag, *pwd;
if (candidates == NULL)
return;
+ if (gabble_jingle_content_get_credentials (content, &ufrag, &pwd))
+ tp_call_stream_endpoint_set_remote_credentials (endpoint, ufrag, pwd);
+
tp_candidates = gabble_call_candidates_to_array (candidates);
tp_call_stream_endpoint_add_new_candidates (endpoint, tp_candidates);
g_boxed_free (TP_ARRAY_TYPE_CANDIDATE_LIST, tp_candidates);
@@ -259,6 +263,7 @@ _hook_up_endpoint (GabbleCallStream *self,
TpStreamTransportType type = 0;
GPtrArray *tp_candidates;
GList *candidates;
+ gchar *ufrag, *pwd;
switch (gabble_jingle_content_get_transport_type (content))
{
@@ -279,6 +284,8 @@ _hook_up_endpoint (GabbleCallStream *self,
/* FIXME: ice??? */
endpoint = tp_call_stream_endpoint_new (bus, path, type, FALSE);
+ if (gabble_jingle_content_get_credentials (content, &ufrag, &pwd))
+ tp_call_stream_endpoint_set_remote_credentials (endpoint, ufrag, pwd);
candidates = gabble_jingle_content_get_remote_candidates (content);
tp_candidates = gabble_call_candidates_to_array (candidates);
tp_call_stream_endpoint_add_new_candidates (endpoint, tp_candidates);