Commit graph

54 commits

Author SHA1 Message Date
Yann Leboulanger
8dcbf3e73e e NEC to handle jingle-connected events 2010-10-27 19:37:14 +02:00
Yann Leboulanger
ffa7cbda9c rename __sessions to _session 2010-10-27 01:16:05 +02:00
Thibaut GIRKA
fbf9a769d8 Delete invalid jingle sessions. Kick audio/video availability from jingle states.
Fixes #5668, #5651
2010-03-21 21:45:45 +01:00
Thibaut GIRKA
ab0f7899ad Refuse multiple sessions and implement alternative-session; make jingle GUI a bit more reliable. 2010-03-15 21:34:28 +01:00
Thibaut GIRKA
6e5d8c4ce0 Change ConnectionJingle.__sessions keys from (jid, sid) to sid. 2010-03-14 21:51:04 +01:00
Éric Araujo
fedd7dc8e2 convert tabs to spaces in source code thanks to reindent.py
holy diff batman!
2010-02-08 15:08:40 +01:00
Stephan Erb
f128391189 One more vim config entry. 2009-12-01 22:31:42 +01:00
Thibaut GIRKA
d295f9261d [Jingle] a bit of documentation/clarification ; added make_bin_from_config 2009-11-30 22:29:32 +01:00
Thibaut GIRKA
ee452a57a2 [Jingle] Renamed callbacks to match name conventions 2009-11-26 22:09:34 +01:00
Thibaut GIRKA
0edb624fec Renamed a few methods, refactor on_*_button_toggled, use getattr/setattr instead of eval/self.__dict__ 2009-11-26 21:53:44 +01:00
Alexander Cherniuk
6bf2246de5 A big portion of doc-string refactoring 2009-11-26 13:58:12 +02:00
Thibaut GIRKA
b2c5810869 Refactorize a bit jingle.py and split it into different files.
There is still room for improvement, but it should be better.
2009-11-15 20:47:06 +01:00
Thibaut GIRKA
e5062f77ea [Jingle] User can send DTMF tones using the /dtmf command 2009-11-13 22:58:02 +01:00
Thibaut GIRKA
bc90bc1157 Destroy session when remote signs off 2009-10-16 19:04:04 +02:00
Thibaut GIRKA
b2b8ac4b76 Connect only if user accepts, move jingle detection to 'update_toolbar'
This allows jingle availability to be updated if contact sign in/out.
This patch will also wait for user acceptance before connecting.
This will, among other things, ensure that audio/video state won't be set to
JINGLE_STATE_CONNECTING while the connection is already up.
2009-10-03 22:40:12 +02:00
Thibaut GIRKA
10a6b0683c Second typo corrected... I need to sleep... 2009-09-28 22:31:28 +02:00
Thibaut GIRKA
b4d2227662 Fixed a typo ; Prepared tie breaking and content-info handling 2009-09-28 22:23:48 +02:00
Thibaut GIRKA
85195e99ad workaround for psi, little fixes... 2009-09-27 22:56:09 +02:00
Thibaut GIRKA
e141d7875a Don't send audio/video data before session acceptance. 2009-09-26 23:07:09 +02:00
Thibaut GIRKA
5a1a36e348 Fix somes issues with content-add/content-accept/session-accept, and other things. 2009-09-26 21:55:43 +02:00
Thibaut GIRKA
b5c7519740 A little fix with content acceptance ; modified a bit JINGLE_DISCONNECTED 2009-09-26 14:14:58 +02:00
Thibaut GIRKA
08b7f18f50 Fix content reject 2009-09-26 12:31:56 +02:00
Thibaut GIRKA
62d6f408c2 Merge the commits I've made yesterday with asterik's ones 2009-09-26 12:25:36 +02:00
Thibaut GIRKA
193f2613a9 Rewritten contentAddCB in order to ask the user about new contents 2009-09-26 12:22:41 +02:00
Yann Leboulanger
a8eedfc781 ability to accept contents and not only session 2009-09-26 10:29:08 +02:00
Thibaut GIRKA
011f4fe142 Auto-accept contents we have created (it would make no sense to refuse it...) 2009-09-25 23:52:39 +02:00
Thibaut GIRKA
a8bccebfb7 Added approve_content and decline_content methods.
A content has now to be accepted (user-side) before {content,session}-accept
2009-09-25 23:05:14 +02:00
Yann Leboulanger
5f70d6b78e use a str instance instead of a xmpp.JID instance 2009-09-25 20:41:22 +02:00
Thibaut GIRKA
77541f3e7f support for content-{add,reject,accept}, new helpers, and other few things 2009-09-25 19:32:13 +02:00
Yann Leboulanger
32965a948e new GUI to start audio and video sessions. TODO: ability to add/remove audio/video content to an existing session 2009-09-25 13:52:44 +02:00
Thibaut GIRKA
d7560ed764 My last commit was useless... now terminate the session if the connection fails 2009-09-22 22:33:00 +02:00
Thibaut GIRKA
a4e019ee7e Last time, I removed something I shouldn't have... 2009-09-20 22:41:17 +02:00
Thibaut GIRKA
c162780a58 coding standards, and other few things 2009-09-19 17:24:59 +02:00
Thibaut GIRKA
5503c80e2a fix some erros from my last commit, fix conditions for session initating and acceptance 2009-09-18 20:17:35 +02:00
Thibaut GIRKA
bd9d793ad8 send messages to the gui, wait for codecs, and other things
JingleSession now sends messages about errors or session terminating to the GUI.
Another thing is that it'll wait for all transports candidates and all codecs to be ready before
starting or accepting a session. This is required by video, which is only missing a GUI. :)
2009-09-17 23:36:26 +02:00
Yann Leboulanger
12baddbdc3 start of GUI stuff for VOIP 2009-09-17 14:48:15 +02:00
Thibaut GIRKA
163b01e113 New class for video sessions, added an end_session method, and minor changes 2009-09-16 22:35:11 +02:00
Thibaut GIRKA
8b4cd1b368 Fixed two more or less fatal mistakes from my last commit 2009-09-16 21:21:08 +02:00
Yann Leboulanger
11c7de6c34 coding standards 2009-09-16 20:41:12 +02:00
Thibaut GIRKA
af44ee0840 Moved things to JingleRTPContent, start pipeline earlier
Some methods of JingleVoIPContent have been moved to JingleRTPContent, in prevision of a video content class.

