equal
deleted
inserted
replaced
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 } |