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

Freeswitch SVN anthm at freeswitch.org
Tue Nov 6 17:19:49 EST 2007


Author: anthm
Date: Tue Nov  6 17:19:49 2007
New Revision: 6167

Modified:
   freeswitch/trunk/src/switch_ivr_play_say.c

Log:
add default prefix for realitive paths with no prefix defined

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	Tue Nov  6 17:19:49 2007
@@ -674,6 +674,10 @@
 		return SWITCH_STATUS_FALSE;
 	}
 
+	if (!prefix) {
+		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