[Freeswitch-svn] [commit] r5211 - freeswitch/trunk/src
    Freeswitch SVN 
    anthm at freeswitch.org
       
    Wed May 23 09:37:36 EDT 2007
    
    
  
Author: anthm
Date: Wed May 23 09:37:35 2007
New Revision: 5211
Modified:
   freeswitch/trunk/src/switch_ivr_originate.c
Log:
tweak from eariler patch (reported by Dale Thatcher)
Modified: freeswitch/trunk/src/switch_ivr_originate.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_originate.c	(original)
+++ freeswitch/trunk/src/switch_ivr_originate.c	Wed May 23 09:37:35 2007
@@ -177,13 +177,13 @@
 					(early_ok && len == 1 && switch_channel_test_flag(peer_channels[i], CF_EARLY_MEDIA))) &&
 				   !switch_channel_test_flag(peer_channels[i], CF_TAGGED)) {
 
-			if (key) {
+			if (!switch_strlen_zero(key)) {
 				struct key_collect *collect;
 
 				if ((collect = switch_core_session_alloc(peer_sessions[i], sizeof(*collect)))) {
 					switch_channel_set_flag(peer_channels[i], CF_TAGGED);
 					collect->key = key;
-					if (file) {
+					if (!switch_strlen_zero(file)) {
 						collect->file = switch_core_session_strdup(peer_sessions[i], file);
 					}
 
    
    
More information about the Freeswitch-svn
mailing list