| 16 * You should have received a copy of the GNU General Public License |
16 * You should have received a copy of the GNU General Public License |
| 17 * along with this program; if not, write to the Free Software |
17 * along with this program; if not, write to the Free Software |
| 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 19 */ |
19 */ |
| 20 |
20 |
| 21 #include <gst/farsight/fs-conference-iface.h> |
|
| 22 |
|
| 23 #include "internal.h" |
21 #include "internal.h" |
| 24 #include "debug.h" |
22 #include "debug.h" |
| 25 #include "mediamanager.h" |
23 #include "mediamanager.h" |
| 26 #include "util.h" |
24 #include "util.h" |
| 27 #include "privacy.h" |
25 #include "privacy.h" |
| 321 google_session_handle_terminate(js, session, packet, sess); |
322 google_session_handle_terminate(js, session, packet, sess); |
| 322 } else if (!strcmp(type, "candidates")) { |
323 } else if (!strcmp(type, "candidates")) { |
| 323 google_session_handle_candidates(js, session, packet, sess); |
324 google_session_handle_candidates(js, session, packet, sess); |
| 324 } |
325 } |
| 325 } |
326 } |
| |
327 #endif /* USE_FARSIGHT */ |
| 326 |
328 |
| 327 void |
329 void |
| 328 jabber_google_session_parse(JabberStream *js, xmlnode *packet) |
330 jabber_google_session_parse(JabberStream *js, xmlnode *packet) |
| 329 { |
331 { |
| |
332 #ifdef USE_FARSIGHT |
| 330 GoogleSession *session; |
333 GoogleSession *session; |
| 331 GoogleSessionId id; |
334 GoogleSessionId id; |
| 332 |
335 |
| 333 xmlnode *session_node; |
336 xmlnode *session_node; |
| 334 xmlnode *desc_node; |
337 xmlnode *desc_node; |
| 370 session->js = js; |
373 session->js = js; |
| 371 session->remote_jid = g_strdup(session->id.initiator); |
374 session->remote_jid = g_strdup(session->id.initiator); |
| 372 g_hash_table_insert(sessions, &(session->id), session); |
375 g_hash_table_insert(sessions, &(session->id), session); |
| 373 |
376 |
| 374 google_session_parse_iq(js, session, packet); |
377 google_session_parse_iq(js, session, packet); |
| |
378 #else |
| |
379 /* TODO: send proper error response */ |
| |
380 #endif /* USE_FARSIGHT */ |
| 375 } |
381 } |
| 376 |
382 |
| 377 static void |
383 static void |
| 378 jabber_gmail_parse(JabberStream *js, xmlnode *packet, gpointer nul) |
384 jabber_gmail_parse(JabberStream *js, xmlnode *packet, gpointer nul) |
| 379 { |
385 { |