add default prefix for realitive paths with no prefix defined
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6167 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
669df37aa8
commit
1316954a8c
|
@ -674,6 +674,10 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess
|
|||
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);
|
||||
|
|
Loading…
Reference in New Issue