equal
deleted
inserted
replaced
207 jingle_send_session_accept(jn); |
207 jingle_send_session_accept(jn); |
208 |
208 |
209 } else { |
209 } else { |
210 scr_LogPrint(LPRINT_LOGNORM, "Jingle event from %s cancelled.", |
210 scr_LogPrint(LPRINT_LOGNORM, "Jingle event from %s cancelled.", |
211 jn->initiator); |
211 jn->initiator); |
212 jingle_send_session_terminate(jn, "decline"); |
212 // TODO: jingle_send_session_terminate(jn, "decline"); |
213 jingle_free_jinglenode(jn); |
213 jingle_free_jinglenode(jn); |
214 } |
214 } |
215 |
215 |
216 return FALSE; |
216 return FALSE; |
217 } |
217 } |
464 return; |
464 return; |
465 } |
465 } |
466 sc->appfuncs->handle_data(sc->description, data2, len); |
466 sc->appfuncs->handle_data(sc->description, data2, len); |
467 } |
467 } |
468 |
468 |
|
469 void handle_trans_next(session_content *sc2) { |
|
470 JingleSession *sess = session_find_by_sid(sc2->sid, sc2->from); |
|
471 if (sess == NULL) { |
|
472 // TODO: err |
|
473 return; |
|
474 } |
|
475 |
|
476 SessionContent *sc = session_find_sessioncontent(sess, sc2->name); |
|
477 |
|
478 // TODO: size! |
|
479 sc->appfuncs->send(sc2, 2048); |
|
480 g_free(sc2); |
|
481 } |
|
482 |
469 gchar *jingle_generate_sid(void) |
483 gchar *jingle_generate_sid(void) |
470 { |
484 { |
471 gchar *sid; |
485 gchar *sid; |
472 gchar car[] = "azertyuiopqsdfghjklmwxcvbn1234567890AZERTYUIOPQSDFGHJKLMWXCVBN"; |
486 gchar car[] = "azertyuiopqsdfghjklmwxcvbn1234567890AZERTYUIOPQSDFGHJKLMWXCVBN"; |
473 int i; |
487 int i; |