jingle/sessions.c
changeset 105 c31988e107b3
parent 104 060e69633902
child 107 a7f14a5e112c
equal deleted inserted replaced
104:060e69633902 105:c31988e107b3
   274 
   274 
   275 void handle_app_data(const gchar *sid, const gchar *from, const gchar *name, gchar *data, gsize size)
   275 void handle_app_data(const gchar *sid, const gchar *from, const gchar *name, gchar *data, gsize size)
   276 {
   276 {
   277   // TODO: check that the module is always loaded
   277   // TODO: check that the module is always loaded
   278   JingleSession *sess = session_find_by_sid(sid, from);
   278   JingleSession *sess = session_find_by_sid(sid, from);
       
   279   if (sess == NULL) {
       
   280     scr_LogPrint(LPRINT_LOGNORM, "Session not found (%s)", name);
       
   281     return;
       
   282   }
   279   SessionContent *sc = session_find_sessioncontent(sess, name);
   283   SessionContent *sc = session_find_sessioncontent(sess, name);
   280   sc->transfuncs->send(sess->to, sc->transport, data, size);
   284   sc->transfuncs->send(sess->to, sc->transport, data, size);
   281 }
   285 }