The pipeline now starts in setupStream, and the stream's direction is changed when the stream is ready.
2009-09-16 13:55:54 +02:00
Thibaut GIRKA
32ad59aa42 jingle: move from the old farsight to farsight2,
better compliance to the last version of XEP 0166, 0167 and 0176
2009-09-13 11:02:49 +02:00
Tomasz Melcer
d3a4029288 Jingle: backport of py2.5-only function 2007-08-24 15:44:49 +00:00
Tomasz Melcer
be38a7a1eb Jingle: declining session 2007-08-24 13:25:12 +00:00
Tomasz Melcer
2a7f1a654a Jingle: dialog for accepting voice calls 2007-08-23 23:42:31 +00:00
Tomasz Melcer
0a9c7f67ec Jingle: lots of debug prints cut 2007-08-21 18:18:48 +00:00
Tomasz Melcer
7f57a9d2e8 Jingle: wrongly decoded connection parameters from transport-info 2007-08-20 23:14:57 +00:00
Tomasz Melcer
6a6527e1f3 Jingle: fix py2.5 construct 2007-08-19 20:01:38 +00:00
Tomasz Melcer
70ddb3e681 Jingle: more farsight in jingle.py 2007-08-15 09:47:29 +00:00
Tomasz Melcer
5bb2fa9a0c Jingle: farsight bindings define constants now 2007-08-12 21:22:25 +00:00
Tomasz Melcer
5f67848c92 Jingle: better farsight wrappers 2007-08-12 00:16:54 +00:00