From b82f829b103b3d7752e73c002dab6d6d2f913382 Mon Sep 17 00:00:00 2001 From: Thibaut GIRKA Date: Thu, 10 Dec 2009 22:02:03 +0100 Subject: [PATCH] Import socket in jingle_rtp, fixes typo in 'stun_server', connect changed signal of stun_server_entry Fixes #5502 --- data/glade/preferences_window.glade | 1 + src/common/jingle_rtp.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/data/glade/preferences_window.glade b/data/glade/preferences_window.glade index db6d98b45..75a1a1a22 100644 --- a/data/glade/preferences_window.glade +++ b/data/glade/preferences_window.glade @@ -2158,6 +2158,7 @@ $T will be replaced by auto-not-available timeout True True + 1 diff --git a/src/common/jingle_rtp.py b/src/common/jingle_rtp.py index 0b8d846f2..6d30f2da5 100644 --- a/src/common/jingle_rtp.py +++ b/src/common/jingle_rtp.py @@ -16,6 +16,7 @@ Handles Jingle RTP sessions (XEP 0167) """ import gobject +import socket import xmpp import farsight, gst @@ -71,7 +72,7 @@ class JingleRTPContent(JingleContent): # pidgin and telepathy-gabble don't follow the XEP, and it won't work # due to bad controlling-mode params = {'controlling-mode': self.session.weinitiate, 'debug': False} - stun_server = gajim.config.get('stun-server') + stun_server = gajim.config.get('stun_server') if stun_server: try: ip = socket.getaddrinfo(stun_server, 0, socket.AF_UNSPEC,