]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10466: [freeswitch-core] Add session to some log lines #resolve
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 3 Jul 2017 22:37:05 +0000 (17:37 -0500)
committerBrian West <brian@freeswitch.org>
Mon, 3 Jul 2017 22:37:05 +0000 (17:37 -0500)
src/switch_rtp.c

index 0586ca2ab32f2d06d1fa176d4dca745b2b8ee53a..a2cf942af94adac50e47f2c4a91f68d5f2288f72 100644 (file)
@@ -7815,13 +7815,13 @@ static int rtp_write_ready(switch_rtp_t *rtp_session, uint32_t bytes, int line)
        if (!rtp_session) return 0;
 
        if (rtp_session->ice.ice_user && !(rtp_session->ice.rready || rtp_session->ice.ready)) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG3, "Skip sending %s packet %ld bytes (ice not ready @ line %d!)\n",
+               switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(rtp_session->session), SWITCH_LOG_DEBUG3, "Skip sending %s packet %ld bytes (ice not ready @ line %d!)\n",
                                                  rtp_type(rtp_session), (long)bytes, line);
                return 0;
        }
 
        if (rtp_session->dtls && rtp_session->dtls->state != DS_READY) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG3, "Skip sending %s packet %ld bytes (dtls not ready @ line %d!)\n",
+               switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(rtp_session->session), SWITCH_LOG_DEBUG3, "Skip sending %s packet %ld bytes (dtls not ready @ line %d!)\n",
                                                  rtp_type(rtp_session), (long)bytes, line);
                return 0;
        }