]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
skip invalid uuids on eavesdrop runs
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 18 Jun 2010 22:00:29 +0000 (17:00 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 18 Jun 2010 22:00:29 +0000 (17:00 -0500)
src/mod/applications/mod_dptools/mod_dptools.c

index f9ad5357cdc74301e111bf09e6cc9897453e8953..187fa446ab1daf0f1e57b7aaced6df65668314ff 100755 (executable)
@@ -398,6 +398,8 @@ SWITCH_STANDARD_APP(eavesdrop_function)
                                }
                                if (e_data.total) {
                                        for (x = 0; x < e_data.total && switch_channel_ready(channel); x++) {
+                                               if (!switch_ivr_uuid_exists(e_data.uuid_list[x])) continue;
+
                                                /* If we have a group and 1000 concurrent calls, we will flood the logs. This check avoids this */
                                                if (!require_group)
                                                        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Spy: %s\n", e_data.uuid_list[x]);