]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
added debugging to print ip and port of rtmp connection as well as tie the rtmp sessi...
authorWilliam King <william.king@quentustech.com>
Thu, 31 Jan 2013 01:37:00 +0000 (17:37 -0800)
committerWilliam King <william.king@quentustech.com>
Wed, 24 Apr 2013 00:43:22 +0000 (17:43 -0700)
src/mod/endpoints/mod_rtmp/mod_rtmp.c
src/mod/endpoints/mod_rtmp/rtmp_tcp.c

index 24603ba8067a66bdb3c4f82711f78340d37dce20..f4cbe656c8e038c591714dc8dc470847b530b1dc 100644 (file)
@@ -857,7 +857,8 @@ switch_call_cause_t rtmp_session_create_call(rtmp_session_t *rsession, switch_co
        if (!(*newsession = switch_core_session_request(rtmp_globals.rtmp_endpoint_interface, SWITCH_CALL_DIRECTION_INBOUND, SOF_NONE, NULL))) {
                return SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER;
        }
-
+       switch_log_printf(SWITCH_CHANNEL_UUID_LOG(rsession->uuid), SWITCH_LOG_INFO, "New FreeSWITCH session created: %s\n",
+                                         switch_core_session_get_uuid(*newsession));
 
        pool = switch_core_session_get_pool(*newsession);       
        channel = switch_core_session_get_channel(*newsession);
index 2cfd93b6770d3722e680d16f712ba11b82da95c5..650663d4932024aaf72562d110322bbf905cac98 100644 (file)
@@ -247,6 +247,8 @@ void *SWITCH_THREAD_FUNC rtmp_io_tcp_thread(switch_thread_t *thread, void *obj)
                                                switch_get_addr(ipbuf, sizeof(ipbuf), addr);
                                                newsession->remote_address = switch_core_strdup(newsession->pool, ipbuf);
                                                newsession->remote_port = switch_sockaddr_get_port(addr);
+                                               switch_log_printf(SWITCH_CHANNEL_UUID_LOG(newsession->uuid), SWITCH_LOG_INFO, "Rtmp connection from %s:%i\n",
+                                                                                 newsession->remote_address, newsession->remote_port);
                                        }
                                }
                        } else {