[Freeswitch-svn] [commit] r8051 - freeswitch/trunk/src
Freeswitch SVN
anthm at freeswitch.org
Mon Apr 7 15:35:51 EDT 2008
Author: anthm
Date: Mon Apr 7 15:35:51 2008
New Revision: 8051
Modified:
freeswitch/trunk/src/switch_ivr_play_say.c
Log:
fix var condition in macros
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 7 15:35:51 2008
@@ -176,7 +176,10 @@
}
if (sound_path) {
- old_sound_prefix = switch_channel_get_variable(channel, "sound_prefix");
+ 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;
+ }
switch_channel_set_variable(channel, "sound_prefix", sound_path);
}
@@ -747,6 +750,7 @@
prefix = SWITCH_GLOBAL_dirs.base_dir;
}
+
if (!strstr(file, SWITCH_URL_SEPARATOR)) {
if (!switch_is_file_path(file)) {
file = switch_core_session_sprintf(session, "%s%s%s", prefix, SWITCH_PATH_SEPARATOR, file);
More information about the Freeswitch-svn
mailing list