From dcd82d6c83493381e572871cd30bbb82c27d047f Mon Sep 17 00:00:00 2001 From: Fabrice Bellet Date: Wed, 13 Jan 2016 15:16:07 +0100 Subject: [PATCH] call-stream: use relay information from environment variable We fallback to relay information from environment variables when not using jingle google transport. --- src/call-stream.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/call-stream.c b/src/call-stream.c index e44ef2a..4f81da9 100644 --- a/src/call-stream.c +++ b/src/call-stream.c @@ -356,9 +356,10 @@ gabble_call_stream_constructed (GObject *obj) } else { - GPtrArray *relays = g_ptr_array_new (); - tp_base_media_call_stream_set_relay_info (media_base, relays); - g_ptr_array_unref (relays); + DEBUG ("Attempting to use relays from environment variables"); + wocky_jingle_info_create_relay_session ( + gabble_jingle_mint_get_info (conn->jingle_mint), + 2, google_relay_session_cb, tp_weak_ref_new (self, NULL, NULL)); } stun_servers = get_stun_servers (self); -- 2.5.0