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

Freeswitch SVN mikej at freeswitch.org
Mon Apr 14 13:24:52 EDT 2008


Author: mikej
Date: Mon Apr 14 13:24:52 2008
New Revision: 8109

Modified:
   freeswitch/trunk/src/switch_ivr_play_say.c

Log:
re-set the sound prefix back to nothing after a phrase if it wasn't set before. (MODAPP-84)

Modified: freeswitch/trunk/src/switch_ivr_play_say.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_play_say.c	(original)
+++ freeswitch/trunk/src/switch_ivr_play_say.c	Mon Apr 14 13:24:52 2008
@@ -176,10 +176,10 @@
 	}
 
 	if (sound_path) {
-		if ((old_sound_prefix = switch_channel_get_variable(channel, "sound_prefix"))) {
-			char *p = switch_core_session_strdup(session, old_sound_prefix);
-			old_sound_prefix = p;
-		}
+		char *p;
+		old_sound_prefix = switch_str_nil(switch_channel_get_variable(channel, "sound_prefix"));
+		p = switch_core_session_strdup(session, old_sound_prefix);
+		old_sound_prefix = p;
 		switch_channel_set_variable(channel, "sound_prefix", sound_path);
 	}
 



More information about the Freeswitch-svn mailing list