Commit 31fb8f44 authored by Youness Alaoui's avatar Youness Alaoui Committed by Olivier Crête

Add some informative debug messaging

parent a6954838
......@@ -3019,7 +3019,7 @@ gboolean conn_check_handle_inbound_stun (NiceAgent *agent, Stream *stream,
return TRUE;
}
if (valid == STUN_VALIDATION_UNAUTHORIZED_BAD_REQUEST) {
nice_debug ("Agent %p : Integrity check failed.", agent);
nice_debug ("Agent %p : Integrity check failed - bad request.", agent);
if (stun_agent_init_error (&agent->stun_agent, &msg, rbuf, rbuf_len,
&req, STUN_ERROR_BAD_REQUEST)) {
rbuf_len = stun_agent_finish_message (&agent->stun_agent, &msg, NULL, 0);
......
......@@ -166,8 +166,9 @@ example_thread(void *data)
goto end;
// Candidate gathering is done. Send our local candidates on stdout
printf("Copy this line to remote client:\n");
sdp = nice_agent_generate_local_sdp (agent);
printf("Generated SDP from agent :\n%s\n\n", sdp);
printf("Copy the following line to remote client:\n");
sdp64 = g_base64_encode ((const guchar *)sdp, strlen (sdp));
printf("\n %s\n", sdp64);
g_free (sdp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment