[Freeswitch-svn] [commit] r5391 - freeswitch/trunk/src

Freeswitch SVN anthm at freeswitch.org
Tue Jun 19 14:25:17 EDT 2007


Author: anthm
Date: Tue Jun 19 14:25:17 2007
New Revision: 5391

Modified:
   freeswitch/trunk/src/switch_core_media_bug.c
   freeswitch/trunk/src/switch_ivr_async.c

Log:
testing a media bug change

Modified: freeswitch/trunk/src/switch_core_media_bug.c
==============================================================================
--- freeswitch/trunk/src/switch_core_media_bug.c	(original)
+++ freeswitch/trunk/src/switch_core_media_bug.c	Tue Jun 19 14:25:17 2007
@@ -156,10 +156,11 @@
 														  switch_media_bug_callback_t callback,
 														  void *user_data, time_t stop_time, switch_media_bug_flag_t flags, switch_media_bug_t **new_bug)
 {
-	switch_media_bug_t *bug, *bp;
+	switch_media_bug_t *bug;//, *bp;
 	switch_size_t bytes;
 
 	if (flags & SMBF_WRITE_REPLACE) {
+#if 0
 		switch_thread_rwlock_wrlock(session->bug_rwlock);
 		for (bp = session->bugs; bp; bp = bp->next) {
 			if (switch_test_flag(bp, SMBF_WRITE_REPLACE)) {
@@ -169,9 +170,11 @@
 			}
 		}
 		switch_thread_rwlock_unlock(session->bug_rwlock);
+#endif
 	}
 
 	if (flags & SMBF_READ_REPLACE) {
+#if 0
 		switch_thread_rwlock_wrlock(session->bug_rwlock);
 		for (bp = session->bugs; bp; bp = bp->next) {
 			if (switch_test_flag(bp, SMBF_READ_REPLACE)) {
@@ -181,6 +184,7 @@
 			}
 		}
 		switch_thread_rwlock_unlock(session->bug_rwlock);
+#endif
 	}
 
 	if (!(bug = switch_core_session_alloc(session, sizeof(*bug)))) {

Modified: freeswitch/trunk/src/switch_ivr_async.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_async.c	(original)
+++ freeswitch/trunk/src/switch_ivr_async.c	Tue Jun 19 14:25:17 2007
@@ -605,7 +605,7 @@
 	  }
 
 	  for(i = 0; i < cont->index; i++) {
-		  if (!strcasecmp(key, cont->list[cont->index].key )) {
+		  if (!switch_strlen_zero(cont->list[cont->index].key) && !strcasecmp(key, cont->list[cont->index].key)) {
 			  switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Renabling %s\n", key);
 			  cont->list[cont->index].up = 1;
 			  teletone_multi_tone_init(&cont->list[i].mt, &cont->list[i].map);



More information about the Freeswitch-svn mailing list