jingle/action-handlers.c
changeset 17 24aa7414bafd
parent 16 cb085682970f
child 18 d0ddcfd31eb8
--- a/jingle/action-handlers.c	Mon Jun 07 23:04:34 2010 +0200
+++ b/jingle/action-handlers.c	Wed Jun 09 04:11:26 2010 +0200
@@ -30,6 +30,22 @@
   // a session-initiate message must contains at least one <content> element
   if (g_list_length(jn->content) < 1) {
     jingle_send_iq_error(m, "cancel", "bad-request", NULL);
+    return;
   }
-  
+
+  /*// if a session with the same jid already exists
+  if (session_find(jn) != NULL) {
+    jingle_send_iq_error(m, "cancel", "unexpected-request", "out-of-order");
+    return;
+  }*/
+
+  jingle_ack_iq(m);
 }
+
+void handle_session_terminate(LmMessage *m, JingleNode *jn)
+{
+  /*if (session_find(jn) == NULL) {
+    jingle_send_iq_error(m, "cancel", "item-not-found", "unknown-session");
+    return;
+  }*/
+}