[telepathy-gabble/master] Don't send transport in the GTalk 03 dialect

Sjoerd Simons sjoerd.simons at collabora.co.uk
Thu Jun 25 09:59:39 PDT 2009


---
 src/jingle-content.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/jingle-content.c b/src/jingle-content.c
index 723d1a3..7f42f96 100644
--- a/src/jingle-content.c
+++ b/src/jingle-content.c
@@ -725,8 +725,12 @@ gabble_jingle_content_produce_node (GabbleJingleContent *c,
   produce_desc (c, content_node);
 
   /* We can do it here, don't need to call into transport object for this */
-  trans_node = lm_message_node_add_child (content_node, "transport", NULL);
-  lm_message_node_set_attribute (trans_node, "xmlns", priv->transport_ns);
+  if (dialect != JINGLE_DIALECT_GTALK3)
+    {
+      /* Galk 03 doesn't use a transport, but assumes Gtalk p2p */
+      trans_node = lm_message_node_add_child (content_node, "transport", NULL);
+      lm_message_node_set_attribute (trans_node, "xmlns", priv->transport_ns);
+    }
 }
 
 void
-- 
1.5.6.5




More information about the telepathy-commits mailing list