[Telepathy-commits] [mingle/master] Parse transport-info type things as well
Sjoerd Simons
sjoerd at luon.net
Mon Nov 24 06:55:59 PST 2008
---
jingle.py | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/jingle.py b/jingle.py
index bf482eb..971fa2b 100644
--- a/jingle.py
+++ b/jingle.py
@@ -958,6 +958,7 @@ class GoogleSession(JingleBaseSession):
self.action_dispatch = {
'candidates': self.action_candidates,
+ 'transport-info': self.action_transport_info,
'accept': self.action_accept,
}
@@ -1024,6 +1025,15 @@ class GoogleSession(JingleBaseSession):
return make_iq_result(iq)
+ def action_transport_info (self, iq, session):
+ candidates = xpath.queryForNodes('/session/transport/candidate',
+ session)
+ for cand in candidates:
+ for c in self.contents.itervalues():
+ c.transport_info(cand)
+
+ return make_iq_result(iq)
+
def action_accept(self, iq, session):
description = xpath.queryForNodes('/session/description', session)[0]
for c in self.contents.itervalues():
--
1.5.6.5
More information about the Telepathy-commits
mailing list